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

Signet support #532

Open
elsirion opened this issue Aug 8, 2022 · 5 comments
Open

Signet support #532

elsirion opened this issue Aug 8, 2022 · 5 comments

Comments

@elsirion
Copy link
Contributor

elsirion commented Aug 8, 2022

Currently only mainnet and regtest are supported, ideally we could also support signet (and maybe testnet?). I have a hack at d17dee5 that enables signet and got an instance running with it. I don't think my approach is good though. I think ideally we could define an enum for the networks and have a mapToName function in each module that fails for unsupported networks.

@Sjors
Copy link

Sjors commented Dec 22, 2023

I'd also like to use signet. Your hack looks like a good start, but you also need to adjust the ports. Normally Bitcoin Core does that by default, but nix-bitcoin hardcodes port numbers into the config which take precedence. See #667.

On a related note: can I run two nodes on the same NixOS (VM)? (e.g. one signet, one mainnet)

@0xB10C
Copy link
Contributor

0xB10C commented Dec 23, 2023

On a related note: can I run two nodes on the same NixOS (VM)? (e.g. one signet, one mainnet)

The current nix-bitcoin bitcoind module only supports running one instance of Bitcoin Core. However, the NixOS bitcoind module allows you to run multiple nodes (even multiple mainnet nodes if you want) on the same NixOS system. See https://search.nixos.org/options?query=services.bitcoind

@prusnak
Copy link
Contributor

prusnak commented Dec 23, 2023

. However, the NixOS bitcoind module allows you to run multiple nodes (even multiple mainnet nodes if you want) on the same NixOS system.

It would be great if you updated nix-bitcoin to use the upstream bitcoind module so one can run multiple bitcoind instances with nix-bitcoin. I am here to help you upstream the changes to nixpkgs if needed.

@jonasnick
Copy link
Member

It's probably not easy to upstream our bitcoind module given all the nix-bitcoin specific functionality it uses.

@prusnak
Copy link
Contributor

prusnak commented Jan 1, 2024

It's probably not easy to upstream our bitcoind module given all the nix-bitcoin specific functionality it uses.

My suggestion was the other way around: nix-bitcoin starts using module from nixpkgs which supports running multiple instances of bitcoind. So one can easily run mainnet, regtest, signet and testnet at the same time on the same machine.

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

5 participants