fix txvalidationcache_tests

This commit is contained in:
Gregory Sanders 2017-02-16 11:46:14 -05:00
parent 139adcc292
commit 2fd62b3bf2

View file

@ -42,9 +42,13 @@ BOOST_FIXTURE_TEST_CASE(tx_mempool_block_doublespend, TestChain100Setup)
spends[i].vin.resize(1);
spends[i].vin[0].prevout.hash = coinbaseTxns[0].GetHash();
spends[i].vin[0].prevout.n = 0;
spends[i].vout.resize(1);
spends[i].vout.resize(2);
spends[i].vout[0].nValue = 11*CENT;
spends[i].vout[0].scriptPubKey = scriptPubKey;
spends[i].vout[0].nAsset = BITCOINID;
spends[i].vout[1].nValue = MAX_MONEY/100-11*CENT;
spends[i].vout[1].nAsset = BITCOINID;
spends[i].vout[1].scriptPubKey = CScript();
// Sign:
std::vector<unsigned char> vchSig;