Skip to content

Commit

Permalink
refactor(zetacore): delete ballots after maturity (#2863)
Browse files Browse the repository at this point in the history
* add function to clear ballots

* add unit tests

* refactor abci tests

* refactor generate voter list method

* refactor names for ballot list functions

* refactor ClearMaturedBallots to ClearMaturedBallotsAndBallotList

* make getMaturedBallotHeight private

* make getMaturedBallotHeight private

* add migration script to delete ballots and tests with mainnet data

* add test for migration

* add a query for all ballots

* generate files

* add changelog

* fixed test naming

* update migration comment

* update module version

* make changes for comments 2

* remove max limit for Ballots query

* remove BallotDeleteEvent

* remove BallotDeleteEvent
  • Loading branch information
kingpinXD authored Jan 16, 2025
1 parent 7eea20e commit a5e759d
Show file tree
Hide file tree
Showing 25 changed files with 1,844 additions and 14,793 deletions.
6 changes: 6 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@

## v25.0.0

## Unreleased

## Refactor

* [2863](https://github.com/zeta-chain/node/pull/2863) - refactor zetacore to delete matured ballots and add a migration script to remove all old ballots.

### Features

* [3235](https://github.com/zeta-chain/node/pull/3235) - add /systemtime telemetry endpoint (zetaclient)
Expand Down
Loading

0 comments on commit a5e759d

Please sign in to comment.