ACINQ / eclair-mobile

An Android wallet for the Lightning Network
Apache License 2.0
258 stars 44 forks source link

Could not send transaction: insufficient funds shows .375 btc but seed restores 0 Balance now #176

Open greaterninja opened 5 years ago

greaterninja commented 5 years ago

When I try to send a transaction. I get the following error message: Could not send transaction: insufficient funds

My Eclair Mobile wallet shows about ~ .375 btc on chain Myt mnemonic seed restores 0 btc in electrum when I select Standard Wallet > I already have a seed > (I put in my 12 words) > I check Options & select BIP39 Seed > I then select Next and choose p2sh-segwit (p2wpkh-p2sh) which has a default derivation path of m/49'/0'/0'

Using the Ian Cole tool, I do pretty much the same thing. My receive addresses which are segwit do not match that of what the seed mnemonic generates

My log file shows:

2019-04-08 02:31:04,041 INFO f.a.e.w.a.GoogleDriveBaseActivity - Google Drive signin account is null 2019-04-08 02:31:16,682 INFO f.a.e.w.a.SendPaymentActivity - initializing payment with invoice=3Kbrx24c43GZQizQiPnvWuyMmQa4of5Ayq 2019-04-08 02:31:24,857 INFO f.a.e.w.a.SendPaymentActivity - (on-chain) emptying wallet for Satoshi(37576389) msat, destination=BitcoinURI['address'='3Kbrx24c43GZQizQiPnvWuyMmQa4of5Ayq'] 2019-04-08 02:31:25,175 ERROR f.a.e.b.e.ElectrumEclairWallet - cannot broadcast tx 6575b4b0b210af63f95d118ca2f10eb84611e6df3dbcffa7f574a8c1a50e210b: Error(0, Transaction Denied. Important Electrum Security Vulnerability. Transactions can only be sent after upgrading to version 4.0.0 Official Website: https://www.goelectrum.com ) 2019-04-08 02:31:25,316 WARN f.a.e.b.e.ElectrumWallet$Data - we have not received all transactions yet, balance will not be up to date 2019-04-08 02:31:25,322 WARN f.a.e.b.e.ElectrumWallet$Data - we have not received all transactions yet, balance will not be up to date 2019-04-08 02:31:25,325 WARN f.a.eclair.wallet.App - send_all tx has failed

2nd log file: I can attach. Where did my .37 btc go?? Is it unspent or lost? I was trying to use a Bitcoin ATM and cash out.

EDIT: Please note goelectrum might be a fishing link. Do not download from there.

greaterninja commented 5 years ago

IMG_20190410_140547317

dpad85 commented 5 years ago

Hello,

Myt mnemonic seed restores 0 btc in electrum when I select Standard Wallet > I already have a seed > (I put in my 12 words) > I check Options & select BIP39 Seed > I then select Next and choose p2sh-segwit (p2wpkh-p2sh) which has a default derivation path of m/49'/0'/0'

Where did you download your electrum software from?

Using the Ian Cole tool, I do pretty much the same thing. My receive addresses which are segwit do not match that of what the seed mnemonic generates

It's not a good idea to enter your seed on any website.

greaterninja commented 5 years ago

Where did you download your electrum software from? A: https://download.electrum.org/3.3.4/Electrum-3.3.4.tar.gz

It's not a good idea to enter your seed on any website. A: tool was downloaded from https://github.com/iancoleman/bip39 and ran offline.

What version of Eclair Mobile are you running? A: Version 0.4.4 Are you connecting to a specific server, or are you using the default setting? A: I was using default setting but have changed over to electrum.acinq.co:50002 What is your current block height? You can see that in Menu > Network Info A: 571,222 Can you use the electrum.acinq.co:50002 server? You can do that in Menu > Network Info > Set custom server. Once you're fully synced you'll see your actual balance. Eclair wallet is synched up: And shows .37576389 btc I have rescanned the dbs too. Current fee rate: 35,524 sat/kw "Could not send transaction: Insufficient funds"

AdamISZ commented 5 years ago

I have the same issue. Version: 0.4.4 Current block height: in sync with my home node. Electrum server: tried changing to electrum.acinq.co:50002 but made no difference to behaviour.

Trying to send on-chain funds; all channels are closed. Always get Could not send transaction: transaction failed as the error message, have tried many times. The serialized tx is not shown.

dpad85 commented 5 years ago

Hello,

We've fixed a rare issue where UTXOs could stay locked and could not be spend. Could you download this APK: https://acinq.co/pub/eclair-mobile-0.4.4-PATCH2-MAINNET.apk, update your app, and tell me if it works better?

Thanks.

AdamISZ commented 5 years ago

@dpad85 Sorry I am rather ignorant about Android; do I just literally download that link on my phone and then, what?

dpad85 commented 5 years ago

@AdamISZ Download the link and then click on downloaded file. Android will display a confirmation dialog asking if you want to install the update. Click Install and the app will update.

AdamISZ commented 5 years ago

OK so it seems to have installed automatically, and successfully - it shows version 0.4.4-PATCH2 in the About dialog.

So, it still doesn't work, the error message hasn't changed.

The log file has a lot of messages like this: WARN f.a.e.b.e.ElectrumWallet$Data - we have not received all transactions yet, balance will not be up to date. Earlier, there is "ERROR f.a.e.b.e.ElectrumEclairWallet - cannot broadcast tx :Error(0,)".

I don't see evidence that it's still syncing in any way (again, note I have no open channels at all).

dpad85 commented 5 years ago

Can you go to Menu > Network Info, scroll down and click on Reset wallet cache? This will force the wallet to properly resync.

Also, do you mind sending me the log file (dominique@acinq.co)?

AdamISZ commented 5 years ago

@dpad85 that fixed it, thanks! I'll try to get you the log file.

AdamISZ commented 5 years ago

Sent, let me know if you don't get it

greaterninja commented 5 years ago

Can you gents add a backup wallet or mnemonic seed option like mycellium? I'd like to be able to pull my backup/export even after creating the wallet like in mycellium. Secondly, I vaguely remember two seed screens occurred. I may have written down the wrong page of seeds before my wallet actually initialized. I'm trying to derive my master ypub key and I am not getting the same master ypub that my wallet shows. Is the mnemonic encrypted with the pin or something for a password.

i.e. bip 39 words + pin for passphrase and then derives a bip 49 segwit address? I've done this sort of recovery for other wallets for 3+ years now and am still unable to find my coin or the correct master ypub address.

On another note, TY for the update. I will try it out today and get back to you. Sorry for the poor grammar, but hey it's github and I gotta run.

marmaladesandwich commented 5 years ago

Just letting you know I had the same problem on a new install (yesterday) of Eclair. Downloaded the patch and refreshed cache and it is working fine now.

dpad85 commented 5 years ago

@marmaladesandwich Hello, the patch linked above is superseded by the latest release (0.4.5) which is available both on Google Play and on our GitHub release page. It also has the "Refresh cache" feature.

marmaladesandwich commented 5 years ago

@dpad85 thanks, my app hadn't updated as I wasn't on WiFi but updated now and all working :-)