openassets-ruby 0.4.3 → 0.4.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: be50c083e4513da8559ca4c6748ec100d117072b
4
- data.tar.gz: a938bc5076c8973fb5c5ac67676ebb9b0e596d8c
3
+ metadata.gz: 8dcc78b29ac4f1050971c8a6b4d99f46f1e080b0
4
+ data.tar.gz: 6d710fe280bc83e1d7a50f65f943ab2214ef5899
5
5
  SHA512:
6
- metadata.gz: b3c4916cfadc0aa2725f75e8a69a6410d7fac1c618e12bab271b2edac3bc96c8c65d3b52b9b1cc386405f2b5fe776fa4f7805372d79dbb7e9133257f6a86401e
7
- data.tar.gz: 01b65141ccffce115dffd58571651db370a418c4a48313959a07fe66860d773f94df66e97d3b1673c20bd2cce4638551b6a407900aa24eca6aa77ce526211c17
6
+ metadata.gz: 6c6fa61c4e8dff1329fdcc7b6d3c2b18c4b03d1816350f79a00c1e85d9d66caf62df6b41fde0cbe89a27bc3d722cadfc34d22be44b08868f5e235d6be0b3d422
7
+ data.tar.gz: e04f77dd8aec914ecdda710b883726df047e3c54d735576584e139abb6cbbb19c68ae802996624e29c728db6950265eba27bd3eef66b22dab527d5a59eb60e4a
data/README.md CHANGED
@@ -36,7 +36,7 @@ The configuration options are as follows:
36
36
 
37
37
  |option|describe|default|
38
38
  |---|---|---|
39
- |**network**|The using network. "mainnet" or "testnet" |mainnet|
39
+ |**network**|The using network. "mainnet" or "testnet" or "regtest" |mainnet|
40
40
  |**provider**|The RPC server. Specify possible now only "bitcoind".|bitcoind|
41
41
  |**cache**|The path to the database file. If you want to use in-memory database, specify ':memory:'.|cache.db|
42
42
  |**dust_limit**|The amount of Bitcoin, which is set to the each output of the Open Assets Protocol(issue or transfer).|600 (satoshi)|
@@ -30,6 +30,7 @@ module OpenAssets
30
30
  end
31
31
  @tx_cache = Cache::TransactionCache.new(@config[:cache])
32
32
  @output_cache = Cache::OutputCache.new(@config[:cache])
33
+ change_network
33
34
  end
34
35
 
35
36
  def provider
@@ -333,10 +334,13 @@ module OpenAssets
333
334
  end
334
335
 
335
336
  def change_network
336
- if is_testnet?
337
- Bitcoin.network = :testnet3
338
- else
339
- Bitcoin.network = :bitcoin
337
+ case @config[:network]
338
+ when 'testnet'
339
+ Bitcoin.network = :testnet3
340
+ when 'regtest'
341
+ Bitcoin.network = :regtest
342
+ else
343
+ Bitcoin.network = :bitcoin
340
344
  end
341
345
  end
342
346
 
@@ -1,3 +1,3 @@
1
1
  module OpenAssets
2
- VERSION = '0.4.3'
2
+ VERSION = '0.4.4'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openassets-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.3
4
+ version: 0.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - azuchi
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-05-15 00:00:00.000000000 Z
11
+ date: 2016-05-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bitcoin-ruby