All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.jd.blockchain.consensus.ConsensusSettingsBuilder Maven / Gradle / Ivy

There is a newer version: 1.6.5.RELEASE
Show newest version
package com.jd.blockchain.consensus;

import com.jd.blockchain.ledger.ParticipantInfo;
import com.jd.blockchain.ledger.ParticipantNode;
import com.jd.blockchain.utils.Bytes;

import java.util.Properties;

public interface ConsensusSettingsBuilder {

	/**
	 * 从属性表中解析生成共识网络的参数配置;
	 * 
	 * @param props
	 *            属性表;
	 * @param participantNodes
	 *            参与方列表;
* @return */ ConsensusSettings createSettings(Properties props, ParticipantNode[] participantNodes); Bytes updateSettings(Bytes oldConsensusSettings, ParticipantInfo participantInfo); Properties createPropertiesTemplate(); void writeSettings(ConsensusSettings settings, Properties props); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy