From 4443ac662fb448470ae1bf4e844c5441e8ea6d52 Mon Sep 17 00:00:00 2001 From: zenground0 Date: Wed, 12 Apr 2023 08:22:34 -0600 Subject: [PATCH] Fix state tree version assert --- chain/consensus/filcns/upgrades.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chain/consensus/filcns/upgrades.go b/chain/consensus/filcns/upgrades.go index 5754c4bea..c82ad6a5c 100644 --- a/chain/consensus/filcns/upgrades.go +++ b/chain/consensus/filcns/upgrades.go @@ -1778,9 +1778,9 @@ func upgradeActorsV11Common( return cid.Undef, xerrors.Errorf("failed to decode state root: %w", err) } - if stateRoot.Version != types.StateTreeVersion5 { + if stateRoot.Version != types.StateTreeVersion4 { return cid.Undef, xerrors.Errorf( - "expected state root version 4 for actors v10 upgrade, got %d", + "expected state root version 4 for actors v11 upgrade, got %d", stateRoot.Version, ) }