Skip to content

Commit ae15331

Browse files
authored
Merge pull request #949 from tronprotocol/update_master_seed
Update master seed
2 parents bacf920 + f82adc5 commit ae15331

File tree

3 files changed

+12
-16
lines changed

3 files changed

+12
-16
lines changed

src/main/java/org/tron/common/overlay/server/SyncPool.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,16 +80,13 @@ public class SyncPool {
8080

8181
private PeerClient peerClient;
8282

83-
@Autowired
84-
public SyncPool(PeerClient peerClient) {
85-
this.peerClient = peerClient;
86-
}
87-
8883
public void init(PeerConnectionDelegate peerDel) {
8984
this.peerDel = peerDel;
9085

9186
channelManager = ctx.getBean(ChannelManager.class);
9287

88+
peerClient = ctx.getBean(PeerClient.class);
89+
9390
poolLoopExecutor.scheduleWithFixedDelay(() -> {
9491
try {
9592
fillUp();

src/main/resources/config.conf

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -125,17 +125,16 @@ seed.node = {
125125
# "ip:port"
126126
# ]
127127
ip.list = [
128-
"47.254.16.55:18888",
129-
"47.254.18.49:18888",
128+
"47.91.246.252:18888",
129+
"39.106.220.120:18888",
130+
"35.169.113.187:18888",
131+
"18.208.116.213:18888",
130132
"18.188.111.53:18888",
133+
"52.14.211.18:18888",
131134
"54.219.41.56:18888",
132-
"35.169.113.187:18888",
135+
"13.57.78.225:18888",
133136
"34.214.241.188:18888",
134-
"47.254.146.147:18888",
135-
"47.254.144.25:18888",
136-
"47.91.246.252:18888",
137-
"47.91.216.69:18888",
138-
"39.106.220.120:18888"
137+
"54.200.48.177:18888"
139138
]
140139
}
141140

src/test/java/org/tron/core/net/node/NodeImplTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ public void testDisconnectInactive() {
192192
peer3.setSyncBlockRequested(syncBlockRequested3);
193193

194194
// fetch failed
195-
SyncPool pool = new SyncPool(new PeerClient());
195+
SyncPool pool = new SyncPool();
196196
pool.addActivePeers(peer1);
197197
nodeImpl.setPool(pool);
198198
try {
@@ -203,7 +203,7 @@ public void testDisconnectInactive() {
203203
}
204204

205205
// sync failed
206-
pool = new SyncPool(new PeerClient());
206+
pool = new SyncPool();
207207
pool.addActivePeers(peer2);
208208
nodeImpl.setPool(pool);
209209
try {
@@ -214,7 +214,7 @@ public void testDisconnectInactive() {
214214
}
215215

216216
// should not disconnect
217-
pool = new SyncPool(new PeerClient());
217+
pool = new SyncPool();
218218
pool.addActivePeers(peer3);
219219
nodeImpl.setPool(pool);
220220
try {

0 commit comments

Comments
 (0)