mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-07 08:52:54 +00:00
Satisfy Clippy, remove non-tree-states code
This commit is contained in:
@@ -8,7 +8,6 @@ edition = "2021"
|
||||
[features]
|
||||
portable = ["bls/supranational-portable"]
|
||||
fake_crypto = ['bls/fake_crypto']
|
||||
tree-states = ["store/milhouse"]
|
||||
|
||||
[dependencies]
|
||||
bls = { path = "../crypto/bls" }
|
||||
|
||||
@@ -53,11 +53,14 @@ pub fn run<T: EthSpec>(testnet_dir: PathBuf, matches: &ArgMatches) -> Result<(),
|
||||
|
||||
eprintln!("{}: {}", index, keypair.pk);
|
||||
|
||||
validators.get_mut(index).unwrap().pubkey = keypair.pk.into();
|
||||
validators
|
||||
.get_mut(index)
|
||||
.unwrap()
|
||||
.replace_pubkey(keypair.pk.into());
|
||||
|
||||
// Update the deposit tree.
|
||||
let mut deposit_data = DepositData {
|
||||
pubkey: validators.get(index).unwrap().pubkey,
|
||||
pubkey: *validators.get(index).unwrap().pubkey(),
|
||||
// Set this to a junk value since it's very time consuming to generate the withdrawal
|
||||
// keys and it's not useful for the time being.
|
||||
withdrawal_credentials: Hash256::zero(),
|
||||
@@ -70,7 +73,6 @@ pub fn run<T: EthSpec>(testnet_dir: PathBuf, matches: &ArgMatches) -> Result<(),
|
||||
.map_err(|e| format!("failed to create deposit tree: {:?}", e))?;
|
||||
deposit_root = deposit_tree.root();
|
||||
}
|
||||
drop(validators);
|
||||
|
||||
// Update the genesis validators root since we changed the validators.
|
||||
*state.genesis_validators_root_mut() = state.validators().tree_hash_root();
|
||||
|
||||
Reference in New Issue
Block a user