OSDN Git Service

remove some useless fields in node struct (#429)
authorYongfeng LI <wliyongfeng@gmail.com>
Fri, 16 Mar 2018 01:41:21 +0000 (09:41 +0800)
committerPaladz <yzhu101@uottawa.ca>
Fri, 16 Mar 2018 01:41:21 +0000 (09:41 +0800)
node/node.go

index 2a1862d..798b52a 100755 (executable)
@@ -55,10 +55,7 @@ type Node struct {
        addrBook *p2p.AddrBook         // known peers
 
        evsw       types.EventSwitch // pub/sub for services
-       blockStore *txdb.Store
        bcReactor  *bc.BlockchainReactor
-       accounts   *account.Manager
-       assets     *asset.Registry
 }
 
 func NewNodeDefault(config *cfg.Config) *Node {
@@ -245,9 +242,6 @@ func NewNode(config *cfg.Config) *Node {
 
                evsw:       eventSwitch,
                bcReactor:  bcReactor,
-               blockStore: store,
-               accounts:   accounts,
-               assets:     assets,
        }
        node.BaseService = *cmn.NewBaseService(nil, "Node", node)