测试用例TestSubscribe中交易订阅的部分存在疑似bug
测试用例TestSubscribe中交易订阅的部分存在疑似bug
示例中解析收到的消息采用如下代码: TransactionOuterClass.TransactionInfo transactionInfo = TransactionOuterClass.TransactionInfo.parseFrom(result.getData()); 执行时报错:While parsing a protocol message, the input ended unexpectedly in the middle of a field. This could mean either that the input has been truncated or that an embedded message misreported its own length.
修改如下: TransactionOuterClass.Transaction info = TransactionOuterClass.Transaction.parseFrom(result.getData()); 问题解决!
我订阅的事件类型:Request.TxType.INVOKE_USER_CONTRACT
是否不同种类的消息类型解析方式也不一样?