通过sdk部署sdk-go中的示例合约报错:getSyncResult failed,...
-
已经修改sdk单元测试使用的配置文件:sdk-go/testdata/sdk_config.yml nodes:
** # 节点地址,格式为:IP:端口:连接数**
node_addr: "192.168.1.254:12301"
-
已经修改证书路径,修改对应的证书路径配置(即修改成 软连接使用prepare.sh脚本生成的证书目录):
** # 客户端用户私钥路径**
user_key_file_path: "crypto-config/wx-org1.chainmaker.org/user/client1/client1.tls.key
# 客户端用户证书路径
user_crt_file_path: "crypto-config/wx-org1.chainmaker.org/user/client1/client1.tls.crt"
# 客户端用户交易签名私钥路径(若未设置,将使用user_key_file_path)
user_sign_key_file_path: "crypto-config/wx-org1.chainmaker.org/user/client1/client1.sign.key"
# 客户端用户交易签名证书路径(若未设置,将使用user_crt_file_path)
user_sign_crt_file_path: "crypto-config/wx-org1.chainmaker.org/user/client1/client1.sign.crt"
3. 执行go run main.go 报错如下:
root@node1-ThinkCentre-M910t-D747:/home/go19/goProject/chainmaker/sdk-go/examples/user_contract_claim# go run main.go ====================== create client ====================== ====================== 创建合约 ====================== 2023/05/03 13:14:51 getSyncResult failed, get tx by txId [175b8a3e3ed17e06caac7cd44f40be378a1e69d1e798487caa70aff1e8d6e17e] failed, QUERY_CONTRACT failed, txStatusCode:4, resultCode:1, contractName[CHAIN_QUERY] method[GET_TX_BY_TX_ID] txType[QUERY_CONTRACT], no such transaction, chainId:chain1, txid: 175b8a3e3ed17e06caac7cd44f40be378a1e69d1e798487caa70aff1e8d6e17e, get tx results timed out, please query this txid later for the tx results, see sdk log file for more details exit status 1