Search in sources :

Example 1 with LedgerService

use of io.nuls.ledger.service.intf.LedgerService in project nuls by nuls-io.

the class UtxoLedgerModuleBootstrap method init.

@Override
public void init() {
    EventManager.putEvent(BalanceChangeNotice.class);
    registerService();
    ledgerService = NulsContext.getServiceBean(LedgerService.class);
    UtxoOutputDataService outputDataService = NulsContext.getServiceBean(UtxoOutputDataService.class);
    coinManager = UtxoCoinManager.getInstance();
    coinManager.setOutputDataService(outputDataService);
    cacheService = LedgerCacheService.getInstance();
    addNormalTxValidator();
}
Also used : UtxoOutputDataService(io.nuls.db.dao.UtxoOutputDataService) LedgerService(io.nuls.ledger.service.intf.LedgerService)

Aggregations

UtxoOutputDataService (io.nuls.db.dao.UtxoOutputDataService)1 LedgerService (io.nuls.ledger.service.intf.LedgerService)1