start seednode with monerod address

This commit is contained in:
woodser 2022-12-23 13:06:13 +00:00
parent b2e315963f
commit 7e76e83884
2 changed files with 2 additions and 1 deletions

View File

@ -73,6 +73,7 @@ services:
"--useDevPrivilegeKeys=true",
"--nodePort=2002",
"--appName=haveno-XMR_LOCAL_Seed1_2002",
"--xmrNode=http://localhost:28081"
]
network_mode: "host"
depends_on:
@ -88,6 +89,7 @@ services:
"--useDevPrivilegeKeys=true",
"--nodePort=3002",
"--appName=haveno-XMR_LOCAL_Seed2_3002",
"--xmrNode=http://localhost:28081"
]
network_mode: "host"
depends_on:

View File

@ -2062,7 +2062,6 @@ async function executeTrade(ctx?: TradeContext): Promise<string> {
if (!ctx.concurrentTrades) {
const buyerBalancesAfter = await ctx.buyer!.getBalances();
const sellerBalancesAfter = await ctx.seller.getBalances();
// TODO: getBalance() = available + pending + reserved offers? would simplify this equation
const buyerFee = BigInt(buyerBalancesBefore.getBalance()) + BigInt(buyerBalancesBefore.getReservedOfferBalance()) + BigInt(offer!.getAmount()) - (BigInt(buyerBalancesAfter.getBalance()) + BigInt(buyerBalancesAfter.getReservedOfferBalance())); // buyer fee = total balance before + offer amount - total balance after
const sellerFee = BigInt(sellerBalancesBefore.getBalance()) + BigInt(sellerBalancesBefore.getReservedOfferBalance()) - BigInt(offer!.getAmount()) - (BigInt(sellerBalancesAfter.getBalance()) + BigInt(sellerBalancesAfter.getReservedOfferBalance())); // seller fee = total balance before - offer amount - total balance after
expect(buyerFee).toBeLessThanOrEqual(TestConfig.maxFee);