mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2024-10-01 01:45:40 -04:00
Rename action_generator_alice to action_generator
This commit is contained in:
parent
e84c56378c
commit
c86a82b315
@ -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<N, B>(
|
||||
pub fn action_generator<N, B>(
|
||||
mut network: N,
|
||||
bitcoin_client: Arc<B>,
|
||||
// TODO: Replace this with a new, slimmer struct?
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user