We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 23c88d3 commit d8cf1e6Copy full SHA for d8cf1e6
stacks-signer/src/v0/signer.rs
@@ -140,6 +140,12 @@ impl<const N: usize> std::fmt::Debug for RecentlyProcessedBlocks<N> {
140
}
141
142
143
+impl<const N: usize> Default for RecentlyProcessedBlocks<N> {
144
+ fn default() -> Self {
145
+ Self::new()
146
+ }
147
+}
148
+
149
impl<const N: usize> RecentlyProcessedBlocks<N> {
150
/// Construct a new recently processed blocks cache
151
pub fn new() -> Self {
@@ -148,6 +154,7 @@ impl<const N: usize> RecentlyProcessedBlocks<N> {
154
write_head: 0,
155
156
157
158
/// Is `block` known to have been processed by our stacks-node?
152
159
pub fn is_processed(&self, block: &StacksBlockId) -> bool {
153
160
self.blocks.contains(block)
0 commit comments