Skip to content

Commit

Permalink
lastValidBlockHeight shouldn't be exported
Browse files Browse the repository at this point in the history
  • Loading branch information
Farber98 committed Nov 15, 2024
1 parent f0cf198 commit a260cab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/solana/txm/pendingtx.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ type PendingTx struct {
createTs time.Time
retentionTs time.Time
state TxState
LastValidBlockHeight uint64 // to track expiration
lastValidBlockHeight uint64 // to track expiration
BalanceCheck bool
From solana.PublicKey // to perform balanceCheck
Amount uint64 // to perform balanceCheck
Expand Down
2 changes: 1 addition & 1 deletion pkg/solana/txm/txm.go
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ func (txm *Txm) sendWithRetry(ctx context.Context, msg PendingTx) (solanaGo.Tran
return solanaGo.Transaction{}, "", solanaGo.Signature{}, fmt.Errorf("failed to get blockhash in soltxm.sendWithRetry: %w", err)
}
msg.Tx.Message.RecentBlockhash = blockhash.Value.Blockhash
msg.LastValidBlockHeight = blockhash.Value.LastValidBlockHeight
msg.lastValidBlockHeight = blockhash.Value.LastValidBlockHeight

// if requested, validate balance before sending transaction.
if msg.BalanceCheck {
Expand Down

0 comments on commit a260cab

Please sign in to comment.