13813385093
13813385093
JDK版本 2.9.3 ``` org.fisco-bcos.java-sdk fisco-bcos-java-sdk 2.9.3 ``` 通过广播发送消息 ``` public void sendNormalMsg(String topic, String msg) { Amop amop = bcosSDK.getAmop(); AmopMsgOut msgOut = new AmopMsgOut(); msgOut.setTopic(topic); msgOut.setType(TopicType.NORMAL_TOPIC); msgOut.setContent(msg.getBytes()); amop.broadcastAmopMsg(msgOut); }...
使用前置提供的API接口:http://localhost:5002/WeBASE-Front/{groupId}/web3/operateGroup/{type} 试图停止group1以后,前置报错,并且无法再对任何接口进行操作。必须重启前置才能正常使用。其它群组可以正常操作。
关闭节点所属的全部群组以后,无法再启动的问题。应该是getWeb3j接口调用底层SDK缓存造成的问题,可以直接使用Spring注入的rpcLient类,无需通过群组进行遍历后再创建新的Client对象 com.webank.webase.front.web3api.Web3ApiService /** * get first web3j in web3jMap * * @return */ public Client getWeb3j() { this.checkConnection(); Set groupIdSet = bcosSDK.getGroupManagerService().getGroupList(); //1 log.info("getWeb3j groupIdSet get {}", groupIdSet); if (groupIdSet.isEmpty())...