Commit fa66164208b8081e6ae4563dec81b5adfcf23dea

Authored by Marius Hanne
1 parent 783fd06f0c
Exists in utxo_storage

fix relay_tx

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

lib/bitcoin/network/node.rb
... ... @@ -429,18 +429,6 @@
429 429 @inv_queue << inv
430 430 end
431 431  
432   - def relay_tx(tx)
433   - return false unless @store.in_sync?
434   - log.info { "relaying tx #{tx.hash}" }
435   - @store.store_tx(tx)
436   - @connections.select(&:connected?).sample((@connections.size / 2) + 1).each do |peer|
437   - peer.send_inv(:tx, tx)
438   - end
439   - rescue Bitcoin::Validation::ValidationError
440   - @log.warn { "ValiationError storing tx #{tx.hash}: #{$!.message}" }
441   - false
442   - end
443   -
444 432 def work_relay
445 433 log.debug { "relay worker running" }
446 434 @store.get_unconfirmed_tx.each do |tx|