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:
parent
1973aa5fd5
commit
888884a399
1 changed files with 1 additions and 1 deletions
|
@ -2327,7 +2327,7 @@ func handleGetRawMempool(s *rpcServer, cmd btcjson.Cmd, closeChan <-chan struct{
|
||||||
}
|
}
|
||||||
for _, txIn := range desc.Tx.MsgTx().TxIn {
|
for _, txIn := range desc.Tx.MsgTx().TxIn {
|
||||||
hash := &txIn.PreviousOutPoint.Hash
|
hash := &txIn.PreviousOutPoint.Hash
|
||||||
if s.server.txMemPool.HaveTransaction(hash) {
|
if s.server.txMemPool.haveTransaction(hash) {
|
||||||
mpd.Depends = append(mpd.Depends,
|
mpd.Depends = append(mpd.Depends,
|
||||||
hash.String())
|
hash.String())
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue