Bitcoin Forum

Bitcoin => Electrum => Topic started by: fireduck on November 07, 2013, 03:57:37 AM



Title: Gap limit setting missing in 1.9?
Post by: fireduck on November 07, 2013, 03:57:37 AM
Unless I am just not seeing it, the gap limit option seems to not be there anymore in electrum 1.9 on windows.

Due to some silly that I'd rather not get into I need to restore a wallet with a gap limit of around 25.

I managed to work around by loading the wallet in 1.8.1, setting the gap limit and then loading it in 1.9 just fine.


Title: Re: Gap limit setting missing in 1.9?
Post by: Abdussamad on November 13, 2013, 08:26:52 PM
Yeah they removed it. Electrum's philosophy seems to be to keep things minimal. I suppose we should respect that. The alternative is Armory and I hear that can be a huge memory hog not to mention the blockchain!


Title: Re: Gap limit setting missing in 1.9?
Post by: btcven on November 14, 2013, 04:33:07 PM
Quote
- Gap limit option has been removed, right?
it has been hidden. it was unnecessarily complicated for normal users, and it is not a good method for merchants.


Title: Re: Gap limit setting missing in 1.9?
Post by: xephyr on November 18, 2013, 09:09:22 PM
Quote
- Gap limit option has been removed, right?
it has been hidden. it was unnecessarily complicated for normal users, and it is not a good method for merchants.

Well, some merchants need to manually set the gap limit for Electrum to work with an external app. How do you set the gap limit in 1.9.4 in Windows?


Title: Re: Gap limit setting missing in 1.9?
Post by: fireduck on November 18, 2013, 09:21:06 PM
Quote
- Gap limit option has been removed, right?
it has been hidden. it was unnecessarily complicated for normal users, and it is not a good method for merchants.

hidden to well for me to find apparently.


Title: Re: Gap limit setting missing in 1.9?
Post by: xephyr on November 18, 2013, 09:26:02 PM
Never take away an option from a program that people were using! Developer needs to address this ASAP, and tell us how to set gap limit where we need or restore the option in 1.9.4 interface please.


Title: Re: Gap limit setting missing in 1.9?
Post by: flatfly on November 18, 2013, 09:30:17 PM
I describe a way to do it in this post. I haven't tried it with the official precompiled windows builds, though.  But I guess it should work.

Edit: sorry can't seem to paste the link from my phone. Just check out my windows build thread for the post. Hope this helps


Title: Re: Gap limit setting missing in 1.9?
Post by: Abdussamad on November 18, 2013, 10:45:14 PM
ThomasV said that you run this in the electrum console:

wallet.accounts[0].create_new_address(0)

Then you restart the client and the new address will be displayed on the receive tab. The label next to the new address will be red though which is not something to worry about.

I guess you could run the above command in a loop, if you know python loops, to generate lots of new addresses.


Title: Re: Gap limit setting missing in 1.9?
Post by: xephyr on November 18, 2013, 10:59:23 PM
I describe a way to do it in this post. I haven't tried it with the official precompiled windows builds, though.  But I guess it should work.

Edit: sorry can't seem to paste the link from my phone. Just check out my windows build thread for the post. Hope this helps


Hey thanks, here is the link to your post: https://bitcointalk.org/index.php?topic=73651.msg3627894#msg3627894

Cannot get it to work with 1.9.4 portable though:(

Please put the option to adjust gap limit back in 1.9.4 or post instructions.


Title: Re: Gap limit setting missing in 1.9?
Post by: fireduck on November 18, 2013, 11:50:14 PM
I describe a way to do it in this post. I haven't tried it with the official precompiled windows builds, though.  But I guess it should work.

Edit: sorry can't seem to paste the link from my phone. Just check out my windows build thread for the post. Hope this helps


Hey thanks, here is the link to your post: https://bitcointalk.org/index.php?topic=73651.msg3627894#msg3627894

Cannot get it to work with 1.9.4 portable though:(

Please put the option to adjust gap limit back in 1.9.4 or post instructions.

Instructions:
Load wallet with 1.8.x and set the gap limit.  Exit.  Load in 1.9.x and you are fine.



Title: Re: Gap limit setting missing in 1.9?
Post by: xephyr on November 19, 2013, 12:01:32 AM
I describe a way to do it in this post. I haven't tried it with the official precompiled windows builds, though.  But I guess it should work.

Edit: sorry can't seem to paste the link from my phone. Just check out my windows build thread for the post. Hope this helps


Hey thanks, here is the link to your post: https://bitcointalk.org/index.php?topic=73651.msg3627894#msg3627894

Cannot get it to work with 1.9.4 portable though:(

Please put the option to adjust gap limit back in 1.9.4 or post instructions.

Instructions:
Load wallet with 1.8.x and set the gap limit.  Exit.  Load in 1.9.x and you are fine.



Load what in 1.9.x?


Title: Re: Gap limit setting missing in 1.9?
Post by: fireduck on November 19, 2013, 12:15:14 AM
I describe a way to do it in this post. I haven't tried it with the official precompiled windows builds, though.  But I guess it should work.

Edit: sorry can't seem to paste the link from my phone. Just check out my windows build thread for the post. Hope this helps


Hey thanks, here is the link to your post: https://bitcointalk.org/index.php?topic=73651.msg3627894#msg3627894

Cannot get it to work with 1.9.4 portable though:(

Please put the option to adjust gap limit back in 1.9.4 or post instructions.

Instructions:
Load wallet with 1.8.x and set the gap limit.  Exit.  Load in 1.9.x and you are fine.



Load what in 1.9.x?

The wallet in question.  The gap limit will be retained after setting it in 1.8 as far as I can tell.


Title: Re: Gap limit setting missing in 1.9?
Post by: xephyr on November 19, 2013, 12:22:56 AM
I describe a way to do it in this post. I haven't tried it with the official precompiled windows builds, though.  But I guess it should work.

Edit: sorry can't seem to paste the link from my phone. Just check out my windows build thread for the post. Hope this helps


Hey thanks, here is the link to your post: https://bitcointalk.org/index.php?topic=73651.msg3627894#msg3627894

Cannot get it to work with 1.9.4 portable though:(

Please put the option to adjust gap limit back in 1.9.4 or post instructions.

Instructions:
Load wallet with 1.8.x and set the gap limit.  Exit.  Load in 1.9.x and you are fine.



Load what in 1.9.x?

The wallet in question.  The gap limit will be retained after setting it in 1.8 as far as I can tell.


No, the format for the wallet file changed from 1.8.1 to 1.9.4. Not interchangeable. Need the developer to chime in here. He said the setting for gap limit was hidden, just need to know how to uncover. Why do developers have to mess up something that was working fine?


Title: Re: Gap limit setting missing in 1.9?
Post by: thomas_s on November 19, 2013, 07:36:32 AM
I need this option in and the open 1.8.x reset the gap limit and reopen 1.9.x doesn't work, I really like 1.9.x but without the gap limit for my store plugin this just doesn't work well.

Did this really cause such a big problem with new people? I need to add another 500+ addresses so if anyone has a suggestion, my site created new addresses that aren't listed and they aren't showing up on the 1.9.x wallet (they do show up on the 1.8.x one)

*Edit
Went to file -> open and opened the 1.8.x wallet...this still isn't very convenient, I really like the electrum wallet but might have to switch to blockchain as this will more then likely not work in a future release.


Title: Re: Gap limit setting missing in 1.9?
Post by: btcven on November 19, 2013, 11:33:41 PM
I need this option in and the open 1.8.x reset the gap limit and reopen 1.9.x doesn't work, I really like 1.9.x but without the gap limit for my store plugin this just doesn't work well.

Did this really cause such a big problem with new people? I need to add another 500+ addresses so if anyone has a suggestion, my site created new addresses that aren't listed and they aren't showing up on the 1.9.x wallet (they do show up on the 1.8.x one)

*Edit
Went to file -> open and opened the 1.8.x wallet...this still isn't very convenient, I really like the electrum wallet but might have to switch to blockchain as this will more then likely not work in a future release.

if you need to change the gap limit in a 1.9.x wallet, you may do it in the python console.

For example, to set it to 10, by type:

Code:
wallet.storage.put('gap_limit',10)

then close the electrum client, and restart it



Title: Re: Gap limit setting missing in 1.9?
Post by: yxt on December 13, 2013, 07:57:13 AM
I hope this come back to the GUI.


Title: Re: Gap limit setting missing in 1.9?
Post by: adamas on December 17, 2013, 11:21:25 AM
I hope this come back to the GUI.
  v 1.9.6 gap limit option?


Title: Re: Gap limit setting missing in 1.9?
Post by: BkkCoins on December 17, 2013, 11:47:46 AM
There is a cmd line option but in my testing it made no difference. That is, starting with -G 10 still didn't behave as if gap limit is 10 and see new addresses used.

If this would work it would probably be good enough as users could simply alter the menu/icon start cmd to have this option set.

However, I did find that if your add a 'gap_limit': 10 at top level in the wallet file then it does behave correctly and respect new addresses. ie. red addresses become normal.


Title: Re: Gap limit setting missing in 1.9?
Post by: adamas on December 17, 2013, 12:00:10 PM
However, I did find that if your add a 'gap_limit': 10 at top level in the wallet file then it does behave correctly and respect new addresses. ie. red addresses become normal.
Doesn't work for me. Where exactly do you have to place it?


Title: Re: Gap limit setting missing in 1.9?
Post by: BkkCoins on December 17, 2013, 12:02:12 PM
However, I did find that if your add a 'gap_limit': 10 at top level in the wallet file then it does behave correctly and respect new addresses. ie. red addresses become normal.
Doesn't work for me. Where exactly do you have to place it?
I placed it immediately before the seed version. eg.

'imported_keys': {}, 'seed_version': 6}

becomes,

'imported_keys': {}, 'gap_limit': 10, 'seed_version': 6}


Title: Re: Gap limit setting missing in 1.9?
Post by: adamas on December 17, 2013, 12:31:50 PM
I placed it immediately before the seed version. eg.

'imported_keys': {}, 'seed_version': 6}

becomes,

'imported_keys': {}, 'gap_limit': 10, 'seed_version': 6}
Doesn't work for me. Labels/addr are still red!


Title: Re: Gap limit setting missing in 1.9?
Post by: Abdussamad on December 17, 2013, 05:18:07 PM
However, I did find that if your add a 'gap_limit': 10 at top level in the wallet file then it does behave correctly and respect new addresses. ie. red addresses become normal.
Doesn't work for me. Where exactly do you have to place it?
I placed it immediately before the seed version. eg.

'imported_keys': {}, 'seed_version': 6}

becomes,

'imported_keys': {}, 'gap_limit': 10, 'seed_version': 6}

You don't have to mess about with the json wallet file. Just type the following in the electrum gui console:

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

The above command sets it to a 100 but you can, of course, use any number you like. Remember to restart electrum after you do the above!


Title: Re: Gap limit setting missing in 1.9?
Post by: adamas on December 17, 2013, 05:30:03 PM

You don't have to mess about with the json wallet file. Just type the following in the electrum gui console:

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

The above command sets it to a 100 but you can, of course, use any number you like. Remember to restart electrum after you do the above!
Yes but I want to get rid of this red color.


Title: Re: Gap limit setting missing in 1.9?
Post by: Abdussamad on December 17, 2013, 06:36:45 PM

You don't have to mess about with the json wallet file. Just type the following in the electrum gui console:

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

The above command sets it to a 100 but you can, of course, use any number you like. Remember to restart electrum after you do the above!
Yes but I want to get rid of this red color.

Then do what I said and increase the gap limit and restart electrum.


Title: Re: Gap limit setting missing in 1.9?
Post by: RHavar on March 03, 2015, 06:52:23 PM
Code:
wallet.storage.put( 'gap_limit', 100)

This still works for electrum 2.0, if anyone's wondering. It'd be nice to have this exposed in the GUI though


Title: Re: Gap limit setting missing in 1.9?
Post by: ThomasV on March 03, 2015, 09:36:37 PM
Code:
wallet.storage.put( 'gap_limit', 100)

This still works for electrum 2.0, if anyone's wondering. It'd be nice to have this exposed in the GUI though

better do this:
Code:
wallet.change_gap_limit(100)



Title: Re: Gap limit setting missing in 1.9?
Post by: xephyr on March 03, 2015, 11:39:44 PM
What is the command to display current gap limit of an Electrum 1.9.8 wallet? Thanks.


Title: Re: Gap limit setting missing in 1.9?
Post by: dinox on March 04, 2015, 09:42:55 AM
What is the command to display current gap limit of an Electrum 1.9.8 wallet? Thanks.
wallet.gap_limit