diff --git a/berachain-eth-exporter/internal/store/store.go b/berachain-eth-exporter/internal/store/store.go index f14ce2c..7c7ad3e 100644 --- a/berachain-eth-exporter/internal/store/store.go +++ b/berachain-eth-exporter/internal/store/store.go @@ -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, @@ -126,7 +129,7 @@ func (s *Store) StoreBlock(info types.BlockInfo) error { info.Version, info.ExtraDataHex, info.TxCount, - info.IsEmpty, + IsEmptyVal, info.Timestamp, )