This PR fixed #130 by batching confirmed blocks for each update. Some notable changes:
introduce ConfirmedBlockBatchSize as a package level constant.
call commitChainUpdate once the size of confirmedBlocks reached ConfirmedBlockBatchSize
for each chain update, change the unconfirmed tip to unconfirmed blocks, which will be used as the parameter of the processUnconfirmedInfo. This is to ensure the unconfirmed blocks will not be affected across each update.
This PR fixed #130 by batching confirmed blocks for each update. Some notable changes:
ConfirmedBlockBatchSize
as a package level constant.commitChainUpdate
once the size of confirmedBlocks reachedConfirmedBlockBatchSize
processUnconfirmedInfo
. This is to ensure the unconfirmed blocks will not be affected across each update.