You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## High Level Overview of Change
<!--
Please include a summary/list of the changes.
If too broad, please consider splitting into multiple PRs.
If a relevant Asana task, please link it here.
-->
Add amendment eta time after majority gained tracking by
`amendments_incoming` table.
The WebSocket handling process for amendments is now as below:
- When ws connection open, subscribe and run ledger_entry once per
network via initial node to get amendments already enabled on the
network at the time connection starts.
- When listening to subscribed ledger stream, when ledger index is flag
+ 1, send a ledger request with `transactions` and `expand` options set
to `true` to scan for `EnableAmendment` transactions (only processed
once per network via initial node).
- If `EnableAmendment` transaction found:
1. if no Flags, a tx request is sent to retrieve more details about the
amendment, a new entry will be added to `amendments_status` table, with
`date` field added to reflect the release date, and `eta` removed as the
amendment has already been enabled.
2. if Majority Gain Flags, a new `eta` data will be added to
`amendments_status` table.
3. if Majority Lost Flags, delete the entry from `amendments_status`
table.
- Ballots will be received via validation stream on flag - 1.
### Type of Change
<!--
Please check relevant options, delete irrelevant ones.
-->
- [ ] Bug fix (non-breaking change which fixes an issue)
- [x] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] Refactor (non-breaking change that only restructures code)
- [ ] Tests (You added tests for code that already exists, or your new
feature included in this PR)
- [ ] Documentation Updates
- [ ] Release
---------
Co-authored-by: Jackson Mills <[email protected]>
0 commit comments