added check for "pending" transactions that cant be confirmed by next block