bitcoin-s / bitcoin-s-ts

A typescript library for using bitcoin-s
MIT License
14 stars 9 forks source link

Dialogs don't display when DLC is broadcast #142

Open Christewart opened 2 years ago

Christewart commented 2 years ago

Unfortunately downloading the proxy log doesn't work, see #141

Screenshot from 2022-04-19 09-29-24

What was seen on the backend

2022-04-19T14:29:03UTC INFO [DLCClient] connected to kqkv4oihiayhbbekc27bn7fafbhwaxkus47xbclt5yl4q4ovl6ziynid.onion/<unresolved>:2862 via SOCKS5 proxy /10.21.21.11:9050
2022-04-19T14:29:03UTC INFO [DLCWallet$DLCWalletImpl] Creating DLC Accept for tempContractId 6740e768fea7e87f4dfa3dee358fe5698acb472dfc3a8bef6ebb734e21d92abf
2022-04-19T14:29:03UTC INFO [DLCWallet$DLCWalletImpl] Attempting to fund a tx for amt=10000 sats with feeRate=3 sats/vbyte
2022-04-19T14:29:03UTC INFO [DLCWallet$DLCWalletImpl] Reserving utxos=Vector(TransactionOutPoint(282855b97e5d2878da06f88c439979cf3a33239e7342868dd98398fece01b936:1))
2022-04-19T14:29:03UTC INFO [DLCWallet$DLCWalletImpl] Generated new address=bc1qgxgr9cqsa8jgnlntltalswg3e68kh23kr82zpv path=m/84'/0'/0'/1/318 isChange=true
2022-04-19T14:29:03UTC INFO [DLCWallet$DLCWalletImpl] Spending UTXOs: Vector(TransactionOutPoint(282855b97e5d2878da06f88c439979cf3a33239e7342868dd98398fece01b936:1) state=ConfirmedReceived)
2022-04-19T14:29:03UTC INFO [DLCWallet$DLCWalletImpl] UTXO 0 details: TransactionOutput(96890 sats,wpkh(a82d25961b4f6896f28ca23fd888d9a7705e9a59))
2022-04-19T14:29:03UTC INFO [DLCWallet$DLCWalletImpl] Initializing DLC from received offer with tempContractId 6740e768fea7e87f4dfa3dee358fe5698acb472dfc3a8bef6ebb734e21d92abf
2022-04-19T14:29:03UTC INFO [DLCWallet$DLCWalletImpl] Creating CET Sigs for b11e47e569884baffbaf4a87520a3a3c336b30a549eb42b6090a419803e74acb
2022-04-19T14:29:03UTC INFO [DLCWallet$DLCWalletImpl] Created DLCAccept for tempContractId 6740e768fea7e87f4dfa3dee358fe5698acb472dfc3a8bef6ebb734e21d92abf with contract Id b11e47e569884baffbaf4a87520a3a3c336b30a549eb42b6090a419803e74acb
2022-04-19T14:29:05UTC INFO [DLCDataHandler] Received LnMessage DLCSignTLV
2022-04-19T14:29:05UTC INFO [DLCWallet$DLCWalletImpl] Verifying CET Signatures for contract b11e47e569884baffbaf4a87520a3a3c336b30a549eb42b6090a419803e74acb
2022-04-19T14:29:05UTC INFO [DLCWallet$DLCWalletImpl] CET Signatures are valid for contract b11e47e569884baffbaf4a87520a3a3c336b30a549eb42b6090a419803e74acb
2022-04-19T14:29:05UTC INFO [DLCWallet$DLCWalletImpl] Verifying 1 funding sigs for contract b11e47e569884baffbaf4a87520a3a3c336b30a549eb42b6090a419803e74acb
2022-04-19T14:29:05UTC INFO [DLCWallet$DLCWalletImpl] DLC b11e47e569884baffbaf4a87520a3a3c336b30a549eb42b6090a419803e74acb sigs are verified and stored, ready to broadcast
2022-04-19T14:29:05UTC INFO [DLCWallet$DLCWalletImpl] broadcasting ByteVector(32 bytes, 0xb11e47e569884baffbaf4a87520a3a3c336b30a549eb42b6090a419803e74acb)
2022-04-19T14:29:05UTC INFO [DLCWallet$DLCWalletImpl] Created funding transaction d65ea08d972fa3d0b65577696785df55b9a07788b5d1c95967b132d6223e6074 for contract b11e47e569884baffbaf4a87520a3a3c336b30a549eb42b6090a419803e74acb
2022-04-19T14:29:05UTC INFO [DLCWallet$DLCWalletImpl] Broadcasting funding transaction d65ea08d972fa3d0b65577696785df55b9a07788b5d1c95967b132d6223e6074 for contract b11e47e569884baffbaf4a87520a3a3c336b30a549eb42b6090a419803e74acb
2022-04-19T14:29:05UTC INFO [DLCWallet$DLCWalletImpl] Successfully inserted UTXO d65ea08d972fa3d0b65577696785df55b9a07788b5d1c95967b132d6223e6074:1 amt=86257 sats into DB
2022-04-19T14:29:05UTC INFO [DLCWallet$DLCWalletImpl] Processing received utxos in tx d65ea08d972fa3d0b65577696785df55b9a07788b5d1c95967b132d6223e6074 for 1 DLC(s)
2022-04-19T14:29:05UTC INFO [DLCWallet$DLCWalletImpl] Finished processing 1 received outputs, it took=118ms
2022-04-19T14:29:05UTC INFO [DLCWallet$DLCWalletImpl] 1 txos are now confirmed!
2022-04-19T14:29:05UTC INFO [DLCWallet$DLCWalletImpl] Finished processing 1 spent outputs, it took=57ms
2022-04-19T14:29:05UTC INFO [DLCWallet$DLCWalletImpl] Finished processing of transaction=d65ea08d972fa3d0b65577696785df55b9a07788b5d1c95967b132d6223e6074. Relevant incomingTXOs=1, outgoingTXOs=1
2022-04-19T14:29:05UTC INFO [DLCWallet$DLCWalletImpl] Done broadcast tx ByteVector(32 bytes, 0xb11e47e569884baffbaf4a87520a3a3c336b30a549eb42b6090a419803e74acb)
2022-04-19T14:29:14UTC INFO [DLCWallet$DLCWalletImpl] Processing received utxos in tx d65ea08d972fa3d0b65577696785df55b9a07788b5d1c95967b132d6223e6074 for 1 DLC(s)
2022-04-19T14:29:14UTC INFO [DLCWallet$DLCWalletImpl] Finished processing 1 received outputs, it took=55ms
2022-04-19T14:29:14UTC INFO [DLCWallet$DLCWalletImpl] 1 txos are now confirmed!
2022-04-19T14:29:14UTC INFO [DLCWallet$DLCWalletImpl] Finished processing 1 spent outputs, it took=45ms
2022-04-19T14:29:14UTC INFO [DLCWallet$DLCWalletImpl] Finished processing of transaction=d65ea08d972fa3d0b65577696785df55b9a07788b5d1c95967b132d6223e6074. Relevant incomingTXOs=1, outgoingTXOs=1
user411 commented 2 years ago

Would appreciate environment specifics (Umbrel or local dev env) and platform with pictures like this.

That picture looks like an error was involved in communicating with the backend (from the "[object..." in the message), but I see green logo which implies the backend was online.

I have yet to see the overlay issue that this picture seems to show, but that is what Roman was reporting when switching to and from a browser tab with the wallet running in it.

Christewart commented 2 years ago

Would appreciate environment specifics (Umbrel or local dev env) and platform with pictures like this.

This was on umbrel at commit 19b727288be9fa8832fcd301742058b1920e787d

I have yet to see the overlay issue that this picture seems to show, but that is what Roman was reporting when switching to and from a browser tab with the wallet running in it.

I don't believe I did any tab switching. I believe I had just accepted an offer in my inbox, switched to the contracts tab and was waiting for the UI notification to happen to indicate the tx had been broadcast so i could link my counterparty to that tx on mempool.space