Page MenuHomePhabricator

Merge #13988: Add checks for settxfee reasonableness

Authored by nakihito on Jan 11 2020, 01:50.



317f2cb3f4499afbaa63e3cac80567744f12c95b test: Check RPC settxfee errors (João Barbosa)
48618daf262b84c2e2f7322b5ca14375d7d68b64 Add checks for settxfee reasonableness (Anthony Towns)

Pull request description:

When using the `settxfee` RPC, the value is silently ignored if it is less than either than minrelaytxfee or the wallet's mintxfee. This adds an error response if that's going to happen, but still allows "settxfee 0" to deliberately default to the minimum value.

Tree-SHA512: ce685584cf8d6b9ca2cc97196d494220e3892b6a804a458086e04b3a23df281da432ad0a3053106a064c90c541ddb6f6b96a27cf8376d45af1e44449baf88456

Backport of Core PR13988

Note: we don't have a test, so the second commit ( was added to because it seemed to be the most closely related test

Test Plan
make check rpc_estimatefee

Diff Detail

rABC Bitcoin ABC
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

nakihito created this revision.Jan 11 2020, 01:50
Owners added a reviewer: Restricted Owners Package.Jan 11 2020, 01:50
Herald added a reviewer: Restricted Project. · View Herald TranscriptJan 11 2020, 01:50
nakihito planned changes to this revision.Jan 11 2020, 01:50
nakihito requested review of this revision.Jan 11 2020, 02:17
nakihito edited the summary of this revision. (Show Details)
deadalnix accepted this revision.Jan 11 2020, 16:35
This revision is now accepted and ready to land.Jan 11 2020, 16:35