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

Method SetNull

src/chain.h:228–252  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

226 unsigned int nTimeMax;
227
228 void SetNull()
229 {
230 phashBlock = nullptr;
231 pprev = nullptr;
232 pskip = nullptr;
233 nHeight = 0;
234 nFile = 0;
235 nDataPos = 0;
236 nUndoPos = 0;
237 nChainWork = arith_uint256();
238 nTx = 0;
239 nChainTx = 0;
240 nStatus = 0;
241 nSequenceId = 0;
242 nTimeReceived = 0;
243 nTimeMax = 0;
244
245 nVersion = 0;
246 hashMerkleRoot = uint256();
247 memset(nReserved, 0, sizeof(nReserved));
248 nTime = 0;
249 nBits = 0;
250 nNonce = uint256();
251 nSolution.clear();
252 }
253
254 CBlockIndex()
255 {

Callers

nothing calls this directly

Calls 3

arith_uint256Class · 0.85
uint256Class · 0.70
clearMethod · 0.45

Tested by

no test coverage detected