MCPcopy Create free account
hub / github.com/bitcoinxt/bitcoinxt / GetBlockTimeout

Function GetBlockTimeout

src/main.cpp:277–280  ·  view source on GitHub ↗

Returns time at which to timeout block request (nTime in microseconds)

Source from the content-addressed store, hash-verified

275
276// Returns time at which to timeout block request (nTime in microseconds)
277int64_t GetBlockTimeout(int64_t nTime, int nValidatedQueuedBefore, const Consensus::Params &consensusParams)
278{
279 return nTime + 500000 * consensusParams.nPowTargetSpacing * (4 + nValidatedQueuedBefore);
280}
281
282void InitializeNode(NodeId nodeid, const CNode *pnode) {
283 NodeStatePtr::insert(nodeid, pnode, thinblockmg);

Callers 2

operator()Method · 0.85
SendMessagesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected