diff options
| author | Andrew Chow <[email protected]> | 2020-02-10 19:50:56 -0500 |
|---|---|---|
| committer | Andrew Chow <[email protected]> | 2020-03-09 11:16:17 -0400 |
| commit | 3d70dd99f9f74eef70b19ff6f6f850adc0d5ef8f (patch) | |
| tree | 4a4f77dfab8fa0209237a259293ccc545c2f5037 /src/interfaces | |
| parent | Use CWallet::SignTransaction in CreateTransaction and signrawtransactionwithw... (diff) | |
| download | discoin-3d70dd99f9f74eef70b19ff6f6f850adc0d5ef8f.tar.xz discoin-3d70dd99f9f74eef70b19ff6f6f850adc0d5ef8f.zip | |
Move FillPSBT to be a member of CWallet
Diffstat (limited to 'src/interfaces')
| -rw-r--r-- | src/interfaces/wallet.cpp | 5 | ||||
| -rw-r--r-- | src/interfaces/wallet.h | 2 |
2 files changed, 3 insertions, 4 deletions
diff --git a/src/interfaces/wallet.cpp b/src/interfaces/wallet.cpp index 7ddf3b22e..83ce9aba7 100644 --- a/src/interfaces/wallet.cpp +++ b/src/interfaces/wallet.cpp @@ -19,7 +19,6 @@ #include <wallet/fees.h> #include <wallet/ismine.h> #include <wallet/load.h> -#include <wallet/psbtwallet.h> #include <wallet/rpcwallet.h> #include <wallet/wallet.h> @@ -361,9 +360,9 @@ public: bool& complete, int sighash_type = 1 /* SIGHASH_ALL */, bool sign = true, - bool bip32derivs = false) override + bool bip32derivs = false) const override { - return FillPSBT(m_wallet.get(), psbtx, complete, sighash_type, sign, bip32derivs); + return m_wallet->FillPSBT(psbtx, complete, sighash_type, sign, bip32derivs); } WalletBalances getBalances() override { diff --git a/src/interfaces/wallet.h b/src/interfaces/wallet.h index 435125341..964608ff8 100644 --- a/src/interfaces/wallet.h +++ b/src/interfaces/wallet.h @@ -196,7 +196,7 @@ public: bool& complete, int sighash_type = 1 /* SIGHASH_ALL */, bool sign = true, - bool bip32derivs = false) = 0; + bool bip32derivs = false) const = 0; //! Get balances. virtual WalletBalances getBalances() = 0; |