From 414f3c8fd1543a40145264530c00b696866e596a Mon Sep 17 00:00:00 2001 From: BeniaminDrasovean Date: Tue, 7 Jul 2026 12:55:26 +0300 Subject: [PATCH 1/2] use MiniBlockUnit instead of MetaBlockUnit --- dblookupext/factory/historyRepositoryFactory.go | 4 ++-- dblookupext/factory/historyRepositoryFactory_test.go | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/dblookupext/factory/historyRepositoryFactory.go b/dblookupext/factory/historyRepositoryFactory.go index db95838556e..2633e20c7d6 100644 --- a/dblookupext/factory/historyRepositoryFactory.go +++ b/dblookupext/factory/historyRepositoryFactory.go @@ -81,7 +81,7 @@ func (hpf *historyRepositoryFactory) Create() (dblookupext.HistoryRepository, er return nil, err } - mbsStorer, err := hpf.store.GetStorer(dataRetriever.MetaBlockUnit) + miniBlocksStorer, err := hpf.store.GetStorer(dataRetriever.MiniBlockUnit) if err != nil { return nil, err } @@ -90,7 +90,7 @@ func (hpf *historyRepositoryFactory) Create() (dblookupext.HistoryRepository, er hpf.marshalizer, esdtSuppliesStorer, txLogsStorer, - mbsStorer, + miniBlocksStorer, ) if err != nil { return nil, err diff --git a/dblookupext/factory/historyRepositoryFactory_test.go b/dblookupext/factory/historyRepositoryFactory_test.go index e3483dbb1e5..27ec5ed435a 100644 --- a/dblookupext/factory/historyRepositoryFactory_test.go +++ b/dblookupext/factory/historyRepositoryFactory_test.go @@ -89,11 +89,13 @@ func TestHistoryRepositoryFactory_CreateMissingStorersReturnsError(t *testing.T) t.Run("missing ESDTSuppliesUnit", testWithMissingStorer(dataRetriever.ESDTSuppliesUnit)) t.Run("missing TxLogsUnit", testWithMissingStorer(dataRetriever.TxLogsUnit)) + t.Run("missing ResultsHashesByTxHashUnit", testWithMissingStorer(dataRetriever.MiniBlockUnit)) t.Run("missing RoundHdrHashDataUnit", testWithMissingStorer(dataRetriever.RoundHdrHashDataUnit)) t.Run("missing MiniblocksMetadataUnit", testWithMissingStorer(dataRetriever.MiniblocksMetadataUnit)) t.Run("missing EpochByHashUnit", testWithMissingStorer(dataRetriever.EpochByHashUnit)) t.Run("missing MiniblockHashByTxHashUnit", testWithMissingStorer(dataRetriever.MiniblockHashByTxHashUnit)) t.Run("missing ResultsHashesByTxHashUnit", testWithMissingStorer(dataRetriever.ResultsHashesByTxHashUnit)) + t.Run("missing ResultsHashesByTxHashUnit", testWithMissingStorer(dataRetriever.ExecutionResultsUnit)) } func testWithMissingStorer(missingUnit dataRetriever.UnitType) func(t *testing.T) { From f88628e3e92b96cd2642f1af329cf40ca4599e73 Mon Sep 17 00:00:00 2001 From: BeniaminDrasovean Date: Tue, 7 Jul 2026 17:02:16 +0300 Subject: [PATCH 2/2] fix tests name --- dblookupext/factory/historyRepositoryFactory_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dblookupext/factory/historyRepositoryFactory_test.go b/dblookupext/factory/historyRepositoryFactory_test.go index 27ec5ed435a..533c40531ff 100644 --- a/dblookupext/factory/historyRepositoryFactory_test.go +++ b/dblookupext/factory/historyRepositoryFactory_test.go @@ -89,13 +89,13 @@ func TestHistoryRepositoryFactory_CreateMissingStorersReturnsError(t *testing.T) t.Run("missing ESDTSuppliesUnit", testWithMissingStorer(dataRetriever.ESDTSuppliesUnit)) t.Run("missing TxLogsUnit", testWithMissingStorer(dataRetriever.TxLogsUnit)) - t.Run("missing ResultsHashesByTxHashUnit", testWithMissingStorer(dataRetriever.MiniBlockUnit)) + t.Run("missing MiniBlockUnit", testWithMissingStorer(dataRetriever.MiniBlockUnit)) t.Run("missing RoundHdrHashDataUnit", testWithMissingStorer(dataRetriever.RoundHdrHashDataUnit)) t.Run("missing MiniblocksMetadataUnit", testWithMissingStorer(dataRetriever.MiniblocksMetadataUnit)) t.Run("missing EpochByHashUnit", testWithMissingStorer(dataRetriever.EpochByHashUnit)) t.Run("missing MiniblockHashByTxHashUnit", testWithMissingStorer(dataRetriever.MiniblockHashByTxHashUnit)) t.Run("missing ResultsHashesByTxHashUnit", testWithMissingStorer(dataRetriever.ResultsHashesByTxHashUnit)) - t.Run("missing ResultsHashesByTxHashUnit", testWithMissingStorer(dataRetriever.ExecutionResultsUnit)) + t.Run("missing ExecutionResultsUnit", testWithMissingStorer(dataRetriever.ExecutionResultsUnit)) } func testWithMissingStorer(missingUnit dataRetriever.UnitType) func(t *testing.T) {