mirror of
				https://github.com/ton-blockchain/ton
				synced 2025-03-09 15:40:10 +00:00 
			
		
		
		
	Comment out excessive checks of outbound messages queue
This commit is contained in:
		
							parent
							
								
									f44dce93b6
								
							
						
					
					
						commit
						6786f1d5b4
					
				
					 2 changed files with 4 additions and 2 deletions
				
			
		| 
						 | 
					@ -67,6 +67,7 @@ Collator::Collator(ShardIdFull shard, bool is_hardfork, UnixTime min_ts, BlockId
 | 
				
			||||||
    , validator_set_(std::move(validator_set))
 | 
					    , validator_set_(std::move(validator_set))
 | 
				
			||||||
    , manager(manager)
 | 
					    , manager(manager)
 | 
				
			||||||
    , timeout(timeout)
 | 
					    , timeout(timeout)
 | 
				
			||||||
 | 
					    // default timeout is 10 seconds, declared in validator/validator-group.cpp:generate_block_candidate:run_collate_query
 | 
				
			||||||
    , queue_cleanup_timeout_(td::Timestamp::at(timeout.at() - 9.0))
 | 
					    , queue_cleanup_timeout_(td::Timestamp::at(timeout.at() - 9.0))
 | 
				
			||||||
    , soft_timeout_(td::Timestamp::at(timeout.at() - 3.0))
 | 
					    , soft_timeout_(td::Timestamp::at(timeout.at() - 3.0))
 | 
				
			||||||
    , medium_timeout_(td::Timestamp::at(timeout.at() - 1.5))
 | 
					    , medium_timeout_(td::Timestamp::at(timeout.at() - 1.5))
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -5540,9 +5540,10 @@ bool ValidateQuery::try_validate() {
 | 
				
			||||||
    if (!check_in_queue()) {
 | 
					    if (!check_in_queue()) {
 | 
				
			||||||
      return reject_query("cannot check inbound message queues");
 | 
					      return reject_query("cannot check inbound message queues");
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    if (!check_delivered_dequeued()) {
 | 
					    // Excessive check: validity of message in queue is checked elsewhere
 | 
				
			||||||
 | 
					    /*if (!check_delivered_dequeued()) {
 | 
				
			||||||
      return reject_query("cannot check delivery status of all outbound messages");
 | 
					      return reject_query("cannot check delivery status of all outbound messages");
 | 
				
			||||||
    }
 | 
					    }*/
 | 
				
			||||||
    if (!check_transactions()) {
 | 
					    if (!check_transactions()) {
 | 
				
			||||||
      return reject_query("invalid collection of account transactions in ShardAccountBlocks");
 | 
					      return reject_query("invalid collection of account transactions in ShardAccountBlocks");
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue