Skip to content

Commit ef7525a

Browse files
author
Tom Trevethan
committed
re-enable zero fee check
1 parent cd1b94e commit ef7525a

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

src/confidential_validation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ bool HasValidFee(const CTransaction& tx) {
3030
CAmount fee = 0;
3131
if (tx.vout[i].IsFee()) {
3232
fee = tx.vout[i].nValue.GetAmount();
33-
if (!MoneyRange(fee)) {
33+
if (fee == 0 || !MoneyRange(fee)) {
3434
return false;
3535
}
3636
totalFee[tx.vout[i].nAsset.GetAsset()] += fee;

src/wallet/spend.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1451,10 +1451,6 @@ static bool CreateTransactionInternal(
14511451
txNew = tx_blinded; // sigh, `fillBlindDetails` may have modified txNew
14521452
// Update the change position to the new tx
14531453
change_position = txNew.vout.begin() + nChangePosInOut;
1454-
<<<<<<< HEAD
1455-
=======
1456-
1457-
>>>>>>> origin/master
14581454
int ret = BlindTransaction(blind_details->i_amount_blinds, blind_details->i_asset_blinds, blind_details->i_assets, blind_details->i_amounts, blind_details->o_amount_blinds, blind_details->o_asset_blinds, blind_details->o_pubkeys, issuance_asset_keys, issuance_token_keys, tx_blinded);
14591455
assert(ret != -1);
14601456
if (ret != blind_details->num_to_blind) {

0 commit comments

Comments
 (0)