mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-08-06 05:24:42 -04:00
Define TX_FEE within test files only.
This commit is contained in:
parent
0006130756
commit
002e7b38c3
2 changed files with 8 additions and 4 deletions
|
@ -634,12 +634,12 @@ impl TestContext {
|
|||
let alice_submitted_cancel = btc_balance_after_swap
|
||||
== self.bob_starting_balances.btc
|
||||
- lock_tx_bitcoin_fee
|
||||
- bitcoin::Amount::from_sat(bitcoin::TX_FEE);
|
||||
- bitcoin::Amount::from_sat(bitcoind::TX_FEE);
|
||||
|
||||
let bob_submitted_cancel = btc_balance_after_swap
|
||||
== self.bob_starting_balances.btc
|
||||
- lock_tx_bitcoin_fee
|
||||
- bitcoin::Amount::from_sat(2 * bitcoin::TX_FEE);
|
||||
- bitcoin::Amount::from_sat(2 * bitcoind::TX_FEE);
|
||||
|
||||
// The cancel tx can be submitted by both Alice and Bob.
|
||||
// Since we cannot be sure who submitted it we have to assert accordingly
|
||||
|
@ -678,7 +678,7 @@ impl TestContext {
|
|||
|
||||
fn alice_redeemed_btc_balance(&self) -> bitcoin::Amount {
|
||||
self.alice_starting_balances.btc + self.btc_amount
|
||||
- bitcoin::Amount::from_sat(bitcoin::TX_FEE)
|
||||
- bitcoin::Amount::from_sat(bitcoind::TX_FEE)
|
||||
}
|
||||
|
||||
fn bob_redeemed_xmr_balance(&self) -> monero::Amount {
|
||||
|
@ -717,7 +717,7 @@ impl TestContext {
|
|||
|
||||
fn alice_punished_btc_balance(&self) -> bitcoin::Amount {
|
||||
self.alice_starting_balances.btc + self.btc_amount
|
||||
- bitcoin::Amount::from_sat(2 * bitcoin::TX_FEE)
|
||||
- bitcoin::Amount::from_sat(2 * bitcoind::TX_FEE)
|
||||
}
|
||||
|
||||
fn bob_punished_xmr_balance(&self) -> monero::Amount {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue