fix tx.get_value bug with pruned transactions