Wallet: fix rpc_wallet_tests

This commit is contained in:
Gregory Sanders 2017-02-16 12:47:39 -05:00
parent 2fd62b3bf2
commit e57480840c

View file

@ -27,6 +27,8 @@ BOOST_FIXTURE_TEST_SUITE(rpc_wallet_tests, WalletTestingSetup)
BOOST_AUTO_TEST_CASE(rpc_addmultisig)
{
rpcfn_type addmultisig = tableRPC["addmultisigaddress"]->actor;
// old, 65-byte-long:
@ -74,6 +76,9 @@ BOOST_AUTO_TEST_CASE(rpc_wallet)
{
LOCK(pwalletMain->cs_wallet);
// Need to set bitcoin asset for listreceivedby* tests
pwalletMain->SetAssetPair("bitcoin", BITCOINID);
demoPubkey = pwalletMain->GenerateNewKey();
demoAddress = CBitcoinAddress(CTxDestination(demoPubkey.GetID()));
string strPurpose = "receive";