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

startup_regtest.sh: updates + improvements #6898

Merged

Conversation

niftynei
Copy link
Collaborator

Few updates to the startup_regtest.sh utility.

  • Remove PATH_TO_LIGHTNING and PATH_TO_BITCOIN
  • Introduce LIGHTNING_BIN, LIGHTNING_DIR, BITCOIN_BIN, BITCOIN_DIR. Now you can set where bitcoind/bitcoin datadir/lightningd/lightning-dir are!
  • Update default setting for funder to always contribute funds
  • Update fund_nodes to fund the 2nd node so it makes balanced channels by default

@niftynei niftynei force-pushed the nifty/startup-directory-cleanup branch from 1638332 to 51e9972 Compare November 26, 2023 19:38
We were using similar variables for different things (directories vs binary).

Update this to separate them out, while also adding ability to use a different directory
for lightning nodes

Changelog-Changed: startup_regtest.sh PATH_TO_LIGHTNING + PATH_TO_BITCOIN are no more. Use LIGHTNING_BIN and BITCOIN_DIR
@niftynei niftynei force-pushed the nifty/startup-directory-cleanup branch from 51e9972 to 19b71a2 Compare November 26, 2023 19:48
Now that 'developer' isn't a compile time flag, let's always use it
when using the startup regtest nodes.

Should always make gossip + polling bitcoind fast
Changelog-Changed: startup_regtest.sh: `fund_nodes` will now make balanced channels
@niftynei niftynei force-pushed the nifty/startup-directory-cleanup branch from 19b71a2 to a4f711d Compare November 26, 2023 20:40
Copy link
Collaborator

@vincenzopalazzo vincenzopalazzo left a comment

Choose a reason for hiding this comment

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

ACK a4f711d

There is a small nit but can be ingored

funder-min-their-funding=10000
funder-per-channel-max=100000
funder-fuzz-percent=0
funder-lease-requests-only=false
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: tab missing here

@niftynei niftynei merged commit 5a29baa into ElementsProject:master Dec 5, 2023
38 checks passed
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

Successfully merging this pull request may close these issues.

None yet

2 participants