Skip to content

Commit

Permalink
Use .haveTransaction in new getmempool RPC code.
Browse files Browse the repository at this point in the history
The mempool is already locked and the exported version locks it, so the
unexported version is needed.
  • Loading branch information
davecgh committed Nov 17, 2014
1 parent 1973aa5 commit 888884a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rpcserver.go
Expand Up @@ -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())
}
Expand Down

0 comments on commit 888884a

Please sign in to comment.