?
This commit is contained in:
@@ -374,7 +374,7 @@ UniValue getdatafromblock(const UniValue& params, bool fHelp)
|
|||||||
firsttxid = idstr;
|
firsttxid = idstr;
|
||||||
} else if (firsttxid.empty()) {
|
} else if (firsttxid.empty()) {
|
||||||
printf("firsttxid is empty: %s\n",idstr.c_str());
|
printf("firsttxid is empty: %s\n",idstr.c_str());
|
||||||
firsttxid == idstr;
|
firsttxid.append(idstr);
|
||||||
}
|
}
|
||||||
if ( seqid == (lastseqid + 1 )) {
|
if ( seqid == (lastseqid + 1 )) {
|
||||||
blockdata.append(data);
|
blockdata.append(data);
|
||||||
@@ -392,7 +392,7 @@ UniValue getdatafromblock(const UniValue& params, bool fHelp)
|
|||||||
}
|
}
|
||||||
if (streamid.empty()) {
|
if (streamid.empty()) {
|
||||||
uint256 hash; CTransaction firsttx;
|
uint256 hash; CTransaction firsttx;
|
||||||
uint256 firsttxid_256 = ParseHashV(firsttxid,"firsttxid");
|
uint256 firsttxid_256(uint256S(firsttxid));
|
||||||
if (GetTransaction(firsttxid_256,firsttx,hash,false)) {
|
if (GetTransaction(firsttxid_256,firsttx,hash,false)) {
|
||||||
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());
|
||||||
std::string streamid = firststreamid.substr (8,64);
|
std::string streamid = firststreamid.substr (8,64);
|
||||||
|
|||||||
Reference in New Issue
Block a user