Skip to content

Commit

Permalink
set prs hashes on the session
Browse files Browse the repository at this point in the history
  • Loading branch information
jrick committed Jun 1, 2024
1 parent db25943 commit b6e265f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mixing/mixpool/mixpool.go
Original file line number Diff line number Diff line change
Expand Up @@ -1404,7 +1404,7 @@ func (p *Pool) acceptKE(ke *wire.MsgMixKeyExchange, hash *chainhash.Hash, id *id
sid := ke.SessionID
ses := p.sessions[sid]

// Create a session for the first run-0 KE
// Create a session for the first KE
if ses == nil {
expiry := ^uint32(0)
for i := range prs {
Expand All @@ -1415,6 +1415,7 @@ func (p *Pool) acceptKE(ke *wire.MsgMixKeyExchange, hash *chainhash.Hash, id *id
}
ses = &session{
sid: sid,
prs: ke.SeenPRs,
expiry: expiry,
hashes: make(map[chainhash.Hash]struct{}),
bc: broadcast{ch: make(chan struct{})},
Expand Down

0 comments on commit b6e265f

Please sign in to comment.