casper-network / casper-network/casper-node

GenesisValidator doesn't have `minimum_delegation_amount` and `maximum_delegation_amount`.

Open
#5,259 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
399
Forks
224
Avg merge
15h 44m
Merged PRs (30d)
2

Description

In tests we use `GenesisConfigBuilder` to setup validators. It should be possible to define `minimum_delegation_amount` and `maximum_delegation_amount`. Right now it forces us to use `add_bid`. It would be much easier if we don't have to build and execute `add_bid.wasm` for every validator on every test context setup.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reading the GenesisConfigBuilder and GenesisValidator usage in the tests, then trace how add_bid.wasm currently supplies delegation limits during validator setup. Add support for defining minimum_delegation_amount and maximum_delegation_amount directly, and verify that test contexts can configure validators without building and executing add_bid.wasm for each validator.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust, wasm
Domain
blockchain, testing
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.