Ejemplo n.º 1
0
 VersionBitsTester& Mine(unsigned int height, int32_t nTime, int32_t nVersion) {
     while (vpblock.size() < height) {
         CBlockIndex* pindex = new CBlockIndex();
         pindex->nHeight = vpblock.size();
         pindex->pprev = vpblock.size() > 0 ? vpblock.back() : NULL;
         pindex->nTime = nTime;
         pindex->nVersion = nVersion;
         pindex->BuildSkip();
         vpblock.push_back(pindex);
     }
     return *this;
 }