fmt change + don't skip InProgress for NodeChange

This commit is contained in:
Logan Collins 2018-10-27 17:44:08 -05:00
parent 3ffb1ba48a
commit a91e38e3c5
2 changed files with 5 additions and 3 deletions

View File

@ -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
};

View File

@ -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.