You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
test: Convert amounts in testmempoolaccept test from float to decimal #20011
I would like to do this one as this will be my first contribution. I see the status as open but the code already has Decimal implemented. Could you please update on this ?
Converting a float to decimal where it is used doesn't help. It needs to be converted where it is defined, so that all calculations are done as decimal
Activity
hmrawal commentedon Sep 26, 2020
I would like to do this one as this will be my first contribution. I see the status as open but the code already has Decimal implemented. Could you please update on this ?
n-moria12 commentedon Sep 29, 2020
import decimal
assert_equal(from_balance_before - from_wallet.getbalance(), decimal.Decimal(amount))
is this correct?
maflcko commentedon Sep 29, 2020
Converting a float to decimal where it is used doesn't help. It needs to be converted where it is defined, so that all calculations are done as decimal
n-moria12 commentedon Sep 29, 2020
okay
add sighash_evolution.ipynb
Merge bitcoin#20039: test: Convert amounts from float to decimal
Merge #20039: test: Convert amounts from float to decimal
Merge #20039: test: Convert amounts from float to decimal
Merge #20039: test: Convert amounts from float to decimal
Merge #20039: test: Convert amounts from float to decimal
Merge bitcoin#20039: test: Convert amounts from float to decimal
Merge #20039: test: Convert amounts from float to decimal
Merge #20039: test: Convert amounts from float to decimal