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

Support Bitcoin Knots as alternative to Bitcoin Core? #664

Closed
kristapsk opened this issue Dec 12, 2023 · 1 comment
Closed

Support Bitcoin Knots as alternative to Bitcoin Core? #664

kristapsk opened this issue Dec 12, 2023 · 1 comment

Comments

@kristapsk
Copy link

So that people have choice.

@erikarvstedt
Copy link
Collaborator

erikarvstedt commented Dec 12, 2023

Here's how to use Knots instead of Core:

Edit: I've added more ways to use knots.

Option 1: Use knots from stable nixpkgs:

services.bitcoind.package = pkgs.bitcoind-knots;

Option 2: Use knots from nixpkgs-unstable. Use this if the knots version of option 1 (stable nixpkgs) is outdated.

services.bitcoind.package = config.nix-bitcoin.pkgs.pinned.pkgsUnstable.bitcoind-knots;

You can find out the knots versions from nix-bitcoin's stable/unstable nixpkgs like so:

# stable nixpkgs
nix eval --inputs-from github:fort-nix/nix-bitcoin/release nixpkgs#bitcoind-knots.version

# unstable nixpkgs
nix eval --inputs-from github:fort-nix/nix-bitcoin/release nixpkgs-unstable#bitcoind-knots.version

Option 3: Use knots from a custom version of nixpkgs-unstable. Use this if the knots version of option 2 is outdated.

services.bitcoind.package = let
  pkgsUnstable = import (builtins.fetchTarball {
    # nixpkgs-unstable as of 2023-12-12
    url = "https://github.com/NixOS/nixpkgs/archive/666fc80e7b2afb570462423cb0e1cf1a3a34fedd.tar.gz";
    sha256 = "1j4ahdm49pbw5s1sw0vc0l12s1zxlnw0sjvnljxhdjbsvgbjsl7m";
  }) {};
in
  pkgsUnstable.bitcoind-knots;

@erikarvstedt erikarvstedt pinned this issue Dec 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants