dcha 0.1.0 → 0.1.1

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: 314de64cafe77939bedb982c40f3ee3e5eab7885
4
- data.tar.gz: 55ef4a1efa2a294955a436b76f8d586784312e1f
3
+ metadata.gz: 3b9363222dda50ea0d2a1a30a4388a9d40ed0b95
4
+ data.tar.gz: 600a7a77addf6c5b93447b81fd7235e857ee9ff4
5
5
  SHA512:
6
- metadata.gz: 001c015d804aa09c5e5477bf6b080ffaf6952f883b291e51771949d11e16a25246d3a93226afacd696240e26f1e340349d79a344ed53d49180d94b6923479bf7
7
- data.tar.gz: 7d271e47ec85bb8896b3cd53a44ce630a38de5d0763263d2df9157fbbcbe32884899f3be271da634711a9606a819b42be29a8756b204a05e6d8a44122cd764ce
6
+ metadata.gz: 548a7e93876fee553faca301ec5eea736ce6e620b2c5817805e6cbe0746e8b0c23df16314d46494894f56b0237207b344fb35ac457df8b2fa7c573bce63828ba
7
+ data.tar.gz: e7a4f48501458c4b7d626057660dc4b0d115169f46f8a338b5ef5c25eb388bfe30049a111bd6449c86bbc3bae0ab18140d7a511e8699b089bd2e78f0efd62286
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- dcha (0.1.0)
4
+ dcha (0.1.1)
5
5
  curses
6
6
  oj
7
7
  rlp
@@ -9,7 +9,7 @@ module Dcha
9
9
  def pong(address)
10
10
  @peers.push(address).uniq!
11
11
  transmit action: :mine, params: [chain.blocks]
12
- return if ipaddr.ip_address == address
12
+ return if @peers.include?(address)
13
13
  transmit_to address, action: :pong, params: [ipaddr.ip_address]
14
14
  end
15
15
  end
@@ -1,3 +1,3 @@
1
1
  module Dcha
2
- VERSION = '0.1.0'.freeze
2
+ VERSION = '0.1.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dcha
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - 蒼時弦也