Skip to content

Commit 53942cc

Browse files
committed
chore(chain)!: rm From<LocalChain> for BTreeMap<u32, BlockHash>
I don't think this was ever used. The only possible usecase I can think of is for tests, but I don't think that is a strong enough incentive for us to keep this.
1 parent 2d1d95a commit 53942cc

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

crates/chain/src/local_chain.rs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -246,17 +246,6 @@ pub struct LocalChain {
246246
tip: CheckPoint,
247247
}
248248

249-
// TODO: Figure out whether we can get rid of this
250-
impl From<LocalChain> for BTreeMap<u32, BlockHash> {
251-
fn from(value: LocalChain) -> Self {
252-
value
253-
.tip
254-
.iter()
255-
.map(|cp| (cp.height(), cp.hash()))
256-
.collect()
257-
}
258-
}
259-
260249
impl ChainOracle for LocalChain {
261250
type Error = Infallible;
262251

0 commit comments

Comments
 (0)