openassets-ruby 0.4.3 → 0.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/openassets/api.rb +8 -4
- data/lib/openassets/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8dcc78b29ac4f1050971c8a6b4d99f46f1e080b0
|
|
4
|
+
data.tar.gz: 6d710fe280bc83e1d7a50f65f943ab2214ef5899
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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)|
|
data/lib/openassets/api.rb
CHANGED
|
@@ -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
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
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
|
|
data/lib/openassets/version.rb
CHANGED
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.
|
|
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-
|
|
11
|
+
date: 2016-05-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bitcoin-ruby
|