Bitcoin Forum

Bitcoin => Electrum => Topic started by: bizz on November 23, 2013, 03:42:56 PM



Title: Offline send - can't send from change address
Post by: bizz on November 23, 2013, 03:42:56 PM
I want to send from change address but it says no address found when singing on offline Electrum.

How to send without going online?

Offline Ubuntu 12.04. Electrum 1.9.5

EdiT: Nevermind, seems like I was using 1.9.4 online and offline 1.9.5. I guess that was the issue.

Edit2: Tried again with exact versions and it still doesn't work. Is it even possible to send from 'new' change addresses offline?


Title: Re: Offline send - can't send from change address
Post by: Abdussamad on November 23, 2013, 09:48:32 PM
In the electrum console on the offline wallet try to run this command a few times. It will generate a new change address so you'll have the private key in your wallet and be able to sign the transaction:

wallet.accounts[0].create_new_address(1)

To generate new main account addresses (in case those are the ones that are missing) do this:

wallet.accounts[0].create_new_address(0)

Or increase the gap limit. Say 20:

wallet.storage.put( 'gap_limit', 20 )

You may have to restart the client after you do this.

Source for all of this is the developer himself:

https://bitcointalk.org/index.php?topic=324614.msg3604327#msg3604327



Title: Re: Offline send - can't send from change address
Post by: SwagPoker on December 06, 2013, 12:03:44 AM
In the electrum console on the offline wallet try to run this command a few times. It will generate a new change address so you'll have the private key in your wallet and be able to sign the transaction:

wallet.accounts[0].create_new_address(1)

To generate new main account addresses (in case those are the ones that are missing) do this:

wallet.accounts[0].create_new_address(0)



The second one actually WORKED for me! This is incredible - THANK YOU. Also, something either needs to be done to auto-incorporate this into the code or make this fix more visible as I am not the only one who's run into this. However, I will bookmark this and spread the word.

Big ups to Bitcoin Pakistan!

EJ


Title: Re: Offline send - can't send from change address
Post by: bizz on December 06, 2013, 02:12:25 AM
Glad it worked for you too. It would be shame you left for Armory. Eww. Just kiddin - both  are awesome.  :)

Agreed that offline send feature should be given more attention in Electrum.