Library must return outputs in satoshis, which must be integer values. Non-integer fee rates can create decimals.
Round up when calculating the fee as you must pay sufficient fee, and the output should be correspondingly lower as the fee is implied.
Differential D14916
[ecash-coinselect] Patch bug where returned outputs could be non-integer Authored by bytesofman on Dec 5 2023, 23:04. Tags None Subscribers None
Details
Library must return outputs in satoshis, which must be integer values. Non-integer fee rates can create decimals. Round up when calculating the fee as you must pay sufficient fee, and the output should be correspondingly lower as the fee is implied. npm test
Diff Detail
|