mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
Count gas usage for ordinar transactions on special accounts in separate counter (#872)
* Improve checking total gas usage in collator and validator --------- Co-authored-by: SpyCheese <mikle98@yandex.ru>
This commit is contained in:
parent
d91643face
commit
2e231ec2ff
4 changed files with 28 additions and 13 deletions
|
@ -195,6 +195,7 @@ class ValidateQuery : public td::actor::Actor {
|
|||
ton::LogicalTime prev_key_block_lt_;
|
||||
std::unique_ptr<block::BlockLimits> block_limits_;
|
||||
std::unique_ptr<block::BlockLimitStatus> block_limit_status_;
|
||||
td::uint64 total_gas_used_{0}, total_special_gas_used_{0};
|
||||
|
||||
LogicalTime start_lt_, end_lt_;
|
||||
UnixTime prev_now_{~0u}, now_{~0u};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue