Search in sources :

Example 1 with NodeDelegateImpl

use of org.tron.core.net.node.NodeDelegateImpl in project java-tron by tronprotocol.

the class ApplicationImpl method init.

@Override
@Autowired
public void init(Args args) {
    // p2pNode = new NodeImpl();
    // p2pNode = ctx.getBean(NodeImpl.class);
    dbManager = new Manager();
    dbManager.init();
    blockStoreDb = dbManager.getBlockStore();
    services = new ServiceContainer();
    nodeDelegate = new NodeDelegateImpl(dbManager);
}
Also used : Manager(org.tron.core.db.Manager) NodeDelegateImpl(org.tron.core.net.node.NodeDelegateImpl) Autowired(org.springframework.beans.factory.annotation.Autowired)

Aggregations

Autowired (org.springframework.beans.factory.annotation.Autowired)1 Manager (org.tron.core.db.Manager)1 NodeDelegateImpl (org.tron.core.net.node.NodeDelegateImpl)1