This commit is contained in:
blackjok3r
2018-10-25 11:25:40 +08:00
parent 89f6e171de
commit 5d5c1bd473

View File

@@ -370,7 +370,7 @@ UniValue getdatafromblock(const UniValue& params, bool fHelp)
std::string streamid = firststreamid.substr (8,64);
}
}
char decodedstreamid[32];
uint8_t decodedstreamid[32];
decode_hex(decodedstreamid,32,(char *)streamid.c_str());
printf("decoded hex: %s\n",(char *)decodedstreamid);
result.push_back(Pair("streamid", decodedstreamid));