forked from TrueCloudLab/neoneo-go
mempool: fix Remove bug (dropping wrong tx!)
Uncovered by TestMemPoolAddRemoveWithInputsAndClaims (to be added later)
This commit is contained in:
parent
7d59fa0066
commit
f329de73e8
1 changed files with 1 additions and 1 deletions
|
@ -187,7 +187,7 @@ func (mp *Pool) Remove(hash util.Uint256) {
|
||||||
if _, ok := mp.verifiedMap[hash]; ok {
|
if _, ok := mp.verifiedMap[hash]; ok {
|
||||||
var num int
|
var num int
|
||||||
delete(mp.verifiedMap, hash)
|
delete(mp.verifiedMap, hash)
|
||||||
for num := range mp.verifiedTxes {
|
for num = range mp.verifiedTxes {
|
||||||
if hash.Equals(mp.verifiedTxes[num].txn.Hash()) {
|
if hash.Equals(mp.verifiedTxes[num].txn.Hash()) {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue