Made synchronizer method public as it is now also used by the block minter.

This commit is contained in:
CalDescent 2022-01-26 22:04:09 +00:00
parent ba41d84af9
commit cbf03d58c8

View File

@ -1516,7 +1516,7 @@ public class Synchronizer extends Thread {
return new Block(repository, blockMessage.getBlockData(), blockMessage.getTransactions(), blockMessage.getAtStates()); return new Block(repository, blockMessage.getBlockData(), blockMessage.getTransactions(), blockMessage.getAtStates());
} }
private void populateBlockSummariesMinterLevels(Repository repository, List<BlockSummaryData> blockSummaries) throws DataException { public void populateBlockSummariesMinterLevels(Repository repository, List<BlockSummaryData> blockSummaries) throws DataException {
final int firstBlockHeight = blockSummaries.get(0).getHeight(); final int firstBlockHeight = blockSummaries.get(0).getHeight();
for (int i = 0; i < blockSummaries.size(); ++i) { for (int i = 0; i < blockSummaries.size(); ++i) {