bitcoinrb-grpc 0.1.6 → 0.1.7

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
  SHA256:
3
- metadata.gz: 5fd690cfb65d57221b690f52d81c51f720a587edb44da2974376c9662776cfaf
4
- data.tar.gz: 7445feccbfac03004e8ed1a6185c127d3ded063562dffdff5864991b7a69201e
3
+ metadata.gz: e12bda16eb52ad15892ebf19638a8f3f642f5ece08be84db507310f7ac66071b
4
+ data.tar.gz: ea2cb87fe8275d3100577f593a94b81af4d792fdf88674920f7157446a65c9e9
5
5
  SHA512:
6
- metadata.gz: 4c43a439477b4002c0c6bd6d2dea4f572a7a2556bb205ff4db066fcd77b95617354e87c538c6a5234094f57b596d5c73f5eb50ac69188a85b39813b2aaa850d9
7
- data.tar.gz: 50220524bc52b4a4e8d22ef5a253678100850f31a778ad924882e47f38a5379462b7d03c8be1e0750ae3ecaf209956aaf14b4c214d17c4134967e33acfe6ca02
6
+ metadata.gz: a7f9b3c70bd30a4c210c5fd566e5a7f35377877d5931db5dbc67a971129826d839135f16f415d2e22633398e27c1762776c31ad8493ca27258ad018c3c80810e
7
+ data.tar.gz: c1fa3d3e53eca352fb5cdf2094704ab394fd9bde319c352c9869a6ad03889cc5eea74990990fb5dd8342f67da9f8dc3eb56a41ab041ed088e3aae255b6183442
@@ -92,6 +92,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
92
92
  optional :id, :uint32, 1
93
93
  optional :asset_type, :uint32, 2
94
94
  optional :asset_id, :string, 3
95
+ optional :tx_hash, :string, 4
95
96
  end
96
97
  add_message "bitcoin.grpc.WatchTokenResponse" do
97
98
  optional :id, :uint32, 1
@@ -1,5 +1,5 @@
1
1
  module Bitcoin
2
2
  module Grpc
3
- VERSION = "0.1.6"
3
+ VERSION = "0.1.7"
4
4
  end
5
5
  end
@@ -29,7 +29,6 @@ module Bitcoin
29
29
  when tx.open_assets?
30
30
  outputs = Bitcoin::Grpc::OapService.outputs_with_open_asset_id(message.tx_hash)
31
31
  begin
32
- puts outputs
33
32
  if outputs
34
33
  outputs.each do |output|
35
34
  asset_id = output['asset_id']
@@ -47,7 +46,7 @@ module Bitcoin
47
46
  next unless asset_output
48
47
 
49
48
  item_to_delete = []
50
- watchings.select { |item| item.asset_id == asset_id }.each do |item|
49
+ watchings.select { |item| item.asset_id == asset_id && tx.tx_hash == item.tx_hash }.each do |item|
51
50
  if oa_output_type == 'issuance'
52
51
  publisher << Bitcoin::Grpc::EventTokenIssued.new(request_id: item.id, asset: asset_output)
53
52
  else
@@ -122,6 +122,7 @@ message WatchTokenRequest {
122
122
  uint32 id = 1;
123
123
  uint32 asset_type = 2;
124
124
  string asset_id = 3;
125
+ string tx_hash = 4;
125
126
  }
126
127
 
127
128
  message WatchTokenResponse {
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bitcoinrb-grpc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hajime Yamaguchi
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-07-17 00:00:00.000000000 Z
11
+ date: 2019-07-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler