From 888884a39962cb4cd8014f32e5fe5121330378e2 Mon Sep 17 00:00:00 2001 From: Dave Collins Date: Mon, 17 Nov 2014 15:46:42 -0600 Subject: [PATCH] Use .haveTransaction in new getmempool RPC code. The mempool is already locked and the exported version locks it, so the unexported version is needed. --- rpcserver.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpcserver.go b/rpcserver.go index e0376b57..23d118a6 100644 --- a/rpcserver.go +++ b/rpcserver.go @@ -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()) }