From dc88650a4aa176889fcb0516e36b79f998dd8e48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?nina=20/=20=E1=83=9C=E1=83=98=E1=83=9C=E1=83=90?= Date: Tue, 26 Mar 2024 14:46:29 +0100 Subject: [PATCH] Update store/store.go Co-authored-by: Callum Waters --- store/store.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/store/store.go b/store/store.go index b282166e3c..53ffa5a8ee 100644 --- a/store/store.go +++ b/store/store.go @@ -477,11 +477,7 @@ func (bs *BlockStore) SaveTransactions(block *types.Block) error { } // Write the batch to the db - if err := batch.WriteSync(); err != nil { - return err - } - - return nil + return batch.WriteSync() } func (bs *BlockStore) Close() error {