Module running_ctx

Source
Expand description

After a node catches-up with the network, we can start listening for new blocks, handing any request our user might make and keep our peers alive. This mode requires way less bandwidth and CPU to run, being bound by the number of blocks found in a given period.

StructsΒ§

RunningNode

ConstantsΒ§

MAX_INV_RETENTION_TIME πŸ”’
How long do we keep the last invs to compute peer scores
MAX_LAST_INVS πŸ”’
Don’t hold more than this many invs in last_invs
MAX_REORG_DEPTH πŸ”’
To prevent disk filling attacks, we forbid reorgs that are over two days deep.