public static Hash latestSolidSubtangleMilestone = Hash.NULL_HASH;
public static int latestMilestoneIndex = 6000;
public static int latestSolidSubtangleMilestoneIndex = 6000;
private static final Set<Long> analyzedMilestoneCandidates = new HashSet<>();
private static final Map<Integer, Hash> milestones = new ConcurrentHashMap<>();
<BUG>public static void updateLatestMilestone() {

for (final Long pointer : Storage.addressTransactions(Storage.addressPointer(COORDINATOR.bytes()))) {
if (analyzedMilestoneCandidates.add(pointer)) {
final Transaction transaction = Storage.loadTransaction(pointer);
</BUG>
if (transaction.currentIndex == 0) {

public static Hash latestSolidSubtangleMilestone = Hash.NULL_HASH;
public static int latestMilestoneIndex = 6000;
public static int latestSolidSubtangleMilestoneIndex = 6000;
private static final Set<Long> analyzedMilestoneCandidates = new HashSet<>();
private static final Map<Integer, Hash> milestones = new ConcurrentHashMap<>();
public static void updateLatestMilestone() { // refactor
for (final Long pointer : StorageAddresses.instance().addressesOf(COORDINATOR)) {
if (analyzedMilestoneCandidates.add(pointer)) {
final Transaction transaction = StorageTransactions.instance().loadTransaction(pointer);
if (transaction.currentIndex == 0) {
