add getrawmempool to rpcserver
This commit is contained in:
parent
5a9cc91e62
commit
ffed6599ce
1 changed files with 7 additions and 0 deletions
|
@ -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{}
|
||||||
|
|
Loading…
Reference in a new issue