Add commitment Root variant, and add fleshed out --commitment arg to Cli (#9806) (#9813)

automerge
This commit is contained in:
mergify[bot]
2020-04-30 10:40:07 -07:00
committed by GitHub
parent 7a6543eb5b
commit 3f41d60793
8 changed files with 93 additions and 128 deletions

View File

@@ -25,6 +25,12 @@ impl CommitmentConfig {
}
}
pub fn root() -> Self {
Self {
commitment: CommitmentLevel::Root,
}
}
pub fn ok(self) -> Option<Self> {
if self == Self::default() {
None
@@ -39,4 +45,5 @@ impl CommitmentConfig {
pub enum CommitmentLevel {
Max,
Recent,
Root,
}