Skip to content
This repository has been archived by the owner on May 22, 2023. It is now read-only.

Prevent TBTC monitoring duplication #591

Merged
merged 13 commits into from
Nov 12, 2020
Merged

Prevent TBTC monitoring duplication #591

merged 13 commits into from
Nov 12, 2020

Conversation

lukasz-zimnoch
Copy link
Member

Refs: #574
Depends on: #590

Implemented a monitoring lock mechanism that should prevent triggering duplicated monitoring instances. Those redundant instances can be started as a response to duplicated events that are sometimes delivered by third-party Ethereum nodes.

Implemented a monitoring lock mechanism which
should prevent triggering duplicated monitoring
instances. Those redundant instances can be
started as response to duplicated events which
are sometimes delivered by third-party Ethereum
nodes.
@pdyraga pdyraga added this to the v1.5.0 milestone Nov 5, 2020
@pdyraga pdyraga mentioned this pull request Nov 6, 2020
@pdyraga
Copy link
Member

pdyraga commented Nov 6, 2020

duplicated events that are sometimes delivered by third-party Ethereum nodes.

Heads up: even if the operator is not using Infura or Alchemy, and they are running their own Ethereum client, duplicate events are still happening for small chain re-orgs.

pkg/extensions/tbtc/monitoring_lock.go Outdated Show resolved Hide resolved
pkg/extensions/tbtc/tbtc.go Outdated Show resolved Hide resolved
pkg/extensions/tbtc/tbtc.go Outdated Show resolved Hide resolved
pkg/extensions/tbtc/monitoring_lock.go Outdated Show resolved Hide resolved
Copy link
Member

@pdyraga pdyraga left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two small comments. Otherwise, once #590 is merged I am good to merge this PR as well.

pkg/extensions/tbtc/tbtc.go Outdated Show resolved Hide resolved
pkg/extensions/tbtc/tbtc_test.go Outdated Show resolved Hide resolved
Base automatically changed from monitoring-filters to master November 12, 2020 11:18
@lukasz-zimnoch lukasz-zimnoch marked this pull request as ready for review November 12, 2020 11:24
@pdyraga pdyraga merged commit 86e7504 into master Nov 12, 2020
@pdyraga pdyraga deleted the monitoring-dedup branch November 12, 2020 11:28
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants