mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-15 23:38:19 +00:00
fixed marshalling error with nil (#354)
* fixed marshalling error with nil * returning empty byte slice * returning empty byte slice pt2
This commit is contained in:
parent
3123b6d895
commit
c82e350e63
@ -269,6 +269,10 @@ func (s *GrpcServer) Transactions(ctx context.Context, in *txpool_proto.Transact
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if txnRlp == nil {
|
||||
reply.RlpTxs[i] = []byte{}
|
||||
continue
|
||||
}
|
||||
reply.RlpTxs[i] = txnRlp
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user