mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-17 23:21:21 +00:00
peers use uuid to avoid duplicate connections
This commit is contained in:
@ -12,6 +12,7 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/tendermint/tendermint/Godeps/_workspace/src/code.google.com/p/go-uuid/uuid"
|
||||
"github.com/tendermint/tendermint/binary"
|
||||
bc "github.com/tendermint/tendermint/blockchain"
|
||||
. "github.com/tendermint/tendermint/common"
|
||||
@ -242,6 +243,7 @@ func makeNodeInfo(sw *p2p.Switch) *types.NodeInfo {
|
||||
ChainID: config.GetString("chain_id"),
|
||||
Moniker: config.GetString("moniker"),
|
||||
Version: config.GetString("version"),
|
||||
UUID: uuid.New(),
|
||||
}
|
||||
|
||||
// include git hash in the nodeInfo if available
|
||||
|
Reference in New Issue
Block a user