From 81cd9588484cb4f4050ea4e239da0681111795db Mon Sep 17 00:00:00 2001 From: Glenn Willen Date: Tue, 8 Jan 2019 22:16:50 -0800 Subject: Factor BroadcastTransaction out of sendrawtransaction Factor out a new BroadcastTransaction function, performing the core work of the sendrawtransaction rpc, so that it can be used from the GUI code. Move it from src/rpc/ to src/node/. --- src/node/transaction.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/node/transaction.h (limited to 'src/node/transaction.h') diff --git a/src/node/transaction.h b/src/node/transaction.h new file mode 100644 index 0000000000..1916c6db26 --- /dev/null +++ b/src/node/transaction.h @@ -0,0 +1,14 @@ +// Copyright (c) 2017-2018 The Bitcoin Core developers +// Distributed under the MIT software license, see the accompanying +// file COPYING or http://www.opensource.org/licenses/mit-license.php. + +#ifndef BITCOIN_NODE_TRANSACTION_H +#define BITCOIN_NODE_TRANSACTION_H + +#include +#include + +/** Broadcast a transaction */ +uint256 BroadcastTransaction(CTransactionRef tx, bool allowhighfees = false); + +#endif // BITCOIN_NODE_TRANSACTION_H -- cgit v1.2.3