mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-17 04:48:21 +00:00
Address clippy lints in tree-states (#4414)
* Address some clippy lints * Box errors to fix error size lint * Add Default impl for Validator * Address more clippy lints * Re-implement `check_state_diff` * Fix misc test compile errors
This commit is contained in:
@@ -345,7 +345,7 @@ impl ForkChoiceTest {
|
||||
let state_root = harness
|
||||
.chain
|
||||
.store
|
||||
.get_blinded_block(&fc.fc_store().justified_checkpoint().root)
|
||||
.get_blinded_block(&fc.fc_store().justified_checkpoint().root, None)
|
||||
.unwrap()
|
||||
.unwrap()
|
||||
.message()
|
||||
@@ -361,7 +361,7 @@ impl ForkChoiceTest {
|
||||
.into_iter()
|
||||
.map(|v| {
|
||||
if v.is_active_at(state.current_epoch()) {
|
||||
v.effective_balance
|
||||
v.effective_balance()
|
||||
} else {
|
||||
0
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user