Skip to content

Commit

Permalink
add maxSizeOption to Tx grpc call
Browse files Browse the repository at this point in the history
  • Loading branch information
MonikaCat committed Jan 18, 2024
1 parent a443699 commit 85afc46
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion node/remote/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,8 @@ func (cp *Node) BlockResults(height int64) (*tmctypes.ResultBlockResults, error)

// Tx implements node.Node
func (cp *Node) Tx(hash string) (*types.Tx, error) {
res, err := cp.txServiceClient.GetTx(context.Background(), &tx.GetTxRequest{Hash: hash})
maxSizeOption := grpc.MaxCallRecvMsgSize(32 * 10e6)
res, err := cp.txServiceClient.GetTx(context.Background(), &tx.GetTxRequest{Hash: hash}, maxSizeOption)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 85afc46

Please sign in to comment.