bitcoin2graphdb 0.3.7 → 0.3.8

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: '055480814ddd470fbd441308f64478a5a86326ba'
4
- data.tar.gz: 0cca242eb84b6d57373450ca4dca4de6216004a2
3
+ metadata.gz: 0eba92193195b2b9dfd0bb6350981968a9c5fe83
4
+ data.tar.gz: df8502f4946b7c5fa770c6587a91d07d8f734449
5
5
  SHA512:
6
- metadata.gz: e5dabd486eddaad1a3fdafa568a7c5cdf4cffbd6356d598d627ecb2e719495b32c660b4e2af8ae5290409d9345b92d549de3c5e9f2d1cd01ee916580cdb2d010
7
- data.tar.gz: 0004f7d3d2504f7bc4e7f1806a1de60fe7161d41e2f109c08f20da0f625ada24b74570f422681f0241f47ffc58feaf117a86b42f485c02cd090298eaa19645f6
6
+ metadata.gz: db72d2baeccb6b886766d492849d3e525a8a0de2424f81429c51e8a981fff841ba79dfda75e73aaad22dd2d565034350fc98357915d186280ae62316266287a9
7
+ data.tar.gz: 52a0b36366d4294c9016fc2c35a2716eb3d8dcb1f9bcf85587a44b6a742f9ddbc3e3f9a26501fe826460abfe021f46a54e41e8155ef8b7ada3639966f46ded01
data/README.md CHANGED
@@ -104,6 +104,25 @@ bitcoin2graphdb:
104
104
  When you run rspec, you need to run neo4j test server(http://localhost:7475) in advance.
105
105
  Others are the same as normal rspec.
106
106
 
107
+ ## setup test database
108
+
109
+ ### install test database
110
+
111
+ ```
112
+ $ rake neo4j:install'[community-2.3.3,test]'
113
+ ```
114
+
115
+ ### change port
116
+
117
+ ```
118
+ $ rake neo4j:config'[test,7475]'
119
+ ```
120
+
121
+ ### start test database
122
+
123
+ ```
124
+ $ rake neo4j:start'[test]'
125
+ ```
107
126
 
108
127
  ## Contributing
109
128
 
@@ -1,3 +1,3 @@
1
1
  module Bitcoin2Graphdb
2
- VERSION = "0.3.7"
2
+ VERSION = "0.3.8"
3
3
  end
@@ -22,7 +22,8 @@ module Graphdb
22
22
 
23
23
  # Get issuance transactions
24
24
  def issuance_txs
25
- outputs.select{|o|o.oa_output_type == 'issuance'}.map{|o|o.transaction}.sort{|a,b| b.block_time <=> a.block_time}
25
+ outputs.select{|o|o.oa_output_type == 'issuance'}.
26
+ map(&:transaction).uniq{|tx| tx.txid}.sort{|a,b| b.block_time <=> a.block_time}
26
27
  end
27
28
 
28
29
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bitcoin2graphdb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.7
4
+ version: 0.3.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - azuchi
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-07-06 00:00:00.000000000 Z
11
+ date: 2017-09-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: openassets-ruby
@@ -214,7 +214,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
214
214
  version: '0'
215
215
  requirements: []
216
216
  rubyforge_project:
217
- rubygems_version: 2.6.11
217
+ rubygems_version: 2.6.13
218
218
  signing_key:
219
219
  specification_version: 4
220
220
  summary: A tool for import Bitcoin blockchain data into neo4j database.