Skip to content

Commit 38cea28

Browse files
committed
fixup! feat: support chain sourcing via REST interface
1 parent bacd68f commit 38cea28

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

src/chain/bitcoind.rs

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -611,23 +611,6 @@ impl BlockSource for BitcoindClient {
611611
}
612612
}
613613

614-
#[derive(Debug, Clone)]
615-
pub(crate) struct MempoolEntry {
616-
/// The transaction id
617-
txid: Txid,
618-
/// Local time transaction entered pool in seconds since 1 Jan 1970 GMT
619-
time: u64,
620-
/// Block height when transaction entered pool
621-
height: u32,
622-
}
623-
624-
#[derive(Debug, Clone, Serialize)]
625-
#[serde(rename_all = "UPPERCASE")]
626-
pub(crate) enum FeeRateEstimationMode {
627-
Economical,
628-
Conservative,
629-
}
630-
631614
pub(crate) struct FeeResponse(pub FeeRate);
632615

633616
impl TryInto<FeeResponse> for JsonResponse {
@@ -769,6 +752,23 @@ impl TryInto<GetMempoolEntryResponse> for JsonResponse {
769752
}
770753
}
771754

755+
#[derive(Debug, Clone)]
756+
pub(crate) struct MempoolEntry {
757+
/// The transaction id
758+
txid: Txid,
759+
/// Local time transaction entered pool in seconds since 1 Jan 1970 GMT
760+
time: u64,
761+
/// Block height when transaction entered pool
762+
height: u32,
763+
}
764+
765+
#[derive(Debug, Clone, Serialize)]
766+
#[serde(rename_all = "UPPERCASE")]
767+
pub(crate) enum FeeRateEstimationMode {
768+
Economical,
769+
Conservative,
770+
}
771+
772772
const MAX_HEADER_CACHE_ENTRIES: usize = 100;
773773

774774
pub(crate) struct BoundedHeaderCache {

0 commit comments

Comments
 (0)