-
-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
XPUBS param no longer accepts "rescan" option in BWT 0.2.0 #71
Comments
Seems like I was mistaken. BWT accepts multiple I'd love to see the option to have one xpub per line, with the rescan date, in the
|
That is correct. The config file uses the I can definitely see how this is not ideal though... the reason I implemented it like that was the the cli arguments parser library I'm using ( I could quite easily support JSON config files (or YAML, at the cost of introducing another dependency) that are used in place of the Supporting using both a config file and cli options together would either require replacing
This is something that was changed recently, because Bitcoin Core only really cares about the earliest timestamp within the Also note that you really only have to specify |
Looking at the documentation of the library I'm using to load the
(Note that the separator was changed from |
Another possible hack is to create a file with a list of cli arguments. This might be nicer because it also supports short options and doesn't SCREAM AT YOU. For example:
Then start with |
Maybe I need to take a step back and quickly explain why I think BWT is an awesome small program from a regular user's perspective:
In regard of the configuration file, both options work already really well:
The reason why I would like to see the "rescan since" option directly with the xpub is that it's fire and forget. If you add a new wallet, you add one line. BWT could safely ignore it after that (even if it maybe implies that changing the rescan date on an existing xpub would trigger a rescan). Having the If I could take all your options from above and define the config file format I personally would like the best, it would probably be this:
IIUC, the first suggestion wouldn't work, but needs Thanks for being open to my suggestions. I know they are not really coming from the current possibilities, but maybe it helps to get an outside user's perspective. BWT is a great tool already in any case, and thanks so much for that! |
Adding XPUBs and rescanning the Bitcoin blockchain is the one big drawback of lightweight Electrum middleware like BWT and EPS. This should be as easy as possible for the user, or even 3rd-party software to add XPUBs automatically.
The
bwt.env
config file seems like a good place to manage the keys that are monitored. I was happy to see that the following works in BWT 0.1.5:XPUBS=
lines, not needing to concatenate the very long xpub strings into one, which would be a maintenance nightmareXPUBS='zpub12345....XYZ:2020-10-01'
While the first point still seems to work with BWT 0.2-RC1, the second usage gives now an error:
I think the option to easily add a new XPUB and specify the "rescan since" option just for that XPUB is very important. Adding it directly to the xpub string seems the easiest way to manage the keys.
Is this an unintended change? Or, if now, would it be feasible to make that work again?
The text was updated successfully, but these errors were encountered: