static boolean canUpdate(int transactionLogLayer, int transactionLogIndex, int entryInfoLayer, int entryInfoIndex) {
        if (transactionLogLayer == entryInfoLayer) {
            // Must make sure to not update beyond the current index
            if (transactionLogIndex >= entryInfoIndex) {
                return true;
            }
        }

        if (transactionLogLayer > entryInfoLayer) {
            if (transactionLogIndex < entryInfoIndex) {
                return true;
            }
        }

        return false;
    }
@DisplayName("Tests that can update records on the same layer")
    @Test
    void testCanUpdateSameLayer() {
        assertTrue(TransactionLog.canUpdate(0, 10, 0, 1));
        assertTrue(TransactionLog.canUpdate(0, 10, 0, 10));
        assertFalse(TransactionLog.canUpdate(0, 10, 0, 11));
    }