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

automerge
This commit is contained in:
mergify[bot]
2020-04-30 12:49:36 -07:00
committed by GitHub
parent b4933f4c74
commit c63bd05458
8 changed files with 86 additions and 101 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,
}