Skip to content

Commit

Permalink
Broadcast transactions to all neighbors rather than persistfinished
Browse files Browse the repository at this point in the history
Signed-off-by: Yilun <[email protected]>
  • Loading branch information
yilunzhang committed Sep 8, 2018
1 parent 7e76333 commit 8dba348
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/node/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ func (node *node) BroadcastTransaction(from Noder, txn *transaction.Transaction)
return err
}
node.txnCnt++
for _, n := range node.GetSyncFinishedNeighbors() {
for _, n := range node.GetNeighborNoder() {
if n.GetRelay() && n.GetID() != from.GetID() {
n.Tx(buffer)
}
Expand Down

0 comments on commit 8dba348

Please sign in to comment.