Skip to content

Commit

Permalink
added special case for tick 14441068
Browse files Browse the repository at this point in the history
  • Loading branch information
0xluk committed Jun 19, 2024
1 parent 47f627a commit 50717b2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions validator/txstatus/validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,15 @@ import (
)

func Validate(ctx context.Context, tickTxStatus types.TransactionStatus, tickTxs types.Transactions) (*protobuff.TickTransactionsStatus, error) {
if tickTxStatus.Tick == 14441068 {
proto, err := qubicToProto(tickTxStatus)
if err != nil {
return nil, errors.Wrap(err, "qubic to proto")
}

return proto, nil
}

if tickTxStatus.TxCount != uint32(len(tickTxs)) {
return nil, errors.Errorf("Mismatched tx length. Tick tx status count: %d - len(tickTx): %d", tickTxStatus.TxCount, len(tickTxs))
}
Expand Down

0 comments on commit 50717b2

Please sign in to comment.