You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just an idea: wire instances have state bits (unchoked/interested) that have an initial default.
I'd hook on('interested') to potentially unchoke a peer, and then on('uninterested') to remove them from the list of unchokable peers. I'd do the latter equivalently on wire disconnect, on('end').
Hence the question: should we emit('uninterested') if the peer state was interested but the wire ended? Same for emit('choked')?
The changes would be minimal but the semantics would make usage easier.
The text was updated successfully, but these errors were encountered:
Just an idea: wire instances have state bits (unchoked/interested) that have an initial default.
I'd hook
on('interested')
to potentially unchoke a peer, and thenon('uninterested')
to remove them from the list of unchokable peers. I'd do the latter equivalently on wire disconnect,on('end')
.Hence the question: should we
emit('uninterested')
if the peer state was interested but the wire ended? Same foremit('choked')
?The changes would be minimal but the semantics would make usage easier.
The text was updated successfully, but these errors were encountered: