Skip to content

Commit

Permalink
chore(chain)!: rm From<LocalChain> for BTreeMap<u32, BlockHash>
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
evanlinjin committed Apr 5, 2024
1 parent 2d1d95a commit 53942cc
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions crates/chain/src/local_chain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -246,17 +246,6 @@ pub struct LocalChain {
tip: CheckPoint,
}

// TODO: Figure out whether we can get rid of this
impl From<LocalChain> for BTreeMap<u32, BlockHash> {
fn from(value: LocalChain) -> Self {
value
.tip
.iter()
.map(|cp| (cp.height(), cp.hash()))
.collect()
}
}

impl ChainOracle for LocalChain {
type Error = Infallible;

Expand Down

0 comments on commit 53942cc

Please sign in to comment.