-
Notifications
You must be signed in to change notification settings - Fork 8
Add a private testnet module #124
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
Conversation
775151f to
64f0262
Compare
13e2605 to
c3d8049
Compare
c3d8049 to
db9252b
Compare
aciceri
left a comment
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.
Great job, we already wanted something like!
I added the following:
- removed all the license files by adding a new entry to the
.reuse5/depsfile - renamed your test (and also the old
cardano-nodeone) - rephrased your comments into a single one making a bit more synthetic (keeping only info interesting for a potential reader)
Since the test seems to work looking at logs I'm merging it but I've one doubt: how does it since the Producers list is empty in the topology file? Nevertheless I see that blocks seem to be produced in logs.
|
I've just renamed other files to make names more clear IMO. |
32f0948 to
47b8c25
Compare
This PR:
node.nixmodule which includesrequest-from-faucet-- which acts as a testnet faucetnode.nixmodule (these changes are backwards compatible) to accommodate the issues with setting up a private test netconfig.jsonto/etc/cardano-nodewhich istrueby default (for backwards compatbility)CARDANO_NODE_NETWORK_IDenvironment variable similarly to how theCARDANO_NODE_SOCKET_PATHenvironment variable is setExample usage:
https://github.com/mlabs-haskell/cardano.nix/blob/c3d804962846176068cfffad2ea3e2796b689164/tests/test-node.nix
It pretty much amounts to just enabling the
test-node.enableoption, and setting thetest-node.initialFunds = { <addr> = <amount>;}and it'll do the rest for you. It really is a drop in replacement!Notes: