mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-25 17:02:26 +00:00
core: check return value from parse_hexstr_to_binbuff
This commit is contained in:
parent
5475692ed5
commit
92f2f687b9
1 changed files with 3 additions and 2 deletions
|
@ -484,8 +484,9 @@ namespace cryptonote
|
||||||
std::string genesis_coinbase_tx_hex = config::GENESIS_TX;
|
std::string genesis_coinbase_tx_hex = config::GENESIS_TX;
|
||||||
|
|
||||||
blobdata tx_bl;
|
blobdata tx_bl;
|
||||||
string_tools::parse_hexstr_to_binbuff(genesis_coinbase_tx_hex, tx_bl);
|
bool r = string_tools::parse_hexstr_to_binbuff(genesis_coinbase_tx_hex, tx_bl);
|
||||||
bool r = parse_and_validate_tx_from_blob(tx_bl, bl.miner_tx);
|
CHECK_AND_ASSERT_MES(r, false, "failed to parse coinbase tx from hard coded blob");
|
||||||
|
r = parse_and_validate_tx_from_blob(tx_bl, bl.miner_tx);
|
||||||
CHECK_AND_ASSERT_MES(r, false, "failed to parse coinbase tx from hard coded blob");
|
CHECK_AND_ASSERT_MES(r, false, "failed to parse coinbase tx from hard coded blob");
|
||||||
bl.major_version = CURRENT_BLOCK_MAJOR_VERSION;
|
bl.major_version = CURRENT_BLOCK_MAJOR_VERSION;
|
||||||
bl.minor_version = CURRENT_BLOCK_MINOR_VERSION;
|
bl.minor_version = CURRENT_BLOCK_MINOR_VERSION;
|
||||||
|
|
Loading…
Reference in a new issue