Fix bulk import of ethereum internal data

This commit is contained in:
Martin Boehm 2023-08-01 23:09:51 +02:00
parent 4f7d8f0956
commit 6e51bdefd3

View File

@ -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