From 2c0bce4b54ca4e58808425d4cce62d9ebc2438c4 Mon Sep 17 00:00:00 2001 From: Andrey Tvorozhkov Date: Tue, 5 Sep 2023 13:45:10 +0600 Subject: [PATCH 1/2] Fix config proposal scheme https://github.com/ton-blockchain/ton/blob/master/crypto/smartcont/config-code.fc#L298 --- crypto/block/block.tlb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/block/block.tlb b/crypto/block/block.tlb index 1b6f72a3..0bb7bace 100644 --- a/crypto/block/block.tlb +++ b/crypto/block/block.tlb @@ -628,7 +628,7 @@ _ ConfigVotingSetup = ConfigParam 11; cfg_proposal#f3 param_id:int32 param_value:(Maybe ^Cell) if_hash_equal:(Maybe uint256) = ConfigProposal; cfg_proposal_status#ce expires:uint32 proposal:^ConfigProposal is_critical:Bool - voters:(HashmapE 16 True) remaining_weight:int64 validator_set_id:uint256 + voters:(HashmapE 16 uint32) remaining_weight:int64 validator_set_id:uint256 rounds_remaining:uint8 wins:uint8 losses:uint8 = ConfigProposalStatus; wfmt_basic#1 vm_version:int32 vm_mode:uint64 = WorkchainFormat 1; From 963b4b342a3acc5fac8d2f0a53f3c9a4b555f8a0 Mon Sep 17 00:00:00 2001 From: Andrey Tvorozhkov Date: Tue, 5 Sep 2023 13:46:37 +0600 Subject: [PATCH 2/2] Update config-code.fc --- crypto/smartcont/config-code.fc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/smartcont/config-code.fc b/crypto/smartcont/config-code.fc index b3aa04c4..c4082041 100644 --- a/crypto/smartcont/config-code.fc +++ b/crypto/smartcont/config-code.fc @@ -225,7 +225,7 @@ _ perform_action(cfg_dict, public_key, action, cs) inline_ref { } ;; cfg_proposal_status#ce expires:uint32 proposal:^ConfigProposal is_critical:Bool -;; voters:(HashmapE 16 True) remaining_weight:int64 validator_set_id:uint256 +;; voters:(HashmapE 16 uint32) remaining_weight:int64 validator_set_id:uint256 ;; rounds_remaining:uint8 wins:uint8 losses:uint8 = ConfigProposalStatus; (int, cell, int, cell, int, int, slice) unpack_proposal_status(slice cs) inline_ref { throw_unless(44, cs~load_int(8) == 0xce - 0x100);