| 83 | BlockAssembler::BlockAssembler(const CChainParams& params) : BlockAssembler(params, DefaultOptions()) {} |
| 84 | |
| 85 | void 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 | |
| 99 | std::unique_ptr<CBlockTemplate> BlockAssembler::CreateNewBlock(const CScript& scriptPubKeyIn, bool fMineWitnessTx) |
| 100 | { |