From 44944a62d0dbc502941cb53e89f25037907f9c9f Mon Sep 17 00:00:00 2001 From: Mike Hearn Date: Mon, 18 Nov 2013 18:54:43 +0100 Subject: [PATCH] Payment channels: clear a static analysis thread safety warning. --- .../bitcoin/protocols/channels/PaymentChannelClientState.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/com/google/bitcoin/protocols/channels/PaymentChannelClientState.java b/core/src/main/java/com/google/bitcoin/protocols/channels/PaymentChannelClientState.java index 75dcd5179..1f3566e26 100644 --- a/core/src/main/java/com/google/bitcoin/protocols/channels/PaymentChannelClientState.java +++ b/core/src/main/java/com/google/bitcoin/protocols/channels/PaymentChannelClientState.java @@ -126,7 +126,7 @@ public class PaymentChannelClientState { /** * Returns true if the tx is a valid settlement transaction. */ - public boolean isSettlementTransaction(Transaction tx) { + public synchronized boolean isSettlementTransaction(Transaction tx) { try { tx.verify(); tx.getInput(0).verify(multisigContract.getOutput(0));