Added broadcast multisig contract to wallet bloom filter. Fixes #1181

This commit is contained in:
Will Shackleton
2016-02-07 21:46:43 +00:00
committed by Andreas Schildbach
parent 99e5ffb206
commit a0497bda34

View File

@@ -235,6 +235,7 @@ public class PaymentChannelServerState {
throw e;
}
log.info("Broadcasting multisig contract: {}", multisigContract);
wallet.addWatchedScripts(ImmutableList.of(multisigContract.getOutput(0).getScriptPubKey()));
state = State.WAITING_FOR_MULTISIG_ACCEPTANCE;
final SettableFuture<PaymentChannelServerState> future = SettableFuture.create();
Futures.addCallback(broadcaster.broadcastTransaction(multisigContract).future(), new FutureCallback<Transaction>() {