public interface IBlock
-
Method Summary
Modifier and TypeMethodDescriptiongetData()byte[]getHash()intbyte[]byte[]longlonggetTries()voidvoidsetHash(byte[] hash) voidsetMerkleRoot(byte[] merkleRoot) voidsetPreviousBlockHash(byte[] previousBlockHash) voidsetTimestamp(long timestamp) voidsetTransactions(List<ITransaction> transactions) voidsetTries(long tries)
-
Method Details
-
getData
String getData() -
setData
-
getHash
byte[] getHash() -
setHash
void setHash(byte[] hash) -
getLeadingZerosCount
int getLeadingZerosCount() -
getMerkleRoot
byte[] getMerkleRoot() -
setMerkleRoot
void setMerkleRoot(byte[] merkleRoot) -
getPreviousBlockHash
byte[] getPreviousBlockHash() -
setPreviousBlockHash
void setPreviousBlockHash(byte[] previousBlockHash) -
getTimestamp
long getTimestamp() -
setTimestamp
void setTimestamp(long timestamp) -
getTransactions
List<ITransaction> getTransactions() -
setTransactions
-
getTries
long getTries() -
setTries
void setTries(long tries)
-