Skip to content

Instantly share code, notes, and snippets.

@afk11
Last active January 30, 2020 16:39
Show Gist options
  • Save afk11/b059dbd59e9b604500779a95f8bcfc7b to your computer and use it in GitHub Desktop.
Save afk11/b059dbd59e9b604500779a95f8bcfc7b to your computer and use it in GitHub Desktop.
'Quiet' ZMQ tx notifications during reorg
rawtx tx1 <- TransactionAddedToMempool
rawtx tx2 <- TransactionAddedToMempool
rawtx tx3 <- TransactionAddedToMempool
rawtx blka1CoinBase <- BlockConnected
rawtx tx1 <- BlockConnected
rawtx tx2 <- BlockConnected
rawtx tx3 <- BlockConnected
rawblock blk1a (tx1, tx2, tx3) <- UpdatedTip
(background, send block1b EMPTY) (noop)
(background, send block2b tx1, tx2, tx3)** bitcoind reorg triggered after this
rawblock blk2b (tx1, tx2, tx3) <- UpdatedTip **when we learn about reorg
** this is when we would start unconfirming block1a **
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment