fix: use chain.TestnetGenesisHash constant instead of hardcoded string
Some checks failed
Security Scan / security (push) Successful in 13s
Test / Test (push) Has been cancelled

Co-Authored-By: Charon <charon@lethean.io>
This commit is contained in:
Claude 2026-04-02 04:33:58 +01:00
parent 871150bd61
commit 0c4c619170
No known key found for this signature in database
GPG key ID: AF404715446AEB41

View file

@ -63,7 +63,7 @@ func runServe(dataDir, seed string, testnet bool, rpcBind, rpcPort, walletRPC st
// Set genesis hash for testnet.
if testnet {
chain.GenesisHash = "7cf844dc3e7d8dd6af65642c68164ebe18109aa5167b5f76043f310dd6e142d0"
chain.GenesisHash = chain.TestnetGenesisHash
}
ctx, cancel := signal.NotifyContext(context.Background(), syscall.SIGINT, syscall.SIGTERM)