fix unspentTx not being updated to determine it should be removed