github.com/decred/dcrlnd@v0.7.6/chainreg/chaincode.go (about) 1 package chainreg 2 3 // ChainCode is an enum-like structure for keeping track of the chains 4 // currently supported within lnd. 5 type ChainCode uint32 6 7 const ( 8 // DecredChain is Decred's chain. 9 DecredChain ChainCode = iota 10 ) 11 12 // String returns a string representation of the target ChainCode. 13 func (c ChainCode) String() string { 14 switch c { 15 case DecredChain: 16 return "decred" 17 default: 18 return "kekcoin" 19 } 20 }