HeaderDeserializer getHeader() { return new HeaderDeserializer(getPayload().getHeader()); }
/** * @return epoch and -1 if filtered block. * @deprecated */ public long getEpoch() { return BlockInfo.this.isFiltered() ? -1 : headerDeserializer.getChannelHeader().getEpoch(); }
/** * This is the creator or submitter of the transaction. * Returns null for a filtered block. * * @return {@link IdentitiesInfo} */ public IdentitiesInfo getCreator() { return isFiltered() ? null : new IdentitiesInfo(headerDeserializer.getCreator()); }
ChannelHeaderDeserializer getChannelHeader() { ChannelHeaderDeserializer ret = null; if (channelHeader != null) { ret = channelHeader.get(); } if (ret == null) { ret = new ChannelHeaderDeserializer(getHeader().getChannelHeader()); channelHeader = new WeakReference<>(ret); } return ret; }
/** * The nonce of the transaction. * * @return return null for filtered block. */ public byte[] getNonce() { return isFiltered() ? null : headerDeserializer.getNonce(); }
ChannelHeaderDeserializer getChannelHeader() { ChannelHeaderDeserializer ret = null; if (channelHeader != null) { ret = channelHeader.get(); } if (ret == null) { ret = new ChannelHeaderDeserializer(getHeader().getChannelHeader()); channelHeader = new WeakReference<>(ret); } return ret; }
/** * The nonce of the transaction. * * @return return null for filtered block. */ public byte[] getNonce() { return isFiltered() ? null : headerDeserializer.getNonce(); }
/** * 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(); }
/** * This is the creator or submitter of the transaction. * Returns null for a filtered block. * * @return {@link IdentitiesInfo} */ public IdentitiesInfo getCreator() { return isFiltered() ? null : new IdentitiesInfo(headerDeserializer.getCreator()); }
ChannelHeaderDeserializer getChannelHeader() { ChannelHeaderDeserializer ret = null; if (channelHeader != null) { ret = channelHeader.get(); } if (ret == null) { ret = new ChannelHeaderDeserializer(getHeader().getChannelHeader()); channelHeader = new WeakReference<>(ret); } return ret; }
/** * The nonce of the transaction. * * @return return null for filtered block. */ public byte[] getNonce() { return isFiltered() ? null : headerDeserializer.getNonce(); }
HeaderDeserializer getHeader() { return new HeaderDeserializer(getPayload().getHeader()); }
int getType() { if (type == null) { type = getPayload().getHeader().getChannelHeader().getType(); } return type; }
/** * This is the creator or submitter of the transaction. * Returns null for a filtered block. * * @return {@link IdentitiesInfo} */ public IdentitiesInfo getCreator() { return isFiltered() ? null : new IdentitiesInfo(headerDeserializer.getCreator()); }
HeaderDeserializer getHeader() { return new HeaderDeserializer(getPayload().getHeader()); }
/** * 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(); }