Skip to content

Comments

Fix subnet only#2760

Merged
sukantoraymond merged 1 commit intomainfrom
remove-subnet-id
Apr 23, 2025
Merged

Fix subnet only#2760
sukantoraymond merged 1 commit intomainfrom
remove-subnet-id

Conversation

@sukantoraymond
Copy link
Contributor

Fixing current issue when subnet only flag is used on blockchain deploy:

AVL-7H2W7V:avalanche-cli raymondsukanto$ ./bin/avalanche blockchain deploy testSubnet  --local --skip-icm-deploy --skip-update-check --subnet-only 
Deploying [testSubnet] to Local Network

Network has already been booted.
Using [P-custom18jma8ppw3nhx5r4ap8clazz0dps7rv5u9xde7p] to be set as a change owner for leftover AVAX

A local machine L1 deploy already exists for testSubnet L1 and network Local Network
✔ Yes
✓ Local node testSubnet-local-node-local-network cleaned up.
AvalancheGo path: /Users/raymondsukanto/.avalanche-cli/bin/avalanchego/avalanchego-v1.13.0/avalanchego

✓ Local cluster testSubnet-local-node-local-network not found. Creating...
Starting local avalanchego node using root: /Users/raymondsukanto/.avalanche-cli/local/testSubnet-local-node-local-network ...
✓ Booting Network. Wait until healthy...
✓ Avalanchego started and ready to use from /Users/raymondsukanto/.avalanche-cli/local/testSubnet-local-node-local-network

Node logs directory: /Users/raymondsukanto/.avalanche-cli/local/testSubnet-local-node-local-network/<NodeID>/logs

Network ready to use.

URI: http://127.0.0.1:57414
NodeID: NodeID-Ea7BzePRn1ZYRJdaCa1ra4Gz53JUD8Wcy

bootstrapEndpoints local deploy [http://127.0.0.1:57414] 
we are at first case 
Your blockchain control keys: [P-custom18jma8ppw3nhx5r4ap8clazz0dps7rv5u9xde7p]
Your blockchain auth keys for chain creation: [P-custom18jma8ppw3nhx5r4ap8clazz0dps7rv5u9xde7p]
CreateSubnetTx fee: 0.000010278 AVAX
Blockchain has been created with ID: 9din8d11cDzNq4RJ31LPeCyoMGmpL4mosdJsFqV8ujmgoxWpS
+----------------------------------------------------------------+
|                       DEPLOYMENT RESULTS                       |
+------------+---------------------------------------------------+
| Chain Name | testSubnet                                        |
+------------+---------------------------------------------------+
| Subnet ID  | 9din8d11cDzNq4RJ31LPeCyoMGmpL4mosdJsFqV8ujmgoxWpS |
+------------+---------------------------------------------------+
| VM ID      | tGBrM84KQ7tZCUV3J8gk5viFD1VpPszotkgJHMncocqRYarbw |
+------------+---------------------------------------------------+
Error: 

No blockchainID found. To resolve this:
- Use 'avalanche blockchain deploy' to deploy the blockchain and generate a blockchainID.
- Or use 'avalanche blockchain import' to import an existing configuration.

After this PR:

AVL-7H2W7V:avalanche-cli raymondsukanto$ ./bin/avalanche blockchain deploy testSubnet  --local --skip-icm-deploy --skip-update-check --subnet-only 
Deploying [testSubnet] to Local Network

Network has already been booted.
Your blockchain control keys: [P-custom18jma8ppw3nhx5r4ap8clazz0dps7rv5u9xde7p]
Your blockchain auth keys for chain creation: [P-custom18jma8ppw3nhx5r4ap8clazz0dps7rv5u9xde7p]
CreateSubnetTx fee: 0.000010278 AVAX
Blockchain has been created with ID: 2FFx3mdhnHR8Hsi8rnAHZVYmUN9JP81RQFdSgvWoVNutrF7y43
+-----------------------------------------------------------------+
|                        DEPLOYMENT RESULTS                       |
+------------+----------------------------------------------------+
| Chain Name | testSubnet                                         |
+------------+----------------------------------------------------+
| Subnet ID  | 2FFx3mdhnHR8Hsi8rnAHZVYmUN9JP81RQFdSgvWoVNutrF7y43 |
+------------+----------------------------------------------------+
| VM ID      | tGBrM84KQ7tZCUV3J8gk5viFD1VpPszotkgJHMncocqRYarbw  |
+------------+----------------------------------------------------+

@sukantoraymond
Copy link
Contributor Author

sukantoraymond commented Apr 22, 2025

I guess better question is do we even need this flag? Why would someone stop at only creating subnet only? @felipemadero since you implemented it #1602

Copy link
Collaborator

@felipemadero felipemadero left a comment

Choose a reason for hiding this comment

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

LGTM

@github-project-automation github-project-automation bot moved this from Backlog 🗄️ to In Review 👀 in avalanchego Apr 23, 2025
@sukantoraymond sukantoraymond merged commit b517deb into main Apr 23, 2025
38 checks passed
@sukantoraymond sukantoraymond deleted the remove-subnet-id branch April 23, 2025 22:02
@github-project-automation github-project-automation bot moved this from In Review 👀 to Done ✅ in avalanchego Apr 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants