5#include <chainparams.h>
14#include <test/util/setup_common.h>
16#include <boost/test/unit_test.hpp>
18BOOST_FIXTURE_TEST_SUITE(ismine_tests, BasicTestingSetup)
23 for (
int i = 0; i < 2; i++) {
31 std::unique_ptr<interfaces::Chain> &chain =
m_node.chain;
141 CScript redeemscript_inner =
143 CScript redeemscript =
150 redeemscript_inner));
203 CScript redeemScript =
226 scriptPubKey.clear();
241 scriptPubKey.clear();
249BOOST_AUTO_TEST_SUITE_END()
An encapsulated secp256k1 private key.
void MakeNewKey(bool fCompressed)
Generate a new private key using a cryptographic PRNG.
CPubKey GetPubKey() const
Compute the public key from a private key.
An encapsulated public key.
A CWallet maintains a set of transactions and balances, and provides the ability to create new transa...
void SetupLegacyScriptPubKeyMan()
Make a LegacyScriptPubKeyMan and set it for all types, internal, and external.
LegacyScriptPubKeyMan * GetLegacyScriptPubKeyMan() const
Get the LegacyScriptPubKeyMan which is used for all types, internal, and external.
virtual bool AddKey(const CKey &key)
RecursiveMutex cs_KeyStore
isminetype IsMine(const CScript &script) const override
bool AddCScript(const CScript &redeemScript) override
isminetype
IsMine() return codes.
BOOST_AUTO_TEST_CASE(ismine_standard)
#define BOOST_CHECK_EQUAL(v1, v2)
#define BOOST_CHECK(expr)
std::vector< uint8_t > ToByteVector(const T &in)
CScript GetScriptForMultisig(int nRequired, const std::vector< CPubKey > &keys)
Generate a multisig script.
CScript GetScriptForRawPubKey(const CPubKey &pubKey)
Generate a P2PK script for the given pubkey.
CScript GetScriptForDestination(const CTxDestination &dest)
Generate a Bitcoin scriptPubKey for the given CTxDestination.
std::unique_ptr< WalletDatabase > CreateDummyWalletDatabase()
Return object for accessing dummy database with no read/write capabilities.