mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-20 07:09:15 +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:
@@ -893,7 +893,7 @@ static RPCHelpMan getblocktemplate()
|
||||
}
|
||||
entry.pushKV("depends", std::move(deps));
|
||||
|
||||
int index_in_template = i - 1;
|
||||
int index_in_template = i - 2;
|
||||
entry.pushKV("fee", tx_fees.at(index_in_template));
|
||||
int64_t nTxSigOps{tx_sigops.at(index_in_template)};
|
||||
if (fPreSegWit) {
|
||||
|
||||
Reference in New Issue
Block a user