aboutsummaryrefslogtreecommitdiff
path: root/src/rpc/rawtransaction.h
diff options
context:
space:
mode:
authorAndrew Chow <achow101-github@achow101.com>2018-06-27 17:02:07 -0700
committerAndrew Chow <achow101-github@achow101.com>2018-07-13 14:27:31 -0700
commit58a8e28918025c28f19ba19cbaa4a72374162942 (patch)
tree0970665902001b81b521753d146d065f6e04e401 /src/rpc/rawtransaction.h
parente9d86a43ad8b1ab83b324e9a7a64c43a61337501 (diff)
Refactor transaction creation and transaction funding logic
In preparation for more create transaction and fund transcation RPCs, refactor the transaction creation and funding logic into separate functions.
Diffstat (limited to 'src/rpc/rawtransaction.h')
-rw-r--r--src/rpc/rawtransaction.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/rpc/rawtransaction.h b/src/rpc/rawtransaction.h
index ec9d1f2cf0..52dccc90e8 100644
--- a/src/rpc/rawtransaction.h
+++ b/src/rpc/rawtransaction.h
@@ -12,4 +12,7 @@ class UniValue;
/** Sign a transaction with the given keystore and previous transactions */
UniValue SignTransaction(CMutableTransaction& mtx, const UniValue& prevTxs, CBasicKeyStore *keystore, bool tempKeystore, const UniValue& hashType);
+/** Create a transaction from univalue parameters */
+CMutableTransaction ConstructTransaction(const UniValue& inputs_in, const UniValue& outputs_in, const UniValue& locktime, const UniValue& rbf);
+
#endif // BITCOIN_RPC_RAWTRANSACTION_H