aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/psbtwallet.h
diff options
context:
space:
mode:
authorGlenn Willen <gwillen@nerdnet.org>2019-01-09 02:06:29 -0800
committerGlenn Willen <gwillen@nerdnet.org>2019-02-11 12:23:14 -0800
commitc6c3d42a7d6b525144fc7fc6653cd11139d2b34a (patch)
tree861f35c6e35fce6509182384fe42007fe864e88c /src/wallet/psbtwallet.h
parent81cd9588484cb4f4050ea4e239da0681111795db (diff)
downloadbitcoin-c6c3d42a7d6b525144fc7fc6653cd11139d2b34a.tar.xz
Move PSBT definitions and code to separate files
Move non-wallet PSBT code to src/psbt.{h,cpp}, and PSBT wallet code to src/wallet/psbtwallet.{h,cpp}. This commit contains only code movement (and adjustments to includes and Makefile.am.)
Diffstat (limited to 'src/wallet/psbtwallet.h')
-rw-r--r--src/wallet/psbtwallet.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/wallet/psbtwallet.h b/src/wallet/psbtwallet.h
new file mode 100644
index 0000000000..4f888a06ec
--- /dev/null
+++ b/src/wallet/psbtwallet.h
@@ -0,0 +1,14 @@
+// Copyright (c) 2009-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_WALLET_PSBTWALLET_H
+#define BITCOIN_WALLET_PSBTWALLET_H
+
+#include <psbt.h>
+#include <primitives/transaction.h>
+#include <wallet/wallet.h>
+
+bool FillPSBT(const CWallet* pwallet, PartiallySignedTransaction& psbtx, int sighash_type = 1 /* SIGHASH_ALL */, bool sign = true, bool bip32derivs = false);
+
+#endif // BITCOIN_WALLET_PSBTWALLET_H