Browse Source

delete logs

tags/1.1.11
shaozhuguang 5 years ago
parent
commit
f274a48b3c
1 changed files with 0 additions and 12 deletions
  1. +0
    -12
      source/consensus/consensus-bftsmart/src/main/java/com/jd/blockchain/consensus/bftsmart/client/BftsmartPeerProxyFactory.java

+ 0
- 12
source/consensus/consensus-bftsmart/src/main/java/com/jd/blockchain/consensus/bftsmart/client/BftsmartPeerProxyFactory.java View File

@@ -30,20 +30,8 @@ public class BftsmartPeerProxyFactory extends BasePooledObjectFactory<AsynchServ


@Override @Override
public AsynchServiceProxy create() throws Exception { public AsynchServiceProxy create() throws Exception {

BftsmartTopology topology = BinarySerializeUtils.deserialize(bftsmartClientSettings.getTopology()); BftsmartTopology topology = BinarySerializeUtils.deserialize(bftsmartClientSettings.getTopology());


View view = topology.getView();
if (view != null) {
// 打印view
int[] processes = view.getProcesses();
for (int process : processes) {
InetSocketAddress address = view.getAddress(process);
System.out.printf("read topology id = %s, address = %s \r\n",
process, address);
}
}

MemoryBasedViewStorage viewStorage = new MemoryBasedViewStorage(topology.getView()); MemoryBasedViewStorage viewStorage = new MemoryBasedViewStorage(topology.getView());
TOMConfiguration tomConfiguration = BinarySerializeUtils.deserialize(bftsmartClientSettings.getTomConfig()); TOMConfiguration tomConfiguration = BinarySerializeUtils.deserialize(bftsmartClientSettings.getTomConfig());




Loading…
Cancel
Save