diff --git a/src/chain.rs b/src/chain.rs
index 230687d29b..34d3c128ca 100644
--- a/src/chain.rs
+++ b/src/chain.rs
@@ -52,7 +52,7 @@ impl Chain {
Self::Mainnet => 779832,
Self::Regtest => 0,
Self::Signet => 0,
- Self::Testnet => 0,
+ Self::Testnet => 2413343,
}
}
diff --git a/src/index.rs b/src/index.rs
index 086ec34207..29d00ed454 100644
--- a/src/index.rs
+++ b/src/index.rs
@@ -425,8 +425,8 @@ impl Index {
})
}
- pub(crate) fn get_chain_network(&self) -> Network {
- self.options.chain().network()
+ pub(crate) fn get_chain(&self) -> Chain {
+ self.options.chain()
}
#[cfg(test)]
diff --git a/src/index/extend.rs b/src/index/extend.rs
index 9c5779d149..105ce474fc 100644
--- a/src/index/extend.rs
+++ b/src/index/extend.rs
@@ -43,10 +43,10 @@ impl Index {
txid: Txid,
rtx: &Rtx,
client: &Client,
- network: Network,
+ chain: Chain,
index_transactions: bool,
) -> Result