1
0
Fork 0
mirror of https://github.com/ton-blockchain/ton synced 2025-02-15 04:32:21 +00:00

fixed bug in check_proof()

This commit is contained in:
ton 2019-09-18 23:08:41 +04:00
parent 13140ddf29
commit b90fa25ba4

View file

@ -220,11 +220,10 @@ bool CheckProof::init_parse(bool is_aux) {
} }
block::gen::BlockExtra::Record extra; block::gen::BlockExtra::Record extra;
if (!is_aux) { if (!is_aux) {
/* FIXME: temp (uncommend later) // FIXME: remove "is_key_block_ &&" later
if (!tlb::unpack_cell(std::move(blk.extra), extra)) { if (is_key_block_ && !tlb::unpack_cell(std::move(blk.extra), extra)) {
return fatal_error("cannot unpack extra header of block "s + blk_id.to_str()); return fatal_error("cannot unpack extra header of block "s + blk_id.to_str());
} }
*/
} }
if (is_key_block_ && !is_aux) { if (is_key_block_ && !is_aux) {
// visit validator-set related fields in key blocks // visit validator-set related fields in key blocks