feat: add ARC Testnet

This commit is contained in:
line-6000
2026-05-15 20:02:25 +08:00
parent 864eb5969c
commit f23f47a1e8
7 changed files with 208 additions and 3 deletions
+3
View File
@@ -36,6 +36,9 @@ func GetChainByNetwork(network string) (*mdb.Chain, error) {
// missing row is treated as disabled — scanners must be able to
// short-circuit even before the admin creates the chain entry.
func IsChainEnabled(network string) bool {
if strings.ToLower(strings.TrimSpace(network)) == mdb.NetworkArc {
return true
}
row, err := GetChainByNetwork(network)
if err != nil || row.ID == 0 {
return false