HomePhabricator

[rpc/node] check for high fee before ATMP in clients

Description

[rpc/node] check for high fee before ATMP in clients

Summary:
Check absurd fee in BroadcastTransaction and RPC,
return TransactionError::MAX_FEE_EXCEEDED instead
of TxValidationResult::TX_NOT_STANDARD because this
is client preference, not a node-wide policy.

This is a backport of core#19339 [1/3] and core#20109
https://github.com/bitcoin/bitcoin/pull/19339/commits/8f1290c60159a3171c27250bc95687548c5c1b84

Depends on D10463 and D10474

Test Plan: ninja all check-all

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Subscribers: Fabien

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

Details

Provenance
gzhao408 <gzhao408@berkeley.edu>Authored on Jul 25 2020, 17:05
PiRKCommitted on Nov 16 2021, 15:55
PiRKPushed on Nov 16 2021, 15:55
Reviewer
Restricted Project
Differential Revision
D10464: [rpc/node] check for high fee before ATMP in clients
Parents
rABC1822d571b6fd: [BroadcastTransaction] Remove unsafe move operator
Branches
Unknown
Tags
Unknown