Use .haveTransaction in new getmempool RPC code.

The mempool is already locked and the exported version locks it, so the
unexported version is needed.
This commit is contained in:
Dave Collins 2014-11-17 15:46:42 -06:00
parent 1973aa5fd5
commit 888884a399

View file

@ -2327,7 +2327,7 @@ func handleGetRawMempool(s *rpcServer, cmd btcjson.Cmd, closeChan <-chan struct{
}
for _, txIn := range desc.Tx.MsgTx().TxIn {
hash := &txIn.PreviousOutPoint.Hash
if s.server.txMemPool.HaveTransaction(hash) {
if s.server.txMemPool.haveTransaction(hash) {
mpd.Depends = append(mpd.Depends,
hash.String())
}