Skip to content
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

Merged
merged 8 commits into from
Feb 1, 2024

Conversation

Whem
Copy link
Collaborator

@Whem Whem commented Jan 19, 2024

@@ -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).
Copy link
Collaborator

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.

Copy link
Collaborator

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.

Copy link
Collaborator Author

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.

Copy link
Collaborator

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.

Copy link
Collaborator Author

@Whem Whem Jan 19, 2024

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.

Copy link
Collaborator

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.

Copy link
Collaborator

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

Copy link
Collaborator

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/)
Copy link
Collaborator

@molnard molnard Jan 22, 2024

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?

Copy link
Collaborator Author

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

Copy link
Collaborator

@turbolay turbolay Jan 22, 2024

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 in bitcoin.conf

Then, with both version, I could create addresses and receive funds

Copy link
Collaborator Author

@Whem Whem Jan 22, 2024

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.

Copy link
Collaborator

@turbolay turbolay left a 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 to bitcoin.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).
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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.

@Whem Whem requested review from turbolay and molnard January 24, 2024 14:44

Windows x64:
```
"C:\Program Files\Bitcoin\bitcoin-qt.exe" -regtest -blockfilterindex -txindex -datadir=c:\Bitcoin
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you test this?

Copy link
Collaborator Author

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
Copy link
Collaborator

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?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes

Copy link
Collaborator

@yahiheb yahiheb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small nits:

WalletWasabi.Documentation/WasabiSetupRegtest.md Outdated Show resolved Hide resolved
WalletWasabi.Documentation/WasabiSetupRegtest.md Outdated Show resolved Hide resolved
```
Linux:
```
~/bitcoin-[version number]/bin/bitcoin-qt -regtest -blockfilterindex -txindex -datadir=c:\Bitcoin
Copy link
Collaborator

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.

Copy link
Collaborator

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.

WalletWasabi.Documentation/WasabiSetupRegtest.md Outdated Show resolved Hide resolved
Whem and others added 4 commits January 27, 2024 00:23
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>
@Whem Whem requested a review from molnard January 31, 2024 08:18
Copy link
Collaborator

@molnard molnard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MichaelScottTheOfficeGIF

@molnard molnard merged commit a3e4c68 into WalletWasabi:master Feb 1, 2024
6 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants