feat(esplora): greatly simplify update_local_chain

This commit is contained in:
志宇
2024-01-11 21:23:52 +08:00
parent 25653d71b8
commit f05e8502e6
3 changed files with 47 additions and 145 deletions

View File

@@ -31,8 +31,6 @@ mod async_ext;
#[cfg(feature = "async")]
pub use async_ext::*;
const ASSUME_FINAL_DEPTH: u32 = 15;
fn anchor_from_status(status: &TxStatus) -> Option<ConfirmationTimeHeightAnchor> {
if let TxStatus {
block_height: Some(height),