Skip to content

Commit b63ee3f

Browse files
Merge pull request #11 from everFinance/develop
fix(): ignore 2.6 block verify
2 parents bf37795 + c16d85d commit b63ee3f

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

blocks.go

+10
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,16 @@ func (l *BlockIdxs) existBlock(b types.Block) bool {
5656
}
5757

5858
func (l *BlockIdxs) VerifyBlock(b types.Block) error {
59+
/*
60+
2.6 is out - https://github.com/ArweaveTeam/arweave/releases/tag/N.2.6.0.
61+
The fork activates at height 1132210, approximately 2023-03-06 14:00 UTC.
62+
You will need to make sure you have upgraded your miner before this time to connect to the network.
63+
You can find more information in the release notes and the updated mining guide.
64+
*/
65+
if b.Height >= 1132210 { // not verify 2.6 block
66+
return nil
67+
}
68+
5969
if !l.existBlock(b) {
6070
log.Warn("block indepHash not exist blockIdxs", "blockHeight", b.Height, "blockIndepHash", b.IndepHash)
6171
return errors.New("block indepHash not exist blockIdxs")

0 commit comments

Comments
 (0)