Skip to content

Commit

Permalink
add to tx hash sessions map in proper place
Browse files Browse the repository at this point in the history
  • Loading branch information
jrick committed Apr 22, 2024
1 parent 50ab0a5 commit 9deaf20
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mixing/mixpool/mixpool.go
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,6 @@ Loop:
if r.CMs != nil {
r.CMs = append(r.CMs, msg)
}
p.sessionsByTxHash[msg.Mix.TxHash()] = ses
case *wire.MsgMixSecrets:
if r.RSs != nil {
r.RSs = append(r.RSs, msg)
Expand Down Expand Up @@ -1065,6 +1064,10 @@ func (p *Pool) acceptEntry(msg mixing.Message, msgtype msgtype, hash *chainhash.
p.pool[*hash] = e
p.messagesByIdentity[*id] = append(p.messagesByIdentity[*id], *hash)

if cm, ok := msg.(*wire.MsgMixConfirm); ok {
p.sessionsByTxHash[cm.Mix.TxHash()] = ses
}

rs.incrementCountFor(msgtype)
ses.bc.signal()

Expand Down

0 comments on commit 9deaf20

Please sign in to comment.