pochette_toshi 0.1.10 → 0.1.11

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: 6dce26f4fae66047b6220b02277ce701c1ded64a
4
- data.tar.gz: 1f1280d780cc819baaf23ecfdab0a289fe028bcb
3
+ metadata.gz: cd2d4cc9e2175caf2010c15e617fbd1a39f5b941
4
+ data.tar.gz: 22c57daf079c09b54f0a1d40d30da6bc8534ea24
5
5
  SHA512:
6
- metadata.gz: 28684e88780d7b9c2e44fc09d1e7a8114d673b1a79bb7857d33050915a1f458522dfed159215ea11e503ed00286183195a053f2dc239cda8c73fd775e298f29a
7
- data.tar.gz: fbb77bcb54316fb0522380cb005a77dd6001628a72c1d34b1ca41041b7c8d8f227488a20b47b9af05a84a529aaa1edd76d206005632f8056df08f52119309e53
6
+ metadata.gz: c1c1bc63a97c5294a73e23889da68d62e17555edd3b1dc391757d784b6758191c36bb8192b128ff381013d247db032c705b6b47fb4c7b4c056ed66e55556b4fe
7
+ data.tar.gz: 058c0063e1c0bca31234a21c994baddd19650ed4b30befe064daf6eedba418b2d95c1506c2c1e14a93d8baf515dd78f363596b844e56165d3a3c8cd67cd22969
@@ -1,3 +1,3 @@
1
1
  module PochetteToshi
2
- VERSION = "0.1.10"
2
+ VERSION = "0.1.11"
3
3
  end
@@ -149,7 +149,7 @@ class Pochette::Backends::Toshi
149
149
  def list_unspent_helper(addresses)
150
150
  addresses_sql = sanitize_list(addresses)
151
151
  query(%{
152
- SELECT a.address, o.hsh, o.position, uo.amount
152
+ SELECT a.address, o.hsh, o.position, uo.amount, o.script
153
153
  FROM addresses a
154
154
  INNER JOIN unspent_outputs uo ON uo.address_id = a.id AND uo.amount > 5000
155
155
  LEFT JOIN outputs o ON o.id = uo.output_id
@@ -161,7 +161,7 @@ class Pochette::Backends::Toshi
161
161
  i.prev_out = '0000000000000000000000000000000000000000000000000000000000000000'
162
162
  AND t.height > #{block_height - 100}
163
163
  )
164
- }).collect{|a,b,c,d| [a,b,c.to_i,d.to_i]}
164
+ }).collect{|a,b,c,d,e| [a,b,c.to_i,d.to_i,e[2..-1]]}
165
165
  end
166
166
 
167
167
  def list_transactions(txids)
@@ -16,7 +16,7 @@ Gem::Specification.new do |spec|
16
16
 
17
17
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
18
18
  spec.require_paths = ["lib"]
19
- spec.add_dependency "pochette", "~> 0.1.7"
19
+ spec.add_dependency "pochette", "~> 0.1.9"
20
20
  spec.add_dependency "pg", "~> 0.17"
21
21
  spec.add_dependency "activesupport", "~> 4.2"
22
22
  spec.add_dependency "sequel", "~> 4.27"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pochette_toshi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.10
4
+ version: 0.1.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nubis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-02 00:00:00.000000000 Z
11
+ date: 2015-11-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pochette
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.1.7
19
+ version: 0.1.9
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 0.1.7
26
+ version: 0.1.9
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: pg
29
29
  requirement: !ruby/object:Gem::Requirement