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

Method AddBlock

src/main.h:537–547  ·  view source on GitHub ↗

update statistics (does not update nSize) */

Source from the content-addressed store, hash-verified

535
536 /** update statistics (does not update nSize) */
537 void AddBlock(unsigned int nHeightIn, uint64_t nTimeIn) {
538 if (nBlocks==0 || nHeightFirst > nHeightIn)
539 nHeightFirst = nHeightIn;
540 if (nBlocks==0 || nTimeFirst > nTimeIn)
541 nTimeFirst = nTimeIn;
542 nBlocks++;
543 if (nHeightIn > nHeightLast)
544 nHeightLast = nHeightIn;
545 if (nTimeIn > nTimeLast)
546 nTimeLast = nTimeIn;
547 }
548};
549
550/** RAII wrapper for VerifyDB: Verify consistency of the block and coin databases */

Callers 1

FindBlockPosFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected