Don't print transaction purposes twice in wallet dump.

This commit is contained in:
Andreas Schildbach
2016-01-08 21:18:21 +01:00
parent 6789135562
commit 61594c18fe

View File

@@ -27,7 +27,6 @@ import com.google.common.util.concurrent.*;
import com.google.protobuf.*;
import net.jcip.annotations.*;
import org.bitcoin.protocols.payments.Protos.*;
import org.bitcoinj.core.Transaction.Purpose;
import org.bitcoinj.core.TransactionConfidence.*;
import org.bitcoinj.crypto.*;
import org.bitcoinj.params.*;
@@ -2830,9 +2829,6 @@ public class Wallet extends BaseTaggableObject implements Serializable, BlockCha
builder.append(tx.getValueSentToMe(this).toFriendlyString());
builder.append(", total value ");
builder.append(tx.getValue(this).toFriendlyString());
final Purpose purpose = tx.getPurpose();
if (purpose != null)
builder.append(", purpose: ").append(purpose);
builder.append(".\n");
} catch (ScriptException e) {
// Ignore and don't print this line.