-
Notifications
You must be signed in to change notification settings - Fork 492
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
Knots version fixing and document update #12289
Conversation
@@ -9,9 +9,11 @@ You do not need to download the blockchain for this setup! | |||
|
|||
Bitcoin Knots is working very similarly to Bitcoin Core. You can get a grasp with [this guide](https://bitcoin.org/en/developer-examples). | |||
|
|||
WalletWasabi RegTest currently only works with Knots 21.2(LTS). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this true? For mainnet and testnet we use 23.0 on backend servers currently, regtest should work with that too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think he is talking about knots integrated into Wasabi, in which case the PR is not correct.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This week , I tried to install the Local Regtest system from this document. The newest Bitcoin Knots is 25.1 and after I installed that, so many things are changed and we can't configure it with @MarnixCroes. David said to us, then we need to fix the version number which definitely works on every platfrom if you would like to build up from this document.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
25.1 haven't been properly tested with mainnet / testnet backends too, but 23.0 is.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, then I'll ask for some time and then I'll correct the wording as well. But the most important thing is to fix the version number, because there will be an error with the latest installer.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should use the same on RegTest as the client which is 21.2. I am sharing the same data folder when using RegTest and Wasabi full node integration.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's open PR to upgrade Knots to 25.1. Probably should open separate PR to upgrade to 23.0 first? #11964
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I reopened #8825 to upgrade to 23.0 if needed.
knots version fixing
Todo: | ||
|
||
1. Install [Bitcoin Knots](https://bitcoinknots.org/) on your computer. Verify the PGP - there is a tutorial [here](https://bitcoinknots.org/) | ||
1. Install [Bitcoin Knots 21.2](https://bitcoinknots.org/files/21.x/21.2.knots20210629/) or [Bitcoin Knots 23.0](https://bitcoinknots.org/files/23.x/23.0.knots20220529/) on your computer. Verify the PGP - there is a tutorial [here](https://bitcoinknots.org/) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
23.0 works with the same config file, data folder and you can generate new addresses? Did you test that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, I used the same installation steps. No differences
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I previously sent a comment but deleted it to provide a more precise description
On MacOs Silicon (and my machine):
For both version:
- I had the extra step: Try to open, close error message, Settings -> Privacy And Security -> Scrolll down -> Open Anyway
-datadir
should be:"$HOME/Library/Application Support/Bitcoin"
- I had the extra step: Open terminal, cd
"$HOME/Library/Application Support/Bitcoin"
,nano bitcoin.conf
, paste the conf. The reason is that the file was not created by itself
For 21.2:
- Make sure I didn't have already an existing Bitcoin folder (maybe because I was trying to downgrade, not sure)
For 23.0:
- The Silicon package didn't work, only the Intel one.
- Add the line
regtest.listenonion = 0
inbitcoin.conf
Then, with both version, I could create addresses and receive funds
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe the best option is to make a script for each platform that does the steps? And then at the beginning there is a choice of which node you want to install and then we will automate it? If this is necessary, I will gladly do it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please also:
- Change
-datadir
on Mac to"$HOME/Library/Application Support/Bitcoin"
. It's probably incorrect on Linux as well - Add
regtest.listenonion = 0
tobitcoin.conf
template. This can't hurt and the Tor problem on 23.0 was really annoying
maybe the best option is to make a script for each platform that does the steps?
Why not but your PR is already an improvement so let's merge it first
@@ -9,9 +9,11 @@ You do not need to download the blockchain for this setup! | |||
|
|||
Bitcoin Knots is working very similarly to Bitcoin Core. You can get a grasp with [this guide](https://bitcoin.org/en/developer-examples). | |||
|
|||
Currently, the latest version(25.1) is not tested, so the preferred versions are [21.2](https://github.com/bitcoinknots/bitcoin/releases/tag/v21.2.knots20210629) and [23.0](https://github.com/bitcoinknots/bitcoin/releases/tag/v23.0.knots20220529). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Currently, the latest version(25.1) is not tested, so the preferred versions are [21.2](https://github.com/bitcoinknots/bitcoin/releases/tag/v21.2.knots20210629) and [23.0](https://github.com/bitcoinknots/bitcoin/releases/tag/v23.0.knots20220529). | |
Preferred versions are [21.2](https://github.com/bitcoinknots/bitcoin/releases/tag/v21.2.knots20210629) and [23.0](https://github.com/bitcoinknots/bitcoin/releases/tag/v23.0.knots20220529) as later ones are currently not tested. |
|
||
Windows x64: | ||
``` | ||
"C:\Program Files\Bitcoin\bitcoin-qt.exe" -regtest -blockfilterindex -txindex -datadir=c:\Bitcoin |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you test this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, but I preferred to move into the folder with the "cd" command
1. Install [Bitcoin Knots](https://bitcoinknots.org/) on your computer. Verify the PGP - there is a tutorial [here](https://bitcoinknots.org/) | ||
2. Start Bitcoin Knots with: bitcoin-qt.exe -regtest then quit immediately. In this way the data directory and the config files will be generated. | ||
1. Install [Bitcoin Knots 23.0](https://bitcoinknots.org/files/23.x/23.0.knots20220529/) on your computer. Verify the PGP - there is a tutorial [here](https://bitcoinknots.org/) | ||
2. Start Bitcoin Knots with: bitcoin-qt.exe -regtest then quit immediately. In this way the data directory and the config files will be generated. If you write "-datadir" parameter,make sure the directory exists |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bitcoin-qt.exe
Did you test this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small nits:
``` | ||
Linux: | ||
``` | ||
~/bitcoin-[version number]/bin/bitcoin-qt -regtest -blockfilterindex -txindex -datadir=c:\Bitcoin |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-datadir=c:\Bitcoin
AFAIK there is no C directory in Linux, so this should be corrected.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, there definitely isn't. Usually either $HOME/.bitcoin
(default, no need to specify) or /var/lib/bitcoind
is used. Same applies also to macOS too, although I'm not sure about exact paths there. C:\
is Windows specific.
Co-authored-by: yahiheb <52379387+yahiheb@users.noreply.github.com>
Co-authored-by: yahiheb <52379387+yahiheb@users.noreply.github.com>
Co-authored-by: yahiheb <52379387+yahiheb@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://github.com/zkSNACKs/WalletWasabi/blob/master/WalletWasabi.Documentation/WasabiSetupRegtest.md was outdated