public interface BlockchainProcessor extends Observable<Block,BlockchainProcessor.Event>
Modifier and Type | Interface and Description |
---|---|
static class |
BlockchainProcessor.BlockNotAcceptedException |
static class |
BlockchainProcessor.BlockOfLowerDifficultyException |
static class |
BlockchainProcessor.BlockOutOfOrderException |
static class |
BlockchainProcessor.Event |
static class |
BlockchainProcessor.TransactionNotAcceptedException |
Modifier and Type | Method and Description |
---|---|
void |
fullReset() |
void |
fullScanWithShutdown() |
long |
getGenesisBlockId() |
int |
getInitialScanHeight() |
Peer |
getLastBlockchainFeeder() |
int |
getLastBlockchainFeederHeight() |
int |
getMinRollbackHeight() |
boolean |
isDownloading() |
boolean |
isDownloadSuspended() |
boolean |
isProcessingBlock() |
boolean |
isScanning() |
java.util.List<? extends Block> |
popOffTo(int height) |
void |
processPeerBlock(Block inputBlock) |
void |
processPeerBlocks(java.util.List<Block> inputBlocks) |
void |
registerDerivedTable(DerivedDbTable table) |
int |
restorePrunedData(Chain chain) |
Transaction |
restorePrunedTransaction(Chain chain,
byte[] transactionFullHash) |
void |
scan(int height,
boolean validate) |
void |
setGetMoreBlocks(boolean getMoreBlocks) |
void |
suspendDownload(boolean suspend) |
void |
trimDerivedTables() |
addListener, removeListener
Peer getLastBlockchainFeeder()
int getLastBlockchainFeederHeight()
boolean isScanning()
boolean isDownloading()
boolean isProcessingBlock()
void suspendDownload(boolean suspend)
boolean isDownloadSuspended()
int getMinRollbackHeight()
int getInitialScanHeight()
void processPeerBlock(Block inputBlock) throws NxtException
NxtException
void processPeerBlocks(java.util.List<Block> inputBlocks) throws NxtException
NxtException
void fullReset()
void scan(int height, boolean validate)
void fullScanWithShutdown()
void setGetMoreBlocks(boolean getMoreBlocks)
java.util.List<? extends Block> popOffTo(int height)
void registerDerivedTable(DerivedDbTable table)
void trimDerivedTables()
int restorePrunedData(Chain chain)
Transaction restorePrunedTransaction(Chain chain, byte[] transactionFullHash)
long getGenesisBlockId()