mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
New extra currency behavior (#1539)
This commit is contained in:
parent
1b70e48327
commit
b3b2bd1c3c
17 changed files with 228 additions and 65 deletions
|
@ -1004,6 +1004,10 @@ bool ValidateQuery::fetch_config_params() {
|
|||
action_phase_cfg_.disable_custom_fess = config_->get_global_version() >= 8;
|
||||
action_phase_cfg_.reserve_extra_enabled = config_->get_global_version() >= 9;
|
||||
action_phase_cfg_.mc_blackhole_addr = config_->get_burning_config().blackhole_addr;
|
||||
action_phase_cfg_.extra_currency_v2 = config_->get_global_version() >= 10;
|
||||
}
|
||||
{
|
||||
serialize_cfg_.extra_currency_v2 = config_->get_global_version() >= 10;
|
||||
}
|
||||
{
|
||||
// fetch block_grams_created
|
||||
|
@ -5608,7 +5612,7 @@ bool ValidateQuery::check_one_transaction(block::Account& account, ton::LogicalT
|
|||
return reject_query(PSTRING() << "cannot re-create bounce phase of transaction " << lt << " for smart contract "
|
||||
<< addr.to_hex());
|
||||
}
|
||||
if (!trs->serialize()) {
|
||||
if (!trs->serialize(serialize_cfg_)) {
|
||||
return reject_query(PSTRING() << "cannot re-create the serialization of transaction " << lt
|
||||
<< " for smart contract " << addr.to_hex());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue