Branch: refs/heads/master
  Home:   https://github.com/conformal/btcd
  Commit: c8e88d383e5fa1f2c667bc43c92bdc5cd4d7d614
      
https://github.com/conformal/btcd/commit/c8e88d383e5fa1f2c667bc43c92bdc5cd4d7d614
  Author: Dave Collins <[email protected]>
  Date:   2013-12-10 (Tue, 10 Dec 2013)

  Changed paths:
    M peer.go

  Log Message:
  -----------
  Correct issue with pushing address messages.

The code to send an address messages in batches was previously clearing
all addresses from the existing message after queueing it to be sent.
Since the message is a pointer, this means it was removing the addresses
from the same message which might not have already been sent yet (from
another goroutine) which led to a race.

This commit modifies the code to create a new address message for each
batch as intended.

Fixes #58.


Reply via email to