Ejemplo n.º 1
0
 public CommitSig(byte[] validatorAddress, int validatorIndex, long height, int round, DateTimeOffset timestamp, SignedMsgType?type, BlockID blockId, byte[] signature)
 {
     ValidatorAddress = validatorAddress;
     ValidatorIndex   = validatorIndex;
     Height           = height;
     Round            = round;
     Timestamp        = timestamp;
     Type             = type;
     BlockId          = blockId;
     Signature        = signature;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the BlockHeader class.
 /// </summary>
 public BlockHeader(string chainId, long?height, DateTimeOffset time, long?numTxs, BlockID lastBlockId, long?totalTxs, byte[] lastCommitHash, byte[] dataHash, byte[] validatorsHash, byte[] nextValidatorsHash, byte[] consensusHash, byte[] appHash, byte[] lastResultsHash, byte[] evidenceHash, byte[] proposerAddress, BlockHeaderVersion version)
 {
     ChainId            = chainId;
     Height             = height;
     Time               = time;
     NumTxs             = numTxs;
     LastBlockId        = lastBlockId;
     TotalTxs           = totalTxs;
     LastCommitHash     = lastCommitHash;
     DataHash           = dataHash;
     ValidatorsHash     = validatorsHash;
     NextValidatorsHash = nextValidatorsHash;
     ConsensusHash      = consensusHash;
     AppHash            = appHash;
     LastResultsHash    = lastResultsHash;
     EvidenceHash       = evidenceHash;
     ProposerAddress    = proposerAddress;
     Version            = version;
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of the BlockQueryBlockMeta class.
 /// </summary>
 public BlockQueryBlockMeta(BlockHeader header, BlockID blockId)
 {
     Header  = header;
     BlockId = blockId;
 }
 /// <summary>
 /// Initializes a new instance of the BlockLastCommit class.
 /// </summary>
 public BlockLastCommit(BlockID blockId, IList <CommitSig?>?precommits)
 {
     BlockId    = blockId;
     Precommits = precommits;
 }