-
Notifications
You must be signed in to change notification settings - Fork 176
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PoS VP tests #927
Merged
Merged
PoS VP tests #927
Conversation
This file contains 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
ba51132
to
4e2c70c
Compare
b1cfd4b
to
01d3a49
Compare
8ac9d07
to
e04a6c5
Compare
e04a6c5
to
f09ba9a
Compare
f09ba9a
to
e14cc02
Compare
e14cc02
to
561e176
Compare
561e176
to
4c4a484
Compare
pls update wasm |
This is because voting power is lossy conversion from stake and so accumulating voting power leads to rounding errors.
8df6087
to
426f30f
Compare
pls update wasm |
Closed
juped
added a commit
that referenced
this pull request
Jun 8, 2022
* tomas/pos-vp-tests: changelog: add #927 [ci]: update wasm checksums pos/epoched: rm debug_asserts to test with invalid state changes PoS: make epoched field data public PoS/VP: Prevent possible bond and unbond epoch subtraction underflow PoS/VP: fix validator set validation PoS/VP: replace expected voting power accumulator with total stake PoS: fix validator set update PoS: make `EpochedDelta::get_delta_at_epoch` public outside the crate PoS/VP: fix expected voting power changes for bond/unbond combo PoS/VP: fix validator set update check to allow new validators tests: Add state machine tests for PoS VP PoS: make BTreeSet shims module public PoS/VP: fix validator set update - active becomes inactive or vice-versa PoS/VP: fix total deltas and bonds accumulation PoS/validation: use the determined voting power for validator set check tests: add storage key changes helpers PoS/VP: Fix validation of inactive validator set update PoS/tests: replace ad hoc arb. PoS params gen PoS: fix voting power conversion from tokens to avoid overflow PoS/parameters: Add validation and arbitrary params gen for testing tests: add helpers for testing native VPs tests: add a tx field to a `TestTxEnv` tests: derive debug on `TestTxEnv` with derivative deps: updated proptest state-machine branch
tzemanovic
added a commit
that referenced
this pull request
Jun 9, 2022
* tomas/pos-vp-tests: changelog: add #927 [ci]: update wasm checksums pos/epoched: rm debug_asserts to test with invalid state changes PoS: make epoched field data public PoS/VP: Prevent possible bond and unbond epoch subtraction underflow PoS/VP: fix validator set validation PoS/VP: replace expected voting power accumulator with total stake PoS: fix validator set update PoS: make `EpochedDelta::get_delta_at_epoch` public outside the crate PoS/VP: fix expected voting power changes for bond/unbond combo PoS/VP: fix validator set update check to allow new validators tests: Add state machine tests for PoS VP PoS: make BTreeSet shims module public PoS/VP: fix validator set update - active becomes inactive or vice-versa PoS/VP: fix total deltas and bonds accumulation PoS/validation: use the determined voting power for validator set check tests: add storage key changes helpers PoS/VP: Fix validation of inactive validator set update PoS/tests: replace ad hoc arb. PoS params gen PoS: fix voting power conversion from tokens to avoid overflow PoS/parameters: Add validation and arbitrary params gen for testing tests: add helpers for testing native VPs tests: add a tx field to a `TestTxEnv` tests: derive debug on `TestTxEnv` with derivative deps: updated proptest state-machine branch
tzemanovic
added a commit
that referenced
this pull request
Jun 9, 2022
* tomas/pos-vp-tests: changelog: add #927 [ci]: update wasm checksums pos/epoched: rm debug_asserts to test with invalid state changes PoS: make epoched field data public PoS/VP: Prevent possible bond and unbond epoch subtraction underflow PoS/VP: fix validator set validation PoS/VP: replace expected voting power accumulator with total stake PoS: fix validator set update PoS: make `EpochedDelta::get_delta_at_epoch` public outside the crate PoS/VP: fix expected voting power changes for bond/unbond combo PoS/VP: fix validator set update check to allow new validators tests: Add state machine tests for PoS VP PoS: make BTreeSet shims module public PoS/VP: fix validator set update - active becomes inactive or vice-versa PoS/VP: fix total deltas and bonds accumulation PoS/validation: use the determined voting power for validator set check tests: add storage key changes helpers PoS/VP: Fix validation of inactive validator set update PoS/tests: replace ad hoc arb. PoS params gen PoS: fix voting power conversion from tokens to avoid overflow PoS/parameters: Add validation and arbitrary params gen for testing tests: add helpers for testing native VPs tests: add a tx field to a `TestTxEnv` tests: derive debug on `TestTxEnv` with derivative deps: updated proptest state-machine branch
juped
added a commit
that referenced
this pull request
Jun 9, 2022
* tomas/pos-vp-tests: changelog: add #927 [ci]: update wasm checksums pos/epoched: rm debug_asserts to test with invalid state changes PoS: make epoched field data public PoS/VP: Prevent possible bond and unbond epoch subtraction underflow PoS/VP: fix validator set validation PoS/VP: replace expected voting power accumulator with total stake PoS: fix validator set update PoS: make `EpochedDelta::get_delta_at_epoch` public outside the crate PoS/VP: fix expected voting power changes for bond/unbond combo PoS/VP: fix validator set update check to allow new validators tests: Add state machine tests for PoS VP PoS: make BTreeSet shims module public PoS/VP: fix validator set update - active becomes inactive or vice-versa PoS/VP: fix total deltas and bonds accumulation PoS/validation: use the determined voting power for validator set check tests: add storage key changes helpers PoS/VP: Fix validation of inactive validator set update PoS/tests: replace ad hoc arb. PoS params gen PoS: fix voting power conversion from tokens to avoid overflow PoS/parameters: Add validation and arbitrary params gen for testing tests: add helpers for testing native VPs tests: add a tx field to a `TestTxEnv` tests: derive debug on `TestTxEnv` with derivative deps: updated proptest state-machine branch
tzemanovic
added a commit
that referenced
this pull request
Jun 9, 2022
* tomas/pos-vp-tests: changelog: add #927 [ci]: update wasm checksums pos/epoched: rm debug_asserts to test with invalid state changes PoS: make epoched field data public PoS/VP: Prevent possible bond and unbond epoch subtraction underflow PoS/VP: fix validator set validation PoS/VP: replace expected voting power accumulator with total stake PoS: fix validator set update PoS: make `EpochedDelta::get_delta_at_epoch` public outside the crate PoS/VP: fix expected voting power changes for bond/unbond combo PoS/VP: fix validator set update check to allow new validators tests: Add state machine tests for PoS VP PoS: make BTreeSet shims module public PoS/VP: fix validator set update - active becomes inactive or vice-versa PoS/VP: fix total deltas and bonds accumulation PoS/validation: use the determined voting power for validator set check tests: add storage key changes helpers PoS/VP: Fix validation of inactive validator set update PoS/tests: replace ad hoc arb. PoS params gen PoS: fix voting power conversion from tokens to avoid overflow PoS/parameters: Add validation and arbitrary params gen for testing tests: add helpers for testing native VPs tests: add a tx field to a `TestTxEnv` tests: derive debug on `TestTxEnv` with derivative deps: updated proptest state-machine branch
james-chf
added a commit
that referenced
this pull request
Jun 23, 2022
…0.6.0 * master: Anoma 0.6.0 Add changelog changelog: #1116 fixed broken links in README.md changelog: add #1132 install mdbook-admonish assets changelog: add #1133 docs: include rust-nightly-version from file test/e2e: refactor AnomaCmd background session handling changelog: add #1118 make install: use the lock file Move EthBridge VP into vp.rs [ci]: update wasm checksums Add ethbridge e2e test Add tx_write_storage_key.wasm Add InternalAddress::EthBridge update to newer rebased expectrl branch client/utils/join-network: remove self from persistent peers changelog: add #997 add --archive-dir to `init-network` to use temp-dir in e2e test changelog: add #686 tests/e2e: update tests for expectrl tests/deps: replace rexpect with expectrl changelog: add #927 [ci]: update wasm checksums pos/epoched: rm debug_asserts to test with invalid state changes PoS: make epoched field data public PoS/VP: Prevent possible bond and unbond epoch subtraction underflow PoS/VP: fix validator set validation PoS/VP: replace expected voting power accumulator with total stake PoS: fix validator set update PoS: make `EpochedDelta::get_delta_at_epoch` public outside the crate PoS/VP: fix expected voting power changes for bond/unbond combo PoS/VP: fix validator set update check to allow new validators tests: Add state machine tests for PoS VP PoS: make BTreeSet shims module public PoS/VP: fix validator set update - active becomes inactive or vice-versa PoS/VP: fix total deltas and bonds accumulation PoS/validation: use the determined voting power for validator set check tests: add storage key changes helpers PoS/VP: Fix validation of inactive validator set update PoS/tests: replace ad hoc arb. PoS params gen PoS: fix voting power conversion from tokens to avoid overflow PoS/parameters: Add validation and arbitrary params gen for testing tests: add helpers for testing native VPs test/e2e/ledger_tests/node_connectivity: check node's start-up log test/e2e/ledger_tests: test init-genesis-validator with join-network test/e2e: make a help for copying wasms for a chain client/utils: update init-genesis-validator and join-network Don't create empty tendermint directory during init-network client/utils/join-network: no chain dir in configs server from env var client/utils/join-network: update the config for validators client/utils/join-network: use pre-genesis wallet for genesis validators Add ANOMA_NETWORK_CONFIGS_SERVER envvar Add stub --genesis-validator arg to anomac utils join-network Ensure directory hierarchy exists client/utils/init-network: only generate validator keys if they're not pre-defined ledger/config/genesis: add thiserror::Error client/utils/init-genesis-validator: write out partial pre-genesis genesis: make validation tokens and non-staked-balance optional client/utils/init-genesis-validator: add tendermint node key Use ValidatorConfig instead of genesis::Validator, print TOML Removed chain ID and don't write validator keys into Tendermint dir [ci]: update wasm checksums reuse IBC port [ci]: update wasm checksums tests: add a tx field to a `TestTxEnv` tests: derive debug on `TestTxEnv` with derivative deps: updated proptest state-machine branch remove temp when commit_tx fix IBC token VP
james-chf
added a commit
that referenced
this pull request
Jun 23, 2022
…at-1.61-update-abcipp * master: Anoma 0.6.0 Add changelog changelog: #1116 fixed broken links in README.md changelog: add #1132 install mdbook-admonish assets changelog: add #1133 docs: include rust-nightly-version from file test/e2e: refactor AnomaCmd background session handling changelog: add #1118 make install: use the lock file Move EthBridge VP into vp.rs [ci]: update wasm checksums Add ethbridge e2e test Add tx_write_storage_key.wasm Add InternalAddress::EthBridge update to newer rebased expectrl branch client/utils/join-network: remove self from persistent peers changelog: add #997 add --archive-dir to `init-network` to use temp-dir in e2e test changelog: add #686 tests/e2e: update tests for expectrl tests/deps: replace rexpect with expectrl changelog: add #927 [ci]: update wasm checksums pos/epoched: rm debug_asserts to test with invalid state changes PoS: make epoched field data public PoS/VP: Prevent possible bond and unbond epoch subtraction underflow PoS/VP: fix validator set validation PoS/VP: replace expected voting power accumulator with total stake PoS: fix validator set update PoS: make `EpochedDelta::get_delta_at_epoch` public outside the crate PoS/VP: fix expected voting power changes for bond/unbond combo PoS/VP: fix validator set update check to allow new validators tests: Add state machine tests for PoS VP PoS: make BTreeSet shims module public PoS/VP: fix validator set update - active becomes inactive or vice-versa PoS/VP: fix total deltas and bonds accumulation PoS/validation: use the determined voting power for validator set check tests: add storage key changes helpers PoS/VP: Fix validation of inactive validator set update PoS/tests: replace ad hoc arb. PoS params gen PoS: fix voting power conversion from tokens to avoid overflow PoS/parameters: Add validation and arbitrary params gen for testing tests: add helpers for testing native VPs test/e2e/ledger_tests/node_connectivity: check node's start-up log test/e2e/ledger_tests: test init-genesis-validator with join-network test/e2e: make a help for copying wasms for a chain client/utils: update init-genesis-validator and join-network Don't create empty tendermint directory during init-network client/utils/join-network: no chain dir in configs server from env var client/utils/join-network: update the config for validators client/utils/join-network: use pre-genesis wallet for genesis validators Add ANOMA_NETWORK_CONFIGS_SERVER envvar Add stub --genesis-validator arg to anomac utils join-network Ensure directory hierarchy exists client/utils/init-network: only generate validator keys if they're not pre-defined ledger/config/genesis: add thiserror::Error client/utils/init-genesis-validator: write out partial pre-genesis genesis: make validation tokens and non-staked-balance optional client/utils/init-genesis-validator: add tendermint node key Use ValidatorConfig instead of genesis::Validator, print TOML Removed chain ID and don't write validator keys into Tendermint dir [ci]: update wasm checksums reuse IBC port [ci]: update wasm checksums tests: add a tx field to a `TestTxEnv` tests: derive debug on `TestTxEnv` with derivative deps: updated proptest state-machine branch remove temp when commit_tx fix IBC token VP # Conflicts: # .changelog/v0.6.0/improvements/1088-updating-to-latest-abcipp.md # Cargo.lock # shared/src/types/storage.rs # tests/src/e2e/gossip_tests.rs # tests/src/e2e/ledger_tests.rs # wasm/checksums.json
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.
Partially implements anoma/namada#12. The invalid actions tests are not fully complete yet, but this should already unblock anoma/namada#16 and anoma/namada#18, as well as help with the new additions to the PoS system such as rewards and cubic slashing, so we'll come back to finish anoma/namada#12 after these.
depends and based on anoma/anoma#947