Skip to content

Conversation

@pinheadmz
Copy link
Contributor

I wrote these changes in response to recent user experience by core devs testing code deployments like v29 release and erlay.

The main changes are:

  • Less example files in new project
  • Always create a custom network - no one ever needs 6_node_bitcoin
  • Expand the options in inquirer:
    • combine different versions
    • add custom images

Below is an example transcript creating a network with 4x "27.0" nodes and 1x custom erlay node:

(.venv) --> warnet create
[?] Enter your network name: test
   Current Network Population
┏━━━━━━━━━┳━━━━━━━┳━━━━━━━━━━━━━┓
┃ Version ┃ Count ┃ Connections ┃
┡━━━━━━━━━╇━━━━━━━╇━━━━━━━━━━━━━┩
└─────────┴───────┴─────────────┘
[?] How many nodes to add? (0 = done):
   0
 > 4
   8
   12
   20
   50
   other

[?] Which version would you like to add to network?:
   other
 > 27.0
   26.0
   25.1
   24.2
   23.2
   22.2

[?] How many connections would you like each of these nodes to have?:
   0
   1
 > 2
   8
   12
   other

   Current Network Population
┏━━━━━━━━━┳━━━━━━━┳━━━━━━━━━━━━━┓
┃ Version ┃ Count ┃ Connections ┃
┡━━━━━━━━━╇━━━━━━━╇━━━━━━━━━━━━━┩
│ 27.0    │ 4     │ 2           │
└─────────┴───────┴─────────────┘
[?] How many nodes to add? (0 = done):
   0
   4
   8
   12
   20
   50
 > other

[?] Enter the number of nodes: 1
[?] Which version would you like to add to network?:
 > other
   27.0
   26.0
   25.1
   24.2
   23.2
   22.2

[?] How many connections would you like each of these nodes to have?:
   0
   1
 > 2
   8
   12
   other

[?] Provide dockerhub repository/image:tag: srgi/bitcoin:99.0.0-erlay-full-169d
                 Current Network Population
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━┳━━━━━━━━━━━━━┓
┃ Version                             ┃ Count ┃ Connections ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━╇━━━━━━━━━━━━━┩
│ 27.0                                │ 4     │ 2           │
│ srgi/bitcoin:99.0.0-erlay-full-169d │ 1     │ 2           │
└─────────────────────────────────────┴───────┴─────────────┘
[?] How many nodes to add? (0 = done):
 > 0
   4
   8
   12
   20
   50
   other


Would you like to enable fork-observer on the network? [True]:

How often would you like fork-observer to query node status (seconds)? [20]:

Would you like to enable grafana logging on the network? [False]:

Generating custom network...
Project '/Users/matthewzipkin/Desktop/w/networks/test' has been created with 'network.yaml' and 'node-defaults.yaml'.

New network created successfully!

Run the following command to deploy this network:
warnet deploy /Users/matthewzipkin/Desktop/w/networks/test

@pinheadmz pinheadmz force-pushed the cleanup branch 2 times, most recently from e4cdcb3 to e30daac Compare May 21, 2025 17:11
@pinheadmz pinheadmz merged commit a5dfebf into bitcoin-dev-project:main May 27, 2025
27 of 28 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.

1 participant