Tags: fw6/nearcore
Tags
test: introduce ValidatorSchedule to specify COPs for KeyValue runtim… …e conveniently (near#7256) With cops, we now need to somehow configure `setup_mock_all_validators` to also specify cops. It *could* be done by adding just another argument, but I'd rather avoid that. Instead, what I suggest is bunching up all related configs into a single builder object, `ValidatorSchedule`, and use that as a universal tool to configure validators for KeyValueRuntime. Note that this PR doesn't change `setup_mock_all_validators` -- that's going to be a bigger diff, so I want to land that separately. I might also merge this with `EpochValidatorSet`, the structs handle similar data, but, at this stage, `EpochValidatorSet` is implementation detail, while `ValidatorSchedule` is the API for authors of tests. Can be reviewed per commit.
crates.io snapshot --- - near-account-id - https://crates.io/crates/near-account-id/0.14.0 - near-chain-configs - https://crates.io/crates/near-chain-configs/0.14.0 - near-chain-primitives - https://crates.io/crates/near-chain-primitives/0.14.0 - near-chunks-primitives - https://crates.io/crates/near-chunks-primitives/0.14.0 - near-client-primitives - https://crates.io/crates/near-client-primitives/0.14.0 - near-crypto - https://crates.io/crates/near-crypto/0.14.0 - near-indexer-primitives - https://crates.io/crates/near-indexer-primitives/0.14.0 - near-jsonrpc-primitives - https://crates.io/crates/near-jsonrpc-primitives/0.14.0 - near-metrics - https://crates.io/crates/near-metrics/0.14.0 - near-network-primitives - https://crates.io/crates/near-network-primitives/0.14.0 - near-primitives - https://crates.io/crates/near-primitives/0.14.0 - near-primitives-core - https://crates.io/crates/near-primitives-core/0.14.0 - near-rpc-error-core - https://crates.io/crates/near-rpc-error-core/0.14.0 - near-rpc-error-macro - https://crates.io/crates/near-rpc-error-macro/0.14.0 - near-vm-errors - https://crates.io/crates/near-vm-errors/0.14.0 - near-vm-logic - https://crates.io/crates/near-vm-logic/0.14.0
PreviousNext