1
0
Fork 0
mirror of https://github.com/ton-blockchain/ton synced 2025-03-09 15:40:10 +00:00

Remove excessive check in check_neighbor_outbound_message

This commit is contained in:
SpyCheese 2023-07-19 14:53:10 +03:00
parent aa4f5769ca
commit e6b77ef71d

View file

@ -3983,14 +3983,6 @@ bool ValidateQuery::check_neighbor_outbound_message(Ref<vm::CellSlice> enq_msg,
td::ConstBitPtr key, const block::McShardDescr& nb,
bool& unprocessed) {
unprocessed = false;
if (!block::gen::t_EnqueuedMsg.validate_csr(enq_msg)) {
return reject_query("EnqueuedMsg with key "s + key.to_hex(352) + " in outbound queue of our neighbor " +
nb.blk_.to_str() + " failed to pass automated validity tests");
}
if (!block::tlb::t_EnqueuedMsg.validate_csr(enq_msg)) {
return reject_query("EnqueuedMsg with key "s + key.to_hex(352) + " in outbound queue of our neighbor " +
nb.blk_.to_str() + " failed to pass hand-written validity tests");
}
block::EnqueuedMsgDescr enq;
if (!enq.unpack(enq_msg.write())) { // unpack EnqueuedMsg
return reject_query("cannot unpack EnqueuedMsg with key "s + key.to_hex(352) +