新注册的用户请输入邮箱并保存,随后登录邮箱激活账号。后续可直接使用邮箱登录!

Commit 16527cc8 authored by shaozhuguang's avatar shaozhuguang

Merge branch 'v2.4.0_qc_sync' into 'v2.4.0_qc' (merge request !295)

fix: replace version representation
fix: replace version representation

--bug=0
parents aacca6cf fe021389
......@@ -25,7 +25,7 @@ import (
)
var (
blockVersion2400 = utils.GetBlockVersion("v2.4.0")
blockVersion2400 = protocol.BlockVersion240
)
// ChainConsensusRuntime chain consensus config update
......
......@@ -209,7 +209,7 @@ func (c *ChainConfigContract) registerChainConfigContractMethodsForVM(log protoc
c.RegisterMethod(syscontract.ChainConfigFunction_MULTI_SIGN_ENABLE_MANUAL_RUN.String(),
common.WrapResultFunc(vmRuntime.EnableOrDisableMultiSignManualRun), 0, 0)
var startVersion, endVersion uint32 = utils.GetBlockVersion("v2.4.0"), 0
var startVersion, endVersion uint32 = protocol.BlockVersion240, 0
c.RegisterMethod(syscontract.ChainConfigFunction_VM_SUPPORT_LIST_ADD.String(),
common.WrapResultFunc(vmRuntime.VMSupportListAdd), startVersion, endVersion)
}
......
......@@ -9,7 +9,7 @@ require (
chainmaker.org/chainmaker/logger/v2 v2.3.5-0.20250311075614-ff90ca99cbc1
chainmaker.org/chainmaker/pb-go/v2 v2.3.7-0.20250305031636-a9cc6c55adf0
chainmaker.org/chainmaker/protocol/v2 v2.3.9-0.20250311075443-fd94f323bf28
chainmaker.org/chainmaker/utils/v2 v2.3.7-0.20250311075718-16223e6ae771
chainmaker.org/chainmaker/utils/v2 v2.3.7-0.20250314025122-dfc83b8bd7bc
github.com/gogo/protobuf v1.3.2
github.com/golang/mock v1.6.0
github.com/golang/protobuf v1.5.2
......
......@@ -14,7 +14,6 @@ import (
"chainmaker.org/chainmaker/pb-go/v2/sync"
"chainmaker.org/chainmaker/pb-go/v2/syscontract"
"chainmaker.org/chainmaker/protocol/v2"
"chainmaker.org/chainmaker/utils/v2"
"chainmaker.org/chainmaker/vm-native/v2/common"
"github.com/gogo/protobuf/proto"
)
......@@ -57,7 +56,7 @@ func NewSyncRuleContract(log protocol.Logger) *SyncRuleContract {
func (c *SyncRuleContract) registerSyncRuleContractMethods() map[string]common.ContractFunc {
methodMap := make(map[string]common.ContractFunc, 64)
ruleRuntime := NewSyncRuleRuntime(c.log)
var startVersion, endVersion uint32 = utils.GetBlockVersion("v2.4.0"), 0
var startVersion, endVersion uint32 = protocol.BlockVersion240, 0
c.RegisterMethod(syscontract.SyncRuleFunction_ADD.String(),
common.WrapResultFunc(ruleRuntime.CreateOrReplaceRule), startVersion, endVersion)
c.RegisterMethod(syscontract.SyncRuleFunction_GET.String(),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment