From 6e51bdefd3ce30ae45ca432642dfa392695b7317 Mon Sep 17 00:00:00 2001 From: Martin Boehm Date: Tue, 1 Aug 2023 23:09:51 +0200 Subject: [PATCH] Fix bulk import of ethereum internal data --- db/bulkconnect.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/db/bulkconnect.go b/db/bulkconnect.go index b510fe3b..6fa2b542 100644 --- a/db/bulkconnect.go +++ b/db/bulkconnect.go @@ -380,6 +380,10 @@ func (b *BulkConnect) Close() error { } wb := grocksdb.NewWriteBatch() defer wb.Destroy() + if err := b.d.storeInternalDataEthereumType(wb, b.ethBlockTxs); err != nil { + return err + } + b.ethBlockTxs = b.ethBlockTxs[:0] bac := b.bulkAddressesCount if err := b.storeBulkAddresses(wb); err != nil { return err