Skip to content

Commit

Permalink
Update bsc snapshots and fix the systemcontract init panic (#475)
Browse files Browse the repository at this point in the history
* fix init systemcontractlookup panic
  • Loading branch information
blxdyx authored Aug 8, 2024
1 parent 6b3eca3 commit c8c243d
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 14 deletions.
6 changes: 0 additions & 6 deletions erigon-lib/chain/snapcfg/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ var (
Mainnet = fromToml(snapshothashes.Mainnet)
// Holesky = fromToml(snapshothashes.Holesky)
Sepolia = fromToml(snapshothashes.Sepolia)
Goerli = fromToml(snapshothashes.Goerli)
Mumbai = fromToml(snapshothashes.Mumbai)
Amoy = fromToml(snapshothashes.Amoy)
BorMainnet = fromToml(snapshothashes.BorMainnet)
Gnosis = fromToml(snapshothashes.Gnosis)
Expand Down Expand Up @@ -330,8 +328,6 @@ var knownPreverified = map[string]Preverified{
networkname.MainnetChainName: Mainnet,
// networkname.HoleskyChainName: HoleskyChainSnapshotCfg,
networkname.SepoliaChainName: Sepolia,
networkname.GoerliChainName: Goerli,
networkname.MumbaiChainName: Mumbai,
networkname.AmoyChainName: Amoy,
networkname.BorMainnetChainName: BorMainnet,
networkname.GnosisChainName: Gnosis,
Expand Down Expand Up @@ -406,8 +402,6 @@ func VersionedCfg(networkName string, preferred snaptype.Version, min snaptype.V
var KnownWebseeds = map[string][]string{
networkname.MainnetChainName: webseedsParse(webseed.Mainnet),
networkname.SepoliaChainName: webseedsParse(webseed.Sepolia),
networkname.GoerliChainName: webseedsParse(webseed.Goerli),
networkname.MumbaiChainName: webseedsParse(webseed.Mumbai),
networkname.AmoyChainName: webseedsParse(webseed.Amoy),
networkname.BorMainnetChainName: webseedsParse(webseed.BorMainnet),
networkname.GnosisChainName: webseedsParse(webseed.Gnosis),
Expand Down
2 changes: 1 addition & 1 deletion erigon-lib/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,6 @@ require (
zombiezen.com/go/sqlite v0.13.1 // indirect
)

replace github.com/ledgerwatch/erigon-snapshot => github.com/node-real/bsc-erigon-snapshot v1.0.1-0.20240712171019-175208b917f9
replace github.com/ledgerwatch/erigon-snapshot => github.com/node-real/bsc-erigon-snapshot v1.0.1-0.20240808061348-94b6faa77836

replace github.com/anacrolix/torrent => github.com/erigontech/torrent v1.54.2-alpha-8
4 changes: 2 additions & 2 deletions erigon-lib/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -295,8 +295,8 @@ github.com/mschoch/smat v0.2.0/go.mod h1:kc9mz7DoBKqDyiRL7VZN8KvXQMWeTaVnttLRXOl
github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U=
github.com/ncruces/go-strftime v0.1.9 h1:bY0MQC28UADQmHmaF5dgpLmImcShSi2kHU9XLdhx/f4=
github.com/ncruces/go-strftime v0.1.9/go.mod h1:Fwc5htZGVVkseilnfgOVb9mKy6w1naJmn9CehxcKcls=
github.com/node-real/bsc-erigon-snapshot v1.0.1-0.20240712171019-175208b917f9 h1:A9ogc/J6uwgpyyFXPhM1YiZMro3ph3HaLFR4lwiv0YU=
github.com/node-real/bsc-erigon-snapshot v1.0.1-0.20240712171019-175208b917f9/go.mod h1:3AuPxZc85jkehh/HA9h8gabv5MSi3kb/ddtzBsTVJFo=
github.com/node-real/bsc-erigon-snapshot v1.0.1-0.20240808061348-94b6faa77836 h1:k9ufjwUYzhV/vxBe3VhsVGl7PQ0xlolrqOBNebtpkJg=
github.com/node-real/bsc-erigon-snapshot v1.0.1-0.20240808061348-94b6faa77836/go.mod h1:3AuPxZc85jkehh/HA9h8gabv5MSi3kb/ddtzBsTVJFo=
github.com/nxadm/tail v1.4.4/go.mod h1:kenIhsEOeOJmVchQTgglprH7qJGnHDVpk1VPCcaMI8A=
github.com/nxadm/tail v1.4.8/go.mod h1:+ncqLTQzXmGhMZNUePPaPqPvBxHAIsmXswZKocGu+AU=
github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,6 @@ replace (
github.com/anacrolix/torrent => github.com/erigontech/torrent v1.54.2-alpha-8
github.com/cometbft/cometbft => github.com/bnb-chain/greenfield-tendermint v0.0.0-20230417032003-4cda1f296fb2
github.com/gballet/go-verkle => github.com/gballet/go-verkle v0.0.0-20221121182333-31427a1f2d35
github.com/ledgerwatch/erigon-snapshot => github.com/node-real/bsc-erigon-snapshot v1.0.1-0.20240712171019-175208b917f9
github.com/ledgerwatch/erigon-snapshot => github.com/node-real/bsc-erigon-snapshot v1.0.1-0.20240808061348-94b6faa77836
github.com/tendermint/tendermint => github.com/bnb-chain/tendermint v0.31.16
)
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -1272,8 +1272,8 @@ github.com/ncruces/go-strftime v0.1.9 h1:bY0MQC28UADQmHmaF5dgpLmImcShSi2kHU9XLdh
github.com/ncruces/go-strftime v0.1.9/go.mod h1:Fwc5htZGVVkseilnfgOVb9mKy6w1naJmn9CehxcKcls=
github.com/neelance/astrewrite v0.0.0-20160511093645-99348263ae86/go.mod h1:kHJEU3ofeGjhHklVoIGuVj85JJwZ6kWPaJwCIxgnFmo=
github.com/neelance/sourcemap v0.0.0-20151028013722-8c68805598ab/go.mod h1:Qr6/a/Q4r9LP1IltGz7tA7iOK1WonHEYhu1HRBA7ZiM=
github.com/node-real/bsc-erigon-snapshot v1.0.1-0.20240712171019-175208b917f9 h1:A9ogc/J6uwgpyyFXPhM1YiZMro3ph3HaLFR4lwiv0YU=
github.com/node-real/bsc-erigon-snapshot v1.0.1-0.20240712171019-175208b917f9/go.mod h1:3AuPxZc85jkehh/HA9h8gabv5MSi3kb/ddtzBsTVJFo=
github.com/node-real/bsc-erigon-snapshot v1.0.1-0.20240808061348-94b6faa77836 h1:k9ufjwUYzhV/vxBe3VhsVGl7PQ0xlolrqOBNebtpkJg=
github.com/node-real/bsc-erigon-snapshot v1.0.1-0.20240808061348-94b6faa77836/go.mod h1:3AuPxZc85jkehh/HA9h8gabv5MSi3kb/ddtzBsTVJFo=
github.com/nxadm/tail v1.4.4/go.mod h1:kenIhsEOeOJmVchQTgglprH7qJGnHDVpk1VPCcaMI8A=
github.com/nxadm/tail v1.4.8/go.mod h1:+ncqLTQzXmGhMZNUePPaPqPvBxHAIsmXswZKocGu+AU=
github.com/nxadm/tail v1.4.9-0.20211216163028-4472660a31a6 h1:iZ5rEHU561k2tdi/atkIsrP5/3AX3BjyhYtC96nJ260=
Expand Down
4 changes: 2 additions & 2 deletions params/chainspecs/chapel.json

Large diffs are not rendered by default.

0 comments on commit c8c243d

Please sign in to comment.