Skip to content

Commit

Permalink
Update store/store.go
Browse files Browse the repository at this point in the history
Co-authored-by: Callum Waters <cmwaters19@gmail.com>
  • Loading branch information
ninabarbakadze and cmwaters committed Mar 26, 2024
1 parent f32bc93 commit dc88650
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions store/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit dc88650

Please sign in to comment.