Skip to content

Commit 0f91adc

Browse files
authored
feat: add single node quorum type (#54)
* feat: add single node quorum type * chore: update lazy_static * revert: lazy_static version
1 parent 88dfef0 commit 0f91adc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

json/src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2473,6 +2473,7 @@ pub enum QuorumType {
24732473
LlmqDevnetDip0024 = 105,
24742474
LlmqTestPlatform = 106,
24752475
LlmqDevnetPlatform = 107,
2476+
LlmqSingleNode = 111,
24762477
UNKNOWN = 0,
24772478
}
24782479

@@ -2493,6 +2494,7 @@ impl From<u32> for QuorumType {
24932494
105 => QuorumType::LlmqDevnetDip0024,
24942495
106 => QuorumType::LlmqTestPlatform,
24952496
107 => QuorumType::LlmqDevnetPlatform,
2497+
111 => QuorumType::LlmqSingleNode,
24962498
_ => QuorumType::UNKNOWN,
24972499
}
24982500
}
@@ -2516,6 +2518,7 @@ impl Display for QuorumType {
25162518
QuorumType::UNKNOWN => "unknown",
25172519
QuorumType::LlmqTestPlatform => "llmq_test_platform",
25182520
QuorumType::LlmqDevnetPlatform => "llmq_devnet_platform",
2521+
QuorumType::LlmqSingleNode => "llmq_1_100",
25192522
};
25202523
write!(f, "{}", value)
25212524
}
@@ -2538,6 +2541,7 @@ impl From<&str> for QuorumType {
25382541
"llmq_devnet_dip0024" => QuorumType::LlmqDevnetDip0024,
25392542
"llmq_test_platform" => QuorumType::LlmqTestPlatform,
25402543
"llmq_devnet_platform" => QuorumType::LlmqDevnetPlatform,
2544+
"llmq_1_100" => QuorumType::LlmqSingleNode,
25412545
_ => QuorumType::UNKNOWN,
25422546
}
25432547
}

0 commit comments

Comments
 (0)