mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-14 13:51:21 +00:00
rpc: Transform /status result.node_info.other into map (#2417)
* [rpc] transform /status result.node_info.other into map * amino does not support maps, duh Refs #2391
This commit is contained in:
committed by
Alexander Simmerl
parent
8ae3334423
commit
fc7f9bcaf6
14
node/node.go
14
node/node.go
@ -690,12 +690,12 @@ func (n *Node) makeNodeInfo(nodeID p2p.ID) p2p.NodeInfo {
|
||||
evidence.EvidenceChannel,
|
||||
},
|
||||
Moniker: n.config.Moniker,
|
||||
Other: []string{
|
||||
fmt.Sprintf("amino_version=%v", amino.Version),
|
||||
fmt.Sprintf("p2p_version=%v", p2p.Version),
|
||||
fmt.Sprintf("consensus_version=%v", cs.Version),
|
||||
fmt.Sprintf("rpc_version=%v/%v", rpc.Version, rpccore.Version),
|
||||
fmt.Sprintf("tx_index=%v", txIndexerStatus),
|
||||
Other: p2p.NodeInfoOther{
|
||||
AminoVersion: amino.Version,
|
||||
P2PVersion: p2p.Version,
|
||||
ConsensusVersion: cs.Version,
|
||||
RPCVersion: fmt.Sprintf("%v/%v", rpc.Version, rpccore.Version),
|
||||
TxIndex: txIndexerStatus,
|
||||
},
|
||||
}
|
||||
|
||||
@ -704,7 +704,7 @@ func (n *Node) makeNodeInfo(nodeID p2p.ID) p2p.NodeInfo {
|
||||
}
|
||||
|
||||
rpcListenAddr := n.config.RPC.ListenAddress
|
||||
nodeInfo.Other = append(nodeInfo.Other, fmt.Sprintf("rpc_addr=%v", rpcListenAddr))
|
||||
nodeInfo.Other.RPCAddress = rpcListenAddr
|
||||
|
||||
if !n.sw.IsListening() {
|
||||
return nodeInfo
|
||||
|
Reference in New Issue
Block a user