Skip to content

Commit 36e1efb

Browse files
Tom Trevethandelta1
authored andcommitted
ApplyBumpFee only ever called for policyAsset (in wallet/spend.cpp). wallet_elements_regression_1259 test verifies bump fee is no applied for issued asset outputs.
(cherry picked from commit b83f46d)
1 parent 93cc3a7 commit 36e1efb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/wallet/coinselection.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,14 +105,15 @@ struct COutput {
105105
return outpoint < rhs.outpoint;
106106
}
107107

108+
// ELEMENTS: ApplyBumpFee applied only for policyAsset
108109
void ApplyBumpFee(CAmount bump_fee)
109110
{
110111
assert(bump_fee >= 0);
111112
ancestor_bump_fees = bump_fee;
112113
assert(fee);
113114
*fee += bump_fee;
114115
// Note: assert(effective_value - bump_fee == nValue - fee.value());
115-
effective_value = value - fee.value(); // ELEMENTS FIXME
116+
effective_value = value - fee.value();
116117
}
117118

118119
CAmount GetFee() const

0 commit comments

Comments
 (0)