Skip to content

Commit

Permalink
TxPool docs: update link to code (#12797)
Browse files Browse the repository at this point in the history
  • Loading branch information
dvovk authored Nov 20, 2024
1 parent 054d56e commit 80e2c6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion txnprovider/txpool/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ tx_hashes, pending_pool, queued_pool, local_transactions => pending_pool`, queue

where modified pending pool and queued pool, and local transactions do not contain given transaction hashes anymore.

In code can find production of such event by `p.newPendingTxs <-`, and handling of this event by `announcements := <-newTxs` [here](pool.go#L1429)
In code can find production of such event by `p.newPendingTxs <-`, and handling of this event by `announcements := <-newTxs` [here](pool.go#L1746)

## Reinject transactions into the transaction pool on unwinding a block
This can be thought of a reverse operation from the one described before. When a block that was deemed "the best" of its height, is no longer deemed "the best", the transactions contained in it, are now viable for inclusion in other blocks, and therefore should be returned into the transaction pool. We can describe this function as:
Expand Down

0 comments on commit 80e2c6f

Please sign in to comment.