diff --git a/src/interfaces/wallet.h b/src/interfaces/wallet.h index 7f08ba98b510..332fe36e6399 100644 --- a/src/interfaces/wallet.h +++ b/src/interfaces/wallet.h @@ -177,6 +177,12 @@ class Wallet virtual wallet::PlatformKeyResult ensureFriendshipReceivingKeychain( const wallet::FriendshipKeychainRequest& request) = 0; + //! Every credit output of this wallet's asset lock transactions that pays + //! one of keys, derived from the transactions the wallet holds. Deriving + //! the keys needs an unlocked wallet. + virtual wallet::PlatformKeyResult> listAssetLockFundings( + const std::vector& keys) = 0; + //! Return whether wallet has private key. virtual bool isSpendable(const CScript& script) = 0; virtual bool isSpendable(const CTxDestination& dest) = 0; diff --git a/src/wallet/interfaces.cpp b/src/wallet/interfaces.cpp index c6d755e9d95d..c1385a5fc200 100644 --- a/src/wallet/interfaces.cpp +++ b/src/wallet/interfaces.cpp @@ -286,6 +286,11 @@ class WalletImpl : public Wallet { return m_wallet->EnsureFriendshipReceivingKeychain(request); } + wallet::PlatformKeyResult> listAssetLockFundings( + const std::vector& keys) override + { + return m_wallet->ListAssetLockFundings(keys); + } bool isSpendable(const CScript& script) override { LOCK(m_wallet->cs_wallet); diff --git a/src/wallet/platformtypes.h b/src/wallet/platformtypes.h index 64aeb0b3f21e..25af37fd1896 100644 --- a/src/wallet/platformtypes.h +++ b/src/wallet/platformtypes.h @@ -5,6 +5,7 @@ #ifndef BITCOIN_WALLET_PLATFORMTYPES_H #define BITCOIN_WALLET_PLATFORMTYPES_H +#include #include #include