mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
updated fift
updated fift updated tonlib
This commit is contained in:
parent
7c595294b6
commit
29deff15c3
14 changed files with 137 additions and 49 deletions
|
@ -421,7 +421,7 @@ block_info#9bc7a987 version:uint32
|
|||
prev_key_block_seqno:uint32
|
||||
master_ref:not_master?^BlkMasterInfo
|
||||
prev_ref:^(BlkPrevInfo after_merge)
|
||||
prev_vert_ref:vert_seq_no?^(BlkPrevInfo 0)
|
||||
prev_vert_ref:vert_seqno_incr?^(BlkPrevInfo 0)
|
||||
= BlockInfo;
|
||||
|
||||
prev_blk_info$_ prev:ExtBlkRef = BlkPrevInfo 0;
|
||||
|
|
|
@ -739,7 +739,8 @@ td::uint64 ComputePhaseConfig::gas_bought_for(td::RefInt256 nanograms) const {
|
|||
}
|
||||
|
||||
td::RefInt256 ComputePhaseConfig::compute_gas_price(td::uint64 gas_used) const {
|
||||
return td::rshift(gas_price256 * gas_used, 16, 1);
|
||||
return gas_used <= flat_gas_limit ? td::make_refint(flat_gas_price)
|
||||
: td::rshift(gas_price256 * (gas_used - flat_gas_limit), 16, 1) + flat_gas_price;
|
||||
}
|
||||
|
||||
bool Transaction::compute_gas_limits(ComputePhase& cp, const ComputePhaseConfig& cfg) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue