Fix registered CL8Y balances reading as 0 after snapshot #20
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/9-registered-balance-zero"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
GET /v1/balancesfor a registered wallet now evaluates atmax(indexer tip, registered_at_height)on Terra and BSC (OV-B1). That is the live-QA failure onvote.cl8y.com: a just-registered holder with thousands of CL8Y saw ledger0whilelast_indexed_*was still0or behind the live snapshot (L6)."0"withregistered: false/pending: true. The dApp no longer presents that as a live chain holding. Register polls untilvoting_registrationsexists instead of treating POSTokas Registered.?height=below register still returns 0 (L6 preserved). Restricted role still cannotINSERTingest tables.Related to #9. Does not close #9: live LCD equality on
vote.cl8y.comand BSC O7 still need a human wallet.Test plan
cargo test --workspace --libLEDGER_TEST_DATABASE_URL=postgres://voting:voting@127.0.0.1:5433/voting cargo test --workspace --testscd frontend && npm test && npm run test:e2eBalance≈voting_registrations.initial_balance≈ defaultGET /v1/balances(non-zero on list +/vote/new)GET /v1/balances/:addr?height=belowregistered_at_heightis still0last_indexed_bsc_blockvsregistered_at_height)GET /healthcaught_up/ advancingterra_heightafter registerCL8Y_TOKEN_ADDRESSon Coolify is hpax3 (CL8Y-cb ticker is that contract unless proven otherwise)mentioned in issue #9
added 3 commits
mainb33da5ed- Merge origin/main into fix/9-registered-balance-zeroCompare with previous version
mentioned in commit
4f18713f5ementioned in issue #7