Compare commits

...

2 Commits

Author SHA1 Message Date
colinlyguo
29ff90f3ba remove if 2024-08-23 22:37:10 +08:00
colinlyguo
d75e2e286e fix: bad block 2024-08-23 22:07:36 +08:00

View File

@@ -127,6 +127,8 @@ func (w *L2WatcherClient) getAndStoreBlocks(ctx context.Context, from, to uint64
return fmt.Errorf("failed to GetBlockByNumberOrHash: %v. number: %v", err, number)
}
if block.RowConsumption == nil {
block.RowConsumption = &gethTypes.RowConsumption{}
} else {
return fmt.Errorf("fetched block does not contain RowConsumption. number: %v", number)
}