Sfoglia il codice sorgente

Set block.nVersion to fix miner unit test

tags/v0.15.1
Gavin Andresen 9 anni fa
parent
commit
3fcec0d4a0
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1
    0
      src/test/miner_tests.cpp

+ 1
- 0
src/test/miner_tests.cpp Vedi File

@@ -62,6 +62,7 @@ BOOST_AUTO_TEST_CASE(CreateNewBlock_validity)
std::vector<CTransaction*>txFirst;
for (unsigned int i = 0; i < sizeof(blockinfo)/sizeof(*blockinfo); ++i)
{
pblock->nVersion = 1;
pblock->nTime = pindexBest->GetMedianTimePast()+1;
pblock->vtx[0].vin[0].scriptSig = CScript();
pblock->vtx[0].vin[0].scriptSig.push_back(blockinfo[i].extranonce);

Loading…
Annulla
Salva