Skip to content

Commit

Permalink
Comments cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
karthikiyer56 committed Nov 21, 2024
1 parent c06e241 commit fe7cef8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 2 additions & 1 deletion ingest/change.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,11 @@ import (
// and won't be used when the change is compacted.
//
// - Tx: A reference to the LedgerTransaction that caused the change.
// Contains information about Transaction, Hash, TxResultPair etc
//
// - Lcm: The LedgerCloseMeta that precipitated the change.
// This is useful only when the Change is caused by an upgrade or by an eviction, i.e. outside a Transaction
// For changes caused by transaction or operations, look at the LedgerTransaction entity within Change
// For changes caused by transaction or operations, look at the Tx field
//
// - LedgerUpgrade: Information about the upgrade, if the change occurred as part of an upgrade.
type Change struct {
Expand Down
2 changes: 0 additions & 2 deletions ingest/ledger_transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ func (t *LedgerTransaction) getTransactionChanges(ledgerEntryChanges xdr.LedgerE
for _, change := range changes {
change.Reason = Transaction
change.Tx = t
change.Lcm = t.Lcm
}
return changes
}
Expand Down Expand Up @@ -174,7 +173,6 @@ func (t *LedgerTransaction) operationChanges(ops []xdr.OperationMeta, index uint
change.Reason = Operation
change.Tx = t
change.OperationIdx = index
change.Lcm = t.Lcm
}
return changes
}
Expand Down

0 comments on commit fe7cef8

Please sign in to comment.