Skip to content

Commit 1d600bd

Browse files
committed
fix(cardano-blockchain-types): add Fork increment function
Signed-off-by: bkioshn <[email protected]>
1 parent 8ddebf5 commit 1d600bd

File tree

1 file changed

+5
-0
lines changed
  • rust/cardano-blockchain-types/src

1 file changed

+5
-0
lines changed

rust/cardano-blockchain-types/src/fork.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ impl Fork {
2626
let value: u64 = from_saturating(value);
2727
Self(value)
2828
}
29+
30+
/// increment the fork count.
31+
pub fn incr(&mut self) {
32+
self.0 += 1;
33+
}
2934
}
3035

3136
impl From<u64> for Fork {

0 commit comments

Comments
 (0)