bit_wallet 0.6.0 → 0.6.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) hide show
  1. checksums.yaml +8 -8
  2. data/CHANGELOG.md +4 -0
  3. data/bit_wallet.gemspec +1 -1
  4. data/lib/bit_wallet/version.rb +1 -1
  5. data/lib/bit_wallet/wallet.rb +0 -2
  6. data/spec/bit_wallet/accounts_spec.rb +32 -30
  7. data/spec/bit_wallet/wallet_spec.rb +48 -32
  8. data/spec/fixtures/vcr_cassettes/BitWallet_Account/_balance/should_be_able_to_override_the_min_conf.yml +15 -83
  9. data/spec/fixtures/vcr_cassettes/BitWallet_Account/_balance/should_default_to_the_config_min_conf.yml +15 -83
  10. data/spec/fixtures/vcr_cassettes/BitWallet_Account/_balance/should_return_the_balance_of_the_account.yml +23 -87
  11. data/spec/fixtures/vcr_cassettes/BitWallet_Account/_recent_transactions/should_default_to_list_10_transactions.yml +85 -129
  12. data/spec/fixtures/vcr_cassettes/BitWallet_Account/_recent_transactions/when_transaction_limit_is_6/should_list_the_6_most_recent_transactions.yml +67 -117
  13. data/spec/fixtures/vcr_cassettes/BitWallet_Account/_send_amount/_to_is_a_BitWallet_Address/should_send_it_to_the_address_of_the_given_BitWallet_Address.yml +32 -94
  14. data/spec/fixtures/vcr_cassettes/BitWallet_Account/_send_amount/account_does_not_have_enough_money/should_fail_with_the_InsufficientFunds_error.yml +26 -90
  15. data/spec/fixtures/vcr_cassettes/BitWallet_Account/_send_amount/should_send_money_to_the_given_address.yml +29 -91
  16. data/spec/fixtures/vcr_cassettes/BitWallet_Account/_send_many/should_send_the_amounts_of_money_to_the_specified_accounts.yml +30 -16
  17. data/spec/fixtures/vcr_cassettes/BitWallet_Account/_total_received/should_return_the_total_amount_received_by_the_address.yml +6 -4
  18. data/spec/fixtures/vcr_cassettes/BitWallet_Account/addresses/.yml +6 -4
  19. data/spec/fixtures/vcr_cassettes/BitWallet_Account/on_initialization/should_be_assigned_that_name.yml +15 -83
  20. data/spec/fixtures/vcr_cassettes/BitWallet_Account/on_initialization/should_have_a_default_name.yml +6 -4
  21. data/spec/fixtures/vcr_cassettes/BitWallet_Account/on_initialization/when_the_account_name_already_exists/should_return_that_same_address.yml +15 -83
  22. data/spec/fixtures/vcr_cassettes/BitWallet_Account/wallet/.yml +6 -4
  23. data/spec/fixtures/vcr_cassettes/BitWallet_Accounts/_includes_account_name_account_/should_return_true_if_the_array_includes_the_account.yml +15 -120
  24. data/spec/fixtures/vcr_cassettes/BitWallet_Accounts/_new/should_create_a_new_BitWallet_Account_with_a_default_address.yml +15 -120
  25. data/spec/fixtures/vcr_cassettes/BitWallet_Accounts/_with_balance/should_return_accounts_with_a_balance_0.yml +19 -370
  26. data/spec/fixtures/vcr_cassettes/BitWallet_Accounts/wallet/.yml +11 -118
  27. data/spec/fixtures/vcr_cassettes/BitWallet_Address/_total_received/should_return_the_total_amount_received_by_the_address.yml +11 -7
  28. data/spec/fixtures/vcr_cassettes/BitWallet_Address/account/.yml +11 -7
  29. data/spec/fixtures/vcr_cassettes/BitWallet_Address/on_initialization/address_given_already_exists/should_not_create_an_address.yml +6 -4
  30. data/spec/fixtures/vcr_cassettes/BitWallet_Address/on_initialization/no_address_is_given/should_create_an_address.yml +11 -7
  31. data/spec/fixtures/vcr_cassettes/BitWallet_Addresses/_new/with_address_string_given/should_return_an_Address_with_the_given_address_string.yml +6 -4
  32. data/spec/fixtures/vcr_cassettes/BitWallet_Addresses/_new/without_any_address_string_given/should_return_an_Address_that_points_to_the_same_account.yml +11 -7
  33. data/spec/fixtures/vcr_cassettes/BitWallet_Addresses/account/.yml +6 -4
  34. data/spec/fixtures/vcr_cassettes/BitWallet_Addresses/new/.yml +11 -7
  35. data/spec/fixtures/vcr_cassettes/BitWallet_Transaction/on_initialization/should_be_able_to_take_a_bitcoind_hash.yml +15 -231
  36. data/spec/fixtures/vcr_cassettes/BitWallet_Wallet/_accounts/should_return_array_of_BitWallet_Accounts.yml +11 -266
  37. data/spec/fixtures/vcr_cassettes/BitWallet_Wallet/_move/should_move_funds_from_one_account_to_another.yml +25 -13
  38. data/spec/fixtures/vcr_cassettes/BitWallet_Wallet/_recent_transactions/should_allow_overriding_of_the_transaction_limit.yml +82 -274
  39. data/spec/fixtures/vcr_cassettes/BitWallet_Wallet/_recent_transactions/should_return_the_most_recent_transactions_of_all_accounts_defaulting_to_10_transactions.yml +82 -274
  40. metadata +4 -4
@@ -11,6 +11,8 @@ http_interactions:
11
11
  - ! '*/*; q=0.5, application/xml'
12
12
  Accept-Encoding:
13
13
  - gzip, deflate
14
+ Content-Type:
15
+ - application/json
14
16
  Content-Length:
15
17
  - '59'
16
18
  User-Agent:
@@ -21,7 +23,7 @@ http_interactions:
21
23
  message: OK
22
24
  headers:
23
25
  Date:
24
- - Sun, 07 Apr 2013 10:00:29 +0000
26
+ - Tue, 04 Mar 2014 14:04:48 +0000
25
27
  Connection:
26
28
  - keep-alive
27
29
  Content-Length:
@@ -32,9 +34,9 @@ http_interactions:
32
34
  - bitcoin-json-rpc/v0.7.2-beta
33
35
  body:
34
36
  encoding: US-ASCII
35
- string: ! '{"result":"mxvsuDxnPtY6Z5X9vgvTewGgD9tMtWYJZT","error":null,"id":"jsonrpc"}
37
+ string: ! '{"result":"mi487X6jj8ggY6FAoG8ibv7qomcq9TXL1U","error":null,"id":"jsonrpc"}
36
38
 
37
39
  '
38
40
  http_version:
39
- recorded_at: Sun, 07 Apr 2013 10:00:29 GMT
40
- recorded_with: VCR 2.4.0
41
+ recorded_at: Tue, 04 Mar 2014 14:04:48 GMT
42
+ recorded_with: VCR 2.8.0
@@ -11,6 +11,8 @@ http_interactions:
11
11
  - ! '*/*; q=0.5, application/xml'
12
12
  Accept-Encoding:
13
13
  - gzip, deflate
14
+ Content-Type:
15
+ - application/json
14
16
  Content-Length:
15
17
  - '53'
16
18
  User-Agent:
@@ -21,22 +23,22 @@ http_interactions:
21
23
  message: OK
22
24
  headers:
23
25
  Date:
24
- - Sun, 07 Apr 2013 10:00:35 +0000
26
+ - Tue, 04 Mar 2014 14:04:54 +0000
25
27
  Connection:
26
28
  - keep-alive
27
29
  Content-Length:
28
- - '109'
30
+ - '58'
29
31
  Content-Type:
30
32
  - application/json
31
33
  Server:
32
34
  - bitcoin-json-rpc/v0.7.2-beta
33
35
  body:
34
36
  encoding: US-ASCII
35
- string: ! '{"result":{"":8502.99850000,"1":0.00000000,"name":0.00000000,"nona":0.00000000},"error":null,"id":"jsonrpc"}
37
+ string: ! '{"result":{"":8800.00000000},"error":null,"id":"jsonrpc"}
36
38
 
37
39
  '
38
40
  http_version:
39
- recorded_at: Sun, 07 Apr 2013 10:00:35 GMT
41
+ recorded_at: Tue, 04 Mar 2014 14:04:54 GMT
40
42
  - request:
41
43
  method: post
42
44
  uri: http://admin1:123@localhost:19001/
@@ -48,45 +50,10 @@ http_interactions:
48
50
  - ! '*/*; q=0.5, application/xml'
49
51
  Accept-Encoding:
50
52
  - gzip, deflate
51
- Content-Length:
52
- - '55'
53
- User-Agent:
54
- - Ruby
55
- response:
56
- status:
57
- code: 200
58
- message: OK
59
- headers:
60
- Date:
61
- - Sun, 07 Apr 2013 10:00:35 +0000
62
- Connection:
63
- - keep-alive
64
- Content-Length:
65
- - '76'
66
53
  Content-Type:
67
54
  - application/json
68
- Server:
69
- - bitcoin-json-rpc/v0.7.2-beta
70
- body:
71
- encoding: US-ASCII
72
- string: ! '{"result":"mhFoZ3w3AwHsvsRf2M5iAm7qhuqH7NNq9Y","error":null,"id":"jsonrpc"}
73
-
74
- '
75
- http_version:
76
- recorded_at: Sun, 07 Apr 2013 10:00:35 GMT
77
- - request:
78
- method: post
79
- uri: http://admin1:123@localhost:19001/
80
- body:
81
- encoding: US-ASCII
82
- string: ! '{"method":"getnewaddress","params":["1"],"id":"jsonrpc"}'
83
- headers:
84
- Accept:
85
- - ! '*/*; q=0.5, application/xml'
86
- Accept-Encoding:
87
- - gzip, deflate
88
55
  Content-Length:
89
- - '56'
56
+ - '55'
90
57
  User-Agent:
91
58
  - Ruby
92
59
  response:
@@ -95,7 +62,7 @@ http_interactions:
95
62
  message: OK
96
63
  headers:
97
64
  Date:
98
- - Sun, 07 Apr 2013 10:00:35 +0000
65
+ - Tue, 04 Mar 2014 14:04:54 +0000
99
66
  Connection:
100
67
  - keep-alive
101
68
  Content-Length:
@@ -106,59 +73,24 @@ http_interactions:
106
73
  - bitcoin-json-rpc/v0.7.2-beta
107
74
  body:
108
75
  encoding: US-ASCII
109
- string: ! '{"result":"mnToWe7xw7DcxJ8VC2aQVHFK5DH22ydF5x","error":null,"id":"jsonrpc"}
76
+ string: ! '{"result":"mi487X6jj8ggY6FAoG8ibv7qomcq9TXL1U","error":null,"id":"jsonrpc"}
110
77
 
111
78
  '
112
79
  http_version:
113
- recorded_at: Sun, 07 Apr 2013 10:00:35 GMT
80
+ recorded_at: Tue, 04 Mar 2014 14:04:54 GMT
114
81
  - request:
115
82
  method: post
116
83
  uri: http://admin1:123@localhost:19001/
117
84
  body:
118
85
  encoding: US-ASCII
119
- string: ! '{"method":"getnewaddress","params":["name"],"id":"jsonrpc"}'
86
+ string: ! '{"method":"getnewaddress","params":["nona"],"id":"jsonrpc"}'
120
87
  headers:
121
88
  Accept:
122
89
  - ! '*/*; q=0.5, application/xml'
123
90
  Accept-Encoding:
124
91
  - gzip, deflate
125
- Content-Length:
126
- - '59'
127
- User-Agent:
128
- - Ruby
129
- response:
130
- status:
131
- code: 200
132
- message: OK
133
- headers:
134
- Date:
135
- - Sun, 07 Apr 2013 10:00:35 +0000
136
- Connection:
137
- - keep-alive
138
- Content-Length:
139
- - '76'
140
92
  Content-Type:
141
93
  - application/json
142
- Server:
143
- - bitcoin-json-rpc/v0.7.2-beta
144
- body:
145
- encoding: US-ASCII
146
- string: ! '{"result":"mvc6EZ66GC2kr58hfcCfE4ZEF44zTxyoHB","error":null,"id":"jsonrpc"}
147
-
148
- '
149
- http_version:
150
- recorded_at: Sun, 07 Apr 2013 10:00:35 GMT
151
- - request:
152
- method: post
153
- uri: http://admin1:123@localhost:19001/
154
- body:
155
- encoding: US-ASCII
156
- string: ! '{"method":"getnewaddress","params":["nona"],"id":"jsonrpc"}'
157
- headers:
158
- Accept:
159
- - ! '*/*; q=0.5, application/xml'
160
- Accept-Encoding:
161
- - gzip, deflate
162
94
  Content-Length:
163
95
  - '59'
164
96
  User-Agent:
@@ -169,7 +101,7 @@ http_interactions:
169
101
  message: OK
170
102
  headers:
171
103
  Date:
172
- - Sun, 07 Apr 2013 10:00:35 +0000
104
+ - Tue, 04 Mar 2014 14:04:54 +0000
173
105
  Connection:
174
106
  - keep-alive
175
107
  Content-Length:
@@ -180,9 +112,9 @@ http_interactions:
180
112
  - bitcoin-json-rpc/v0.7.2-beta
181
113
  body:
182
114
  encoding: US-ASCII
183
- string: ! '{"result":"mszu1cJ6TCoM6wNFy2RfC7SF7nyM3pcXa1","error":null,"id":"jsonrpc"}
115
+ string: ! '{"result":"mkwWW2pnqFkDfH5esHxXBNARTN7GnUDpsv","error":null,"id":"jsonrpc"}
184
116
 
185
117
  '
186
118
  http_version:
187
- recorded_at: Sun, 07 Apr 2013 10:00:35 GMT
188
- recorded_with: VCR 2.4.0
119
+ recorded_at: Tue, 04 Mar 2014 14:04:54 GMT
120
+ recorded_with: VCR 2.8.0
@@ -11,6 +11,8 @@ http_interactions:
11
11
  - ! '*/*; q=0.5, application/xml'
12
12
  Accept-Encoding:
13
13
  - gzip, deflate
14
+ Content-Type:
15
+ - application/json
14
16
  Content-Length:
15
17
  - '59'
16
18
  User-Agent:
@@ -21,7 +23,7 @@ http_interactions:
21
23
  message: OK
22
24
  headers:
23
25
  Date:
24
- - Sun, 07 Apr 2013 10:00:21 +0000
26
+ - Tue, 04 Mar 2014 14:05:18 +0000
25
27
  Connection:
26
28
  - keep-alive
27
29
  Content-Length:
@@ -32,9 +34,9 @@ http_interactions:
32
34
  - bitcoin-json-rpc/v0.7.2-beta
33
35
  body:
34
36
  encoding: US-ASCII
35
- string: ! '{"result":"moXfvvK5sNGbVgd6JLhhwuvHUtBhj69nnN","error":null,"id":"jsonrpc"}
37
+ string: ! '{"result":"mi487X6jj8ggY6FAoG8ibv7qomcq9TXL1U","error":null,"id":"jsonrpc"}
36
38
 
37
39
  '
38
40
  http_version:
39
- recorded_at: Sun, 07 Apr 2013 10:00:21 GMT
40
- recorded_with: VCR 2.4.0
41
+ recorded_at: Tue, 04 Mar 2014 14:05:18 GMT
42
+ recorded_with: VCR 2.8.0
@@ -11,6 +11,8 @@ http_interactions:
11
11
  - ! '*/*; q=0.5, application/xml'
12
12
  Accept-Encoding:
13
13
  - gzip, deflate
14
+ Content-Type:
15
+ - application/json
14
16
  Content-Length:
15
17
  - '53'
16
18
  User-Agent:
@@ -21,22 +23,22 @@ http_interactions:
21
23
  message: OK
22
24
  headers:
23
25
  Date:
24
- - Sun, 07 Apr 2013 10:01:30 +0000
26
+ - Tue, 04 Mar 2014 14:06:08 +0000
25
27
  Connection:
26
28
  - keep-alive
27
29
  Content-Length:
28
- - '134'
30
+ - '58'
29
31
  Content-Type:
30
32
  - application/json
31
33
  Server:
32
34
  - bitcoin-json-rpc/v0.7.2-beta
33
35
  body:
34
36
  encoding: US-ASCII
35
- string: ! '{"result":{"":8390.28800000,"1":0.00000000,"accountname":0.00000000,"name":0.00000000,"nona":0.00000000},"error":null,"id":"jsonrpc"}
37
+ string: ! '{"result":{"":8800.00000000},"error":null,"id":"jsonrpc"}
36
38
 
37
39
  '
38
40
  http_version:
39
- recorded_at: Sun, 07 Apr 2013 10:01:30 GMT
41
+ recorded_at: Tue, 04 Mar 2014 14:06:08 GMT
40
42
  - request:
41
43
  method: post
42
44
  uri: http://admin1:123@localhost:19001/
@@ -48,45 +50,10 @@ http_interactions:
48
50
  - ! '*/*; q=0.5, application/xml'
49
51
  Accept-Encoding:
50
52
  - gzip, deflate
51
- Content-Length:
52
- - '55'
53
- User-Agent:
54
- - Ruby
55
- response:
56
- status:
57
- code: 200
58
- message: OK
59
- headers:
60
- Date:
61
- - Sun, 07 Apr 2013 10:01:30 +0000
62
- Connection:
63
- - keep-alive
64
- Content-Length:
65
- - '76'
66
53
  Content-Type:
67
54
  - application/json
68
- Server:
69
- - bitcoin-json-rpc/v0.7.2-beta
70
- body:
71
- encoding: US-ASCII
72
- string: ! '{"result":"mqbVEXYz1M21DtyKiUsXW8QMcmrWGzBhCx","error":null,"id":"jsonrpc"}
73
-
74
- '
75
- http_version:
76
- recorded_at: Sun, 07 Apr 2013 10:01:30 GMT
77
- - request:
78
- method: post
79
- uri: http://admin1:123@localhost:19001/
80
- body:
81
- encoding: US-ASCII
82
- string: ! '{"method":"getnewaddress","params":["1"],"id":"jsonrpc"}'
83
- headers:
84
- Accept:
85
- - ! '*/*; q=0.5, application/xml'
86
- Accept-Encoding:
87
- - gzip, deflate
88
55
  Content-Length:
89
- - '56'
56
+ - '55'
90
57
  User-Agent:
91
58
  - Ruby
92
59
  response:
@@ -95,7 +62,7 @@ http_interactions:
95
62
  message: OK
96
63
  headers:
97
64
  Date:
98
- - Sun, 07 Apr 2013 10:01:30 +0000
65
+ - Tue, 04 Mar 2014 14:06:08 +0000
99
66
  Connection:
100
67
  - keep-alive
101
68
  Content-Length:
@@ -106,11 +73,11 @@ http_interactions:
106
73
  - bitcoin-json-rpc/v0.7.2-beta
107
74
  body:
108
75
  encoding: US-ASCII
109
- string: ! '{"result":"mnpsmghNDva6Gw2cSgiZAYkAyMmgQQSveM","error":null,"id":"jsonrpc"}
76
+ string: ! '{"result":"mi487X6jj8ggY6FAoG8ibv7qomcq9TXL1U","error":null,"id":"jsonrpc"}
110
77
 
111
78
  '
112
79
  http_version:
113
- recorded_at: Sun, 07 Apr 2013 10:01:30 GMT
80
+ recorded_at: Tue, 04 Mar 2014 14:06:08 GMT
114
81
  - request:
115
82
  method: post
116
83
  uri: http://admin1:123@localhost:19001/
@@ -122,82 +89,10 @@ http_interactions:
122
89
  - ! '*/*; q=0.5, application/xml'
123
90
  Accept-Encoding:
124
91
  - gzip, deflate
125
- Content-Length:
126
- - '66'
127
- User-Agent:
128
- - Ruby
129
- response:
130
- status:
131
- code: 200
132
- message: OK
133
- headers:
134
- Date:
135
- - Sun, 07 Apr 2013 10:01:30 +0000
136
- Connection:
137
- - keep-alive
138
- Content-Length:
139
- - '76'
140
- Content-Type:
141
- - application/json
142
- Server:
143
- - bitcoin-json-rpc/v0.7.2-beta
144
- body:
145
- encoding: US-ASCII
146
- string: ! '{"result":"n15EXYdojKMbj9sq1kEDB1eFce1kXSBMUh","error":null,"id":"jsonrpc"}
147
-
148
- '
149
- http_version:
150
- recorded_at: Sun, 07 Apr 2013 10:01:30 GMT
151
- - request:
152
- method: post
153
- uri: http://admin1:123@localhost:19001/
154
- body:
155
- encoding: US-ASCII
156
- string: ! '{"method":"getnewaddress","params":["name"],"id":"jsonrpc"}'
157
- headers:
158
- Accept:
159
- - ! '*/*; q=0.5, application/xml'
160
- Accept-Encoding:
161
- - gzip, deflate
162
- Content-Length:
163
- - '59'
164
- User-Agent:
165
- - Ruby
166
- response:
167
- status:
168
- code: 200
169
- message: OK
170
- headers:
171
- Date:
172
- - Sun, 07 Apr 2013 10:01:30 +0000
173
- Connection:
174
- - keep-alive
175
- Content-Length:
176
- - '76'
177
92
  Content-Type:
178
93
  - application/json
179
- Server:
180
- - bitcoin-json-rpc/v0.7.2-beta
181
- body:
182
- encoding: US-ASCII
183
- string: ! '{"result":"mrrnQswEAtzt9MxMKYXck5rRN3rdCPHTis","error":null,"id":"jsonrpc"}
184
-
185
- '
186
- http_version:
187
- recorded_at: Sun, 07 Apr 2013 10:01:30 GMT
188
- - request:
189
- method: post
190
- uri: http://admin1:123@localhost:19001/
191
- body:
192
- encoding: US-ASCII
193
- string: ! '{"method":"getnewaddress","params":["nona"],"id":"jsonrpc"}'
194
- headers:
195
- Accept:
196
- - ! '*/*; q=0.5, application/xml'
197
- Accept-Encoding:
198
- - gzip, deflate
199
94
  Content-Length:
200
- - '59'
95
+ - '66'
201
96
  User-Agent:
202
97
  - Ruby
203
98
  response:
@@ -206,7 +101,7 @@ http_interactions:
206
101
  message: OK
207
102
  headers:
208
103
  Date:
209
- - Sun, 07 Apr 2013 10:01:30 +0000
104
+ - Tue, 04 Mar 2014 14:06:08 +0000
210
105
  Connection:
211
106
  - keep-alive
212
107
  Content-Length:
@@ -217,9 +112,9 @@ http_interactions:
217
112
  - bitcoin-json-rpc/v0.7.2-beta
218
113
  body:
219
114
  encoding: US-ASCII
220
- string: ! '{"result":"mqwmvncHVmcALtE9dp7PCzHNPsigTFTo1L","error":null,"id":"jsonrpc"}
115
+ string: ! '{"result":"mkwWW2pnqFkDfH5esHxXBNARTN7GnUDpsv","error":null,"id":"jsonrpc"}
221
116
 
222
117
  '
223
118
  http_version:
224
- recorded_at: Sun, 07 Apr 2013 10:01:30 GMT
225
- recorded_with: VCR 2.4.0
119
+ recorded_at: Tue, 04 Mar 2014 14:06:08 GMT
120
+ recorded_with: VCR 2.8.0
@@ -11,45 +11,10 @@ http_interactions:
11
11
  - ! '*/*; q=0.5, application/xml'
12
12
  Accept-Encoding:
13
13
  - gzip, deflate
14
- Content-Length:
15
- - '53'
16
- User-Agent:
17
- - Ruby
18
- response:
19
- status:
20
- code: 200
21
- message: OK
22
- headers:
23
- Date:
24
- - Sun, 07 Apr 2013 10:01:27 +0000
25
- Connection:
26
- - keep-alive
27
- Content-Length:
28
- - '109'
29
14
  Content-Type:
30
15
  - application/json
31
- Server:
32
- - bitcoin-json-rpc/v0.7.2-beta
33
- body:
34
- encoding: US-ASCII
35
- string: ! '{"result":{"":8390.28800000,"1":0.00000000,"name":0.00000000,"nona":0.00000000},"error":null,"id":"jsonrpc"}
36
-
37
- '
38
- http_version:
39
- recorded_at: Sun, 07 Apr 2013 10:01:27 GMT
40
- - request:
41
- method: post
42
- uri: http://admin1:123@localhost:19001/
43
- body:
44
- encoding: US-ASCII
45
- string: ! '{"method":"getnewaddress","params":[""],"id":"jsonrpc"}'
46
- headers:
47
- Accept:
48
- - ! '*/*; q=0.5, application/xml'
49
- Accept-Encoding:
50
- - gzip, deflate
51
16
  Content-Length:
52
- - '55'
17
+ - '53'
53
18
  User-Agent:
54
19
  - Ruby
55
20
  response:
@@ -58,72 +23,37 @@ http_interactions:
58
23
  message: OK
59
24
  headers:
60
25
  Date:
61
- - Sun, 07 Apr 2013 10:01:27 +0000
26
+ - Tue, 04 Mar 2014 14:06:11 +0000
62
27
  Connection:
63
28
  - keep-alive
64
29
  Content-Length:
65
- - '76'
30
+ - '58'
66
31
  Content-Type:
67
32
  - application/json
68
33
  Server:
69
34
  - bitcoin-json-rpc/v0.7.2-beta
70
35
  body:
71
36
  encoding: US-ASCII
72
- string: ! '{"result":"mmpdgQGwKydXLLYcjgpd9hMCzzjUrmdpws","error":null,"id":"jsonrpc"}
37
+ string: ! '{"result":{"":8800.00000000},"error":null,"id":"jsonrpc"}
73
38
 
74
39
  '
75
40
  http_version:
76
- recorded_at: Sun, 07 Apr 2013 10:01:27 GMT
41
+ recorded_at: Tue, 04 Mar 2014 14:06:11 GMT
77
42
  - request:
78
43
  method: post
79
44
  uri: http://admin1:123@localhost:19001/
80
45
  body:
81
46
  encoding: US-ASCII
82
- string: ! '{"method":"getnewaddress","params":["1"],"id":"jsonrpc"}'
47
+ string: ! '{"method":"getnewaddress","params":[""],"id":"jsonrpc"}'
83
48
  headers:
84
49
  Accept:
85
50
  - ! '*/*; q=0.5, application/xml'
86
51
  Accept-Encoding:
87
52
  - gzip, deflate
88
- Content-Length:
89
- - '56'
90
- User-Agent:
91
- - Ruby
92
- response:
93
- status:
94
- code: 200
95
- message: OK
96
- headers:
97
- Date:
98
- - Sun, 07 Apr 2013 10:01:27 +0000
99
- Connection:
100
- - keep-alive
101
- Content-Length:
102
- - '76'
103
53
  Content-Type:
104
54
  - application/json
105
- Server:
106
- - bitcoin-json-rpc/v0.7.2-beta
107
- body:
108
- encoding: US-ASCII
109
- string: ! '{"result":"n4g2q5DiwZBWdoRi1DiPLTHekhhS7ica6w","error":null,"id":"jsonrpc"}
110
-
111
- '
112
- http_version:
113
- recorded_at: Sun, 07 Apr 2013 10:01:27 GMT
114
- - request:
115
- method: post
116
- uri: http://admin1:123@localhost:19001/
117
- body:
118
- encoding: US-ASCII
119
- string: ! '{"method":"getnewaddress","params":["name"],"id":"jsonrpc"}'
120
- headers:
121
- Accept:
122
- - ! '*/*; q=0.5, application/xml'
123
- Accept-Encoding:
124
- - gzip, deflate
125
55
  Content-Length:
126
- - '59'
56
+ - '55'
127
57
  User-Agent:
128
58
  - Ruby
129
59
  response:
@@ -132,7 +62,7 @@ http_interactions:
132
62
  message: OK
133
63
  headers:
134
64
  Date:
135
- - Sun, 07 Apr 2013 10:01:27 +0000
65
+ - Tue, 04 Mar 2014 14:06:11 +0000
136
66
  Connection:
137
67
  - keep-alive
138
68
  Content-Length:
@@ -143,59 +73,24 @@ http_interactions:
143
73
  - bitcoin-json-rpc/v0.7.2-beta
144
74
  body:
145
75
  encoding: US-ASCII
146
- string: ! '{"result":"mv18oru1tE6bzzpo1mGdkU2V5XH5q4apqa","error":null,"id":"jsonrpc"}
76
+ string: ! '{"result":"mi487X6jj8ggY6FAoG8ibv7qomcq9TXL1U","error":null,"id":"jsonrpc"}
147
77
 
148
78
  '
149
79
  http_version:
150
- recorded_at: Sun, 07 Apr 2013 10:01:27 GMT
80
+ recorded_at: Tue, 04 Mar 2014 14:06:11 GMT
151
81
  - request:
152
82
  method: post
153
83
  uri: http://admin1:123@localhost:19001/
154
84
  body:
155
85
  encoding: US-ASCII
156
- string: ! '{"method":"getnewaddress","params":["nona"],"id":"jsonrpc"}'
86
+ string: ! '{"method":"getnewaddress","params":["accountname"],"id":"jsonrpc"}'
157
87
  headers:
158
88
  Accept:
159
89
  - ! '*/*; q=0.5, application/xml'
160
90
  Accept-Encoding:
161
91
  - gzip, deflate
162
- Content-Length:
163
- - '59'
164
- User-Agent:
165
- - Ruby
166
- response:
167
- status:
168
- code: 200
169
- message: OK
170
- headers:
171
- Date:
172
- - Sun, 07 Apr 2013 10:01:27 +0000
173
- Connection:
174
- - keep-alive
175
- Content-Length:
176
- - '76'
177
92
  Content-Type:
178
93
  - application/json
179
- Server:
180
- - bitcoin-json-rpc/v0.7.2-beta
181
- body:
182
- encoding: US-ASCII
183
- string: ! '{"result":"mgztbGgEkJCTHypurgg4NAoKgnrWwpNnL7","error":null,"id":"jsonrpc"}
184
-
185
- '
186
- http_version:
187
- recorded_at: Sun, 07 Apr 2013 10:01:27 GMT
188
- - request:
189
- method: post
190
- uri: http://admin1:123@localhost:19001/
191
- body:
192
- encoding: US-ASCII
193
- string: ! '{"method":"getnewaddress","params":["accountname"],"id":"jsonrpc"}'
194
- headers:
195
- Accept:
196
- - ! '*/*; q=0.5, application/xml'
197
- Accept-Encoding:
198
- - gzip, deflate
199
94
  Content-Length:
200
95
  - '66'
201
96
  User-Agent:
@@ -206,7 +101,7 @@ http_interactions:
206
101
  message: OK
207
102
  headers:
208
103
  Date:
209
- - Sun, 07 Apr 2013 10:01:27 +0000
104
+ - Tue, 04 Mar 2014 14:06:11 +0000
210
105
  Connection:
211
106
  - keep-alive
212
107
  Content-Length:
@@ -217,9 +112,9 @@ http_interactions:
217
112
  - bitcoin-json-rpc/v0.7.2-beta
218
113
  body:
219
114
  encoding: US-ASCII
220
- string: ! '{"result":"n3TFPGdW9yXqprZsgCfiLPbGC91nx7as2u","error":null,"id":"jsonrpc"}
115
+ string: ! '{"result":"mkwWW2pnqFkDfH5esHxXBNARTN7GnUDpsv","error":null,"id":"jsonrpc"}
221
116
 
222
117
  '
223
118
  http_version:
224
- recorded_at: Sun, 07 Apr 2013 10:01:27 GMT
225
- recorded_with: VCR 2.4.0
119
+ recorded_at: Tue, 04 Mar 2014 14:06:11 GMT
120
+ recorded_with: VCR 2.8.0