reorgs, fetch batching (parallel fetch), orphans
This commit is contained in:
10
include/nets/fetch_scheduler.h
Normal file
10
include/nets/fetch_scheduler.h
Normal file
@@ -0,0 +1,10 @@
|
||||
#ifndef FETCH_SCHEDULER_H
|
||||
#define FETCH_SCHEDULER_H
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
// Compute penalty in blocks for a delayed/heavy reorg reported by a peer.
|
||||
// Returns the number of penalty blocks to subtract from the peer's advertised work.
|
||||
uint64_t FetchScheduler_ComputeReorgPenaltyBlocks(uint64_t delayBlocks);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user