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

automerge
This commit is contained in:
Tyera Eulberg
2020-04-29 22:55:33 -06:00
committed by GitHub
parent a91236012d
commit 6deaf649ef
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,
}