diff options
author | Glenn Willen <gwillen@nerdnet.org> | 2019-01-08 22:16:50 -0800 |
---|---|---|
committer | Glenn Willen <gwillen@nerdnet.org> | 2019-02-11 12:23:14 -0800 |
commit | 81cd9588484cb4f4050ea4e239da0681111795db (patch) | |
tree | 33f5789d3f2d831d2bfb4098b57a4dea3ec75aea /src/node/transaction.h | |
parent | c734aaa15d924470cec0f17b00ad2e47472b471f (diff) |
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/.
Diffstat (limited to 'src/node/transaction.h')
-rw-r--r-- | src/node/transaction.h | 14 |
1 files changed, 14 insertions, 0 deletions
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 <primitives/transaction.h> +#include <uint256.h> + +/** Broadcast a transaction */ +uint256 BroadcastTransaction(CTransactionRef tx, bool allowhighfees = false); + +#endif // BITCOIN_NODE_TRANSACTION_H |