Fixed off-by-one bug (correctly this time)

This commit is contained in:
CalDescent 2023-05-21 20:02:58 +01:00
parent c763445e6e
commit aea1cc62c8

View File

@ -108,7 +108,7 @@ public abstract class RepositoryManager {
int blockchainHeight = repository.getBlockRepository().getBlockchainHeight();
int totalTransactionCount = 0;
for (int height = 1; height < blockchainHeight; ++height) {
for (int height = 1; height <= blockchainHeight; ++height) {
List<TransactionData> inputTransactions = new ArrayList<>();
// Fetch block and transactions