Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

services/horizon: Support new CAP-21 transaction conditions #4297

Merged
merged 22 commits into from
Mar 25, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
typo fixes
  • Loading branch information
Paul Bellamy committed Mar 22, 2022
commit 3cdb66773f5b3fa3b5a93f16e123795a63bcf6f1
38 changes: 19 additions & 19 deletions xdr/transaction_envelope.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ func (e TransactionEnvelope) Signatures() []DecoratedSignature {
}
}

// SeqNum returns the sequence number set in the transaction envelope
// SeqNum returns the sequence number set in the transaction envelope.
// Note for fee bump transactions, SeqNum() returns the sequence number
// of the inner transaction
func (e TransactionEnvelope) SeqNum() int64 {
Expand All @@ -87,9 +87,9 @@ func (e TransactionEnvelope) SeqNum() int64 {
}
}

// TimeBounds returns the time bounds set in the transaction envelope
// Note for fee bump transactions, TimeBounds() returns the time bounds
// of the inner transaction
// TimeBounds returns the time bounds set in the transaction envelope. Note for
// fee bump transactions, TimeBounds() returns the time bounds of the inner
// transaction
func (e TransactionEnvelope) TimeBounds() *TimeBounds {
switch e.Type {
case EnvelopeTypeEnvelopeTypeTxFeeBump:
Expand All @@ -103,9 +103,9 @@ func (e TransactionEnvelope) TimeBounds() *TimeBounds {
}
}

// LedgerBounds returns the ledger bounds set in the transaction envelope
// Note for fee bump transactions, TimeBounds() returns the ledger bounds
// of the inner transaction
// LedgerBounds returns the ledger bounds set in the transaction envelope. Note
// for fee bump transactions, LedgerBounds() returns the ledger bounds of the
// inner transaction
func (e TransactionEnvelope) LedgerBounds() *LedgerBounds {
switch e.Type {
case EnvelopeTypeEnvelopeTypeTxFeeBump:
Expand All @@ -119,9 +119,9 @@ func (e TransactionEnvelope) LedgerBounds() *LedgerBounds {
}
}

// MinSeqNum returns the min seq num set in the transaction envelope
// Note for fee bump transactions, TimeBounds() returns the value
// of the inner transaction
// MinSeqNum returns the min seq num set in the transaction envelope. Note for
// fee bump transactions, MinSeqNum() returns the field from the inner
// transaction
func (e TransactionEnvelope) MinSeqNum() *SequenceNumber {
switch e.Type {
case EnvelopeTypeEnvelopeTypeTxFeeBump:
Expand All @@ -135,9 +135,9 @@ func (e TransactionEnvelope) MinSeqNum() *SequenceNumber {
}
}

// MinSeqAge returns the min seq age set in the transaction envelope
// Note for fee bump transactions, TimeBounds() returns the value
// of the inner transaction
// MinSeqAge returns the min seq age set in the transaction envelope. Note for
// fee bump transactions, MinSeqAge() returns the field from the inner
// transaction
func (e TransactionEnvelope) MinSeqAge() *Duration {
switch e.Type {
case EnvelopeTypeEnvelopeTypeTxFeeBump:
Expand All @@ -151,9 +151,9 @@ func (e TransactionEnvelope) MinSeqAge() *Duration {
}
}

// MinSeqLedgerGap returns the min seq ledger gap set in the transaction envelope
// Note for fee bump transactions, TimeBounds() returns the value
// of the inner transaction
// MinSeqLedgerGap returns the min seq ledger gap set in the transaction.
// envelope. Note for fee bump transactions, MinSeqLedgerGap() returns the
// field from the inner transaction
func (e TransactionEnvelope) MinSeqLedgerGap() *Uint32 {
switch e.Type {
case EnvelopeTypeEnvelopeTypeTxFeeBump:
Expand All @@ -167,9 +167,9 @@ func (e TransactionEnvelope) MinSeqLedgerGap() *Uint32 {
}
}

// ExtraSigners returns the extra signers set in the transaction envelope
// Note for fee bump transactions, TimeBounds() returns the value
// of the inner transaction
// ExtraSigners returns the extra signers set in the transaction envelope. Note
// for fee bump transactions, ExtraSigners() returns the field from the inner
// transaction
func (e TransactionEnvelope) ExtraSigners() []SignerKey {
switch e.Type {
case EnvelopeTypeEnvelopeTypeTxFeeBump:
Expand Down