在 HLF 1.4 中,我可以在成功调用操作后获取事务 id。但在 HLF 2.x 中我没有得到 txid。我可以在状态数据库(couch db)中看到我提交给hlf的数据。那为什么我没有得到 txid。这是链码中的最后一行,
return shim.Success(nil)
Run Code Online (Sandbox Code Playgroud)
使用 Node sdk 提交交易。
result = await contract.submitTransaction(fcn, args);
console.log("Result:", result.toString())
Run Code Online (Sandbox Code Playgroud)
上面的行给出了空。帮我获取 tx id。
go hyperledger-fabric hyperledger-fabric-sdk-js hyperledger-chaincode