13#include <boost/test/unit_test.hpp>
22 for (
int i = 0; i < 2; i++) {
30 std::unique_ptr<interfaces::Chain>& chain =
m_node.
chain;
369 scriptPubKey.
clear();
383 scriptPubKey.
clear();
397 scriptPubKey.
clear();
411 scriptPubKey.
clear();
An encapsulated 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.
Serialized script, used inside transaction inputs and outputs.
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
BOOST_AUTO_TEST_SUITE_END()
isminetype
IsMine() return codes, which depend on ScriptPubKeyMan implementation.
BOOST_AUTO_TEST_CASE(ismine_standard)
#define BOOST_FIXTURE_TEST_SUITE(a, b)
#define BOOST_CHECK_EQUAL(v1, v2)
#define BOOST_CHECK(expr)
std::vector< unsigned char > 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::vector< unsigned char > ParseHex(const char *psz)
std::unique_ptr< interfaces::Chain > chain
std::unique_ptr< WalletDatabase > CreateDummyWalletDatabase()
Return object for accessing dummy database with no read/write capabilities.