Skip to content

Commit 71e3403

Browse files
committed
tipset resolver
1 parent 99d76eb commit 71e3403

5 files changed

Lines changed: 775 additions & 1052 deletions

File tree

src/rpc/methods/chain.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1104,14 +1104,6 @@ impl ChainGetTipSetV2 {
11041104
}
11051105
}
11061106

1107-
pub fn get_ec_safe_tipset(ctx: &Ctx<impl Blockstore>) -> anyhow::Result<Tipset> {
1108-
let head = ctx.chain_store().heaviest_tipset();
1109-
let safe_height = (head.epoch() - SAFE_HEIGHT_DISTANCE).max(0);
1110-
Ok(ctx
1111-
.chain_index()
1112-
.tipset_by_height(safe_height, head, ResolveNullTipset::TakeOlder)?)
1113-
}
1114-
11151107
pub async fn get_latest_finalized_tipset(
11161108
ctx: &Ctx<impl Blockstore + Send + Sync + 'static>,
11171109
) -> anyhow::Result<Tipset> {

0 commit comments

Comments
 (0)