Skip to content

[oracle] Remove oracle prevote#249

Merged
udpatil merged 3 commits intomasterfrom
remove-prevote
Sep 15, 2022
Merged

[oracle] Remove oracle prevote#249
udpatil merged 3 commits intomasterfrom
remove-prevote

Conversation

@udpatil
Copy link
Collaborator

@udpatil udpatil commented Sep 13, 2022

Still testing with localsei but here's the PR that removes the prevote functionality

ExchangeRates: []ExchangeRateTuple{},
FeederDelegations: []FeederDelegation{},
PenaltyCounters: []PenaltyCounter{},
AggregateExchangeRatePrevotes: []AggregateExchangeRatePrevote{},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we need to remove this from the state in the upgrade handler?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes good point, I'll make that change

store := ctx.KVStore(m.keeper.storeKey)

oldPrevoteKey := []byte{0x04}
iter := sdk.KVStorePrefixIterator(store, oldPrevoteKey)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this removes every in the oracle store right

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah it iterates over the store and deletes anything thats prefixed by the prevote key

@udpatil udpatil merged commit 49b6d06 into master Sep 15, 2022
@udpatil udpatil deleted the remove-prevote branch September 15, 2022 05:01
udpatil added a commit that referenced this pull request Oct 21, 2022
* [oracle] Remove oracle prevote

* lint

* remove prevote from store
udpatil added a commit that referenced this pull request Oct 25, 2022
* [oracle] Remove oracle prevote

* lint

* remove prevote from store
udpatil added a commit that referenced this pull request Oct 26, 2022
* [oracle] Remove oracle prevote (#249)

* [oracle] Remove oracle prevote

* lint

* remove prevote from store

* [acl] Add oracle parallelization dependencies

* [loadtest] Add oracle voting to loadtest

* go mod tidy

* modified key import

* adjust loadtest

* remove none msg type

* update config

* add non message type

* add validation unit tests for oracle mapping

* refactor loadtest and use new sei-cosmos tag

* fix loadtest config

* add loadtest to makefile

* fix

* fix tabs

* lint

* go mod tidy

* refactor loadtest to separate function

* fix

* fix refactor
udpatil added a commit that referenced this pull request Oct 28, 2022
* [oracle] Remove oracle prevote (#249)

* [oracle] Remove oracle prevote

* lint

* remove prevote from store

* [acl] Add oracle parallelization dependencies

* [loadtest] Add oracle voting to loadtest

* go mod tidy

* modified key import

* adjust loadtest

* remove none msg type

* update config

* add non message type

* add validation unit tests for oracle mapping

* refactor loadtest and use new sei-cosmos tag

* fix loadtest config

* add loadtest to makefile

* fix

* fix tabs

* lint

* go mod tidy

* refactor loadtest to separate function

* fix

* fix refactor
udpatil added a commit that referenced this pull request Oct 28, 2022
* [oracle] Remove oracle prevote (#249)

* [oracle] Remove oracle prevote

* lint

* remove prevote from store

* [acl] Add oracle parallelization dependencies

* [loadtest] Add oracle voting to loadtest

* go mod tidy

* modified key import

* adjust loadtest

* remove none msg type

* update config

* add non message type

* add validation unit tests for oracle mapping

* refactor loadtest and use new sei-cosmos tag

* fix loadtest config

* add loadtest to makefile

* fix

* fix tabs

* lint

* go mod tidy

* refactor loadtest to separate function

* fix

* fix refactor
udpatil added a commit that referenced this pull request Nov 1, 2022
* [oracle] Remove oracle prevote (#249)

* [oracle] Remove oracle prevote

* lint

* remove prevote from store

* [acl] Add oracle parallelization dependencies

* [loadtest] Add oracle voting to loadtest

* go mod tidy

* modified key import

* adjust loadtest

* remove none msg type

* update config

* add non message type

* add validation unit tests for oracle mapping

* refactor loadtest and use new sei-cosmos tag

* fix loadtest config

* add loadtest to makefile

* fix

* fix tabs

* lint

* go mod tidy

* refactor loadtest to separate function

* fix

* fix refactor
udpatil added a commit that referenced this pull request Nov 1, 2022
* [oracle] Remove oracle prevote (#249)

* [oracle] Remove oracle prevote

* lint

* remove prevote from store

* [acl] Add oracle parallelization dependencies

* [loadtest] Add oracle voting to loadtest

* go mod tidy

* modified key import

* adjust loadtest

* remove none msg type

* update config

* add non message type

* add validation unit tests for oracle mapping

* refactor loadtest and use new sei-cosmos tag

* fix loadtest config

* add loadtest to makefile

* fix

* fix tabs

* lint

* go mod tidy

* refactor loadtest to separate function

* fix

* fix refactor
masih pushed a commit that referenced this pull request Oct 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants