mirror of
https://github.com/twisterarmy/twister-core.git
synced 2025-01-11 15:27:57 +00:00
Set block.nVersion to fix miner unit test
This commit is contained in:
parent
b3a570d158
commit
3fcec0d4a0
@ -62,6 +62,7 @@ BOOST_AUTO_TEST_CASE(CreateNewBlock_validity)
|
|||||||
std::vector<CTransaction*>txFirst;
|
std::vector<CTransaction*>txFirst;
|
||||||
for (unsigned int i = 0; i < sizeof(blockinfo)/sizeof(*blockinfo); ++i)
|
for (unsigned int i = 0; i < sizeof(blockinfo)/sizeof(*blockinfo); ++i)
|
||||||
{
|
{
|
||||||
|
pblock->nVersion = 1;
|
||||||
pblock->nTime = pindexBest->GetMedianTimePast()+1;
|
pblock->nTime = pindexBest->GetMedianTimePast()+1;
|
||||||
pblock->vtx[0].vin[0].scriptSig = CScript();
|
pblock->vtx[0].vin[0].scriptSig = CScript();
|
||||||
pblock->vtx[0].vin[0].scriptSig.push_back(blockinfo[i].extranonce);
|
pblock->vtx[0].vin[0].scriptSig.push_back(blockinfo[i].extranonce);
|
||||||
|
Loading…
Reference in New Issue
Block a user