diff --git a/migrations/receipt_repair.go b/migrations/receipt_repair.go index eea42aaf2..63f33aeb6 100644 --- a/migrations/receipt_repair.go +++ b/migrations/receipt_repair.go @@ -39,6 +39,10 @@ var receiptRepair = Migration{ log.Warn("Could not perform this migration because history is not in storage mode") return CommitProgress(db, nil, true) } + if !sm.Receipts { + log.Info("Migration is only relevant for storage mode with receipts, skipping") + return CommitProgress(db, nil, true) + } } genesisBlock, err := rawdb.ReadBlockByNumber(tx, 0)