coin-op 0.4.2 → 0.4.3

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: 4f45ce27e81850de8f674df80ec2f9e3ca0cf50b
4
- data.tar.gz: 9a79c80c8d6b01b2fd384eee10fd017fe6229655
3
+ metadata.gz: 482ce5f6a886789d878fe1deeb82331bb5f57bf0
4
+ data.tar.gz: 4236d35aa587afde392f84d27e49c82df2397ad4
5
5
  SHA512:
6
- metadata.gz: 3086ad2a8d11b8f290c0077d070332fbf7901a49d6f29839e8fd279e0a120526c282e9ca3a73c63978b7a44677e463643c1e2809767b72c322e97d5797e2c626
7
- data.tar.gz: a2e2e284c282cd2e61bd090e146be00794a89b2185f9449dfe8c80c48ccab9a890641ac3cb1fb90520d688645a9f9340bffd3bef1751ccc4736fe19f52681b48
6
+ metadata.gz: 5766d93ae76df0503e23403200d8ef76e266b9ba25de4e4ce8c94011634922457b3de9acff2776b4dc05048de7ee35e9723edd35244ff006056fe6791ce466e9
7
+ data.tar.gz: 2cc169b1b66b3b8823e89697da361aedaf389d1bb94977d9b9afcd91153d11463e32d3d0c3b2d848b1caed72774b51184d7b909641528f4c500149018e9525f0
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -145,7 +145,7 @@ module CoinOp::Bit
145
145
  def valid_output?(output)
146
146
  if path = output.metadata.wallet_path
147
147
  node = self.path(path)
148
- node.p2sh_script.to_s == output.script.to_s
148
+ node.p2sh_script.to_s == output.script.p2sh_script.to_s
149
149
  else
150
150
  true
151
151
  end
@@ -259,7 +259,7 @@ module CoinOp::Bit
259
259
  end
260
260
 
261
261
  def p2sh_script
262
- Script.new(:address => self.script.address, network: network)
262
+ Script.new(:address => self.script.p2sh_address, network: network)
263
263
  end
264
264
 
265
265
  def signatures(value, names:)
@@ -109,9 +109,10 @@ module CoinOp::Bit
109
109
  # can probably be removed, as I think it is equivalent to
110
110
  # Script.new :address => some.address
111
111
  def p2sh_script
112
- CoinOp.syncbit(@network[:name]) do
113
- self.class.new Bitcoin::Script.to_p2sh_script(@native.get_hash160)
112
+ h160 = CoinOp.syncbit(@network[:name]) do
113
+ @native.get_hash160
114
114
  end
115
+ self.class.new(blob: Bitcoin::Script.to_p2sh_script(h160), network: @network[:name])
115
116
  end
116
117
 
117
118
  def hash160
@@ -1,3 +1,3 @@
1
1
  module CoinOp
2
- VERSION = "0.4.2"
2
+ VERSION = "0.4.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: coin-op
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew King
metadata.gz.sig CHANGED
Binary file