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

Method AddBlock

src/chain.h:73–83  ·  view source on GitHub ↗

update statistics (does not update nSize) */

Source from the content-addressed store, hash-verified

71
72 /** update statistics (does not update nSize) */
73 void AddBlock(unsigned int nHeightIn, uint64_t nTimeIn) {
74 if (nBlocks==0 || nHeightFirst > nHeightIn)
75 nHeightFirst = nHeightIn;
76 if (nBlocks==0 || nTimeFirst > nTimeIn)
77 nTimeFirst = nTimeIn;
78 nBlocks++;
79 if (nHeightIn > nHeightLast)
80 nHeightLast = nHeightIn;
81 if (nTimeIn > nTimeLast)
82 nTimeLast = nTimeIn;
83 }
84};
85
86struct CDiskBlockPos

Callers 1

FindBlockPosFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected