Package nxt.blockchain
Class BlockchainImpl
java.lang.Object
nxt.blockchain.BlockchainImpl
- All Implemented Interfaces:
Blockchain
-
Method Summary
Modifier and TypeMethodDescriptiongetBlock(long blockId) getBlock(long blockId, boolean loadTransactions) getBlockAtHeight(int height) intgetBlockCount(long accountId) longgetBlockIdAtHeight(int height) getBlockIdsAfter(long blockId, int limit) getBlocks(int from, int to) getBlocks(long accountId, int timestamp) getBlocks(long accountId, int timestamp, int from, int to) getBlocks(Connection con, PreparedStatement pstmt) getBlocksAfter(long blockId, int limit) getBlocksAfter(long blockId, List<Long> blockList) getECBlock(int timestamp) DbIterator<? extends Transaction>getExecutedTransactions(Chain chain, long senderId, long recipientId, byte type, byte subtype, int height, int numberOfConfirmations, int from, int to) getExpectedTransactions(Filter<Transaction> filter) getFxtTransaction(long transactionId) intstatic BlockchainImplgetLastBlock(int timestamp) intgetReferencingTransactions(ChildChain childChain, byte[] referencedTransactionFullHash, int from, int to) getTransaction(Chain chain, byte[] fullHash) intgetTransactionCount(Chain chain) getTransactions(ChildChain childChain, long accountId, byte type, byte subtype, int blockTimestamp, boolean includeExpiredPrunable) getTransactions(ChildChain childChain, long accountId, int numberOfConfirmations, byte type, byte subtype, int blockTimestamp, boolean withMessage, boolean phasedOnly, boolean nonPhasedOnly, int from, int to, boolean includeExpiredPrunable, boolean executedOnly) getTransactions(ChildChain childChain, Connection con, PreparedStatement pstmt) DbIterator<? extends FxtTransaction>getTransactions(FxtChain chain, long accountId, int numberOfConfirmations, byte type, byte subtype, int blockTimestamp, int from, int to) getTransactions(FxtChain chain, Connection con, PreparedStatement pstmt) booleanhasBlock(long blockId) booleanhasFxtTransaction(long transactionId) booleanhasTransaction(Chain chain, byte[] fullHash) voidreadLock()voidvoidvoidvoidvoid
-
Method Details
-
getInstance
-
readLock
public void readLock()- Specified by:
readLockin interfaceBlockchain
-
readUnlock
public void readUnlock()- Specified by:
readUnlockin interfaceBlockchain
-
updateLock
public void updateLock()- Specified by:
updateLockin interfaceBlockchain
-
updateUnlock
public void updateUnlock()- Specified by:
updateUnlockin interfaceBlockchain
-
writeLock
public void writeLock() -
writeUnlock
public void writeUnlock() -
getLastBlock
- Specified by:
getLastBlockin interfaceBlockchain
-
getHeight
public int getHeight()- Specified by:
getHeightin interfaceBlockchain
-
getLastBlockTimestamp
public int getLastBlockTimestamp()- Specified by:
getLastBlockTimestampin interfaceBlockchain
-
getLastBlock
- Specified by:
getLastBlockin interfaceBlockchain
-
getBlock
- Specified by:
getBlockin interfaceBlockchain
-
getBlock
- Specified by:
getBlockin interfaceBlockchain
-
hasBlock
public boolean hasBlock(long blockId) - Specified by:
hasBlockin interfaceBlockchain
-
getAllBlocks
- Specified by:
getAllBlocksin interfaceBlockchain
-
getBlocks
- Specified by:
getBlocksin interfaceBlockchain
-
getBlocks
- Specified by:
getBlocksin interfaceBlockchain
-
getBlocks
- Specified by:
getBlocksin interfaceBlockchain
-
getBlockCount
public int getBlockCount(long accountId) - Specified by:
getBlockCountin interfaceBlockchain
-
getBlocks
- Specified by:
getBlocksin interfaceBlockchain
-
getBlockIdsAfter
- Specified by:
getBlockIdsAfterin interfaceBlockchain
-
getBlocksAfter
- Specified by:
getBlocksAfterin interfaceBlockchain
-
getBlocksAfter
- Specified by:
getBlocksAfterin interfaceBlockchain
-
getBlockIdAtHeight
public long getBlockIdAtHeight(int height) - Specified by:
getBlockIdAtHeightin interfaceBlockchain
-
getBlockAtHeight
- Specified by:
getBlockAtHeightin interfaceBlockchain
-
getECBlock
- Specified by:
getECBlockin interfaceBlockchain
-
getTransaction
- Specified by:
getTransactionin interfaceBlockchain
-
hasTransaction
- Specified by:
hasTransactionin interfaceBlockchain
-
getFxtTransaction
- Specified by:
getFxtTransactionin interfaceBlockchain
-
hasFxtTransaction
public boolean hasFxtTransaction(long transactionId) - Specified by:
hasFxtTransactionin interfaceBlockchain
-
getTransactionCount
- Specified by:
getTransactionCountin interfaceBlockchain
-
getTransactions
public DbIterator<ChildTransactionImpl> getTransactions(ChildChain childChain, long accountId, byte type, byte subtype, int blockTimestamp, boolean includeExpiredPrunable) - Specified by:
getTransactionsin interfaceBlockchain
-
getTransactions
public DbIterator<ChildTransactionImpl> getTransactions(ChildChain childChain, long accountId, int numberOfConfirmations, byte type, byte subtype, int blockTimestamp, boolean withMessage, boolean phasedOnly, boolean nonPhasedOnly, int from, int to, boolean includeExpiredPrunable, boolean executedOnly) - Specified by:
getTransactionsin interfaceBlockchain
-
getReferencingTransactions
public DbIterator<ChildTransactionImpl> getReferencingTransactions(ChildChain childChain, byte[] referencedTransactionFullHash, int from, int to) - Specified by:
getReferencingTransactionsin interfaceBlockchain
-
getTransactions
public DbIterator<? extends FxtTransaction> getTransactions(FxtChain chain, long accountId, int numberOfConfirmations, byte type, byte subtype, int blockTimestamp, int from, int to) - Specified by:
getTransactionsin interfaceBlockchain
-
getTransactions
public DbIterator<FxtTransactionImpl> getTransactions(FxtChain chain, Connection con, PreparedStatement pstmt) - Specified by:
getTransactionsin interfaceBlockchain
-
getTransactions
public DbIterator<ChildTransactionImpl> getTransactions(ChildChain childChain, Connection con, PreparedStatement pstmt) - Specified by:
getTransactionsin interfaceBlockchain
-
getExpectedTransactions
- Specified by:
getExpectedTransactionsin interfaceBlockchain
-
getExecutedTransactions
public DbIterator<? extends Transaction> getExecutedTransactions(Chain chain, long senderId, long recipientId, byte type, byte subtype, int height, int numberOfConfirmations, int from, int to) - Specified by:
getExecutedTransactionsin interfaceBlockchain
-