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

Method resetBlock

src/miner.cpp:85–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83BlockAssembler::BlockAssembler(const CChainParams& params) : BlockAssembler(params, DefaultOptions()) {}
84
85void BlockAssembler::resetBlock()
86{
87 inBlock.clear();
88
89 // Reserve space for coinbase tx
90 nBlockWeight = 4000;
91 nBlockSigOpsCost = 400;
92 fIncludeWitness = false;
93
94 // These counters do not include coinbase tx
95 nBlockTx = 0;
96 nFees = 0;
97}
98
99std::unique_ptr<CBlockTemplate> BlockAssembler::CreateNewBlock(const CScript& scriptPubKeyIn, bool fMineWitnessTx)
100{

Callers

nothing calls this directly

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected