Minor changes to satisfy Codacy or clarify why it fails

This commit is contained in:
Dominykas Mostauskis 2020-02-18 13:02:39 +02:00
parent 74c946a28b
commit daa1b0b20b
No known key found for this signature in database
GPG Key ID: B5DA7DD87C5D5FB0

View File

@ -87,7 +87,9 @@ public class LocalBitcoinNode {
// i.e. is it fine to just always use MainNetParams?
var networkParameters = new MainNetParams();
var context = new Context(networkParameters);
// We must construct a BitcoinJ Context before using BitcoinJ.
// We don't keep a reference, because it's automatically kept in a thread local storage.
new Context(networkParameters);
var ourVersionMessage = new VersionMessage(networkParameters, 0);
@ -229,6 +231,7 @@ public class LocalBitcoinNode {
peerVersionMessageFuture.set(peer.getPeerVersionMessage());
}
public void onFailure(Throwable thr) {
;
}
};
Futures.addCallback(