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:
parent
aa4f5769ca
commit
e6b77ef71d
1 changed files with 0 additions and 8 deletions
|
@ -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) +
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue