mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-12 12:51:22 +00:00
added Moniker as config, available in RPC.
This commit is contained in:
@ -33,6 +33,7 @@ func Status() (*ctypes.ResponseStatus, error) {
|
||||
|
||||
func NetInfo() (*ctypes.ResponseNetInfo, error) {
|
||||
listening := p2pSwitch.IsListening()
|
||||
moniker := config.App().GetString("Moniker")
|
||||
network := config.App().GetString("Network")
|
||||
listeners := []string{}
|
||||
for _, listener := range p2pSwitch.Listeners() {
|
||||
@ -46,6 +47,7 @@ func NetInfo() (*ctypes.ResponseNetInfo, error) {
|
||||
})
|
||||
}
|
||||
return &ctypes.ResponseNetInfo{
|
||||
Moniker: moniker,
|
||||
Network: network,
|
||||
Listening: listening,
|
||||
Listeners: listeners,
|
||||
|
Reference in New Issue
Block a user