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

[Bug]: avalanche blockchain addValidator questions need improvement #2485

Open
meaghanfitzgerald opened this issue Dec 19, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@meaghanfitzgerald
Copy link
Collaborator

for Subnets, it should just ask: how long do you wish to validate? (specified end time since they must validate the primary network)
for PoA L1: ask for the amount of AVAX for the continuous fee balance
for PoS L1: ask for the amount of AVAX for the continuous fee balance, and the amount of Staking token to stake in the VMC

Also, this flow should check that the key that plans to provide the balance or pay the transactions had AVAX on the P-Chain BEFORE spining up a new local node to add to the cluster.

  • I have created 3 new nodes and have failed to add them as a validator while troubleshooting this feature because I had to the exit the flow. My chosen wallet did not have any P-Chain AVAX to pay for the balance in this step:
✗ What balance would you like to assign to the validator (in AVAX)?: 
@meaghanfitzgerald
Copy link
Collaborator Author

When I used the ewoq to try and allocate a balance i was met with the following error:

➜  avalanche-cli git:(main) ✗ avalanche blockchain addValidator PoS1219 --local
✔ Use stored key
✔ ewoq
✔ Use my local machine to spin up an additional validator
Creating a new Avalanche node on local machine to add as a new validator to blockchain PoS1219
✓ Creating new node with name node5 on local machine
⠙ Tracking blockchain PoS1219
✓ Waiting for blockchain to be healthy

Node logs directory: /Users/meag.fitz/.avalanche-cli/local/PoS1219-local-node-local-network/node5/logs

Node name: node5
URI: http://127.0.0.1:52206
Node-ID: NodeID-FWPJjt8RBkPUtqg9wEqDwPffkPA2XpsXs

Enter the amount of meag Token to stake : 10
How long should this validator be validating? Enter a duration, e.g. 8760h. Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h": 1h
✔ Yes
Validation manager owner 0xD21D75ed16318de7F0d27baE5b1daC8DcbB0857D pays for the initialization of the validator's registration (Blockchain gas token)
RPC Endpoint: http://127.0.0.1:50742/ext/bc/25XqWMfvXJz5WtjCzRtBdRQFgqqxde1UsH7WG1GcpkdAJ51wX8/rpc
Validator's balance is used to pay for continuous fee to the P-Chain
When this Balance reaches 0, the validator will be considered inactive and will no longer participate in validating the L1
What balance would you like to assign to the validator (in AVAX)?: .1
✔ Get address from an existing stored key (created from avalanche key create or avalanche key import)
✔ EtnaKey
✔ Get address from an existing stored key (created from avalanche key create or avalanche key import)
✔ EtnaKey
==============================================
Initializing a validator registration with PoS validator manager
Using rpcURL: http://127.0.0.1:50742/ext/bc/25XqWMfvXJz5WtjCzRtBdRQFgqqxde1UsH7WG1GcpkdAJ51wX8/rpc
NodeID: NodeID-FWPJjt8RBkPUtqg9wEqDwPffkPA2XpsXs staking 10 for 3600s
==============================================
error on "initialize validator registration with stake": insufficient funds for transfer
Could not get debug trace for initialize validator registration with stake error on http://127.0.0.1:50742/ext/bc/25XqWMfvXJz5WtjCzRtBdRQFgqqxde1UsH7WG1GcpkdAJ51wX8/rpc: failure tracing call for client &rpc.Client{idgen:(func() rpc.ID)(0x103b8c6a0), isHTTP:true, services:(*rpc.serviceRegistry)(0x140028ea330), idCounter:atomic.Uint32{_:atomic.noCopy{}, v:0x3}, reconnectFunc:(rpc.reconnectFunc)(0x103b880a0), batchItemLimit:0, batchResponseMaxSize:0, writeConn:(*rpc.httpConn)(0x14001544320), close:(chan struct {})(0x140028807e0), closing:(chan struct {})(0x140028808a0), didClose:(chan struct {})(0x14002880900), reconnected:(chan rpc.ServerCodec)(0x14002880960), readOp:(chan rpc.readOp)(0x140028809c0), readErr:(chan error)(0x14002880a20), reqInit:(chan *rpc.requestOp)(0x14002880a80), reqSent:(chan error)(0x14002d006c0), reqTimeout:(chan *rpc.requestOp)(0x14002880ae0)}: tracing failed: insufficient funds for gas * price + value: address 0xD21D75ed16318de7F0d27baE5b1daC8DcbB0857D have 0 want 10
Verify --debug flag value when calling 'blockchain create'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Backlog 🗄️
Development

No branches or pull requests

1 participant