Expand description
Transaction Queue.
All transactions that are sent from RPC methods should be added to this queue for retries. Transactions can fail to be inserted to the mempool immediately by different reasons, like having not mined utxos.
The Queue
is just an IndexMap
of transactions with insertion date.
We use this data type because we want the transactions in the queue to be in order.
The Runner
component will do the processing in it’s Runner::run()
method.
Structs§
- The queue is a container of transactions that are going to be sent to the mempool again.
- The runner will make the processing of the transactions in the queue.
Constants§
- Size of the queue and channel.
- The height to use in spacing calculation if we don’t have a chain tip.
- The approximate target number of blocks a transaction can be in the queue.