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