public BlockchainManager(CrypDist crypDist, byte[] session_key)
{
this.crypDist = crypDist;
dbManager = new PostgresDB("blockchain", "postgres", "", false);
serverAccessor = new ServerAccessor();
transactionPendingBucket = new ConcurrentHashMap<>();
transactionBucket = new PriorityBlockingQueue<>();
transactionBucket_solid = new ArrayList<>(BLOCK_SIZE);
buildBlockchain();
hashes = new ConcurrentHashMap<>();
numOfPairs = 0;
serverTime = getServerTime();
systemTime = System.currentTimeMillis();
updating = false;
Timer timer = new Timer();
timer.schedule(new BlockchainBatch(),0, Config.BLOCKCHAIN_BATCH_PERIOD);
}
BlockchainManager.java 文件源码
java
阅读 34
收藏 0
点赞 0
评论 0
项目:CrypDist
作者:
评论列表
文章目录