aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/chain.h
diff options
context:
space:
mode:
authorRussell Yanofsky <russ@yanofsky.org>2017-12-05 15:57:12 -0500
committerRussell Yanofsky <russ@yanofsky.org>2020-03-19 15:26:04 -0500
commit96dfe5ced64979e51649d20555aa182defc80119 (patch)
tree0aa7daa25668b6895ff19a582958c5c63aa6f0cf /src/interfaces/chain.h
parent6ceb21909ce66b7b4762a855889acd46bb6b77f3 (diff)
downloadbitcoin-96dfe5ced64979e51649d20555aa182defc80119.tar.xz
refactor: Change Chain::broadcastTransaction param order
Make output argument last argument so it works more easily with IPC framework in #10102, and for consistency with other methods
Diffstat (limited to 'src/interfaces/chain.h')
-rw-r--r--src/interfaces/chain.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/interfaces/chain.h b/src/interfaces/chain.h
index dc0dcfb0d4..caefa87e11 100644
--- a/src/interfaces/chain.h
+++ b/src/interfaces/chain.h
@@ -154,7 +154,10 @@ public:
//! Transaction is added to memory pool, if the transaction fee is below the
//! amount specified by max_tx_fee, and broadcast to all peers if relay is set to true.
//! Return false if the transaction could not be added due to the fee or for another reason.
- virtual bool broadcastTransaction(const CTransactionRef& tx, std::string& err_string, const CAmount& max_tx_fee, bool relay) = 0;
+ virtual bool broadcastTransaction(const CTransactionRef& tx,
+ const CAmount& max_tx_fee,
+ bool relay,
+ std::string& err_string) = 0;
//! Calculate mempool ancestor and descendant counts for the given transaction.
virtual void getTransactionAncestry(const uint256& txid, size_t& ancestors, size_t& descendants) = 0;