mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-17 13:07:54 +02:00
fix txvalidationcache_tests
This commit is contained in:
parent
139adcc292
commit
2fd62b3bf2
1 changed files with 5 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue