fix(archive): harden ADR-034 history implementation [DONOT MERGE] - #67
Draft
satran004 wants to merge 68 commits into
Draft
fix(archive): harden ADR-034 history implementation [DONOT MERGE]#67satran004 wants to merge 68 commits into
satran004 wants to merge 68 commits into
Conversation
…tus, L1 SSE
Adds the node-side APIs a light or full-node wallet needs to run against Yano
alone, with no third-party indexer. Extracted from the desktop-wallet branch,
which is being split into its own repository — these are node features and
belong here; nothing wallet-side comes with them.
Ledger state (opt-in, off by default):
- AccountHistoryStore gains two record families — an address -> transaction
index (TYPE_ADDRESS_TX) and reward history (TYPE_REWARD). Each family keeps
its OWN cursor (META_ADDRTX_LAST_BLOCK, META_TXEVENTS_LAST_BLOCK) rather than
sharing one, so a family enabled later backfills from where it actually is
instead of being skipped by a shared high-water mark. Rollback clamps each
cursor independently.
- AddressKeyUtil centralises payment/stake credential scoping; UtxoKeyUtil now
delegates to it instead of carrying its own copy.
REST:
- GET /addresses/{address} and /addresses/{address}/transactions (new resource)
- GET /accounts/{stake}/transactions and /accounts/{stake}/rewards
- GET /tx/{hash}/status — confirmations and mempool state
- GET /events — L1 server-sent events, fed by the new L1EventFanout
Config:
- The `wallet` profile turns the above on. Everything is gated behind
ADDRESS_TX_ENABLED, which defaults to false, so an existing node sees no new
indexing work, no extra disk use and no behaviour change unless it opts in.
Tests: AccountHistoryStoreAddressTxTest (10) covers indexing, address scoping
and rollback. ledger-state / core-api / runtime / app all green (1,265 tests in
the three library modules, 0 failures) against current main.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
# Conflicts: # .gitignore # app/build.gradle # app/src/main/java/com/bloxbean/cardano/yano/app/YanoProducer.java # devnet-toolkit/src/main/java/com/bloxbean/cardano/yano/devnet/YanoDevnetAssembly.java # ledger-state/src/main/java/com/bloxbean/cardano/yano/ledgerstate/governance/epoch/GovernanceEpochProcessor.java # runtime/src/main/java/com/bloxbean/cardano/yano/runtime/assembly/Yano.java # runtime/src/main/java/com/bloxbean/cardano/yano/runtime/internal/RuntimeNode.java # settings.gradle
satran004
force-pushed
the
fix/adr-034-review-hardening
branch
from
August 16, 2026 14:47
43c3c58 to
e860fee
Compare
satran004
force-pushed
the
fix/adr-034-review-hardening
branch
from
August 16, 2026 14:49
e860fee to
5ee5610
Compare
This was referenced Aug 20, 2026
satran004
marked this pull request as draft
August 23, 2026 01:27
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
V1__archive_schema.sqlbaselineyano_archive_schema_historyValidation
git diff --checkand ignored-source auditNotes
This targets the ADR-034 integration branch. Existing local preview SQLite archives created from the earlier V1-V4 scripts should be deleted and rebuilt; the feature has not been released.