bitcoin-s / bitcoin-s

Bitcoin Implementation in Scala
https://bitcoin-s.org
MIT License
353 stars 86 forks source link

sweep UTXO was not broadcasted #4355

Open jesushuttlesworth opened 2 years ago

jesushuttlesworth commented 2 years ago

I attempted to sweep my funds, the wallet shows a zero balance as if the funds were successfully swept and gave me a transaction ID but it can not be found on a block explorer. At the time of sweep the funds were "unconfirmed" from a prior DLC but that particular DLC in fact had thousands of confirmations. Headers may have not been fully synched when initiating the sweep. I'm using the GUI.

2022-05-28T17:31:39UTC INFO [BitcoinSServerMain] Starting neutrino node sync, it took=11137ms 2022-05-28T17:31:40UTC INFO [NeutrinoNode] Starting sync node, height=738305 hash=00000000000000000003d9bf7bca349957e12ef394fa0c9631b10097c2d2141e 2022-05-28T17:31:40UTC INFO [BitcoinSServerMain] Done starting Main! It took 11910ms 2022-05-28T17:31:40UTC INFO [BitcoinSServerMain] Done start BitcoinSServerMain, it took=18144ms 2022-05-28T17:31:41UTC INFO [DataMessageHandler] Received headers message with 0 headers 2022-05-28T17:42:48UTC WARN [HikariPool] bitcoin-s-chain-db - Thread starvation or clock leap detected (housekeeper delta=5m23s181ms). 2022-05-28T17:42:48UTC WARN [HikariPool] bitcoin-s-wallet-db - Thread starvation or clock leap detected (housekeeper delta=5m23s187ms). 2022-05-28T17:42:51UTC WARN [HikariPool] bitcoin-s.dlc.db - Thread starvation or clock leap detected (housekeeper delta=5m23s191ms). 2022-05-28T17:42:53UTC WARN [HikariPool] bitcoin-s-node-db - Thread starvation or clock leap detected (housekeeper delta=5m23s190ms). 2022-05-28T17:47:39UTC WARN [HikariPool] bitcoin-s-chain-db - Thread starvation or clock leap detected (housekeeper delta=1m51s12ms). 2022-05-28T17:47:39UTC WARN [HikariPool] bitcoin-s-wallet-db - Thread starvation or clock leap detected (housekeeper delta=1m51s17ms). 2022-05-28T17:47:42UTC WARN [HikariPool] bitcoin-s.dlc.db - Thread starvation or clock leap detected (housekeeper delta=1m51s18ms). 2022-05-28T17:47:44UTC WARN [HikariPool] bitcoin-s-node-db - Thread starvation or clock leap detected (housekeeper delta=1m51s15ms). 2022-05-28T17:49:44UTC INFO [DLCWallet$DLCWalletImpl] Sweeping wallet balance=73741 sats to address=bc1qt9c777x62wfpwv5qxxqrun30dk98w8sgzr76kgtxjrzj00f7mxsqefgpvw 2022-05-28T17:49:44UTC INFO [DLCWallet$DLCWalletImpl] Sending to bc1qt9c777x62wfpwv5qxxqrun30dk98w8sgzr76kgtxjrzj00f7mxsqefgpvw at feerate 1 sats/vbyte 2022-05-28T17:49:44UTC INFO [DLCWallet$DLCWalletImpl] Processing TX from our wallet, transaction=f22cf254e7485094acaf3eea7dd4bbbfd4dc609ccbe28f7812345b858f5ee525 with blockHash=None 2022-05-28T17:49:44UTC INFO [DLCWallet$DLCWalletImpl] Finished processing 1 spent outputs, it took=64ms 2022-05-28T17:49:44UTC INFO [DLCWallet$DLCWalletImpl] Processing of internal transaction=f22cf254e7485094acaf3eea7dd4bbbfd4dc609ccbe28f7812345b858f5ee525 resulted in changeOutputs=0 and spentUTXOs=1 2022-05-28T17:49:44UTC INFO [NeutrinoNode] Sending out tx message for tx=Vector(f22cf254e7485094acaf3eea7dd4bbbfd4dc609ccbe28f7812345b858f5ee525) 2022-05-28T17:49:44UTC INFO [DLCWallet$DLCWalletImpl] Finished processing 1 spent outputs, it took=29ms 2022-05-28T17:50:56UTC INFO [P2PClientActor] We've been disconnected by Peer(neutrino.suredbits.com:8333) command=ErrorClosed(Operation timed out) state=Normal 2022-05-28T17:50:56UTC INFO [P2PClientActor] Attempting to reconnect to peer=Peer(neutrino.suredbits.com:8333), previous state=Disconnected 2022-05-28T17:50:56UTC INFO [P2PClientActor] reconnecting to neutrino.suredbits.com/:8333 2022-05-28T17:50:56UTC INFO [P2PClientActor] connecting to neutrino.suredbits.com/:8333 2022-05-28T17:50:57UTC INFO [P2PClientActor] connected to neutrino.suredbits.com/35.163.36.246:8333 2022-05-28T17:50:57UTC INFO [PeerMessageReceiver] Connection established with peer=Peer(neutrino.suredbits.com:8333) 2022-05-28T17:51:03UTC INFO [NeutrinoNode] Starting sync node, height=738305 hash=00000000000000000003d9bf7bca349957e12ef394fa0c9631b10097c2d2141e 2022-05-28T17:51:03UTC INFO [DataMessageHandler] Received headers message with 1 headers 2022-05-28T17:51:03UTC INFO [DataMessageHandler] Starting to fetch filter headers in data message handler 2022-05-28T17:51:04UTC INFO [DataMessageHandler] Done syncing filter headers, beginning to sync filters in datamessagehandler 2022-05-28T17:51:04UTC INFO [PeerMessageSender] Requesting compact filters from FilterSyncMarker(startHeight=738306, stopBlockHash=00000000000000000008c5cf6174e2b901741c557ce90e8bbcae2c5cfeea84a0) 2022-05-28T17:51:05UTC INFO [DataMessageHandler] We are synced

Christewart commented 2 years ago

Version [v1.9.0]

Hi Jesse, This is a bug in older versions of the wallet.

  1. could you update your release to the mac release on this link? https://github.com/bitcoin-s/bitcoin-s/actions/runs/2396651310
  2. After booting up the GUI, can you click Advanced > Debug operations > Rescan
  3. Let the rescan run.
  4. Try sweeping the wallet again after the rescan completes.
jesushuttlesworth commented 2 years ago

Thanks for the quick response.... I downloaded and installed v 1.9.1 but upon launching the wallet I am receiving this error.

Operation failed. exception class org.flywaydb.core.api.flywayexception No database found to handle jdbc:sqlite:/Users/Jesse/.bitcoin-s/mainnet/chaindb.sqlite

I have deleted the full contents of the .bitcoin-s folder and replaced with a fresh install still not working.

Christewart commented 2 years ago

I have deleted the full contents of the .bitcoin-s folder and replaced with a fresh install still not working.

Did you keep the mnemonic seed found in $HOME/.bitcoin-s/seeds ? If you deleted that file, I cannot help you. The funds are lost forever.