-
Notifications
You must be signed in to change notification settings - Fork 14
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
Add closed_at to ledger entry changes tables #208
Conversation
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.
Small nit on where header
is defined in some of the cmd/
files but everything is good as is
//if err != nil { | ||
// logger.Fatal(fmt.Sprintf("unable to read close time for ledger %d: ", seq), err) | ||
//} | ||
header = changeReader.LedgerTransactionReader.GetHeader() |
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.
nice find :) was this method easy to find? Or would it be helpful to add to the ingest
documentation for ease of use in the future?
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 wasn't necessarily obvious because of all the different reader nesting. But when you know it exists it is easy. Probably would be useful in the ingest documentation. It would be nice to get a reader/backend to xdr.* mapping like {Reader: [xdr.TxMeta, xdr.CloseMeta, xdr.LedgerHeader, etc...]}
without having to look through the xdr
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.
That's a good idea. Let's discuss with the rest of platform whether it makes sense to change the backend xdr mapping to be clearer.
Add
closed_at
toexport_ledger_entry_changes
tables.The standalone "from genesis" export_* use an empty
closed_at
because the export_* are unused and theCheckpointChangeReader
doesn't offer an easy way to get the ledger_sequence or closeMeta