Contrib script to detect large re-orgs #101

Open
opened 2 years ago by duke · 1 comments
duke commented 2 years ago
Owner

It would be very useful to have a script that can be run from cron that processes the output of getchaintips and looks for re-orgs which have a branchlen > 1, which is an indication that something "no bueno" is happening. re-orgs of branchlen=1 are very common and should not notify anybody.

This RPC is very fast, so it can be run very often, such as once per minute.

We also publish this API on the web, so it would be possible to compare local node data against https://explorer.hush.is/api/getchaintips.json and https://explorer.hush.land/api/getchaintips.json . Only nodes which see a re-org will have the data, so some nodes will have different data from others.

It would be very useful to have a script that can be run from cron that processes the output of `getchaintips` and looks for re-orgs which have a `branchlen` > 1, which is an indication that something "no bueno" is happening. re-orgs of `branchlen=1` are very common and should not notify anybody. This RPC is very fast, so it can be run very often, such as once per minute. We also publish this API on the web, so it would be possible to compare local node data against https://explorer.hush.is/api/getchaintips.json and https://explorer.hush.land/api/getchaintips.json . Only nodes which see a re-org will have the data, so some nodes will have different data from others.
duke self-assigned this 2 years ago
onryo was assigned by duke 2 years ago
Poster
Owner

Working on this is more important and should be done before the similar InvalidChainFound script

Working on this is more important and should be done before the similar InvalidChainFound script
duke added the
feature
label 1 year ago
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.