Skip to content

Instantly share code, notes, and snippets.

@vivekteega
Created April 7, 2021 19:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vivekteega/e00d98ce26028101137d08e4825bb75b to your computer and use it in GitHub Desktop.
Save vivekteega/e00d98ce26028101137d08e4825bb75b to your computer and use it in GitHub Desktop.
Sample of a good reorg operation in Flosight
[warning] (chain) WARNING: Reorganizing chain.
[info] (node) Spawning worker process: 2.
[info] (node) Spawning worker process: 3.
[warning] (chain) Chain reorganization: old=cd4802927759720336278fe1cfac8708123b350202ceae558017b76c2791b3f9(4699808) new=4ca28d40e34cbc61053a49cf9edac4bf7ee466016f6c64e47fc0bc44bd0b1ed9(4699809)
[info] (chain) Block 4ca28d40e34cbc61053a49cf9edac4bf7ee466016f6c64e47fc0bc44bd0b1ed9 (4699809) added to chain (size=330 txs=1 time=280.809984).
[info] (chain) Block 1279c0c05d7fe2bf7f487c307218e3edab161a4707306c55f71277ab5990b547 (4699810) added to chain (size=330 txs=1 time=4.230457).
[2021-03-26T00:18:45.417Z] warn: Header Service: Reorganization detected, current tip hash: cd4802927759720336278fe1cfac8708123b350202ceae558017b76c2791b3f9, new block causing the reorg: 4ca28d40e34cbc61053a49cf9edac4bf7ee466016f6c64e47fc0bc44bd0b1ed9
[2021-03-26T00:18:45.417Z] info: Header Service: Getting last header synced at height: 4697808
[2021-03-26T00:18:45.507Z] info: localhost-header unsubscribe: p2p/headers total: 0
[2021-03-26T00:18:45.507Z] info: localhost-header unsubscribe: p2p/block total: 1
[2021-03-26T00:18:45.508Z] info: Header Service: Gathering: 2000 header(s) from the peer-to-peer network.
[2021-03-26T00:18:45.508Z] info: Header Service: subscribed to p2p headers.
[2021-03-26T00:18:45.508Z] info: localhost-header subscribe: p2p/headers total: 1
[2021-03-26T00:18:46.120Z] info: Header Service: download progress: 4699808/4699808 (100.00%)
[2021-03-26T00:18:46.120Z] info: Header Service: Sync Complete!
[2021-03-26T00:18:46.120Z] info: Header Service: p2p header subscription no longer needed, unsubscribing.
[2021-03-26T00:18:46.120Z] info: localhost-header unsubscribe: p2p/headers total: 0
[2021-03-26T00:18:46.120Z] info: Header Service: starting p2p block subscription.
[2021-03-26T00:18:46.121Z] info: localhost-header subscribe: p2p/block total: 2
[2021-03-26T00:18:46.121Z] info: Header Service: sync complete.
[2021-03-26T00:18:46.121Z] info: localhost-block unsubscribe: p2p/block total: 1
[2021-03-26T00:18:46.121Z] info: Block Service: checking the saved tip...
[2021-03-26T00:18:46.148Z] warn: Block Service: chain reorganization detected, current height/hash: 4699808/cd4802927759720336278fe1cfac8708123b350202ceae558017b76c2791b3f9 common ancestor hash: 79b02b17957adf2a2b67d204758eaecbd8b4f926bd2474da1a221634c47248a6 at height: 4699806 There are: 2 block(s) to remove.
[2021-03-26T00:18:46.160Z] info: Block Service: Reorging: timestamp service.
[2021-03-26T00:18:46.161Z] info: Block Service: Reorging: mempool service.
[2021-03-26T00:18:46.162Z] info: Block Service: Reorging: block service.
[2021-03-26T00:18:46.162Z] info: Block Service: Reorging: transaction service.
[2021-03-26T00:18:46.162Z] info: Block Service: Reorging: address service.
[2021-03-26T00:18:46.164Z] info: Block Service: Reorging: timestamp service.
[2021-03-26T00:18:46.164Z] info: Block Service: Reorging: mempool service.
[2021-03-26T00:18:46.165Z] info: Block Service: Reorging: block service.
[2021-03-26T00:18:46.166Z] info: Block Service: Reorging: transaction service.
[2021-03-26T00:18:46.167Z] info: Block Service: Reorging: address service.
[2021-03-26T00:18:46.174Z] info: Block Service: removed 2 block(s) during the reorganization event.
[2021-03-26T00:18:46.183Z] info: Block Service: Gathering: 2 block(s) from the peer-to-peer network.
[2021-03-26T00:18:46.202Z] info: ::ffff:127.0.0.1 "GET /api/block/1138945c55c4990b4ebedb11f26a5c711748769f3dfa0868a0e832462892cb45" 200 804 2.344 "python-requests/2.23.0"
[2021-03-26T00:18:46.204Z] info: Block Service: download progress: 4699810/4699810 (100.0000%)
[2021-03-26T00:18:46.204Z] info: Block Service: starting p2p block subscription.
[2021-03-26T00:18:46.204Z] info: localhost-block subscribe: p2p/block total: 2
[2021-03-26T00:18:46.205Z] info: Mempool Service: Mempool enabled.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment