本文整理汇总了Java中org.ethereum.db.BlockStoreDummy类的典型用法代码示例。如果您正苦于以下问题:Java BlockStoreDummy类的具体用法?Java BlockStoreDummy怎么用?Java BlockStoreDummy使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
BlockStoreDummy类属于org.ethereum.db包,在下文中一共展示了BlockStoreDummy类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: executeTransaction
import org.ethereum.db.BlockStoreDummy; //导入依赖的package包/类
protected ProgramResult executeTransaction(Transaction tx) {
Repository track = repository.startTracking();
TransactionExecutor executor =
new TransactionExecutor(ConfigHelper.CONFIG, transaction, 0, env.getCurrentCoinbase(), track, new BlockStoreDummy(), null,
invokeFactory, blockchain.getBestBlock());
try{
executor.init();
executor.execute();
executor.go();
executor.finalization();
} catch (StackOverflowError soe){
logger.error(" !!! StackOverflowError: update your java run command with -Xss32M !!!");
System.exit(-1);
}
track.commit();
return executor.getResult();
}
示例2: executeTransaction
import org.ethereum.db.BlockStoreDummy; //导入依赖的package包/类
protected ProgramResult executeTransaction(Transaction tx) {
Repository track = repository.startTracking();
TransactionExecutor executor =
new TransactionExecutor(transaction, env.getCurrentCoinbase(), track, new BlockStoreDummy(),
invokeFactory, blockchain.getBestBlock());
try{
executor.init();
executor.execute();
executor.go();
executor.finalization();
} catch (StackOverflowError soe){
logger.error(" !!! StackOverflowError: update your java run command with -Xss2M !!!");
System.exit(-1);
}
track.commit();
return executor.getResult();
}
示例3: getBlockStore
import org.ethereum.db.BlockStoreDummy; //导入依赖的package包/类
@Override
public BlockStore getBlockStore() {
return new BlockStoreDummy();
}