Format what the tip change touched

This commit is contained in:
2026-08-29 13:05:58 -07:00
parent e82c509a4e
commit 85e238e525
4 changed files with 10 additions and 10 deletions
+1 -1
View File
@@ -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
}
+2 -2
View File
@@ -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 {
+5 -5
View File
@@ -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.
+2 -2
View File
@@ -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