7 #include <test/util/setup_common.h>
11 #include <boost/test/unit_test.hpp>
26 std::vector<CKey> keys(2);
27 std::vector<CPubKey> pubkeys;
28 for (
CKey& key : keys) {
30 pubkeys.emplace_back(key.GetPubKey());
39 keyman.AddCScript(multisig_script);
std::unique_ptr< Chain > MakeChain(NodeContext &node)
Return implementation of Chain interface.
NodeContext struct containing references to chain state and connection state.
BOOST_AUTO_TEST_CASE(CanProvide)
std::unique_ptr< WalletDatabase > CreateDummyWalletDatabase()
Return object for accessing dummy database with no read/write capabilities.
CScript GetScriptForDestination(const CTxDestination &dest)
Generate a Bitcoin scriptPubKey for the given CTxDestination.
#define BOOST_FIXTURE_TEST_SUITE(a, b)
Serialized script, used inside transaction inputs and outputs.
#define BOOST_AUTO_TEST_SUITE_END()
A CWallet maintains a set of transactions and balances, and provides the ability to create new transa...
CScript GetScriptForMultisig(int nRequired, const std::vector< CPubKey > &keys)
Generate a multisig script.
An encapsulated private key.
#define BOOST_CHECK(expr)