Configuration for RPC urls and Bitcoin wallet name

This commit is contained in:
Daniel Karzel 2021-01-27 13:33:32 +11:00
parent 9eae0db9ac
commit 802dc61e7e
18 changed files with 779 additions and 442 deletions

View file

@ -6,7 +6,7 @@ use crate::{
GetBlockHeight, GetNetwork, GetRawTransaction, Transaction, TransactionBlockHeight,
TxCancel, Txid, WatchForRawTransaction,
},
config::Config,
config::ExecutionParams,
monero,
monero::{monero_private_key, TransferProof},
protocol::{alice, bob, bob::EncryptedSignature, SwapAmounts},
@ -556,7 +556,11 @@ impl State4 {
.await
}
pub async fn refund_btc<W>(&self, bitcoin_wallet: &W, config: Config) -> Result<()>
pub async fn refund_btc<W>(
&self,
bitcoin_wallet: &W,
execution_params: ExecutionParams,
) -> Result<()>
where
W: bitcoin::BroadcastSignedTransaction + bitcoin::WaitForTransactionFinality,
{
@ -581,7 +585,7 @@ impl State4 {
.await?;
bitcoin_wallet
.wait_for_transaction_finality(txid, config)
.wait_for_transaction_finality(txid, execution_params)
.await?;
Ok(())