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

com.jd.blockchain.transaction.ConsensusParticipantData Maven / Gradle / Ivy

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

import com.jd.blockchain.crypto.PubKey;
import com.jd.blockchain.ledger.ParticipantNode;
import com.jd.blockchain.ledger.ParticipantNodeState;

import utils.Bytes;
import utils.net.NetworkAddress;

public class ConsensusParticipantData implements ParticipantNode {

		private int id;

		private Bytes address;

		private String name;

		private PubKey pubKey;

		private NetworkAddress hostAddress;

	    private ParticipantNodeState participantNodeState;

        @Override
		public int getId() {
			return id;
		}

		public void setId(int id) {
			this.id = id;
		}

		@Override
		public String getName() {
			return name;
		}

		public void setName(String name) {
			this.name = name;
		}

		public NetworkAddress getHostAddress() {
			return hostAddress;
		}

		public void setHostAddress(NetworkAddress hostAddress) {
			this.hostAddress = hostAddress;
		}

		@Override
		public PubKey getPubKey() {
			return pubKey;
		}

		public void setPubKey(PubKey pubKey) {
			this.pubKey = pubKey;
		}

		@Override
		public Bytes getAddress() {
			return address;
		}

		public void setAddress(Bytes address) {
			this.address = address;
		}

		@Override
	    public ParticipantNodeState getParticipantNodeState() {
		return participantNodeState;
	}

	    public void setParticipantState(ParticipantNodeState participantNodeState) {
			this.participantNodeState = participantNodeState;
		}

	}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy