From 888c5274278cdfc77b95f0678ed198d2605a0853 Mon Sep 17 00:00:00 2001 From: Dmitrii Golubev Date: Fri, 10 Sep 2021 19:22:21 +0200 Subject: [PATCH] feat(rpc): info field with arbitrary data to ResultBroadcastTx --- rpc/core/mempool.go | 1 + rpc/core/types/responses.go | 1 + 2 files changed, 2 insertions(+) diff --git a/rpc/core/mempool.go b/rpc/core/mempool.go index 79aa03bc51..8a5751f619 100644 --- a/rpc/core/mempool.go +++ b/rpc/core/mempool.go @@ -46,6 +46,7 @@ func BroadcastTxSync(ctx *rpctypes.Context, tx types.Tx) (*ctypes.ResultBroadcas Data: r.Data, Log: r.Log, Codespace: r.Codespace, + Info: r.Info, Hash: tx.Hash(), }, nil } diff --git a/rpc/core/types/responses.go b/rpc/core/types/responses.go index 301add7a72..339544cce1 100644 --- a/rpc/core/types/responses.go +++ b/rpc/core/types/responses.go @@ -165,6 +165,7 @@ type ResultBroadcastTx struct { Code uint32 `json:"code"` Data bytes.HexBytes `json:"data"` Log string `json:"log"` + Info string `json:"info"` Codespace string `json:"codespace"` Hash bytes.HexBytes `json:"hash"`