Package nxt.blockchain
Class BlockImpl
java.lang.Object
nxt.blockchain.BlockImpl
- All Implemented Interfaces:
Block
-
Method Summary
Modifier and TypeMethodDescriptionbooleanlongbyte[]byte[]getBytes()byte[]longbyte[]intlonggetId()longbyte[]byte[]longintlongintinthashCode()static BlockImplparseBlock(byte[] blockBytes, List<? extends FxtTransaction> blockTransactions) toString()
-
Method Details
-
getVersion
public int getVersion()- Specified by:
getVersionin interfaceBlock
-
getTimestamp
public int getTimestamp()- Specified by:
getTimestampin interfaceBlock
-
getPreviousBlockId
public long getPreviousBlockId()- Specified by:
getPreviousBlockIdin interfaceBlock
-
getGeneratorPublicKey
public byte[] getGeneratorPublicKey()- Specified by:
getGeneratorPublicKeyin interfaceBlock
-
getPreviousBlockHash
public byte[] getPreviousBlockHash()- Specified by:
getPreviousBlockHashin interfaceBlock
-
getTotalFeeFQT
public long getTotalFeeFQT()- Specified by:
getTotalFeeFQTin interfaceBlock
-
getPayloadHash
public byte[] getPayloadHash()- Specified by:
getPayloadHashin interfaceBlock
-
getGenerationSignature
public byte[] getGenerationSignature()- Specified by:
getGenerationSignaturein interfaceBlock
-
getBlockSignature
public byte[] getBlockSignature()- Specified by:
getBlockSignaturein interfaceBlock
-
getFxtTransactions
- Specified by:
getFxtTransactionsin interfaceBlock
-
getBaseTarget
public long getBaseTarget()- Specified by:
getBaseTargetin interfaceBlock
-
getCumulativeDifficulty
- Specified by:
getCumulativeDifficultyin interfaceBlock
-
getNextBlockId
public long getNextBlockId()- Specified by:
getNextBlockIdin interfaceBlock
-
getHeight
public int getHeight() -
getId
public long getId() -
getStringId
- Specified by:
getStringIdin interfaceBlock
-
getGeneratorId
public long getGeneratorId()- Specified by:
getGeneratorIdin interfaceBlock
-
equals
-
hashCode
public int hashCode() -
toString
-
getBytes
public byte[] getBytes() -
parseBlock
public static BlockImpl parseBlock(byte[] blockBytes, List<? extends FxtTransaction> blockTransactions) throws NxtException.NotValidException - Throws:
NxtException.NotValidException
-