rpc: avoid null
unverified transactions in getrawmempool
response
This commit is contained in:
parent
ed9cdfe667
commit
61faf28738
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue