@@ -14,6 +14,7 @@ import (
14
14
"github.com/onflow/flow-go/fvm/environment"
15
15
"github.com/onflow/flow-go/fvm/evm"
16
16
"github.com/onflow/flow-go/fvm/evm/events"
17
+ "github.com/onflow/flow-go/fvm/evm/handler"
17
18
"github.com/onflow/flow-go/fvm/evm/offchain/blocks"
18
19
evmStorage "github.com/onflow/flow-go/fvm/evm/offchain/storage"
19
20
"github.com/onflow/flow-go/fvm/evm/offchain/sync"
@@ -98,6 +99,10 @@ func OffchainReplayBackwardCompatibilityTest(
98
99
continue
99
100
}
100
101
102
+ if ! verifiableKeys (regID ) {
103
+ continue
104
+ }
105
+
101
106
// when iterating backwards, duplicated register updates are stale updates,
102
107
// so skipping them
103
108
if _ , ok := expectedUpdates [regID ]; ! ok {
@@ -152,7 +157,12 @@ func OffchainReplayBackwardCompatibilityTest(
152
157
return err
153
158
}
154
159
160
+ if ! verifiableKeys (k ) {
161
+ continue
162
+ }
163
+
155
164
actualUpdates [k ] = v
165
+
156
166
}
157
167
158
168
err = verifyRegisterUpdates (expectedUpdates , actualUpdates )
@@ -166,6 +176,10 @@ func OffchainReplayBackwardCompatibilityTest(
166
176
return nil
167
177
}
168
178
179
+ func verifiableKeys (key flow.RegisterID ) bool {
180
+ return handler .IsBlockHashListBucketKeyFormat (key ) || handler .IsBlockHashListMetaKey (key )
181
+ }
182
+
169
183
func parseEVMEvents (evts flow.EventsList ) (* events.BlockEventPayload , []events.TransactionEventPayload , error ) {
170
184
var blockEvent * events.BlockEventPayload
171
185
txEvents := make ([]events.TransactionEventPayload , 0 )
0 commit comments