mirror of https://github.com/poanetwork/hbbft.git
fmt change + don't skip InProgress for NodeChange
This commit is contained in:
parent
3ffb1ba48a
commit
a91e38e3c5
|
@ -301,7 +301,10 @@ where
|
|||
self.update_encryption_schedule(batch_epoch + 1, *schedule)?
|
||||
}
|
||||
});
|
||||
ChangeState::Complete(change)
|
||||
match change {
|
||||
Change::NodeChange(_) => ChangeState::InProgress(change),
|
||||
Change::EncryptionSchedule(_) => ChangeState::Complete(change),
|
||||
}
|
||||
} else {
|
||||
ChangeState::None
|
||||
};
|
||||
|
|
|
@ -106,8 +106,7 @@ fn do_drop_and_readd(cfg: TestConfig) {
|
|||
DynamicHoneyBadger::builder()
|
||||
.rng(node.rng)
|
||||
.build(node.netinfo)
|
||||
})
|
||||
.build()
|
||||
}).build()
|
||||
.expect("could not construct test network");
|
||||
|
||||
// We will use the first correct node as the node we will remove from and re-add to the network.
|
||||
|
|
Loading…
Reference in New Issue