mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-05-23 10:23:27 +02:00
[wallet] add fillPSBT to interface
This commit is contained in:
parent
848f889208
commit
39465d545d
@ -18,8 +18,9 @@
|
|||||||
#include <wallet/feebumper.h>
|
#include <wallet/feebumper.h>
|
||||||
#include <wallet/fees.h>
|
#include <wallet/fees.h>
|
||||||
#include <wallet/ismine.h>
|
#include <wallet/ismine.h>
|
||||||
#include <wallet/rpcwallet.h>
|
|
||||||
#include <wallet/load.h>
|
#include <wallet/load.h>
|
||||||
|
#include <wallet/psbtwallet.h>
|
||||||
|
#include <wallet/rpcwallet.h>
|
||||||
#include <wallet/wallet.h>
|
#include <wallet/wallet.h>
|
||||||
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
@ -343,6 +344,14 @@ public:
|
|||||||
}
|
}
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
|
TransactionError fillPSBT(PartiallySignedTransaction& psbtx,
|
||||||
|
bool& complete,
|
||||||
|
int sighash_type = 1 /* SIGHASH_ALL */,
|
||||||
|
bool sign = true,
|
||||||
|
bool bip32derivs = false) override
|
||||||
|
{
|
||||||
|
return FillPSBT(m_wallet.get(), psbtx, complete, sighash_type, sign, bip32derivs);
|
||||||
|
}
|
||||||
WalletBalances getBalances() override
|
WalletBalances getBalances() override
|
||||||
{
|
{
|
||||||
const auto bal = m_wallet->GetBalance();
|
const auto bal = m_wallet->GetBalance();
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
#include <functional>
|
#include <functional>
|
||||||
#include <map>
|
#include <map>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
#include <psbt.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <tuple>
|
#include <tuple>
|
||||||
@ -194,6 +195,13 @@ public:
|
|||||||
bool& in_mempool,
|
bool& in_mempool,
|
||||||
int& num_blocks) = 0;
|
int& num_blocks) = 0;
|
||||||
|
|
||||||
|
//! Fill PSBT.
|
||||||
|
virtual TransactionError fillPSBT(PartiallySignedTransaction& psbtx,
|
||||||
|
bool& complete,
|
||||||
|
int sighash_type = 1 /* SIGHASH_ALL */,
|
||||||
|
bool sign = true,
|
||||||
|
bool bip32derivs = false) = 0;
|
||||||
|
|
||||||
//! Get balances.
|
//! Get balances.
|
||||||
virtual WalletBalances getBalances() = 0;
|
virtual WalletBalances getBalances() = 0;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user