Open
Description
AVL-7H2W7V:avalanche-cli raymondsukanto$ ./bin/avalanche blockchain deploy testSubnet --local --skip-icm-deploy --bootstrap-filepath=tests/e2e/assets/test_bootstrap_validator.json
Deploying [testSubnet] to Local Network
Network has already been booted.
Using [P-custom18jma8ppw3nhx5r4ap8clazz0dps7rv5u9xde7p] to be set as a change owner for leftover AVAX
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:56636
NodeID: NodeID-5XCv212FLzd6Nxtu3HnXk45SFuQNJaeXH
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: Attwu8N1w2pmPraG5FutZDi1UxHRBkpNU9YyjNi135E2RjLPA
Now creating blockchain...
CreateChainTx fee: 0.000129560 AVAX
Seems that for local network, we try to create a local machine with different node id even though we have specified the node id we want in bootstrap filepath. -> causes us to have two bootstrap validators, when we are only supposed to have one
Checking bootstrap validators:
AVL-7H2W7V:avalanche-cli raymondsukanto$ curl -X POST --data '{
> "jsonrpc": "2.0",
> "method": "platform.getCurrentValidators",
> "params": {
> "subnetID": "Attwu8N1w2pmPraG5FutZDi1UxHRBkpNU9YyjNi135E2RjLPA"
> },
> "id": 1
> }' -H 'content-type:application/json;' 127.0.0.1:56636/ext/bc/P
{"jsonrpc":"2.0","result":{"validators":[{"validationID":"dYt8vvcEX2DfBvxVuCeN3LiX6cbztf2dKgQT52PsR1jY8aAUQ","nodeID":"NodeID-144PM69m93kSFyfTHMwULTmoGZSWzQ4C1","publicKey":"0x80b7851ce335cee149b7cfffbf6cf0bbca3c9b25026a24056e610976d095906e833a66d5ca5c56c23a3fe50e8785a81f","remainingBalanceOwner":{"locktime":"0","threshold":"1","addresses":["P-custom1y5ku603lh583xs9v50p8kk0awcqzgeq0mezkqr"]},"deactivationOwner":{"locktime":"0","threshold":"0","addresses":[]},"startTime":"1746547771","weight":"20","minNonce":"0","balance":"100000000"},{"validationID":"7vPUt9dckFbkMowmPuyiVeZ2Koo5XZejUtoPTDFgfMh49mFsP","nodeID":"NodeID-5XCv212FLzd6Nxtu3HnXk45SFuQNJaeXH","publicKey":"0x84fad9c326a179d645d8795997cde1325595f1a7f366e6b38d6be5b885e2425321c6b20b8068dc06974638cc7c866521","remainingBalanceOwner":{"locktime":"0","threshold":"1","addresses":["P-custom18jma8ppw3nhx5r4ap8clazz0dps7rv5u9xde7p"]},"deactivationOwner":{"locktime":"0","threshold":"0","addresses":[]},"startTime":"1746547771","weight":"100","minNonce":"0","balance":"100000000"}]},"id":1}
We should stop at convertSubnetToL1 Tx stage if bootstrap-filepath is used since users will need to sync these nodes later to the blockchain before initializing validator manager
Metadata
Metadata
Assignees
Labels
No labels