fix txvalidationcache_tests

This commit is contained in:
Gregory Sanders 2017-02-16 11:46:14 -05:00
parent 2543d06ed9
commit fdd9c9310b

View file

@ -43,9 +43,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;