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 e9623de commit 2d5f617
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions berachain-eth-exporter/internal/store/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +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
}
_, err := s.db.Exec(query,
info.Number,
info.Miner,
Expand All @@ -126,7 +129,7 @@ func (s *Store) StoreBlock(info types.BlockInfo) error {
info.Version,
info.ExtraDataHex,
info.TxCount,
info.IsEmpty,
IsEmptyVal,
info.Timestamp,
)

Expand Down

0 comments on commit 2d5f617

Please sign in to comment.