mirror of
https://github.com/bisq-network/bisq.git
synced 2025-01-18 21:35:03 +01:00
Code polishing to make Codacy happier
This commit is contained in:
parent
f342c89c8e
commit
f1738f0b19
@ -17,7 +17,6 @@
|
||||
|
||||
package bisq.asset;
|
||||
|
||||
import org.bitcoinj.core.Address;
|
||||
import org.bitcoinj.core.AddressFormatException;
|
||||
import org.bitcoinj.core.LegacyAddress;
|
||||
import org.bitcoinj.core.NetworkParameters;
|
||||
|
@ -24,7 +24,6 @@ import org.bitcoinj.script.Script;
|
||||
import org.bitcoinj.wallet.DefaultKeyChainFactory;
|
||||
import org.bitcoinj.wallet.DeterministicKeyChain;
|
||||
import org.bitcoinj.wallet.DeterministicSeed;
|
||||
import org.bitcoinj.wallet.KeyChainFactory;
|
||||
import org.bitcoinj.wallet.KeyChainGroupStructure;
|
||||
import org.bitcoinj.wallet.Protos;
|
||||
import org.bitcoinj.wallet.UnreadableWalletException;
|
||||
|
@ -523,18 +523,18 @@ public class WalletConfig extends AbstractIdleService {
|
||||
* As soon as the transaction broadcaster han been created we will pass it to the
|
||||
* payment channel extensions
|
||||
*/
|
||||
// private void completeExtensionInitiations(TransactionBroadcaster transactionBroadcaster) {
|
||||
// StoredPaymentChannelClientStates clientStoredChannels = (StoredPaymentChannelClientStates)
|
||||
// vWallet.getExtensions().get(StoredPaymentChannelClientStates.class.getName());
|
||||
// if(clientStoredChannels != null) {
|
||||
// clientStoredChannels.setTransactionBroadcaster(transactionBroadcaster);
|
||||
// }
|
||||
// StoredPaymentChannelServerStates serverStoredChannels = (StoredPaymentChannelServerStates)
|
||||
// vWallet.getExtensions().get(StoredPaymentChannelServerStates.class.getName());
|
||||
// if(serverStoredChannels != null) {
|
||||
// serverStoredChannels.setTransactionBroadcaster(transactionBroadcaster);
|
||||
// }
|
||||
// }
|
||||
// private void completeExtensionInitiations(TransactionBroadcaster transactionBroadcaster) {
|
||||
// StoredPaymentChannelClientStates clientStoredChannels = (StoredPaymentChannelClientStates)
|
||||
// vWallet.getExtensions().get(StoredPaymentChannelClientStates.class.getName());
|
||||
// if(clientStoredChannels != null) {
|
||||
// clientStoredChannels.setTransactionBroadcaster(transactionBroadcaster);
|
||||
// }
|
||||
// StoredPaymentChannelServerStates serverStoredChannels = (StoredPaymentChannelServerStates)
|
||||
// vWallet.getExtensions().get(StoredPaymentChannelServerStates.class.getName());
|
||||
// if(serverStoredChannels != null) {
|
||||
// serverStoredChannels.setTransactionBroadcaster(transactionBroadcaster);
|
||||
// }
|
||||
// }
|
||||
|
||||
private PeerGroup createPeerGroup() {
|
||||
PeerGroup peerGroup;
|
||||
|
@ -21,7 +21,6 @@ import bisq.core.locale.Res;
|
||||
|
||||
import bisq.common.config.Config;
|
||||
|
||||
import org.bitcoinj.core.Address;
|
||||
import org.bitcoinj.core.AddressFormatException;
|
||||
import org.bitcoinj.core.LegacyAddress;
|
||||
|
||||
|
@ -29,11 +29,9 @@ import com.runjva.sourceforge.jsocks.protocol.Socks5Proxy;
|
||||
import java.net.InetAddress;
|
||||
import java.net.UnknownHostException;
|
||||
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
import static org.junit.Assert.assertNull;
|
||||
import static org.mockito.ArgumentMatchers.any;
|
||||
import static org.mockito.ArgumentMatchers.anyString;
|
||||
import static org.mockito.Mockito.mock;
|
||||
|
@ -80,7 +80,6 @@ import javafx.collections.transformation.SortedList;
|
||||
import javafx.util.Callback;
|
||||
|
||||
import java.util.Comparator;
|
||||
import java.util.List;
|
||||
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
|
@ -68,7 +68,6 @@ import bisq.common.util.Tuple2;
|
||||
import bisq.common.util.Tuple3;
|
||||
import bisq.common.util.Utilities;
|
||||
|
||||
import org.bitcoinj.core.Address;
|
||||
import org.bitcoinj.core.Coin;
|
||||
import org.bitcoinj.core.LegacyAddress;
|
||||
import org.bitcoinj.core.TransactionConfidence;
|
||||
|
@ -164,7 +164,7 @@ public abstract class P2PSeedNodeSnapshotBase extends Metric implements MessageL
|
||||
|
||||
@Override
|
||||
public void onMessage(NetworkEnvelope networkEnvelope, Connection connection) {
|
||||
if(treatMessage(networkEnvelope, connection)) {
|
||||
if (treatMessage(networkEnvelope, connection)) {
|
||||
gate.proceed();
|
||||
} else if (networkEnvelope instanceof CloseConnectionMessage) {
|
||||
gate.unlock();
|
||||
|
Loading…
Reference in New Issue
Block a user