Skip to content
This repository has been archived by the owner on Jan 6, 2025. It is now read-only.

Commit

Permalink
Revert dynmaic Monero daemon finder
Browse files Browse the repository at this point in the history
This is now handled by the CLI

comit-network/xmr-btc-swap#1441
  • Loading branch information
binarybaron committed Sep 24, 2023
1 parent a7f8f4c commit 8ca89d9
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 98 deletions.
17 changes: 12 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,6 @@
"electrum-cash": "^2.0.10",
"humanize-duration": "^3.27.2",
"multiaddr": "^10.0.1",
"node-fetch": "^2.7.0",
"notistack": "^3.0.1",
"p-queue": "^6.6.2",
"path-browserify": "^1.0.1",
Expand Down
85 changes: 0 additions & 85 deletions src/main/blockchain/monero.ts

This file was deleted.

7 changes: 0 additions & 7 deletions src/main/cli/commands/buyXmrCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import spawnBalanceCheck from './balanceCommand';
import logger from '../../../utils/logger';
import { providerToConcatenatedMultiAddr } from '../../../utils/multiAddrUtils';
import { getCliLogStdOut } from '../dirs';
import { findMoneroNode } from '../../blockchain/monero';

async function onCliLog(logs: CliLog[]) {
store.dispatch(swapAddLog(logs));
Expand Down Expand Up @@ -42,8 +41,6 @@ export async function spawnBuyXmr(
const concatenatedMultiAddr = providerToConcatenatedMultiAddr(provider);

try {
const moneroDaemonAddress = await findMoneroNode();

store.dispatch(
swapInitiate({
provider,
Expand All @@ -58,7 +55,6 @@ export async function spawnBuyXmr(
'change-address': refundAddress,
'receive-address': redeemAddress,
seller: concatenatedMultiAddr,
'monero-daemon-address': moneroDaemonAddress,
},
onCliLog,
onProcExit,
Expand Down Expand Up @@ -92,8 +88,6 @@ export async function resumeBuyXmr(swapId: string) {
.history.find((h) => h.swapId === swapId)?.provider;

if (provider) {
const moneroDaemonAddress = await findMoneroNode();

store.dispatch(
swapInitiate({
provider,
Expand All @@ -107,7 +101,6 @@ export async function resumeBuyXmr(swapId: string) {
'resume',
{
'swap-id': swapId,
'monero-daemon-address': moneroDaemonAddress,
},
onCliLog,
onProcExit,
Expand Down

0 comments on commit 8ca89d9

Please sign in to comment.