Move FillPSBT to be a member of CWallet

This commit is contained in:
Andrew Chow
2020-02-10 19:50:56 -05:00
parent a4af324d15
commit 3d70dd99f9
10 changed files with 99 additions and 122 deletions

View File

@@ -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
{

View File

@@ -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;