rpc: avoid null unverified transactions in getrawmempool response

This commit is contained in:
Anna Shaleva 2021-09-09 16:24:22 +03:00
parent ed9cdfe667
commit 61faf28738

View file

@ -550,6 +550,7 @@ func (s *Server) getRawMempool(reqParams request.Params) (interface{}, *response
return result.RawMempool{
Height: s.chain.BlockHeight(),
Verified: hashList,
Unverified: []util.Uint256{}, // avoid `null` result
}, nil
}