From fe7cef8e67a5d4995e92feb5a99395cc7f582d81 Mon Sep 17 00:00:00 2001 From: Karthik Iyer Date: Thu, 21 Nov 2024 12:14:16 -0800 Subject: [PATCH] Comments cleanup --- ingest/change.go | 3 ++- ingest/ledger_transaction.go | 2 -- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/ingest/change.go b/ingest/change.go index 99e9000496..432cadaa9a 100644 --- a/ingest/change.go +++ b/ingest/change.go @@ -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 { diff --git a/ingest/ledger_transaction.go b/ingest/ledger_transaction.go index ca255e3711..79f7c7b275 100644 --- a/ingest/ledger_transaction.go +++ b/ingest/ledger_transaction.go @@ -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 } @@ -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 }