use of io.nuls.db.module.impl.LevelDbModuleBootstrap in project nuls by nuls-io.
the class TransactionCacheStorageServiceTest method init.
@Before
public void init() {
try {
MicroKernelBootstrap mk = MicroKernelBootstrap.getInstance();
mk.init();
mk.start();
LevelDbModuleBootstrap bootstrap = new LevelDbModuleBootstrap();
bootstrap.init();
bootstrap.start();
service = NulsContext.getServiceBean(TransactionCacheStorageService.class);
} catch (Exception e) {
Log.error(e);
}
}
use of io.nuls.db.module.impl.LevelDbModuleBootstrap in project nuls by nuls-io.
the class TransactionServiceImplTest method init.
@Before
public void init() {
MicroKernelBootstrap mk = MicroKernelBootstrap.getInstance();
mk.init();
mk.start();
LevelDbModuleBootstrap bootstrap = new LevelDbModuleBootstrap();
bootstrap.init();
bootstrap.start();
UtxoLedgerModuleBootstrap ledgerModuleBootstrap = new UtxoLedgerModuleBootstrap();
ledgerModuleBootstrap.init();
ledgerModuleBootstrap.start();
NettyNetworkModuleBootstrap networkModuleBootstrap = new NettyNetworkModuleBootstrap();
networkModuleBootstrap.init();
networkModuleBootstrap.start();
transactionService = SpringLiteContext.getBean(TransactionService.class);
initTxList();
}
Aggregations