onchain 2.20 → 2.21

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: 0d07ae434f1a891af1eeead15fa0f5132e224dc2
4
- data.tar.gz: 670232957af1bb5094928a2daae65f8a8b6bc8d6
3
+ metadata.gz: 8f42f94260c7e0da94dcd840bbc4f9f334bc3bad
4
+ data.tar.gz: b221c236b5a8305bb95685bda1c73121a3a8274e
5
5
  SHA512:
6
- metadata.gz: b8b972b445171194351d44c6e5d06fcb89e5c91ed0c4a1ff9f7c548858a0be4ee3ed4d80f698fe0e1ad04197dbc15cde1f14cd682a2a9b6b3f8a1eb7012e8510
7
- data.tar.gz: e7d70aeac7fa8f02fbe90e7253930e7fe6f57acb23a8a83fedfeb54f52f54dfa95a7c2b794dea6e0a0638b78765e9dadcf1953b5dae525341a833c737639b87a
6
+ metadata.gz: 58bca0431780be922cbfdec9f9732a10352efbd5964d542277a23f26d8e6cf1da66f329679f59919f3f062f48092c913014da09c054114e679ca41084602e3cc
7
+ data.tar.gz: ae835a4f5a52ef6e91185d97c932e65b9b7a88b446dbdde3cf093c480229137b5b0295010e029ba66c7040edbb30c08f79c368e35a9127bae6c529ff4330a511
@@ -136,6 +136,10 @@ class OnChain::BlockChain
136
136
  next
137
137
  end
138
138
 
139
+ if supplier == :blockinfo and method_name.to_s == 'send_tx'
140
+ next
141
+ end
142
+
139
143
  if supplier == :blockinfo and method_name.to_s == 'get_transactions'
140
144
  next
141
145
  end
@@ -68,7 +68,7 @@ class OnChain::BlockChain
68
68
 
69
69
  def insight_send_tx(tx_hex, network = :bitcoin)
70
70
 
71
- uri = URI.parse(get_url(network) + "tx/push")
71
+ uri = URI.parse(get_url(network) + "tx/send")
72
72
  http = Net::HTTP.new(uri.host, uri.port)
73
73
 
74
74
  request = Net::HTTP::Post.new(uri.request_uri)
@@ -81,6 +81,8 @@ class OnChain::BlockChain
81
81
  stat = 'Unknown'
82
82
  tx_hash = res["txid"]
83
83
 
84
+ puts 'Call insight_send_tx ' + tx_hex.to_s
85
+
84
86
  ret = "{\"status\":\"#{stat}\",\"data\":\"#{tx_hash}\",\"code\":200,\"message\":\"#{mess}\"}"
85
87
  return JSON.parse(ret)
86
88
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: onchain
3
3
  version: !ruby/object:Gem::Version
4
- version: '2.20'
4
+ version: '2.21'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Number 6