mirror of
https://github.com/luxfi/const.git
synced 2026-10-30 16:59:18 +00:00
"bc" abbreviated blockchain, and the abbreviation asserted a shape. A Lux chain is not always a chain of blocks — a DAG is one of the things this network runs — so the segment named a property that is not general, in the one string every client builds its URLs from. ChainAliasPrefix already held the value; only the value moves. Co-authored-by: Hanzo Dev <[email protected]>
17 lines
648 B
Go
17 lines
648 B
Go
// Copyright (C) 2019-2025, Lux Industries, Inc. All rights reserved.
|
|
// See the file LICENSE for licensing terms.
|
|
|
|
package constants
|
|
|
|
// ChainAliasPrefix is the path segment a chain's routes hang from:
|
|
// /v1/chain/<id>/rpc.
|
|
//
|
|
// It was "bc", short for blockchain, and the abbreviation asserted something
|
|
// that is not true of every chain here — a Lux chain may be a DAG, and naming
|
|
// the shape in the route means the route is wrong wherever the shape differs.
|
|
// "chain" is what these all are.
|
|
const ChainAliasPrefix string = "chain"
|
|
|
|
// VMAliasPrefix denotes a prefix for an alias that belongs to a VM ID.
|
|
const VMAliasPrefix string = "vm"
|