Commit ca0c6c2491a80ed23a510066c9f6162abd5aa4de

Authored by Marius Hanne
1 parent 611b804a7f
Exists in master and in 1 other branch benchmark

don't log "relaying block ..." before deciding if the block is relayed

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

lib/bitcoin/network/node.rb
... ... @@ -254,8 +254,8 @@
254 254 end
255 255  
256 256 subscribe(:block) do |blk, depth|
257   - @log.debug { "Relaying block #{blk.hash}" }
258 257 next unless @store.in_sync?
  258 + @log.debug { "Relaying block #{blk.hash}" }
259 259 @connections.each do |conn|
260 260 next unless conn.connected?
261 261 conn.send_inv(:block, blk.hash)