comit-network / xmr-btc-swap

Bitcoin–Monero Cross-chain Atomic Swap
GNU General Public License v3.0
658 stars 85 forks source link

Timeout Getting Available Trade Data #711

Open Cactii1 opened 3 years ago

Cactii1 commented 3 years ago

I've tried over the period of several days to get the swap tool to list available trades but always have an issue with the tool timing out.

I'm on Windows and am following Seth's guide on his web site. Here's what I get for terminal output.

C:\swap>swap list-sellers --rendezvous-point /dnsaddr/rendezvous.coblox.tech/p2p/12D3KooWQUt9DkNZxEn2R5ymJzWj15MpG6mTW84kyd8vDaRZi46o Failed to connect to rendezvous point at /dnsaddr/rendezvous.coblox.tech/p2p/12D3KooWQUt9DkNZxEn2R5ymJzWj15MpG6mTW84kyd8vDaRZi46o: Pending connection: Transport error: Ti meout has been reached +-------+--------------+--------------+--------+---------+ |||||| +========================================================+ +-------+--------------+--------------+--------+---------+

C:\swap>swap list-sellers --rendezvous-point /dnsaddr/swap.sethforprivacy.com/p2p/12D3KooWCULyZKuV9YEkb6BX8FuwajdvktSzmMg4U5ZX2uYZjHeu Failed to connect to rendezvous point at /dnsaddr/swap.sethforprivacy.com/p2p/12D3KooWCULyZKuV9YEkb6BX8FuwajdvktSzmMg4U5ZX2uYZjHeu: Pending connection: Transport error: T imeout has been reached +-------+--------------+--------------+--------+---------+ |||||| +========================================================+ +-------+--------------+--------------+--------+---------+

C:\swap>swap list-sellers --rendezvous-point /dns4/rendezvous.xmr.radio/tcp/8888/p2p/12D3KooWN3n2MioS515ek6LoUBNwFKxtG2ribRpFkVwJufSr7ro7 Connected to rendezvous point, discovering nodes in 'xmr-btc-swap-mainnet' namespace ... Discovered peer 12D3KooWQWM91DtFiSCXL5MWmQG4U1Krbw9h2HYLjSoUehzwHroK at /dns4/xmr4btc.com/tcp/9939 Discovered peer 12D3KooWQWM91DtFiSCXL5MWmQG4U1Krbw9h2HYLjSoUehzwHroK at /onion3/2rg26c6i7avrd7vez2wih3xuslutecg3x72znu4rzuufubgjlojrxsid:9939 +----------------+----------------+----------------+--------+-------------------------------------------------------------------------------------+ +=================================================================================================================================================+

+----------------+----------------+----------------+--------+-------------------------------------------------------------------------------------+

nanostos commented 3 years ago

Check your firewall. Gave me some issues on Windows at first.

Cactii1 commented 3 years ago

Same issue even with firewall completely disabled.

thomaseizinger commented 3 years ago

Can you run this in a Windows terminal?

dig +short txt _dnsaddr.rendezvous.coblox.tech
dig +short txt _dnsaddr.swap.sethforprivacy.com

You may need to install dig first.

Based on your report, I am guess that your system DNS settings somehow interfere with resolving TXT records.

The first two rendezvous addresess uses /dnsaddr which builds on top of TXT records. The third one works because it connects to the rendezvous node directly.

Can you also try to run:

swap list-sellers --rendezvous-point /dns4/xmr-btc-asb.coblox.tech/tcp/9950/p2p/12D3KooWQUt9DkNZxEn2R5ymJzWj15MpG6mTW84kyd8vDaRZi46o

and

swap list-sellers --rendezvous-point /dns4/swap.sethforprivacy.com/tcp/8888/p2p/12D3KooWCULyZKuV9YEkb6BX8FuwajdvktSzmMg4U5ZX2uYZjHeu
Cactii1 commented 3 years ago

Connected to both of those rendezvous points but they failed to list anything. Here is my console output. I'll look into installing dig.

C:\swap>swap list-sellers --rendezvous-point /dns4/xmr-btc-asb.coblox.tech/tcp/9950/p2p/12D3KooWQUt9DkNZxEn2R5ymJzWj15MpG6mTW84kyd8vDaRZi46o Connected to rendezvous point, discovering nodes in 'xmr-btc-swap-mainnet' namespace ... Discovered peer 12D3KooWAPci3x4GuWDi9P86efnR1q9a7phKnPwnwQcRNMW2HDUy at /dnsaddr/xmrswap.finance Discovered peer 12D3KooWAPci3x4GuWDi9P86efnR1q9a7phKnPwnwQcRNMW2HDUy at /onion3/wiloeuibsafahqlfrtrnhstrzua7e7bvomewbkvayrnlmagqulhctead:9939 Discovered peer 12D3KooWAPci3x4GuWDi9P86efnR1q9a7phKnPwnwQcRNMW2HDUy at /onion3/wiloeuibsafahqlfrtrnhstrzua7e7bvomewbkvayrnlmagqulhctead:9940 Discovered peer 12D3KooWCSJUBJ3DkxAdwE1rX5ejBWttexYWsgqGBTStX47rU71G at /dnsaddr/battery.commitcri.me +-------+--------------+--------------+-------------+----------------------------------------------------------------------------------------+ +============================================================================================================================================+
-------+--------------+--------------+-------------+----------------------------------------------------------------------------------------

+-------+--------------+--------------+-------------+----------------------------------------------------------------------------------------+

C:\swap>swap list-sellers --rendezvous-point /dns4/swap.sethforprivacy.com/tcp/8888/p2p/12D3KooWCULyZKuV9YEkb6BX8FuwajdvktSzmMg4U5ZX2uYZjHeu Connected to rendezvous point, discovering nodes in 'xmr-btc-swap-mainnet' namespace ... Discovered peer 12D3KooWMH71eD3gz67ikw6xkaQECMdpgunLAmqdUq4Y8bv5CpkR at /dns4/xmr.sale/tcp/9939 Discovered peer 12D3KooWKgh8QQdCPGhCjmhKP1Y2ywuvbfp6s9BNg2VAW6ymzg4u at /dnsaddr/swap.anonymousphones.com +----------------+----------------+----------------+-------------+--------------------------------------------------------------------------------------------+ +=============================================================================================================================================================+
----------------+----------------+----------------+-------------+--------------------------------------------------------------------------------------------

+----------------+----------------+----------------+-------------+--------------------------------------------------------------------------------------------+

Cactii1 commented 3 years ago

@thomaseizinger

This is the output of the dig command:

C:\BIND9.16.20.x64>dig +short txt _dnsaddr.rendezvous.coblox.tech "dnsaddr=/dns4/xmr-btc-asb.coblox.tech/tcp/9950/p2p/12D3KooWQUt9DkNZxEn2R5ymJzWj15MpG6mTW84kyd8vDaRZi46o"

C:\BIND9.16.20.x64>dig +short txt _dnsaddr.swap.sethforprivacy.com "dnsaddr=/dns4/swap.sethforprivacy.com/tcp/8888/p2p/12D3KooWCULyZKuV9YEkb6BX8FuwajdvktSzmMg4U5ZX2uYZjHeu" "dnsaddr=/onion3/yshgpjmwxcgsj7rxjdwruqyimlecao7esabh3tunjzrs5u5aoseozzyd.onion:8888/p2p/12D3KooWCULyZKuV9YEkb6BX8FuwajdvktSzmMg4U5ZX2uYZjHeu"

thomaseizinger commented 3 years ago

Can you run with --debug and post the output of that?

Cactii1 commented 3 years ago

@thomaseizinger sure thing, it seems to give the same output though - not much extra.

C:\swap>swap --debug list-sellers --rendezvous-point /dns4/xmr-btc-asb.coblox.tech/tcp/9950/p2p/12D3KooWQUt9DkNZxEn2R5ymJzWj15MpG6mTW84kyd8vDaRZi46o Reading in seed from C:\Users\J\AppData\Roaming\xmr-btc-swap\data\cli\mainnet\seed.pem Connected to rendezvous point, discovering nodes in 'xmr-btc-swap-mainnet' namespace ... Discovered peer 12D3KooWAPci3x4GuWDi9P86efnR1q9a7phKnPwnwQcRNMW2HDUy at /dnsaddr/xmrswap.finance Discovered peer 12D3KooWAPci3x4GuWDi9P86efnR1q9a7phKnPwnwQcRNMW2HDUy at /onion3/wiloeuibsafahqlfrtrnhstrzua7e7bvomewbkvayrnlmagqulhctead:9939 Discovered peer 12D3KooWAPci3x4GuWDi9P86efnR1q9a7phKnPwnwQcRNMW2HDUy at /onion3/wiloeuibsafahqlfrtrnhstrzua7e7bvomewbkvayrnlmagqulhctead:9940 Discovered peer 12D3KooWCSJUBJ3DkxAdwE1rX5ejBWttexYWsgqGBTStX47rU71G at /dnsaddr/battery.commitcri.me Failed to connect to peer at /dnsaddr/xmrswap.finance/p2p/12D3KooWAPci3x4GuWDi9P86efnR1q9a7phKnPwnwQcRNMW2HDUy: Pending connection: Transport error: Timeout has been reac hed Failed to connect to peer at /dnsaddr/battery.commitcri.me/p2p/12D3KooWCSJUBJ3DkxAdwE1rX5ejBWttexYWsgqGBTStX47rU71G: Pending connection: Transport error: Timeout has been reached +-------+--------------+--------------+-------------+----------------------------------------------------------------------------------------+ +============================================================================================================================================+
-------+--------------+--------------+-------------+----------------------------------------------------------------------------------------

+-------+--------------+--------------+-------------+----------------------------------------------------------------------------------------+

C:\swap>swap --debug list-sellers --rendezvous-point /dns4/swap.sethforprivacy.com/tcp/8888/p2p/12D3KooWCULyZKuV9YEkb6BX8FuwajdvktSzmMg4U5ZX2uYZjHeu Reading in seed from C:\Users\J\AppData\Roaming\xmr-btc-swap\data\cli\mainnet\seed.pem Connected to rendezvous point, discovering nodes in 'xmr-btc-swap-mainnet' namespace ... Discovered peer 12D3KooWMH71eD3gz67ikw6xkaQECMdpgunLAmqdUq4Y8bv5CpkR at /dns4/xmr.sale/tcp/9939 Discovered peer 12D3KooWKgh8QQdCPGhCjmhKP1Y2ywuvbfp6s9BNg2VAW6ymzg4u at /dnsaddr/swap.anonymousphones.com Failed to connect to peer at /dnsaddr/swap.anonymousphones.com/p2p/12D3KooWKgh8QQdCPGhCjmhKP1Y2ywuvbfp6s9BNg2VAW6ymzg4u: Pending connection: Transport error: Timeout has been reached +----------------+----------------+----------------+-------------+--------------------------------------------------------------------------------------------+ +=============================================================================================================================================================+
----------------+----------------+----------------+-------------+--------------------------------------------------------------------------------------------

+----------------+----------------+----------------+-------------+--------------------------------------------------------------------------------------------+

Cactii1 commented 3 years ago

Issue still exists with version 0.8.3