try
This commit is contained in:
@@ -432,12 +432,16 @@ UniValue getdatafromblock(const UniValue& params, bool fHelp)
|
|||||||
std::string firststreamid = HexStr(firsttx.vout[2].scriptPubKey.begin(), firsttx.vout[2].scriptPubKey.end());
|
std::string firststreamid = HexStr(firsttx.vout[2].scriptPubKey.begin(), firsttx.vout[2].scriptPubKey.end());
|
||||||
streamid.append(firststreamid.substr (8,64));
|
streamid.append(firststreamid.substr (8,64));
|
||||||
printf("first stream id changed to: %s\n", streamid.c_str());
|
printf("first stream id changed to: %s\n", streamid.c_str());
|
||||||
BlockMap::iterator mi = mapBlockIndex.find(hash);
|
if ( firstdeqid == 1 ) {
|
||||||
if (mi != mapBlockIndex.end() && (*mi).second) {
|
firsttxnHeight == block.nHeight;
|
||||||
CBlockIndex* pindex = (*mi).second;
|
} else {
|
||||||
printf("found block height: %d\n",pindex->nHeight);
|
BlockMap::iterator mi = mapBlockIndex.find(hash);
|
||||||
if (chainActive.Contains(pindex)) {
|
if (mi != mapBlockIndex.end() && (*mi).second) {
|
||||||
firsttxnHeight = pindex->nHeight;
|
CBlockIndex* pindex = (*mi).second;
|
||||||
|
printf("found block height: %d\n",pindex->nHeight);
|
||||||
|
if (chainActive.Contains(pindex)) {
|
||||||
|
firsttxnHeight = pindex->nHeight;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user