FISCO-BCOS / FISCO-BCOS/java-sdk

客户端无法通过一次注册请求监听任何合约的合约事件

Open
#629 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
58
Forks
62
PR merge metrics
No merged PRs in 30d

Description

在org.fisco.bcos.sdk.eventsub.EventLogParams类限制了addresses和topics不能为空(见下图),因此无法通过一次注册请求来监听所有合约的事件。
![image](https://user-images.githubusercontent.com/6872954/182276773-ea7ccee6-b9d1-4b5b-ae12-f2aca0d4de19.png)
![image](https://user-images.githubusercontent.com/6872954/182276850-25f89f33-6fc4-4dc6-8c04-d77715eb1d9d.png)

而客户端向节点发送事件推送的注册请求的字段规范(链接:https://fisco-bcos-documentation.readthedocs.io/zh_CN/latest/docs/sdk/java_sdk/event_sub.html?highlight=eventsubscribe)

> addresses:字符串或者字符串数组:字符串表示单个合约地址,数组为多个合约地址,数组可以为空
> topics:字符串类型或者数组类型:字符串表示单个topic,数组为多个topic,数组可以为空

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.