mirror of
https://github.com/luxfi/chains.git
synced 2026-09-24 00:26:00 +00:00
Format what the tip change touched
This commit is contained in:
@@ -38,7 +38,7 @@ var mockLiquidityTokens = []string{
|
||||
// negative half of the never-mix-Liquidity boundary (the positive ChainVerifier gate
|
||||
// proves real on-chain existence; this refuses a forbidden BRAND regardless).
|
||||
var forbiddenUniverseLabels = []string{
|
||||
"liquid", // catches "Liquid EVM" / "Liquid DEX" / "Liquidity" (all contain "liquid")
|
||||
"liquid", // catches "Liquid EVM" / "Liquid DEX" / "Liquidity" (all contain "liquid")
|
||||
"partner", // upstream poison-lineage org
|
||||
}
|
||||
|
||||
|
||||
@@ -68,9 +68,9 @@ func TestParseConsensusMode_RejectsUnknown(t *testing.T) {
|
||||
t.Fatal("unknown consensus mode token must be rejected")
|
||||
}
|
||||
for tok, want := range map[string]ConsensusMode{
|
||||
"QUORUM_FINALITY": ConsensusModeQuorumFinality,
|
||||
"QUORUM_FINALITY": ConsensusModeQuorumFinality,
|
||||
"HONEST_VALIDATOR_LABELED": ConsensusModeHonestValidatorLabeled,
|
||||
"": ConsensusModeUnset,
|
||||
"": ConsensusModeUnset,
|
||||
} {
|
||||
got, err := ParseConsensusMode(tok)
|
||||
if err != nil || got != want {
|
||||
|
||||
@@ -34,11 +34,11 @@ import (
|
||||
// EVM_NATIVE/ERC20) and a P-Chain + X-Chain API base (for the C-Chain consensus-id
|
||||
// confirm and UTXO asset descriptions).
|
||||
type Verifier struct {
|
||||
eth *ethclient.Client
|
||||
apiBase string // e.g. https://api.lux.network — used for platform/avm JSON-RPC
|
||||
httpc *http.Client
|
||||
nativeDec uint8
|
||||
timeout time.Duration
|
||||
eth *ethclient.Client
|
||||
apiBase string // e.g. https://api.lux.network — used for platform/avm JSON-RPC
|
||||
httpc *http.Client
|
||||
nativeDec uint8
|
||||
timeout time.Duration
|
||||
}
|
||||
|
||||
// New dials the C-Chain EVM RPC and records the node API base for P/X queries.
|
||||
|
||||
@@ -152,8 +152,8 @@ func TestAttestationMustNameTheKeyWeTrust(t *testing.T) {
|
||||
bt := katTransfer(t)
|
||||
digest := bt.Digest()
|
||||
|
||||
custody, _ := secp256k1.NewPrivateKey() // the key B-Chain is configured with
|
||||
attacker, _ := secp256k1.NewPrivateKey() // a key the attacker just made
|
||||
custody, _ := secp256k1.NewPrivateKey() // the key B-Chain is configured with
|
||||
attacker, _ := secp256k1.NewPrivateKey() // a key the attacker just made
|
||||
|
||||
// A perfectly self-consistent attestation: real transfer, real digest, a
|
||||
// signature that verifies — under the attacker's own key, which it helpfully
|
||||
|
||||
Reference in New Issue
Block a user