We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
CheckPoint::insert
1 parent 2970b83 commit e6aeaeaCopy full SHA for e6aeaea
crates/core/src/checkpoint.rs
@@ -171,6 +171,10 @@ impl CheckPoint {
171
/// it. If the height already existed and has a conflicting block hash then it will be purged
172
/// along with all block followin it. The returned chain will have a tip of the `block_id`
173
/// passed in. Of course, if the `block_id` was already present then this just returns `self`.
174
+ ///
175
+ /// # Panics
176
177
+ /// This panics if called with a genesis block that differs from that of `self`.
178
#[must_use]
179
pub fn insert(self, block_id: BlockId) -> Self {
180
let mut cp = self.clone();
0 commit comments