Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/async.rs
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ impl<S: Sleeper> AsyncClient<S> {
/// sorted with newest first. Returns 25 transactions per page.
/// More can be requested by specifying the last txid seen by the previous
/// query.
pub async fn scripthash_txs(
pub async fn get_scripthash_txs(
&self,
script: &Script,
last_seen: Option<Txid>,
Expand Down
2 changes: 1 addition & 1 deletion src/blocking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ impl BlockingClient {
/// sorted with newest first. Returns 25 transactions per page.
/// More can be requested by specifying the last txid seen by the previous
/// query.
pub fn scripthash_txs(
pub fn get_scripthash_txs(
&self,
script: &Script,
last_seen: Option<Txid>,
Expand Down
6 changes: 3 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -954,7 +954,7 @@ mod test {

#[cfg(all(feature = "blocking", feature = "async"))]
#[tokio::test]
async fn test_scripthash_txs() {
async fn test_get_scripthash_txs() {
let env = TestEnv::new();
let (blocking_client, async_client) = env.setup_clients();

Expand All @@ -976,13 +976,13 @@ mod test {
.tx;
let script = &expected_tx.output[0].script_pubkey;
let scripthash_txs_txids: Vec<Txid> = blocking_client
.scripthash_txs(script, None)
.get_scripthash_txs(script, None)
.unwrap()
.iter()
.map(|tx| tx.txid)
.collect();
let scripthash_txs_txids_async: Vec<Txid> = async_client
.scripthash_txs(script, None)
.get_scripthash_txs(script, None)
.await
.unwrap()
.iter()
Expand Down
Loading