Trigger RPC notifications after block commitment cache update (#10077) (#10101)

automerge
This commit is contained in:
mergify[bot]
2020-05-18 13:34:18 -07:00
committed by GitHub
parent 3ec109a0e4
commit 342cf90ce1
8 changed files with 295 additions and 121 deletions

View File

@@ -31,6 +31,12 @@ impl CommitmentConfig {
}
}
pub fn single() -> Self {
Self {
commitment: CommitmentLevel::Single,
}
}
pub fn ok(self) -> Option<Self> {
if self == Self::default() {
None
@@ -46,4 +52,5 @@ pub enum CommitmentLevel {
Max,
Recent,
Root,
Single,
}