add getrawmempool to rpcserver

This commit is contained in:
David Hill 2013-10-17 12:23:53 -04:00
parent 5a9cc91e62
commit ffed6599ce

View file

@ -537,6 +537,13 @@ func jsonRead(body []byte, s *rpcServer) (reply btcjson.Reply, err error) {
Id: &message.Id, Id: &message.Id,
} }
case "getrawmempool":
hashes := s.server.txMemPool.TxShas()
reply = btcjson.Reply{
Result: hashes,
Id: &message.Id,
}
case "getrawtransaction": case "getrawtransaction":
// TODO: Perform smarter paramter parsing. // TODO: Perform smarter paramter parsing.
var f interface{} var f interface{}