bitcoin2graphdb 0.2.1 → 0.2.2

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: 592eb00368826f40a01e2ddc809371402c8222d8
4
- data.tar.gz: 7694fa9e9d9c5b67c97df1bf4cdd024613fc47ac
3
+ metadata.gz: ea56a5f2bad3afe3e1574f8774b0c1cfbdd275b0
4
+ data.tar.gz: 45e50617e02587651c0febb5cba74a8431d4abd5
5
5
  SHA512:
6
- metadata.gz: 6250127b9f67d49290b595d21ae47f74f0b68de6ebe76cb07b891ff25065a3d06a4118989809baf39c3f43378530e0914fc65fb3b6d01d70cfb05ea0d67ecd75
7
- data.tar.gz: 0eaa342da00301179a8d5632fd56355f2171ac6e3b468c55f376620b3a4f6dab097cad32d03c8f52c0f7b2cb2738595cb99de6403641b1afe242f6d1f8e694c4
6
+ metadata.gz: 9524e74ab6c44e33512e9db63d70c147a6eafd7f9257a60ceed648b92844e03b8153b2a4072e2276c9640e9eefce0442da21f3995c9796f03ec3635a6c682531
7
+ data.tar.gz: eefe3054ea5b370eb27baf64c3192891a9d1b56fd24ce961cc261435ab1753a61443f16daed84717e583310f38558bce1c1955217bf45011f0b1b12c138c07c9
@@ -1,3 +1,3 @@
1
1
  module Bitcoin2Graphdb
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
@@ -15,6 +15,7 @@ module Graphdb
15
15
 
16
16
  def create_from_txid(txid)
17
17
  tx = super(txid)
18
+ puts "oa create tx = #{txid}. #{Time.now}"
18
19
  outputs = Bitcoin2Graphdb::Bitcoin.provider.oa_outputs(txid)
19
20
  graph_outputs = tx.outputs.to_a
20
21
  outputs.each{|o|
@@ -21,6 +21,7 @@ module Graphdb
21
21
  end
22
22
 
23
23
  def apply_oa_attributes(oa_out)
24
+ puts "oa out apply #{Time.now}"
24
25
  self.asset_quantity = oa_out['asset_quantity']
25
26
  self.oa_output_type = oa_out['output_type']
26
27
  self.asset_id = AssetId.find_or_create(oa_out['asset_id']) unless oa_out['asset_id'].nil?
@@ -23,7 +23,7 @@ module Graphdb
23
23
  scope :with_txid, ->(txid){where(txid: txid)}
24
24
 
25
25
  def self.create_from_txid(txid)
26
- puts "create tx #{txid}"
26
+ puts "create tx #{txid}. #{Time.now}"
27
27
  tx = new
28
28
  hash = load_tx(txid)
29
29
  tx.hex = hash['hex']
@@ -17,6 +17,7 @@ module Graphdb
17
17
  after_create :add_out_point_rel
18
18
 
19
19
  def self.create_from_hash(hash)
20
+ puts "create tx_in #{Time.now}"
20
21
  tx_in = new
21
22
  tx_in.txid = hash['txid']
22
23
  tx_in.vout = hash['vout']
@@ -19,6 +19,7 @@ module Graphdb
19
19
  scope :with_out_index, -> (n){where(n: n)}
20
20
 
21
21
  def self.create_from_hash(hash)
22
+ puts "create tx_out #{Time.now}"
22
23
  tx_out = new
23
24
  tx_out.value = hash['value']
24
25
  tx_out.n = hash['n']
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.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - azuchi
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-04-20 00:00:00.000000000 Z
11
+ date: 2016-04-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: openassets-ruby