Package nxt.blockchain
Interface BlockchainProcessor
- All Superinterfaces:
Observable<Block,BlockchainProcessor.Event>
- All Known Implementing Classes:
BlockchainProcessorImpl
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classstatic classstatic classstatic enumstatic class -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidlongintintintbooleanbooleanbooleanbooleanpopOffTo(int height) voidprocessPeerBlock(Block inputBlock) voidprocessPeerBlocks(List<Block> inputBlocks) voidintrestorePrunedData(Chain chain) restorePrunedTransaction(Chain chain, byte[] transactionFullHash) voidscan(int height, boolean validate) voidsetGetMoreBlocks(boolean getMoreBlocks) voidsuspendDownload(boolean suspend) voidMethods inherited from interface nxt.util.Observable
addListener, removeListener
-
Method Details
-
getLastBlockchainFeeder
Peer getLastBlockchainFeeder() -
getLastBlockchainFeederHeight
int getLastBlockchainFeederHeight() -
isScanning
boolean isScanning() -
isDownloading
boolean isDownloading() -
isProcessingBlock
boolean isProcessingBlock() -
suspendDownload
void suspendDownload(boolean suspend) -
isDownloadSuspended
boolean isDownloadSuspended() -
getMinRollbackHeight
int getMinRollbackHeight() -
getInitialScanHeight
int getInitialScanHeight() -
processPeerBlock
- Throws:
NxtException
-
processPeerBlocks
- Throws:
NxtException
-
fullReset
void fullReset() -
scan
void scan(int height, boolean validate) -
fullScanWithShutdown
void fullScanWithShutdown() -
setGetMoreBlocks
void setGetMoreBlocks(boolean getMoreBlocks) -
popOffTo
-
registerDerivedTable
-
trimDerivedTables
void trimDerivedTables() -
restorePrunedData
-
restorePrunedTransaction
-
getGenesisBlockId
long getGenesisBlockId()
-