| 67 | : BlockFitter(ConfiguredOptions(config)) {} |
| 68 | |
| 69 | void 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 | |
| 79 | void BlockFitter::addTx(size_t txSize, int64_t txSigChecks, Amount txFee) { |
| 80 | nBlockSize += txSize; |
no outgoing calls
no test coverage detected