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
@@ -23,7 +23,7 @@ http_interactions:
23
23
  message: OK
24
24
  headers:
25
25
  Date:
26
- - Sat, 01 Mar 2014 07:30:56 +0000
26
+ - Tue, 04 Mar 2014 14:06:15 +0000
27
27
  Connection:
28
28
  - keep-alive
29
29
  Content-Length:
@@ -38,7 +38,7 @@ http_interactions:
38
38
 
39
39
  '
40
40
  http_version:
41
- recorded_at: Sat, 01 Mar 2014 07:30:56 GMT
41
+ recorded_at: Tue, 04 Mar 2014 14:06:15 GMT
42
42
  - request:
43
43
  method: post
44
44
  uri: http://admin1:123@localhost:19001/
@@ -62,7 +62,7 @@ http_interactions:
62
62
  message: OK
63
63
  headers:
64
64
  Date:
65
- - Sat, 01 Mar 2014 07:30:56 +0000
65
+ - Tue, 04 Mar 2014 14:06:15 +0000
66
66
  Connection:
67
67
  - keep-alive
68
68
  Content-Length:
@@ -77,7 +77,7 @@ http_interactions:
77
77
 
78
78
  '
79
79
  http_version:
80
- recorded_at: Sat, 01 Mar 2014 07:30:56 GMT
80
+ recorded_at: Tue, 04 Mar 2014 14:06:15 GMT
81
81
  - request:
82
82
  method: post
83
83
  uri: http://admin1:123@localhost:19001/
@@ -101,7 +101,7 @@ http_interactions:
101
101
  message: OK
102
102
  headers:
103
103
  Date:
104
- - Sat, 01 Mar 2014 07:30:56 +0000
104
+ - Tue, 04 Mar 2014 14:06:15 +0000
105
105
  Connection:
106
106
  - keep-alive
107
107
  Content-Length:
@@ -116,7 +116,7 @@ http_interactions:
116
116
 
117
117
  '
118
118
  http_version:
119
- recorded_at: Sat, 01 Mar 2014 07:30:56 GMT
119
+ recorded_at: Tue, 04 Mar 2014 14:06:15 GMT
120
120
  - request:
121
121
  method: post
122
122
  uri: http://admin1:123@localhost:19001/
@@ -140,7 +140,7 @@ http_interactions:
140
140
  message: OK
141
141
  headers:
142
142
  Date:
143
- - Sat, 01 Mar 2014 07:30:56 +0000
143
+ - Tue, 04 Mar 2014 14:06:15 +0000
144
144
  Connection:
145
145
  - keep-alive
146
146
  Content-Length:
@@ -155,163 +155,7 @@ http_interactions:
155
155
 
156
156
  '
157
157
  http_version:
158
- recorded_at: Sat, 01 Mar 2014 07:30:56 GMT
159
- - request:
160
- method: post
161
- uri: http://admin1:123@localhost:19001/
162
- body:
163
- encoding: US-ASCII
164
- string: ! '{"method":"getbalance","params":["",0],"id":"jsonrpc"}'
165
- headers:
166
- Accept:
167
- - ! '*/*; q=0.5, application/xml'
168
- Accept-Encoding:
169
- - gzip, deflate
170
- Content-Type:
171
- - application/json
172
- Content-Length:
173
- - '54'
174
- User-Agent:
175
- - Ruby
176
- response:
177
- status:
178
- code: 200
179
- message: OK
180
- headers:
181
- Date:
182
- - Sat, 01 Mar 2014 07:30:56 +0000
183
- Connection:
184
- - keep-alive
185
- Content-Length:
186
- - '53'
187
- Content-Type:
188
- - application/json
189
- Server:
190
- - bitcoin-json-rpc/v0.7.2-beta
191
- body:
192
- encoding: US-ASCII
193
- string: ! '{"result":8800.00000000,"error":null,"id":"jsonrpc"}
194
-
195
- '
196
- http_version:
197
- recorded_at: Sat, 01 Mar 2014 07:30:56 GMT
198
- - request:
199
- method: post
200
- uri: http://admin1:123@localhost:19001/
201
- body:
202
- encoding: US-ASCII
203
- string: ! '{"method":"getbalance","params":["",0],"id":"jsonrpc"}'
204
- headers:
205
- Accept:
206
- - ! '*/*; q=0.5, application/xml'
207
- Accept-Encoding:
208
- - gzip, deflate
209
- Content-Type:
210
- - application/json
211
- Content-Length:
212
- - '54'
213
- User-Agent:
214
- - Ruby
215
- response:
216
- status:
217
- code: 200
218
- message: OK
219
- headers:
220
- Date:
221
- - Sat, 01 Mar 2014 07:31:03 +0000
222
- Connection:
223
- - keep-alive
224
- Content-Length:
225
- - '53'
226
- Content-Type:
227
- - application/json
228
- Server:
229
- - bitcoin-json-rpc/v0.7.2-beta
230
- body:
231
- encoding: US-ASCII
232
- string: ! '{"result":8800.00000000,"error":null,"id":"jsonrpc"}
233
-
234
- '
235
- http_version:
236
- recorded_at: Sat, 01 Mar 2014 07:31:03 GMT
237
- - request:
238
- method: post
239
- uri: http://admin1:123@localhost:19001/
240
- body:
241
- encoding: US-ASCII
242
- string: ! '{"method":"getbalance","params":["",0],"id":"jsonrpc"}'
243
- headers:
244
- Accept:
245
- - ! '*/*; q=0.5, application/xml'
246
- Accept-Encoding:
247
- - gzip, deflate
248
- Content-Type:
249
- - application/json
250
- Content-Length:
251
- - '54'
252
- User-Agent:
253
- - Ruby
254
- response:
255
- status:
256
- code: 200
257
- message: OK
258
- headers:
259
- Date:
260
- - Sat, 01 Mar 2014 07:31:04 +0000
261
- Connection:
262
- - keep-alive
263
- Content-Length:
264
- - '53'
265
- Content-Type:
266
- - application/json
267
- Server:
268
- - bitcoin-json-rpc/v0.7.2-beta
269
- body:
270
- encoding: US-ASCII
271
- string: ! '{"result":8800.00000000,"error":null,"id":"jsonrpc"}
272
-
273
- '
274
- http_version:
275
- recorded_at: Sat, 01 Mar 2014 07:31:04 GMT
276
- - request:
277
- method: post
278
- uri: http://admin1:123@localhost:19001/
279
- body:
280
- encoding: US-ASCII
281
- string: ! '{"method":"sendfrom","params":["","mu2dJuiof4vUm3hBgX8F4FZBzsMEqPXEui",10,0],"id":"jsonrpc"}'
282
- headers:
283
- Accept:
284
- - ! '*/*; q=0.5, application/xml'
285
- Accept-Encoding:
286
- - gzip, deflate
287
- Content-Type:
288
- - application/json
289
- Content-Length:
290
- - '92'
291
- User-Agent:
292
- - Ruby
293
- response:
294
- status:
295
- code: 200
296
- message: OK
297
- headers:
298
- Date:
299
- - Sat, 01 Mar 2014 07:32:03 +0000
300
- Connection:
301
- - keep-alive
302
- Content-Length:
303
- - '106'
304
- Content-Type:
305
- - application/json
306
- Server:
307
- - bitcoin-json-rpc/v0.7.2-beta
308
- body:
309
- encoding: US-ASCII
310
- string: ! '{"result":"f28f070d561de21f0f731bb321919ed608401c00040bcf8f98b4feb69751ac40","error":null,"id":"jsonrpc"}
311
-
312
- '
313
- http_version:
314
- recorded_at: Sat, 01 Mar 2014 07:32:03 GMT
158
+ recorded_at: Tue, 04 Mar 2014 14:06:15 GMT
315
159
  - request:
316
160
  method: post
317
161
  uri: http://admin1:123@localhost:19001/
@@ -335,7 +179,7 @@ http_interactions:
335
179
  message: OK
336
180
  headers:
337
181
  Date:
338
- - Sat, 01 Mar 2014 07:32:06 +0000
182
+ - Tue, 04 Mar 2014 14:06:15 +0000
339
183
  Connection:
340
184
  - keep-alive
341
185
  Content-Length:
@@ -346,128 +190,11 @@ http_interactions:
346
190
  - bitcoin-json-rpc/v0.7.2-beta
347
191
  body:
348
192
  encoding: US-ASCII
349
- string: ! '{"result":"9ee1133e243c0ad52316c89989d5d8466412783c2192724f10c9ce6a576b9515","error":null,"id":"jsonrpc"}
193
+ string: ! '{"result":"c7c3ef7b8067bc3f4b569d723fc9dad29e9a9685274033866993073410528ab1","error":null,"id":"jsonrpc"}
350
194
 
351
195
  '
352
196
  http_version:
353
- recorded_at: Sat, 01 Mar 2014 07:32:06 GMT
354
- - request:
355
- method: post
356
- uri: http://admin1:123@localhost:19001/
357
- body:
358
- encoding: US-ASCII
359
- string: ! '{"method":"getbalance","params":["moneyd",0],"id":"jsonrpc"}'
360
- headers:
361
- Accept:
362
- - ! '*/*; q=0.5, application/xml'
363
- Accept-Encoding:
364
- - gzip, deflate
365
- Content-Type:
366
- - application/json
367
- Content-Length:
368
- - '60'
369
- User-Agent:
370
- - Ruby
371
- response:
372
- status:
373
- code: 200
374
- message: OK
375
- headers:
376
- Date:
377
- - Sat, 01 Mar 2014 07:32:14 +0000
378
- Connection:
379
- - keep-alive
380
- Content-Length:
381
- - '51'
382
- Content-Type:
383
- - application/json
384
- Server:
385
- - bitcoin-json-rpc/v0.7.2-beta
386
- body:
387
- encoding: US-ASCII
388
- string: ! '{"result":20.00000000,"error":null,"id":"jsonrpc"}
389
-
390
- '
391
- http_version:
392
- recorded_at: Sat, 01 Mar 2014 07:32:14 GMT
393
- - request:
394
- method: post
395
- uri: http://admin1:123@localhost:19001/
396
- body:
397
- encoding: US-ASCII
398
- string: ! '{"method":"getbalance","params":["moneyd",0],"id":"jsonrpc"}'
399
- headers:
400
- Accept:
401
- - ! '*/*; q=0.5, application/xml'
402
- Accept-Encoding:
403
- - gzip, deflate
404
- Content-Type:
405
- - application/json
406
- Content-Length:
407
- - '60'
408
- User-Agent:
409
- - Ruby
410
- response:
411
- status:
412
- code: 200
413
- message: OK
414
- headers:
415
- Date:
416
- - Sat, 01 Mar 2014 07:32:15 +0000
417
- Connection:
418
- - keep-alive
419
- Content-Length:
420
- - '51'
421
- Content-Type:
422
- - application/json
423
- Server:
424
- - bitcoin-json-rpc/v0.7.2-beta
425
- body:
426
- encoding: US-ASCII
427
- string: ! '{"result":20.00000000,"error":null,"id":"jsonrpc"}
428
-
429
- '
430
- http_version:
431
- recorded_at: Sat, 01 Mar 2014 07:32:15 GMT
432
- - request:
433
- method: post
434
- uri: http://admin1:123@localhost:19001/
435
- body:
436
- encoding: US-ASCII
437
- string: ! '{"method":"sendfrom","params":["","mu2dJuiof4vUm3hBgX8F4FZBzsMEqPXEui",10,0],"id":"jsonrpc"}'
438
- headers:
439
- Accept:
440
- - ! '*/*; q=0.5, application/xml'
441
- Accept-Encoding:
442
- - gzip, deflate
443
- Content-Type:
444
- - application/json
445
- Content-Length:
446
- - '92'
447
- User-Agent:
448
- - Ruby
449
- response:
450
- status:
451
- code: 200
452
- message: OK
453
- headers:
454
- Date:
455
- - Sat, 01 Mar 2014 07:32:17 +0000
456
- Connection:
457
- - keep-alive
458
- Content-Length:
459
- - '106'
460
- Content-Type:
461
- - application/json
462
- Server:
463
- - bitcoin-json-rpc/v0.7.2-beta
464
- body:
465
- encoding: US-ASCII
466
- string: ! '{"result":"bad145411c417501990fd7999ad04fbcf729a49b04e0a88d122787d271ac6990","error":null,"id":"jsonrpc"}
467
-
468
- '
469
- http_version:
470
- recorded_at: Sat, 01 Mar 2014 07:32:17 GMT
197
+ recorded_at: Tue, 04 Mar 2014 14:06:15 GMT
471
198
  - request:
472
199
  method: post
473
200
  uri: http://admin1:123@localhost:19001/
@@ -491,7 +218,7 @@ http_interactions:
491
218
  message: OK
492
219
  headers:
493
220
  Date:
494
- - Sat, 01 Mar 2014 07:32:17 +0000
221
+ - Tue, 04 Mar 2014 14:06:15 +0000
495
222
  Connection:
496
223
  - keep-alive
497
224
  Content-Length:
@@ -502,11 +229,11 @@ http_interactions:
502
229
  - bitcoin-json-rpc/v0.7.2-beta
503
230
  body:
504
231
  encoding: US-ASCII
505
- string: ! '{"result":8770.00000000,"error":null,"id":"jsonrpc"}
232
+ string: ! '{"result":8790.00000000,"error":null,"id":"jsonrpc"}
506
233
 
507
234
  '
508
235
  http_version:
509
- recorded_at: Sat, 01 Mar 2014 07:32:17 GMT
236
+ recorded_at: Tue, 04 Mar 2014 14:06:15 GMT
510
237
  - request:
511
238
  method: post
512
239
  uri: http://admin1:123@localhost:19001/
@@ -530,7 +257,7 @@ http_interactions:
530
257
  message: OK
531
258
  headers:
532
259
  Date:
533
- - Sat, 01 Mar 2014 07:32:17 +0000
260
+ - Tue, 04 Mar 2014 14:06:15 +0000
534
261
  Connection:
535
262
  - keep-alive
536
263
  Content-Length:
@@ -545,7 +272,7 @@ http_interactions:
545
272
 
546
273
  '
547
274
  http_version:
548
- recorded_at: Sat, 01 Mar 2014 07:32:17 GMT
275
+ recorded_at: Tue, 04 Mar 2014 14:06:15 GMT
549
276
  - request:
550
277
  method: post
551
278
  uri: http://admin1:123@localhost:19001/
@@ -569,7 +296,7 @@ http_interactions:
569
296
  message: OK
570
297
  headers:
571
298
  Date:
572
- - Sat, 01 Mar 2014 07:32:17 +0000
299
+ - Tue, 04 Mar 2014 14:06:15 +0000
573
300
  Connection:
574
301
  - keep-alive
575
302
  Content-Length:
@@ -580,87 +307,9 @@ http_interactions:
580
307
  - bitcoin-json-rpc/v0.7.2-beta
581
308
  body:
582
309
  encoding: US-ASCII
583
- string: ! '{"result":30.00000000,"error":null,"id":"jsonrpc"}
584
-
585
- '
586
- http_version:
587
- recorded_at: Sat, 01 Mar 2014 07:32:17 GMT
588
- - request:
589
- method: post
590
- uri: http://admin1:123@localhost:19001/
591
- body:
592
- encoding: US-ASCII
593
- string: ! '{"method":"getbalance","params":["nomoney",0],"id":"jsonrpc"}'
594
- headers:
595
- Accept:
596
- - ! '*/*; q=0.5, application/xml'
597
- Accept-Encoding:
598
- - gzip, deflate
599
- Content-Type:
600
- - application/json
601
- Content-Length:
602
- - '61'
603
- User-Agent:
604
- - Ruby
605
- response:
606
- status:
607
- code: 200
608
- message: OK
609
- headers:
610
- Date:
611
- - Sat, 01 Mar 2014 07:32:17 +0000
612
- Connection:
613
- - keep-alive
614
- Content-Length:
615
- - '50'
616
- Content-Type:
617
- - application/json
618
- Server:
619
- - bitcoin-json-rpc/v0.7.2-beta
620
- body:
621
- encoding: US-ASCII
622
- string: ! '{"result":0.00000000,"error":null,"id":"jsonrpc"}
623
-
624
- '
625
- http_version:
626
- recorded_at: Sat, 01 Mar 2014 07:32:17 GMT
627
- - request:
628
- method: post
629
- uri: http://admin1:123@localhost:19001/
630
- body:
631
- encoding: US-ASCII
632
- string: ! '{"method":"sendfrom","params":["nomoney","mi487X6jj8ggY6FAoG8ibv7qomcq9TXL1U",0.0,0],"id":"jsonrpc"}'
633
- headers:
634
- Accept:
635
- - ! '*/*; q=0.5, application/xml'
636
- Accept-Encoding:
637
- - gzip, deflate
638
- Content-Type:
639
- - application/json
640
- Content-Length:
641
- - '100'
642
- User-Agent:
643
- - Ruby
644
- response:
645
- status:
646
- code: 500
647
- message: Internal Server Error
648
- headers:
649
- Date:
650
- - Sat, 01 Mar 2014 07:32:17 +0000
651
- Connection:
652
- - close
653
- Content-Length:
654
- - '78'
655
- Content-Type:
656
- - application/json
657
- Server:
658
- - bitcoin-json-rpc/v0.7.2-beta
659
- body:
660
- encoding: US-ASCII
661
- string: ! '{"result":null,"error":{"code":-3,"message":"Invalid amount"},"id":"jsonrpc"}
310
+ string: ! '{"result":10.00000000,"error":null,"id":"jsonrpc"}
662
311
 
663
312
  '
664
313
  http_version:
665
- recorded_at: Sat, 01 Mar 2014 07:32:17 GMT
314
+ recorded_at: Tue, 04 Mar 2014 14:06:15 GMT
666
315
  recorded_with: VCR 2.8.0
@@ -11,82 +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:24 +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:24 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
- 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:24 +0000
62
- Connection:
63
- - keep-alive
64
- Content-Length:
65
- - '76'
66
- Content-Type:
67
- - application/json
68
- Server:
69
- - bitcoin-json-rpc/v0.7.2-beta
70
- body:
71
- encoding: US-ASCII
72
- string: ! '{"result":"msXVYhMMTaQ5q3x8fzh1w5L7ES3cysVgA7","error":null,"id":"jsonrpc"}
73
-
74
- '
75
- http_version:
76
- recorded_at: Sun, 07 Apr 2013 10:01:24 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
16
  Content-Length:
89
- - '56'
17
+ - '53'
90
18
  User-Agent:
91
19
  - Ruby
92
20
  response:
@@ -95,72 +23,37 @@ http_interactions:
95
23
  message: OK
96
24
  headers:
97
25
  Date:
98
- - Sun, 07 Apr 2013 10:01:24 +0000
26
+ - Tue, 04 Mar 2014 14:06:05 +0000
99
27
  Connection:
100
28
  - keep-alive
101
29
  Content-Length:
102
- - '76'
30
+ - '58'
103
31
  Content-Type:
104
32
  - application/json
105
33
  Server:
106
34
  - bitcoin-json-rpc/v0.7.2-beta
107
35
  body:
108
36
  encoding: US-ASCII
109
- string: ! '{"result":"mn5jeJipf9MA19Pk4rh2p151Rfsr3knZy1","error":null,"id":"jsonrpc"}
37
+ string: ! '{"result":{"":8800.00000000},"error":null,"id":"jsonrpc"}
110
38
 
111
39
  '
112
40
  http_version:
113
- recorded_at: Sun, 07 Apr 2013 10:01:24 GMT
41
+ recorded_at: Tue, 04 Mar 2014 14:06:05 GMT
114
42
  - request:
115
43
  method: post
116
44
  uri: http://admin1:123@localhost:19001/
117
45
  body:
118
46
  encoding: US-ASCII
119
- string: ! '{"method":"getnewaddress","params":["name"],"id":"jsonrpc"}'
47
+ string: ! '{"method":"getnewaddress","params":[""],"id":"jsonrpc"}'
120
48
  headers:
121
49
  Accept:
122
50
  - ! '*/*; q=0.5, application/xml'
123
51
  Accept-Encoding:
124
52
  - 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:01:24 +0000
136
- Connection:
137
- - keep-alive
138
- Content-Length:
139
- - '76'
140
53
  Content-Type:
141
54
  - application/json
142
- Server:
143
- - bitcoin-json-rpc/v0.7.2-beta
144
- body:
145
- encoding: US-ASCII
146
- string: ! '{"result":"mtdrecykbF9KLPGRU9VqG9VVjSHaQFJ4kQ","error":null,"id":"jsonrpc"}
147
-
148
- '
149
- http_version:
150
- recorded_at: Sun, 07 Apr 2013 10:01:24 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
55
  Content-Length:
163
- - '59'
56
+ - '55'
164
57
  User-Agent:
165
58
  - Ruby
166
59
  response:
@@ -169,7 +62,7 @@ http_interactions:
169
62
  message: OK
170
63
  headers:
171
64
  Date:
172
- - Sun, 07 Apr 2013 10:01:24 +0000
65
+ - Tue, 04 Mar 2014 14:06:05 +0000
173
66
  Connection:
174
67
  - keep-alive
175
68
  Content-Length:
@@ -180,9 +73,9 @@ http_interactions:
180
73
  - bitcoin-json-rpc/v0.7.2-beta
181
74
  body:
182
75
  encoding: US-ASCII
183
- string: ! '{"result":"ms7mieKzVzFjqntKAnyYg2hiYpF35v9cYL","error":null,"id":"jsonrpc"}
76
+ string: ! '{"result":"mi487X6jj8ggY6FAoG8ibv7qomcq9TXL1U","error":null,"id":"jsonrpc"}
184
77
 
185
78
  '
186
79
  http_version:
187
- recorded_at: Sun, 07 Apr 2013 10:01:24 GMT
188
- recorded_with: VCR 2.4.0
80
+ recorded_at: Tue, 04 Mar 2014 14:06:05 GMT
81
+ recorded_with: VCR 2.8.0