-
Notifications
You must be signed in to change notification settings - Fork 32
Remove support for storing ledger entries in local db #417
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
base: protocol-23
Are you sure you want to change the base?
Conversation
a03a40e
to
3fdd4d8
Compare
3fdd4d8
to
39ef7c4
Compare
type LedgerKeyAndEntry struct { | ||
Key xdr.LedgerKey | ||
Entry xdr.LedgerEntry | ||
LiveUntilLedgerSeq *uint32 // optional live-until ledger seq, when applicable. | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It may be more appropriate to have this in the ledgerentries
package
@@ -211,11 +209,6 @@ func (s *Service) fillEntriesFromCheckpoint(ctx context.Context, archive history | |||
ctx, cancel = context.WithTimeout(ctx, s.timeout) | |||
defer cancel() | |||
|
|||
reader, err := ingest.NewCheckpointChangeReader(ctx, archive, checkpointLedger) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since we're no longer reading changes, can we remove fillEntriesFromCheckpoint and simplify maybeFillEntriesFromCheckpoint?
I was discussing stellar/js-stellar-sdk#1165 recently, and this feature would require processing ledger entries 🙈 I don't think we should keep it, but I just wanted to note it for visibility - we can always revert this change in a simpler form down the line if this feature request comes to fruition. |
eedf4ee
to
c05b84d
Compare
What
[TODO: Short statement about what is changing.]
Why
[TODO: Why this change is being made. Include any context required to understand the why.]
Known limitations
[TODO or N/A]