Commit eea1a428 authored by mdj33's avatar mdj33 Committed by 33cn

modify tx format

parent 52994bc9
...@@ -324,12 +324,12 @@ func (client *commitMsgClient) sendCommitMsgTx(tx *types.Transaction) error { ...@@ -324,12 +324,12 @@ func (client *commitMsgClient) sendCommitMsgTx(tx *types.Transaction) error {
} }
resp, err := client.paraClient.grpcClient.SendTransaction(context.Background(), tx) resp, err := client.paraClient.grpcClient.SendTransaction(context.Background(), tx)
if err != nil { if err != nil {
plog.Error("sendCommitMsgTx send tx", "tx", tx, "err", err.Error()) plog.Error("sendCommitMsgTx send tx", "tx", tx.Hash(), "err", err.Error())
return err return err
} }
if !resp.GetIsOk() { if !resp.GetIsOk() {
plog.Error("sendCommitMsgTx send tx Nok", "tx", tx, "err", string(resp.GetMsg())) plog.Error("sendCommitMsgTx send tx Nok", "tx", tx.Hash(), "err", string(resp.GetMsg()))
return errors.New(string(resp.GetMsg())) return errors.New(string(resp.GetMsg()))
} }
......
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