Skip to content

Commit

Permalink
Don't query atx validity from sql
Browse files Browse the repository at this point in the history
  • Loading branch information
kacpersaw committed Mar 14, 2024
1 parent 7dd2f2b commit 868d64d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions collector/sql/atxs.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
)

const fullQuery = `select id, atx, base_tick_height, tick_count, pubkey,
effective_num_units, received, epoch, sequence, coinbase, validity from atxs`
effective_num_units, received, epoch, sequence, coinbase from atxs`

type decoderCallback func(*types.VerifiedActivationTx, error) bool

Expand Down Expand Up @@ -42,7 +42,6 @@ func decoder(fn decoderCallback) sql.Decoder {
a.PublishEpoch = types.EpochID(uint32(stmt.ColumnInt(7)))
a.Sequence = uint64(stmt.ColumnInt64(8))
stmt.ColumnBytes(9, a.Coinbase[:])
a.SetValidity(types.Validity(stmt.ColumnInt(10)))
v, err := a.Verify(baseTickHeight, tickCount)
if err != nil {
return fn(nil, err)
Expand Down

0 comments on commit 868d64d

Please sign in to comment.