ElementsProject / peerswap

MIT License
110 stars 40 forks source link

grpc error and payment claims #332

Open EricPgh opened 5 days ago

EricPgh commented 5 days ago

I'm having an issue on a swapin. The state of the active swap on my LBTC node shows: "state": "State_SwapInSender_AwaitClaimPayment"

The state of my counterpart's lightning node shows: "state": "State_ClaimedPreimage"

The opening tx has confirmed on mempool for thousands of confirmations. The decoded LN invoice shows my node as destination, I'm running LND. The peerswapd terminal is showing a grpc error constantly since the swapin: [DEBUG] [grpc_conn]: grpc_retry attempt: ####, backoff for 30s, with an increasing number of retries ####.

The pscli is able to connect to the LND RPC. It shows available peer channels and their current channel balances. I don't currently believe the RPC pathway to be at fault. The LND node has been operational for months. The LBTC node is recent but has handled receives from Aqua without a problem.

grubles commented 5 days ago

Hello, could you share what LND version and peerswap commit you are running?

EricPgh commented 5 days ago

Commit 30c0dfa86943679b6997e8991ef2d5dbc5976bb3 lnd version 0.18.0-beta.rc1

Edit: I wanted to offer my conf file if it helps. I got most from the github docs. bitcoinswaps=False lnd.tlscertpath=mypath lnd.macaroonpath=mypath lnd.host=127.0.0.1:10009 (I added this line this morning to no avail) elementsd.rpcuser=me elementsd.rpcpass=donthackme elementsd.rpchost=http://127.0.0.1 elementsd.rpcport=7041 elementsd.rpcwallet=peerswap

EricPgh commented 3 days ago

I've checked the preimage against the payment hash on the bolt11 invoice. They match. My lncli lookupinvoice shows the payment as settled. Should I mention I'm not using the docker? When I restart peerswapd it's adding a new payment watcher for the invoice, looking for 'claim' and immediately logs a grpc_conn problem. LND shows an RPC server on 10009 but a gRPC proxy on 8080. Does peerswap use these differently? It gets most of LND data from RPC but still uses gRPC?