diff --git a/xmr-btc/src/alice.rs b/xmr-btc/src/alice.rs index 9667c18f..3bb7a94d 100644 --- a/xmr-btc/src/alice.rs +++ b/xmr-btc/src/alice.rs @@ -58,7 +58,7 @@ pub trait ReceiveBitcoinRedeemEncsig { /// /// This is called post handshake, after all the keys, addresses and most of the /// signatures have been exchanged. -pub fn action_generator_alice( +pub fn action_generator( mut network: N, bitcoin_client: Arc, // TODO: Replace this with a new, slimmer struct? diff --git a/xmr-btc/tests/on_chain.rs b/xmr-btc/tests/on_chain.rs index 11aa4ebc..6ef6e28c 100644 --- a/xmr-btc/tests/on_chain.rs +++ b/xmr-btc/tests/on_chain.rs @@ -19,7 +19,7 @@ use rand::rngs::OsRng; use testcontainers::clients::Cli; use tracing::info; use xmr_btc::{ - alice::{self, action_generator_alice, ReceiveBitcoinRedeemEncsig}, + alice::{self, ReceiveBitcoinRedeemEncsig}, bitcoin::{BroadcastSignedTransaction, EncryptedSignature, SignTxLock}, bob::{self, ReceiveTransferProof}, monero::{CreateWalletForOutput, Transfer, TransferProof}, @@ -87,7 +87,7 @@ async fn swap_as_alice( behaviour: AliceBehaviour, state: alice::State3, ) -> Result<()> { - let mut action_generator = action_generator_alice(network, bitcoin_wallet.clone(), state); + let mut action_generator = alice::action_generator(network, bitcoin_wallet.clone(), state); loop { let state = action_generator.async_resume().await;