Read prevTxIndexes before insert inputs