Commit 90a77d40 authored by suyanlong's avatar suyanlong

add log print

parent 853803ed
...@@ -731,8 +731,9 @@ func (p *Paracross) SubmitIBTP(ibtp *pb.IBTP) (*pb.SubmitIBTPResponse, error) { ...@@ -731,8 +731,9 @@ func (p *Paracross) SubmitIBTP(ibtp *pb.IBTP) (*pb.SubmitIBTPResponse, error) {
tx.Sign(types33.SECP256K1, p.privateKey) tx.Sign(types33.SECP256K1, p.privateKey)
ret, err := p.grpcClient.SendTransaction(p.ctx, tx) ret, err := p.grpcClient.SendTransaction(p.ctx, tx)
if err != nil { if err != nil {
data := hex.EncodeToString(types33.Encode(tx))
txTmp, _ := types33.PBToJSON(tx) txTmp, _ := types33.PBToJSON(tx)
p.logger.Error("SendTransaction ", "hash", common.HashHex(tx.Hash()), "error", err, "tx", util.FormatJSON(txTmp)) p.logger.Error("SendTransaction ", "hash", common.HashHex(tx.Hash()), "error", err, "tx", util.FormatJSON(string(txTmp)), "data", data)
return nil, err return nil, err
} }
ibtpRes.Result = ibtp ibtpRes.Result = ibtp
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment