Interface BlockchainSyncing
public interface BlockchainSyncing
Wait for synchronization with a reference source of block height.
Since synchronization may take time, we check the block height again
after waitForBlock returns.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Use an external reference to get the current block height See: BlockchainDotInfoSyncingdefault int
waitForSync
(BitcoinClient client) Wait until aBitcoinClient
is synced to a reference blockheight
-
Field Details
-
log
-
-
Method Details
-
waitForSync
Wait until aBitcoinClient
is synced to a reference blockheight- Parameters:
client
- The client we want to synchronize- Returns:
- the blockheight upon synchronization
- Throws:
IOException
-
getReferenceBlockHeight
int getReferenceBlockHeight()Use an external reference to get the current block height See: BlockchainDotInfoSyncing
-