mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-06-05 20:50:18 +02:00
interfaces: remove redundant coinbase fee check in waitNext
- vTxFees now does not include the negative coinbase fee, hence this check can be removed.
This commit is contained in:
parent
9a05b45da6
commit
02d4bc776b
@ -1015,16 +1015,12 @@ public:
|
||||
if (current_fees == -1) {
|
||||
current_fees = 0;
|
||||
for (CAmount fee : m_block_template->vTxFees) {
|
||||
// Skip coinbase
|
||||
if (fee < 0) continue;
|
||||
current_fees += fee;
|
||||
}
|
||||
}
|
||||
|
||||
CAmount new_fees = 0;
|
||||
for (CAmount fee : tmpl->m_block_template->vTxFees) {
|
||||
// Skip coinbase
|
||||
if (fee < 0) continue;
|
||||
new_fees += fee;
|
||||
Assume(options.fee_threshold != MAX_MONEY);
|
||||
if (new_fees >= current_fees + options.fee_threshold) return tmpl;
|
||||
|
Loading…
x
Reference in New Issue
Block a user