/** * @return epoch and -1 if filtered block. * @deprecated */ public long getEpoch() { return BlockInfo.this.isFiltered() ? -1 : headerDeserializer.getChannelHeader().getEpoch(); }
/** * Get channel id * * @return The channel id also referred to as channel name. */ public String getChannelId() { return BlockInfo.this.isFiltered() ? filteredBlock.getChannelId() : headerDeserializer.getChannelHeader().getChannelId(); }
int getType() { if (type == null) { type = getPayload().getHeader().getChannelHeader().getType(); } return type; }
/** * The transaction ID * * @return the transaction id. */ public String getTransactionID() { return BlockInfo.this.isFiltered() ? filteredTx.getTxid() : headerDeserializer.getChannelHeader().getTxId(); }
/** * Timestamp * * @return timestamp and null if filtered block. */ public Date getTimestamp() { return BlockInfo.this.isFiltered() ? null : ProtoUtils.getDateFromTimestamp(headerDeserializer.getChannelHeader().getTimestamp()); }
public EnvelopeType getType() { final int type; if (BlockInfo.this.isFiltered()) { type = filteredTx.getTypeValue(); } else { type = headerDeserializer.getChannelHeader().getType(); } switch (type) { case Common.HeaderType.ENDORSER_TRANSACTION_VALUE: return EnvelopeType.TRANSACTION_ENVELOPE; default: return EnvelopeType.ENVELOPE; } }
/** * @return epoch and -1 if filtered block. * @deprecated */ public long getEpoch() { return BlockInfo.this.isFiltered() ? -1 : headerDeserializer.getChannelHeader().getEpoch(); }
/** * @return epoch and -1 if filtered block. * @deprecated */ public long getEpoch() { return BlockInfo.this.isFiltered() ? -1 : headerDeserializer.getChannelHeader().getEpoch(); }
/** * Get channel id * * @return The channel id also referred to as channel name. */ public String getChannelId() { return BlockInfo.this.isFiltered() ? filteredBlock.getChannelId() : headerDeserializer.getChannelHeader().getChannelId(); }
/** * Get channel id * * @return The channel id also referred to as channel name. */ public String getChannelId() { return BlockInfo.this.isFiltered() ? filteredBlock.getChannelId() : headerDeserializer.getChannelHeader().getChannelId(); }
/** * The transaction ID * * @return the transaction id. */ public String getTransactionID() { return BlockInfo.this.isFiltered() ? filteredTx.getTxid() : headerDeserializer.getChannelHeader().getTxId(); }
/** * The transaction ID * * @return the transaction id. */ public String getTransactionID() { return BlockInfo.this.isFiltered() ? filteredTx.getTxid() : headerDeserializer.getChannelHeader().getTxId(); }
int getType() { if (type == null) { type = getPayload().getHeader().getChannelHeader().getType(); } return type; }
/** * Timestamp * * @return timestamp and null if filtered block. */ public Date getTimestamp() { return BlockInfo.this.isFiltered() ? null : ProtoUtils.getDateFromTimestamp(headerDeserializer.getChannelHeader().getTimestamp()); }
/** * Timestamp * * @return timestamp and null if filtered block. */ public Date getTimestamp() { return BlockInfo.this.isFiltered() ? null : ProtoUtils.getDateFromTimestamp(headerDeserializer.getChannelHeader().getTimestamp()); }
int getType() { if (type == null) { type = getPayload().getHeader().getChannelHeader().getType(); } return type; }
public EnvelopeType getType() { final int type; if (BlockInfo.this.isFiltered()) { type = filteredTx.getTypeValue(); } else { type = headerDeserializer.getChannelHeader().getType(); } switch (type) { case Common.HeaderType.ENDORSER_TRANSACTION_VALUE: return EnvelopeType.TRANSACTION_ENVELOPE; default: return EnvelopeType.ENVELOPE; } }
public EnvelopeType getType() { final int type; if (BlockInfo.this.isFiltered()) { type = filteredTx.getTypeValue(); } else { type = headerDeserializer.getChannelHeader().getType(); } switch (type) { case Common.HeaderType.ENDORSER_TRANSACTION_VALUE: return EnvelopeType.TRANSACTION_ENVELOPE; default: return EnvelopeType.ENVELOPE; } }