public interface BlockchainProcessor extends Observable<Block,BlockchainProcessor.Event>
Modifier and Type | Interface and Description |
---|---|
static class |
BlockchainProcessor.BlockNotAcceptedException |
static class |
BlockchainProcessor.BlockOutOfOrderException |
static class |
BlockchainProcessor.Event |
static class |
BlockchainProcessor.TransactionNotAcceptedException |
Modifier and Type | Method and Description |
---|---|
void |
fullReset() |
void |
fullScanWithShutdown() |
int |
getInitialScanHeight() |
Peer |
getLastBlockchainFeeder() |
int |
getLastBlockchainFeederHeight() |
int |
getMinRollbackHeight() |
boolean |
isDownloading() |
boolean |
isProcessingBlock() |
boolean |
isScanning() |
java.util.List<? extends Block> |
popOffTo(int height) |
void |
processPeerBlock(org.json.simple.JSONObject request) |
void |
registerDerivedTable(DerivedDbTable table) |
int |
restorePrunedData() |
Transaction |
restorePrunedTransaction(long transactionId) |
void |
scan(int height,
boolean validate) |
void |
setGetMoreBlocks(boolean getMoreBlocks) |
void |
trimDerivedTables() |
addListener, removeListener
Peer getLastBlockchainFeeder()
int getLastBlockchainFeederHeight()
boolean isScanning()
boolean isDownloading()
boolean isProcessingBlock()
int getMinRollbackHeight()
int getInitialScanHeight()
void processPeerBlock(org.json.simple.JSONObject request) 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()
Transaction restorePrunedTransaction(long transactionId)