Commit 1dda506ac0271bfca80256b5eb28013b0819f8f9

Authored by Marius Hanne
1 parent fb453ba441

cleanup

Showing 3 changed files with 5 additions and 27 deletions Side-by-side Diff

... ... @@ -42,9 +42,9 @@
42 42 end
43 43  
44 44 EM.run do
45   -
46 45 Bitcoin::Network::CommandClient.connect(host, port) do
47   - on_response do |cmd, data|
  46 +
  47 + on_response do |cmd, data|
48 48 EM.stop unless cmd == "monitor"
49 49 end
50 50 on_info do |info|
51 51  
... ... @@ -74,31 +74,7 @@
74 74 on_connected do
75 75 request(ARGV[0], *(ARGV[1] || "").split(" "))
76 76 end
77   - end
78   - # client.request("monitor", "connection")
79   - # EM.connect(host, port) do |connection|
80 77  
81   - # connection.send_data([ARGV[0], ARGV[1..-1].join(" ")].to_json + "\x00")
82   -
83   - # def connection.receive_data(data)
84   - # (@buf ||= BufferedTokenizer.new("\x00")).extract(data).each do |packet|
85   - # cmd, result = JSON.load(packet)
86   - # next unless cmd == ARGV[0]
87   - # if cmd == "monitor"
88   - # type, obj, depth = result
89   - # puts "#{type}: #{obj['hash'] rescue 'none'} #{depth ? "(#{depth})" : ""}"
90   - # else
91   - # puts JSON.pretty_generate(result)
92   - # EM.stop
93   - # end
94   - # end
95   - # end
96   -
97   - # def connection.unbind
98   - # puts "Disconnected."
99   - # EM.stop
100   - # end
101   -
102   - # end
  78 + end
103 79 end
spec/bitcoin/wallet/keystore_spec.rb
1 1 require_relative '../spec_helper'
2 2 require 'json'
  3 +require 'fileutils'
3 4 include Bitcoin
4 5 include Bitcoin::Wallet
5 6  
spec/bitcoin/wallet/wallet_spec.rb
1 1 require_relative '../spec_helper'
2 2 require 'json'
  3 +require 'fileutils'
3 4 include MiniTest
4 5 include Bitcoin
5 6 include Bitcoin::Wallet