Skip to content

Commit

Permalink
Update store.go
Browse files Browse the repository at this point in the history
  • Loading branch information
CharlesJUDITH authored Oct 31, 2024
1 parent 2d5f617 commit ef54309
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions berachain-eth-exporter/internal/store/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,10 @@ func (s *Store) StoreBlock(info types.BlockInfo) error {
(number, miner, validator_name, client, version, extra_data_hex, tx_count, is_empty, timestamp)
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)`
}

isEmptyVal := 0
if info.IsEmpty {
isEmptyVal = 1
isEmptyVal = 1
}
_, err := s.db.Exec(query,
info.Number,
Expand All @@ -129,7 +130,7 @@ func (s *Store) StoreBlock(info types.BlockInfo) error {
info.Version,
info.ExtraDataHex,
info.TxCount,
IsEmptyVal,
isEmptyVal,
info.Timestamp,
)

Expand Down

0 comments on commit ef54309

Please sign in to comment.