Browse Source

correct tx_fee in 32bit system

pr-2587
arowser 6 years ago
committed by Christian Decker
parent
commit
b17b05b8ae
  1. 2
      common/amount.c

2
common/amount.c

@ -410,7 +410,7 @@ struct amount_sat amount_tx_fee(u32 fee_per_kw, size_t weight)
/* If this overflows, weight must be > 2^32, which is not a real tx */
assert(!mul_overflows_u64(fee_per_kw, weight));
fee.satoshis = fee_per_kw * weight / 1000;
fee.satoshis = (u64)fee_per_kw * weight / 1000;
return fee;
}

Loading…
Cancel
Save