mirror of
				https://github.com/ton-blockchain/ton
				synced 2025-03-09 15:40:10 +00:00 
			
		
		
		
	Do not count gas on special accounts in block gas limits (enabled by config) (#856)
* Set higher gas limit for special accounts, don't add gas from special accounts to block total * Make removing special accounts from block gas limits enabled by config --------- Co-authored-by: SpyCheese <mikle98@yandex.ru>
This commit is contained in:
		
							parent
							
								
									3a5f3fcadd
								
							
						
					
					
						commit
						ff40c1f2a0
					
				
					 7 changed files with 36 additions and 21 deletions
				
			
		|  | @ -654,11 +654,16 @@ td::Result<GasLimitsPrices> Config::do_get_gas_limits_prices(td::Ref<vm::Cell> c | |||
|     res.delete_due_limit = r.delete_due_limit; | ||||
|   }; | ||||
|   block::gen::GasLimitsPrices::Record_gas_prices_ext rec; | ||||
|   block::gen::GasLimitsPrices::Record_gas_prices_v3 rec_v3; | ||||
|   vm::CellSlice cs0 = cs; | ||||
|   if (tlb::unpack(cs, rec)) { | ||||
|     f(rec, rec.special_gas_limit); | ||||
|   } else if (tlb::unpack(cs = cs0, rec_v3)) { | ||||
|     f(rec_v3, rec_v3.special_gas_limit); | ||||
|     res.special_full_limit = true; | ||||
|   } else { | ||||
|     block::gen::GasLimitsPrices::Record_gas_prices rec0; | ||||
|     if (tlb::unpack(cs, rec0)) { | ||||
|     if (tlb::unpack(cs = cs0, rec0)) { | ||||
|       f(rec0, rec0.gas_limit); | ||||
|     } else { | ||||
|       return td::Status::Error(PSLICE() << "configuration parameter " << id | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue