Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions chain33.fork.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ ForkParaFee=-1
ForkEthAddressFormat=0
# 交易chainID严格校验启用高度,启用后交易组内每笔交易及minTxFeeRate=0时的单笔交易都会校验chainID,防止跨链重放;-1 表示关闭
ForkTxChainIDStrict=-1
# 创世动作(Genesis)执行高度限制:启用后框架统一拒绝 height != 0 的 Exec_Genesis,防止执行器漏写 height 校验被创世重入;-1 表示关闭
ForkGenesisOnlyAtHeightZero=0

[fork.sub.none]
ForkUseTimeDelay=0
Expand Down
2 changes: 2 additions & 0 deletions chain33.para.toml
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,8 @@ ForkParaFee=-1
ForkEthAddressFormat=0
# 交易chainID严格校验启用高度,启用后交易组内每笔交易及minTxFeeRate=0时的单笔交易都会校验chainID,防止跨链重放;-1 表示关闭
ForkTxChainIDStrict=-1
# 创世动作(Genesis)执行高度限制:启用后框架统一拒绝 height != 0 的 Exec_Genesis,防止执行器漏写 height 校验被创世重入;-1 表示关闭
ForkGenesisOnlyAtHeightZero=0

[fork.sub.none]
ForkUseTimeDelay=0
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ toolchain go1.22.12
replace github.com/ava-labs/avalanchego => github.com/33cn/avalanchego v1.10.10-0.20240529041529-ada691598153

require (
github.com/33cn/chain33 v1.72.0
github.com/33cn/chain33 v1.72.7-0.20261016082959-e1bde75e25d0
github.com/BurntSushi/toml v1.3.2
github.com/NebulousLabs/Sia v1.3.7
github.com/bitly/go-simplejson v0.5.0
Expand Down Expand Up @@ -247,7 +247,7 @@ require (
github.com/status-im/keycard-go v0.2.0 // indirect
github.com/stretchr/objx v0.5.2 // indirect
github.com/supranational/blst v0.3.11 // indirect
github.com/syndtr/goleveldb v1.0.1-0.20220614013038-64ee5596c38a // indirect
github.com/syndtr/goleveldb v1.0.1-0.20220721030215-126854af5e6d // indirect
github.com/tklauser/go-sysconf v0.3.12 // indirect
github.com/tklauser/numcpus v0.6.1 // indirect
github.com/tyler-smith/go-bip39 v1.1.0 // indirect
Expand Down
4 changes: 4 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ dmitri.shuralyov.com/state v0.0.0-20180228185332-28bcc343414c/go.mod h1:0PRwlb0D
git.apache.org/thrift.git v0.0.0-20180902110319-2566ecd5d999/go.mod h1:fPE2ZNJGynbRyZ4dJvy6G277gSllfV2HJqblrnkyeyg=
github.com/33cn/chain33 v1.72.0 h1:Nk1CYLSYd5rfvhw1szE2Jt0cJx3A8nZCZZvIEIfTarw=
github.com/33cn/chain33 v1.72.0/go.mod h1:QCdEczXYJI43WTeFuzEpEhNZ/SfEnLOdFaw6r6LvPz8=
github.com/33cn/chain33 v1.72.7-0.20261016082959-e1bde75e25d0 h1:r9UFvcR9Sg9g3UBte5QX//e4e45F9DFxYhm4MnaaRlg=
github.com/33cn/chain33 v1.72.7-0.20261016082959-e1bde75e25d0/go.mod h1:6C5lKl8ejjoXtyhetFXz13t+JV4UQvp9H4t9eLOTNXs=
github.com/AndreasBriese/bbloom v0.0.0-20190825152654-46b345b51c96 h1:cTp8I5+VIoKjsnZuH8vjyaysT/ses3EvZeaV/1UkF2M=
github.com/AndreasBriese/bbloom v0.0.0-20190825152654-46b345b51c96/go.mod h1:bOvUY6CB00SOBii9/FifXqc0awNKxLFCL/+pkDPuyl8=
github.com/Azure/azure-sdk-for-go v41.3.0+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc=
Expand Down Expand Up @@ -1358,6 +1360,8 @@ github.com/supranational/blst v0.3.11/go.mod h1:jZJtfjgudtNl4en1tzwPIV3KjUnQUvG3
github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7/go.mod h1:q4W45IWZaF22tdD+VEXcAWRA037jwmWEB5VWYORlTpc=
github.com/syndtr/goleveldb v1.0.1-0.20220614013038-64ee5596c38a h1:1ur3QoCqvE5fl+nylMaIr9PVV1w343YRDtsy+Rwu7XI=
github.com/syndtr/goleveldb v1.0.1-0.20220614013038-64ee5596c38a/go.mod h1:RRCYJbIwD5jmqPI9XoAFR0OcDxqUctll6zUj/+B4S48=
github.com/syndtr/goleveldb v1.0.1-0.20220721030215-126854af5e6d h1:vfofYNRScrDdvS342BElfbETmL1Aiz3i2t0zfRj16Hs=
github.com/syndtr/goleveldb v1.0.1-0.20220721030215-126854af5e6d/go.mod h1:RRCYJbIwD5jmqPI9XoAFR0OcDxqUctll6zUj/+B4S48=
github.com/tarm/serial v0.0.0-20180830185346-98f6abe2eb07/go.mod h1:kDXzergiv9cbyO7IOYJZWg1U88JhDg3PB6klq9Hg2pA=
github.com/tidwall/pretty v1.0.0/go.mod h1:XNkn88O1ChpSDQmQeStsy+sBenx6DDtFZJxhVysOjyk=
github.com/tinylib/msgp v1.0.2/go.mod h1:+d+yLhGm8mzTaHzB+wgMYrodPfmZrzkirds8fDWklFE=
Expand Down
2 changes: 2 additions & 0 deletions plugin/consensus/qbft/chain33.qbft.toml
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,8 @@ superManager=[
ForkExecKey=0
# 交易chainID严格校验启用高度,启用后交易组内每笔交易及minTxFeeRate=0时的单笔交易都会校验chainID,防止跨链重放;-1 表示关闭
ForkTxChainIDStrict=-1
# 创世动作(Genesis)执行高度限制:启用后框架统一拒绝 height != 0 的 Exec_Genesis,防止执行器漏写 height 校验被创世重入;-1 表示关闭
ForkGenesisOnlyAtHeightZero=0

[fork.sub.manage]
Enable=0
Expand Down
2 changes: 2 additions & 0 deletions plugin/dapp/evm/cmd/ci2/chain33.proxyminer.toml
Original file line number Diff line number Diff line change
Expand Up @@ -539,6 +539,8 @@ ForkParaFee=-1
ForkEthAddressFormat=0
# 交易chainID严格校验启用高度,启用后交易组内每笔交易及minTxFeeRate=0时的单笔交易都会校验chainID,防止跨链重放;-1 表示关闭
ForkTxChainIDStrict=-1
# 创世动作(Genesis)执行高度限制:启用后框架统一拒绝 height != 0 的 Exec_Genesis,防止执行器漏写 height 校验被创世重入;-1 表示关闭
ForkGenesisOnlyAtHeightZero=0

[fork.sub.none]
ForkUseTimeDelay=0
Expand Down
4 changes: 4 additions & 0 deletions plugin/dapp/ticket/executor/exec.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ import (
)

// Exec_Genesis exec genesis
//
// 创世动作只允许在高度 0 执行;该校验由 chain33 框架层统一提供
// (DriverBase.checkGenesisHeight + 系统分叉 ForkGenesisOnlyAtHeightZero,
// 本仓库各配置均取 0),执行器侧不再重复实现,避免同一约束存在两份实现。
func (t *Ticket) Exec_Genesis(payload *ty.TicketGenesis, tx *types.Transaction, index int) (*types.Receipt, error) {
if payload.Count <= 0 {
return nil, ty.ErrTicketCount
Expand Down
2 changes: 2 additions & 0 deletions plugin/dapp/ticket/executor/testdata/chain33.cfg.toml
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,8 @@ ForkAccountBlacklist=-1
ForkAccountBlacklistV2=-1
# 交易chainID严格校验启用高度,启用后交易组内每笔交易及minTxFeeRate=0时的单笔交易都会校验chainID,防止跨链重放;-1 表示关闭
ForkTxChainIDStrict=-1
# 创世动作(Genesis)执行高度限制:启用后框架统一拒绝 height != 0 的 Exec_Genesis,防止执行器漏写 height 校验被创世重入;-1 表示关闭
ForkGenesisOnlyAtHeightZero=0

[fork.sub.coins]
Enable=0
Expand Down
Loading
Loading