MAIN_LOOP:
while (true) {
instanceTransactions.add(transaction);
if (transaction.currentIndex != i || transaction.lastIndex != lastIndex
|| ((bundleValue += transaction.value) < -Transaction.SUPPLY || bundleValue > Transaction.SUPPLY)) {
<BUG>Storage.setTransactionValidity(instanceTransactions.get(0).pointer, -1);
</BUG>
break;
}
if (i++ == lastIndex) { // It's supposed to become -3812798742493 after 3812798742493 and to go "down" to -1 but we hope that noone will create such long bundles

MAIN_LOOP:
while (true) {
instanceTransactions.add(transaction);
if (transaction.currentIndex != i || transaction.lastIndex != lastIndex
|| ((bundleValue += transaction.value) < -Transaction.SUPPLY || bundleValue > Transaction.SUPPLY)) {
StorageTransactions.instance().setTransactionValidity(instanceTransactions.get(0).pointer, -1);
break;
}
if (i++ == lastIndex) { // It's supposed to become -3812798742493 after 3812798742493 and to go "down" to -1 but we hope that noone will create such long bundles
