"github.com/vapor/mining/cpuminer"
"github.com/vapor/net/websocket"
"github.com/vapor/netsync"
- "github.com/vapor/p2p"
"github.com/vapor/protocol"
w "github.com/vapor/wallet"
)
dispatcher := event.NewDispatcher()
txPool := protocol.NewTxPool(store, dispatcher)
- chain, err := protocol.NewChain(store, txPool)
+ chain, err := protocol.NewChain(store, txPool, dispatcher)
if err != nil {
cmn.Exit(cmn.Fmt("Failed to create chain structure: %v", err))
}
n.Stop()
})
}
-
-func (n *Node) NodeInfo() *p2p.NodeInfo {
- return n.syncManager.NodeInfo()
-}