-
Notifications
You must be signed in to change notification settings - Fork 499
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
exp/lighthorizon: Refactor codebase to avoid using HistoryArchiveBackend
as a filesystem interface
#4460
Comments
historyarchive.ArchiveBackend
as a filesystem interface.HistoryArchiveBackend
as a filesystem interface
@Shaptic I'm catching up after Starbridge so let me know if I understand this correctly: Also, I think the design of WDYT? |
Yes, definitely separate and most likely storing add'l information or in a different format (i.e. not exclusively a serialized
That's a great idea! For context, though, the I do agree that we should (and must, in fact) keep it backend-agnostic. The main pain point is that |
I think there's one misconception here. |
🤔 So I spend a little more checking the latest code in
I wonder if we should touch this at all. Eventually we could create the new package ( |
+1 👍
I think I did too, apologies for that 🤦 I think everywhere I said I think the main concern is that But already for example it's slightly problematic that a repository of unpacked ledgers like the one @2opremio just made is not directly associated with a network (pubnet or testnet). The network passphrase isn't stored anywhere and it probably should be. Maybe not per ledger but definitely per repository. And we'd need a way to access this from Light Horizon, but the We also have another Basically, getting to a single sane state would be great 😂 As a whole, I'm not entirely sure about the best way to refactor this all, or if it's even necessary as you noted, but I want to throw out that there will be more requirements on the backend interface soon, so we should handle that sooner rather than later if we can. I think I'll leave it up to you, since your picture of the codebase is roughly the same as mine now 👍 |
I think that #4488 implemented the changes we discussed here. |
Remove kludges around using
historyarchive.ArchiveBackend
as a filesystem interface.Currently, we're using
historyarchive.ArchiveBackend
as a way to access raw ledgers from the filesystem. This is pretty hacky since these aren't rawLedgerCloseMeta
s but rather a custom format on top of them (see #4450), so it doesn't make sense as aLedgerBackend
anyway, plus we want to be able to use the version and maybe read other config data from the directory.There's a little bit more context here; the general point is that we shouldn't hack in the ledgerbackend interface for Horizon Lite.
The text was updated successfully, but these errors were encountered: