HomePhabricator

Use decimal objects for fees in mempool_accept.py

Description

Use decimal objects for fees in mempool_accept.py

Summary:
Use python Decimal when defining fees and amounts. This ensures that subsequent operations on these amounts produces exact decimal amount, without potential rounding errors, instead of floats.

This is a backport of core#20039

Test Plan: ninja check-functional

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Subscribers: Fabien

Differential Revision: https://reviews.bitcoinabc.org/D10599

Details

Provenance
PiRKAuthored on Dec 2 2021, 07:42
PiRKPushed on Dec 6 2021, 14:19
Reviewer
Restricted Project
Differential Revision
D10599: Use decimal objects for fees in mempool_accept.py
Parents
rABC4650c91b6be9: Implement SQLiteDatabase::MakeBatch
Branches
Unknown
Tags
Unknown