From 9c99ec6d2c2843a179b6f8362c431f488b846700 Mon Sep 17 00:00:00 2001 From: shaozhuguang Date: Fri, 15 May 2020 09:23:01 +0800 Subject: [PATCH] add bftsmart return topology print --- .../client/BftsmartPeerProxyFactory.java | 13 +++++++ .../peer/web/ManagementController.java | 35 ++++++++++++------- 2 files changed, 36 insertions(+), 12 deletions(-) diff --git a/source/consensus/consensus-bftsmart/src/main/java/com/jd/blockchain/consensus/bftsmart/client/BftsmartPeerProxyFactory.java b/source/consensus/consensus-bftsmart/src/main/java/com/jd/blockchain/consensus/bftsmart/client/BftsmartPeerProxyFactory.java index 306a71f0..55074e56 100644 --- a/source/consensus/consensus-bftsmart/src/main/java/com/jd/blockchain/consensus/bftsmart/client/BftsmartPeerProxyFactory.java +++ b/source/consensus/consensus-bftsmart/src/main/java/com/jd/blockchain/consensus/bftsmart/client/BftsmartPeerProxyFactory.java @@ -2,6 +2,7 @@ package com.jd.blockchain.consensus.bftsmart.client; import bftsmart.reconfiguration.util.TOMConfiguration; import bftsmart.reconfiguration.views.MemoryBasedViewStorage; +import bftsmart.reconfiguration.views.View; import bftsmart.tom.AsynchServiceProxy; import com.jd.blockchain.consensus.bftsmart.BftsmartConsensusConfig; import com.jd.blockchain.consensus.bftsmart.BftsmartTopology; @@ -11,6 +12,7 @@ import org.apache.commons.pool2.BasePooledObjectFactory; import org.apache.commons.pool2.PooledObject; import org.apache.commons.pool2.impl.DefaultPooledObject; +import java.net.InetSocketAddress; import java.util.concurrent.atomic.AtomicInteger; public class BftsmartPeerProxyFactory extends BasePooledObjectFactory { @@ -31,6 +33,17 @@ public class BftsmartPeerProxyFactory extends BasePooledObjectFactory