MCPcopy Create free account
hub / github.com/Bitcoin-ABC/bitcoin-abc / resetBlock

Method resetBlock

src/node/blockfitter.cpp:69–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67 : BlockFitter(ConfiguredOptions(config)) {}
68
69void BlockFitter::resetBlock() {
70 // Reserve space for coinbase tx.
71 nBlockSize = COINBASE_RESERVED_SIZE;
72 nBlockSigChecks = COINBASE_RESERVED_SIGCHECKS;
73
74 // These counters do not include coinbase tx.
75 nBlockTx = 0;
76 nFees = Amount::zero();
77}
78
79void BlockFitter::addTx(size_t txSize, int64_t txSigChecks, Amount txFee) {
80 nBlockSize += txSize;

Callers 3

clearMethod · 0.80
CreateNewBlockMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected