SetNodeAddrCache sets node id and addr.
(id *proto.RawNodeID, addr string)
| 115 | |
| 116 | // SetNodeAddrCache sets node id and addr. |
| 117 | func SetNodeAddrCache(id *proto.RawNodeID, addr string) (err error) { |
| 118 | initResolver() |
| 119 | return setNodeAddrCache(id, addr) |
| 120 | } |
| 121 | |
| 122 | // initBPNodeIDs initializes BlockProducer route and map from config file and DNS Seed. |
| 123 | func initBPNodeIDs() (bpNodeIDs NodeIDAddressMap) { |