Skip to content

Commit

Permalink
feat(rpc): info field with arbitrary data to ResultBroadcastTx
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitriigolubevdh authored Sep 10, 2021
1 parent c600161 commit 888c527
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions rpc/core/mempool.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
1 change: 1 addition & 0 deletions rpc/core/types/responses.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down

0 comments on commit 888c527

Please sign in to comment.