Skip to content

Commit

Permalink
removed TickData UnionData field entirely
Browse files Browse the repository at this point in the history
  • Loading branch information
0xluk committed Aug 28, 2024
1 parent 9f1e34f commit cc70d26
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions types/tick.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ type TickData struct {
Day uint8
Month uint8
Year uint8
UnionData [256]byte
Timelock [32]byte
TransactionDigests [NumberOfTransactionsPerTick][32]byte `json:",omitempty"`
ContractFees [1024]int64 `json:",omitempty"`
Expand Down Expand Up @@ -94,13 +93,6 @@ func (td *TickData) UnmarshallFromReader(r io.Reader) error {
return errors.Wrap(err, "reading year")
}

if td.Epoch < 124 {
err = binary.Read(r, binary.LittleEndian, &td.UnionData)
if err != nil {
return errors.Wrap(err, "reading union data")
}
}

err = binary.Read(r, binary.LittleEndian, &td.Timelock)
if err != nil {
return errors.Wrap(err, "reading timelock")
Expand Down

0 comments on commit cc70d26

Please sign in to comment.