Skip to main content

Module mempool

Module mempool 

Source
Expand description

The mempool for a Tributary.

This is distinguished into the mempool for provided transactions and the mempool for (un)signed transactions due to the difference in semantics between them.

Both mempools are implemented with the same pattern.

  • Transactions may be added into the mempool by a mutable reference.
  • The mempool may be polled to respond to requests for block proposals and handle the addition of new blocks.

This avoids requiring any locks over the mempool’s state between the application layer and the blockchain.

Enums§

MempoolError
An error within the mempool.

Traits§

MempoolNetwork
The network for the mempool.