luxd serves chain routes under /v1/chain, and the node, cli and sdk releases
already ship it. The deployed gateways still answer the old prefix, so remote
reads break until they are redeployed; the estate moves together rather than
sitting half converted.
Lines that record an observation - a probe, a status code, a past release -
keep the prefix they were written against, as do URLs on hosts that are not
ours. Avalanche endpoints move to /ext/bc, which is the path that host serves.
Co-authored-by: Hanzo Dev <[email protected]>
The rename to /v1/chain is real in luxd source, but the deployed fleet has not
taken it yet: probed just now, api.lux.network, api.lux-test.network,
api.zoo.network and api.hanzo.network each answer 200 on /v1/bc/C/rpc and 404 on
/v1/chain/C/rpc. Composing /v1/chain against those hosts reaches nothing, which
is the failure the rename set out to prevent.
The move belongs with the node redeploy, not ahead of it.
Co-authored-by: Hanzo Dev <[email protected]>
luxd serves chain routes under /v1/chain; the /v1/bc prefix it replaced is
gone, so anything composing it reaches nothing. Lines that record an
observation - a probe, a status code, a past release - keep the prefix they
were written against, as do URLs on hosts that are not ours.
Co-authored-by: Hanzo Dev <[email protected]>
luxd pins baseURL="/v1" (node/server/http/server.go:33) and has never
served /ext, so both exported constructors — plugin/evm/client.NewClient
and warp.NewClient — built a path no node answers. They are the seam
every out-of-tree caller goes through: cli/pkg/utils/staking.go,
sdk/validatormanager/uptime.go and netrunner/api all hand them a bare
node URI, and staking.go's own SplitRPCURI already parsed /v1/bc/<id>/rpc.
Those callers were already on /v1; this package was the lagging outlier,
so fixing it here fixes all of them without touching one.
Also corrects the simulator's default websocket endpoint, the hardhat
default, and the docs — including api.testnet.lux.network, which does not
serve RPC at all. The testnet host is api.lux-test.network (chainId
0x17870). Prefix-only sweeps miss that class of error.
Tests pin the constructed path against an httptest server, with both an
alias and a blockchain ID, so a future prefix change fails loudly instead
of silently 404ing in production.
Co-authored-by: Hanzo Dev <[email protected]>
* add tps
* get block build metrics
* Add issuance time, confirmed time, issued-> acceptance time, verify time
* Log times at end of batch
* cleaner
* address comments
* remove unused code block
* avoids taking len of channel
* nits
* pass in stringID
* move to loader
* remove unused field
* revert file back
* cleaner
* lint
* make it work for ws or for rpc
* protect
* endpoint
* no return on defer
* sep to a funciton
* have blockchainidstr passed in
* typo
* pass in metrics through config
* address comments
* address more comments and edit err policy of metrics functions
* add more logging to load_test
* typo
* better check
* fix endpoints
* typo:
* individual
* histogram
* address feedback:
* remove metrics from default
* address comments
* simplify time metrics
* better explanation
* address comments
* address comments
* cleanup
* more cleanup
* rename vars for clarity
* ws
* cleanup
* address comments
* ws
* expose metrics add flag
* fix blocking issue of http server and gracefully stop it
* cleanup
* use constant
* add issuance to confirmation metrics
* ws
* simplify metrics server
* Bump avalanchego to v1.10.5 and bump Subnet-EVM for v0.5.3 release (#757)
* Bump avalanchego to v1.10.5 and bump Subnet-EVM for v0.5.3 release
* bump anr version to v1.7.1
* handle control c
* print out output
* clean up
* clean up
* remove go routines to close client
* address comments
* memory leak
* fix
* print
* Refactor load simulator
* Cleanup
* simulator: support http as well as websocket endpoints
* simulator: move help err handling
* simulator: Fix distribute funds bug
* simulator: add metrics at the end of simulator run
* Support no timeout
* Address review comments
* Remove unused struct
* Update cmd/simulator/config/flags.go
* Update cmd/simulator/load/funder.go
* Remove . from simulator flags
* Add comment to scripts/run_simulator.sh
* Address PR comments