mirror of https://github.com/poanetwork/gecko.git
returned dispatch error from the node
This commit is contained in:
parent
1daaa5fdaa
commit
18e11359af
|
@ -81,6 +81,7 @@ func main() {
|
|||
|
||||
defer node.Shutdown()
|
||||
|
||||
log.Debug("Dispatching node handlers")
|
||||
node.Dispatch()
|
||||
log.Debug("dispatching node handlers")
|
||||
err = node.Dispatch()
|
||||
log.Debug("node dispatching returned with %s", err)
|
||||
}
|
||||
|
|
|
@ -195,7 +195,7 @@ func (i *insecureValidatorManager) Disconnected(vdrID ids.ShortID) bool {
|
|||
|
||||
// Dispatch starts the node's servers.
|
||||
// Returns when the node exits.
|
||||
func (n *Node) Dispatch() {
|
||||
func (n *Node) Dispatch() error {
|
||||
// Add bootstrap nodes to the peer network
|
||||
for _, peer := range n.Config.BootstrapPeers {
|
||||
if !peer.IP.Equal(n.Config.StakingIP) {
|
||||
|
@ -205,7 +205,7 @@ func (n *Node) Dispatch() {
|
|||
}
|
||||
}
|
||||
|
||||
n.Net.Dispatch()
|
||||
return n.Net.Dispatch()
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue