aboutsummaryrefslogtreecommitdiff
path: root/.gitattributes
diff options
context:
space:
mode:
authorSebastian Falbesoner <sebastian.falbesoner@gmail.com>2021-09-19 20:01:45 +0200
committerSebastian Falbesoner <sebastian.falbesoner@gmail.com>2021-09-19 21:23:24 +0200
commitebe49b5b7cda0f9e8dc4bb4795da0ca44a97aa1d (patch)
tree673a6aa0d937072664ba88c7a462343bd11c60cf /.gitattributes
parentde2af19dc8e8c848afbc4b43b9b4092fe263364f (diff)
test: fix confusing off-by-one nValue in feature_coinstatsindex.py
Due to evil floating-point arithmetic, the creation of one of the transaction outputs in feature_coinstatsindex.py leads to it's nValue being off by one satoshi: the Python expression `int(21.99 * COIN)` doesn't yield 2199000000 as expected, but 2198999999. This makes the test more confusing than necessary (w.r.t. the expected `gettxoutsetinfo` values), and could also cause problems if the value is ever changed. Fix by using a `Decimal` type for specifying the value in BTC, rather than using a bare floating-point.
Diffstat (limited to '.gitattributes')
0 files changed, 0 insertions, 0 deletions