mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-25 13:28:35 +01:00
mining: drop unused -nFees and sigops from CBlockTemplate
For the coinbase vTxFees used a dummy value of -nFees. This value was never returned by the RPC or used in a test. Similarly the fist vTxSigOpsCost entry was calculated from the dummy coinbase transaction. Drop both and add code comments to prevent confusion.
This commit is contained in:
@@ -34,9 +34,12 @@ public:
|
||||
virtual ~BlockTemplate() = default;
|
||||
|
||||
virtual CBlockHeader getBlockHeader() = 0;
|
||||
// Block contains a dummy coinbase transaction that should not be used.
|
||||
virtual CBlock getBlock() = 0;
|
||||
|
||||
// Fees per transaction, not including coinbase transaction.
|
||||
virtual std::vector<CAmount> getTxFees() = 0;
|
||||
// Sigop cost per transaction, not including coinbase transaction.
|
||||
virtual std::vector<int64_t> getTxSigops() = 0;
|
||||
|
||||
virtual CTransactionRef getCoinbaseTx() = 0;
|
||||
|
||||
Reference in New Issue
Block a user