Payment channels: clear a static analysis thread safety warning.

This commit is contained in:
Mike Hearn 2013-11-18 18:54:43 +01:00
parent 8dcead3508
commit 44944a62d0

View File

@ -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));