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

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