Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
126 commits
Select commit Hold shift + click to select a range
b4bfe5e
add tvm stest
xiechang33 Apr 29, 2019
dfb4eb8
add tvm stest
xiechang33 Apr 29, 2019
505165a
add create2 and extcodehash test cases
DannaGuo May 6, 2019
19614d2
improve tvmNewCommand stest
xiechang33 May 7, 2019
1aaa319
Merge branch 'develop' into feature/add_TVMNewCommand_stest
xiechang33 May 7, 2019
9038522
add tvm stest
xiechang33 May 10, 2019
da43170
add TransferFailed 005-007
MiraculousWang May 10, 2019
d8a6cd2
add TransferFailed case 005-007
MiraculousWang May 10, 2019
2c26067
add extcodehash command stress test case
DannaGuo May 10, 2019
e2c117c
add tvm stest
xiechang33 May 10, 2019
643e78b
add tvm stest
xiechang33 May 10, 2019
d88e760
modify extcodehashStressTest
MiraculousWang May 16, 2019
f5a5ec4
update read me
May 17, 2019
21d6fb1
modify checkstyle
MiraculousWang May 20, 2019
c700b3a
Merge branch 'develop' into feature/add_TVMNewCommand_stest
MiraculousWang May 20, 2019
42e3566
modify testcase runTime
MiraculousWang May 21, 2019
f53fd63
modify the class name
lvs007 May 28, 2019
2e3306d
modify the class name
lvs007 May 28, 2019
e9e78b0
Merge pull request #2255 from tronprotocol/modify-class-name
lvs007 May 28, 2019
801d79e
add resource receive test
xiechang33 May 29, 2019
a399ba3
optimization fast forward function
xxo1shine May 29, 2019
8434feb
add create2 case 019-020
MiraculousWang May 29, 2019
5d4e591
modify case
MiraculousWang May 29, 2019
59ca167
improve create2 stest
xiechang33 May 29, 2019
418715f
improve dailybuild stability
xiechang33 May 29, 2019
f18f5f9
Add delegate resource to smart contract
May 29, 2019
2f04d50
improve dailybuild stability
xiechang33 May 29, 2019
4949db8
Add delegate resource to smart contract
May 30, 2019
538b97b
Add delegate resource to smart contract
May 30, 2019
8713be0
improve dailybuild stability
xiechang33 May 30, 2019
2974c48
improve dailybuild stability
xiechang33 May 30, 2019
82d7663
optimizing network statistics
xxo1shine May 31, 2019
fe16498
add case
MiraculousWang May 31, 2019
63dff98
improve dailybuild stability
xiechang33 May 31, 2019
a746780
modify blockUpdateTimeout to 30s
xxo1shine Jun 3, 2019
fdc85c8
add test case
MiraculousWang Jun 3, 2019
19bab74
modify fast forward schedule function
xxo1shine Jun 3, 2019
86ad145
modify for generateBlock test
xxo1shine Jun 3, 2019
eefe9c1
optimize transaction history database
Jun 3, 2019
af34754
merge develop
Jun 3, 2019
a4bf566
remove unuse line
Jun 3, 2019
50ac43a
modify block message handle log
xxo1shine Jun 4, 2019
d73d14b
Merge pull request #2284 from tronprotocol/release_3.6
BlueHoopor Jun 4, 2019
0e5e378
Merge pull request #2269 from tronprotocol/fast_forward
xxo1shine Jun 4, 2019
80adc84
modify sonar problem
xxo1shine Jun 5, 2019
1da7fbb
Merge pull request #2285 from tronprotocol/sonar_repair
xxo1shine Jun 5, 2019
75d2709
add witness to trustNode
xxo1shine Jun 5, 2019
e273b3a
add fastforwad node note
xxo1shine Jun 5, 2019
a3b417b
fix bug
Jun 5, 2019
f38801a
Merge pull request #2286 from tronprotocol/fast_forward
xxo1shine Jun 5, 2019
4c326ab
add input null check
Jun 5, 2019
5473c66
add unit test
Jun 6, 2019
36f1519
Merge pull request #2276 from tronprotocol/feature/optimizeDatabase
DorianRust Jun 6, 2019
33faedd
modify fastForward logic
xxo1shine Jun 6, 2019
184fe50
modify fastForward logic
xxo1shine Jun 6, 2019
8ee7253
modify fastForward logic
xxo1shine Jun 6, 2019
41adb1a
modify processblock log logic
xxo1shine Jun 6, 2019
3b5497a
modify processblock logic
xxo1shine Jun 6, 2019
67ef930
modify processblock msg logic
xxo1shine Jun 6, 2019
fe56e2c
modify processblock log
xxo1shine Jun 6, 2019
b291028
Merge pull request #2291 from tronprotocol/fast_forward
xxo1shine Jun 6, 2019
d9454e9
add unit test for transaction ret
Jun 10, 2019
589f02d
add unit test for transaction ret
Jun 10, 2019
4454142
add unit test for transaction ret
Jun 10, 2019
1f3b483
Merge pull request #2294 from tronprotocol/addUnitTestRetStore
DorianRust Jun 10, 2019
e06c9e4
fix check style error
Jun 10, 2019
8d01d7e
Merge pull request #2296 from tronprotocol/addUnitTestRetStore
DorianRust Jun 10, 2019
f87e185
Merge pull request #2295 from tronprotocol/release_3.6
llwslc Jun 11, 2019
8c95742
Replace the docker server ip
Jun 11, 2019
4bf6c19
modify tvmnewCommand Case
MiraculousWang Jun 12, 2019
dc86980
Modify testcase
Jun 12, 2019
65ab63c
Modify testng.conf
Jun 12, 2019
0861427
Change ip
Jun 12, 2019
7605e4b
Change ip
Jun 12, 2019
6b9bd8a
Change ip
Jun 12, 2019
24575f0
Merge pull request #2299 from tronprotocol/replace_docker_server
wangzichichi Jun 13, 2019
38dc3e1
modify testcase
MiraculousWang Jun 13, 2019
fee3313
modify test case
MiraculousWang Jun 13, 2019
a08f035
modify config
MiraculousWang Jun 13, 2019
5744c38
add httpClearABIcontract testcase
MiraculousWang Jun 13, 2019
706e6be
Merge pull request #2303 from tronprotocol/feature/add_TVMNewCommand_…
MiraculousWang Jun 13, 2019
7fb2387
modify sync logic
xxo1shine Jun 13, 2019
b38e658
Merge pull request #2304 from tronprotocol/sync
xxo1shine Jun 13, 2019
8ea8a61
modify testcase
MiraculousWang Jun 14, 2019
671d336
modify checkstyle
MiraculousWang Jun 14, 2019
b904553
fix testcase error
MiraculousWang Jun 14, 2019
3350cb7
modify ContractTrcToken077
MiraculousWang Jun 14, 2019
cb03339
modify ContractTrcToken077
MiraculousWang Jun 14, 2019
45454c3
Merge pull request #2305 from tronprotocol/feature/add_TVMNewCommand_…
MiraculousWang Jun 14, 2019
5453334
add stest case
MiraculousWang Jun 18, 2019
3151fb6
add AssertException002
MiraculousWang Jun 18, 2019
2e3faf4
add connect check
MiraculousWang Jun 18, 2019
04bb609
add check contractResult stest
xiechang33 Jun 18, 2019
e7c82d1
Merge branch 'develop' into feature/add_TVMNewCommand_stest_back
xiechang33 Jun 18, 2019
1a75739
modify test case
MiraculousWang Jun 18, 2019
9c2acc4
add ContractScenario016
MiraculousWang Jun 18, 2019
cbcfe89
modify TransferFailed001
MiraculousWang Jun 18, 2019
8b5a2cb
Merge pull request #2313 from tronprotocol/feature/add_TVMNewCommand_…
MiraculousWang Jun 19, 2019
ee29c72
add history switch
Jun 19, 2019
3062f6d
Merge branch 'develop' into hotfix/trace_result_set
ithinker1991 Jun 19, 2019
8ce8645
Merge pull request #2317 from tronprotocol/hotfix/trace_result_set
MiraculousWang Jun 19, 2019
208d85f
Merge pull request #2316 from tronprotocol/HotFix/addHistorySwitch
DorianRust Jun 19, 2019
c184c4a
add more unit test for transactionRet
Jun 20, 2019
76d11c0
fix type error
Jun 20, 2019
8e4f24c
Merge pull request #2319 from tronprotocol/HotFix/AddUnitTest
HuangZhengSi Jun 20, 2019
94094d1
modify block msg process msg
xxo1shine Jun 20, 2019
cebe2e8
Merge pull request #2320 from tronprotocol/p2p_adv_t
xxo1shine Jun 20, 2019
138c884
modify nodes cfg
xxo1shine Jun 24, 2019
25bc40f
update start up bash
DorianRust Jun 24, 2019
78059cd
modify version to 3.6.1
xxo1shine Jun 24, 2019
156ce0d
Merge pull request #2325 from tronprotocol/feature/OptimizeStartUp
DorianRust Jun 24, 2019
630fcdf
modify syncpool test
xxo1shine Jun 24, 2019
5294a72
Merge branch 'release_3.6.1' of https://github.com/tronprotocol/java-…
xxo1shine Jun 24, 2019
450fa28
Merge pull request #2328 from tronprotocol/p2p_adv_t
xxo1shine Jun 24, 2019
dcbe050
optimizing the logic of fast forward node
xxo1shine Jun 25, 2019
541210d
Merge pull request #2329 from tronprotocol/p2p_adv_t
xxo1shine Jun 25, 2019
24d10ec
Enable shadowJar for jitpack dependency
DorianRust Jun 25, 2019
65930da
Merge pull request #2330 from tronprotocol/feature/enablejitpack
DorianRust Jun 25, 2019
4e85f59
modify fastnode process block
xxo1shine Jun 25, 2019
bfa63f2
Merge pull request #2332 from tronprotocol/p2p_adv_t
xxo1shine Jun 25, 2019
b9eb717
merge from master
xxo1shine Jul 5, 2019
87496d3
Merge branch 'release_3.6.1' of https://github.com/tronprotocol/java-…
xxo1shine Jul 5, 2019
f133aa1
merge from master
xxo1shine Jul 5, 2019
a222d32
Merge pull request #2339 from tronprotocol/p2p_adv_t
xxo1shine Jul 5, 2019
2b7b9a2
modify block handle msg
xxo1shine Jul 9, 2019
9f9f0b6
Merge pull request #2343 from tronprotocol/p2p_adv_t
xxo1shine Jul 9, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
#
# - run:
# name: Daily Build Report
# command: curl http://60.205.215.34/Daily_Build_Task_Report
# command: curl http://47.95.206.44:50080/Daily_Build_Task_Report
#
# - run:
# name: Download Links
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,4 @@ nodeId.properties
Wallet

# vm_trace
/vm_trace/
/vm_trace/
14 changes: 7 additions & 7 deletions DownloadLinks.sh
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
PassFlag=`curl -s http://60.205.215.34/Daily_Build_Task_Report | grep "Failed: 0" | wc -c`
PassFlag=`curl -s http://47.95.206.44:50080/Daily_Build_Task_Report | grep "Failed: 0" | wc -c`

if [ $PassFlag -eq 0 ]; then
echo "Daily Build Stest Fail"
echo "To view Daily Replay and Stress Test logs please visit website below on browsers"
echo "--- http://60.205.215.34/latestReplayLog"
echo "--- http://60.205.215.34/latestStressLog"
echo "--- http://47.95.206.44:50080/latestReplayLog"
echo "--- http://47.95.206.44:50080/latestStressLog"

else
echo "Daily Build Stest Pass"
echo "Build on `date +"%Y-%m-%d"` 3:00:00 (CST), UTC +8"
echo "Please visit following website to download java-tron.jar on browsers"
echo "--- http://60.205.215.34/Daily_Build/java-tron.jar"
echo "--- http://47.95.206.44:50080/Daily_Build/jFava-tron.jar"
echo "To view Daily Replay and Stress Test logs please visit website below on browsers"
echo "--- http://60.205.215.34/latestReplayLog"
echo "--- http://60.205.215.34/latestStressLog"
echo "--- http://47.95.206.44:50080/latestReplayLog"
echo "--- http://47.95.206.44:50080/latestStressLog"
echo "The following compressed package is provided for user to set up Fullnode. Please use Linux OS to Download"
echo "--- curl -# -O http://60.205.215.34/Daily_Build/java-tron.tar.gz"
echo "--- curl -# -O http://47.95.206.44:50080/Daily_Build/java-tron.tar.gz"
echo "To unzip file use the command below"
echo "--- tar -xzvf java-tron.tar.gz"
fi
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ apply plugin: "jacoco"
apply plugin: 'maven-publish'

jar.enabled = false
shadowJar.enabled = false
shadowJar.enabled = true

sourceCompatibility = 1.8
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
Expand Down
16 changes: 9 additions & 7 deletions deploy.sh
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
#!/bin/bash
if [[ "$TRAVIS_BRANCH" = "develop" || "$TRAVIS_BRANCH" = "master" ]];then
stestlogname="`date +%Y%m%d%H%M%S`_stest.log"
timeout 10 ping -c 5 47.93.42.145 > /dev/null || exit 1
timeout 10 ping -c 5 47.93.18.60 > /dev/null || exit 1
stest_server=""
docker_num_in_67=`ssh -p 22008 -t java-tron@47.93.42.145 'docker ps -a | wc -l'`
docker_num_in_67=`echo $docker_num_in_67 | tr -d "\r"`
docker_num_in_122=`ssh -p 22008 -t java-tron@47.93.18.60 'docker ps -a | wc -l'`
docker_num_in_122=`echo $docker_num_in_122 | tr -d "\r"`
if [ $docker_num_in_67 -le $docker_num_in_122 ];
docker_num_in_145=`ssh -p 22008 -t java-tron@47.93.42.145 'docker ps -a | wc -l'`
docker_num_in_145=`echo $docker_num_in_145 | tr -d "\r"`
docker_num_in_60=`ssh -p 22008 -t java-tron@47.93.18.60 'docker ps -a | wc -l'`
docker_num_in_60=`echo $docker_num_in_60 | tr -d "\r"`
if [ $docker_num_in_145 -le $docker_num_in_60 ];
then
docker_num=$docker_num_in_67
docker_num=$docker_num_in_145
stest_server=47.93.42.145
else
docker_num=$docker_num_in_122
docker_num=$docker_num_in_60
stest_server=47.93.18.60
fi

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public NodeHandler(Node node, NodeManager nodeManager) {
this.node = node;
this.nodeManager = nodeManager;
this.inetSocketAddress = new InetSocketAddress(node.getHost(), node.getPort());
this.nodeStatistics = new NodeStatistics(node);
this.nodeStatistics = new NodeStatistics();
changeState(State.Discovered);
}

Expand Down Expand Up @@ -201,8 +201,7 @@ public void handlePing(PingMessage msg) {
public void handlePong(PongMessage msg) {
if (waitForPong) {
waitForPong = false;
getNodeStatistics().discoverMessageLatency
.add((double) System.currentTimeMillis() - pingSent);
getNodeStatistics().discoverMessageLatency.add(System.currentTimeMillis() - pingSent);
getNodeStatistics().lastPongReplyTime.set(System.currentTimeMillis());
node.setId(msg.getFrom().getId());
if (msg.getVersion() != Args.getInstance().getNodeP2pVersion()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import java.util.concurrent.atomic.AtomicInteger;
import java.util.concurrent.atomic.AtomicLong;
import lombok.Getter;
import lombok.Setter;
import org.tron.common.overlay.discover.node.Node;
import org.tron.core.config.args.Args;
import org.tron.protos.Protocol.ReasonCode;
Expand Down Expand Up @@ -48,12 +49,15 @@ public class NodeStatistics {
public final MessageCount tcpFlow = new MessageCount();

public final SimpleStatter discoverMessageLatency;
public final SimpleStatter pingMessageLatency;

public final AtomicLong lastPongReplyTime = new AtomicLong(0L); // in milliseconds

private Reputation reputation;

public NodeStatistics(Node node) {
discoverMessageLatency = new SimpleStatter(node.getIdString());
public NodeStatistics() {
discoverMessageLatency = new SimpleStatter();
pingMessageLatency = new SimpleStatter();
reputation = new Reputation(this);
}

Expand Down Expand Up @@ -182,40 +186,26 @@ public String toString() {
}

public class SimpleStatter {

private final String name;
private volatile double last;
private volatile double sum;
private AtomicInteger count = new AtomicInteger();

public SimpleStatter(String name) {
this.name = name;
}

public void add(double value) {
private long sum;
@Getter
private long count;
@Getter
private long last;
@Getter
private long min;
@Getter
private long max;

public void add(long value) {
last = value;
sum += value;
count.incrementAndGet();
}

public double getLast() {
return last;
}

public int getCount() {
return count.get();
}

public double getSum() {
return sum;
}

public double getAvrg() {
return count.get() == 0 ? 0 : sum / count.get();
min = min == 0? value : Math.min(min, value);
max = Math.max(max, value);
count++;
}

public String getName() {
return name;
public long getAvrg() {
return count == 0 ? 0 : sum / count;
}

}
Expand Down
29 changes: 1 addition & 28 deletions src/main/java/org/tron/common/overlay/server/Channel.java
Original file line number Diff line number Diff line change
@@ -1,20 +1,3 @@
/*
* Copyright (c) [2016] [ <ether.camp> ]
* This file is part of the ethereumJ library.
*
* The ethereumJ library is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* The ethereumJ library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with the ethereumJ library. If not, see <http://www.gnu.org/licenses/>.
*/
package org.tron.common.overlay.server;

import io.netty.channel.ChannelHandlerContext;
Expand Down Expand Up @@ -90,10 +73,6 @@ public class Channel {

private volatile boolean isDisconnect;

private String remoteId;

private PeerStatistics peerStats = new PeerStatistics();

private boolean isTrustPeer;

private boolean isFastForwardPeer;
Expand All @@ -103,8 +82,6 @@ public void init(ChannelPipeline pipeline, String remoteId, boolean discoveryMod

this.channelManager = channelManager;

this.remoteId = remoteId;

isActive = remoteId != null && !remoteId.isEmpty();

startTime = System.currentTimeMillis();
Expand All @@ -129,7 +106,7 @@ public void init(ChannelPipeline pipeline, String remoteId, boolean discoveryMod
}

public void publicHandshakeFinished(ChannelHandlerContext ctx, HelloMessage msg) {
isTrustPeer = channelManager.getTrustNodes().containsKey(getInetAddress());
isTrustPeer = channelManager.getTrustNodes().getIfPresent(getInetAddress()) != null;
isFastForwardPeer = channelManager.getFastForwardNodes().containsKey(getInetAddress());
ctx.pipeline().remove(handshakeHandler);
msgQueue.activate(ctx);
Expand Down Expand Up @@ -197,10 +174,6 @@ public enum TronState {
SYNC_FAILED
}

public PeerStatistics getPeerStats() {
return peerStats;
}

public Node getNode() {
return node;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public class ChannelManager {
.maximumSize(1000).expireAfterWrite(30, TimeUnit.SECONDS).recordStats().build();

@Getter
private Map<InetAddress, Node> trustNodes = new ConcurrentHashMap();
private Cache<InetAddress, Node> trustNodes = CacheBuilder.newBuilder().maximumSize(100).build();

@Getter
private Map<InetAddress, Node> activeNodes = new ConcurrentHashMap();
Expand Down Expand Up @@ -126,7 +126,7 @@ public void notifyDisconnect(Channel channel) {

public synchronized boolean processPeer(Channel peer) {

if (!trustNodes.containsKey(peer.getInetAddress())) {
if (trustNodes.getIfPresent(peer.getInetAddress()) == null) {
if (recentlyDisconnected.getIfPresent(peer) != null) {
logger.info("Peer {} recently disconnected.", peer.getInetAddress());
return false;
Expand Down
30 changes: 8 additions & 22 deletions src/main/java/org/tron/common/overlay/server/FastForward.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package org.tron.common.overlay.server;

import com.google.protobuf.ByteString;
import java.net.InetAddress;
import java.net.InetSocketAddress;
import java.util.List;
Expand All @@ -13,10 +14,8 @@
import org.tron.common.backup.BackupManager;
import org.tron.common.backup.BackupManager.BackupStatusEnum;
import org.tron.common.overlay.discover.node.Node;
import org.tron.common.overlay.discover.node.NodeManager;
import org.tron.core.config.args.Args;
import org.tron.core.db.Manager;
import org.tron.core.db.WitnessStore;
import org.tron.core.db.WitnessScheduleStore;
import org.tron.core.services.WitnessService;
import org.tron.protos.Protocol.ReasonCode;

Expand All @@ -27,12 +26,6 @@ public class FastForward {
@Autowired
private ApplicationContext ctx;

private Manager manager;

private WitnessStore witnessStore;

private NodeManager nodeManager;

private ChannelManager channelManager;

private BackupManager backupManager;
Expand All @@ -41,7 +34,8 @@ public class FastForward {

private Args args = Args.getInstance();
private List<Node> fastForwardNodes = args.getFastForwardNodes();
private byte[] witnessAddress = args.getLocalWitnesses().getWitnessAccountAddress();
private ByteString witnessAddress = ByteString
.copyFrom(args.getLocalWitnesses().getWitnessAccountAddress());
private int keySize = args.getLocalWitnesses().getPrivateKeys().size();

public void init() {
Expand All @@ -53,21 +47,14 @@ public void init() {
return;
}

manager = ctx.getBean(Manager.class);
witnessStore = ctx.getBean(WitnessStore.class);
nodeManager = ctx.getBean(NodeManager.class);
channelManager = ctx.getBean(ChannelManager.class);
backupManager = ctx.getBean(BackupManager.class);

if (args.getFastForwardNodes().size() > 0) {
fastForwardNodes = args.getFastForwardNodes();
}
WitnessScheduleStore witnessScheduleStore = ctx.getBean(WitnessScheduleStore.class);

executorService.scheduleWithFixedDelay(() -> {
try {
if (witnessStore.get(witnessAddress) != null &&
backupManager.getStatus().equals(BackupStatusEnum.MASTER) &&
!WitnessService.isNeedSyncCheck()) {
if (witnessScheduleStore.getActiveWitnesses().contains(witnessAddress) &&
backupManager.getStatus().equals(BackupStatusEnum.MASTER)) {
connect();
} else {
disconnect();
Expand All @@ -90,11 +77,10 @@ private void disconnect() {
InetAddress address = new InetSocketAddress(node.getHost(), node.getPort()).getAddress();
channelManager.getActiveNodes().remove(address);
channelManager.getActivePeers().forEach(channel -> {
if (channel.getNode().equals(node)) {
if (channel.getInetAddress().equals(address)) {
channel.disconnect(ReasonCode.RESET);
}
});
});
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ private void handleHelloMsg(ChannelHandlerContext ctx, HelloMessage msg) {

if (remoteId.length != 64) {
InetAddress address = ((InetSocketAddress) ctx.channel().remoteAddress()).getAddress();
if (!channelManager.getTrustNodes().keySet().contains(address) && !syncPool.isCanConnect()) {
if (channelManager.getTrustNodes().getIfPresent(address) == null && !syncPool.isCanConnect()) {
channel.disconnect(ReasonCode.TOO_MANY_PEERS);
return;
}
Expand Down
Loading