dcha 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/dcha/peer/can_heartbeat.rb +2 -2
- data/lib/dcha/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8b2fe217a2b4d50bbc303d81fe2919321834b1bf
|
4
|
+
data.tar.gz: bc37476b8daf71cc5ed9a2fe38d4bb81cf879a2e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 60bcc5a760110fc41b3b0ee2c08f00c741e11cb9334ae1fb27b169807177574ec579293248bdc8aad4d89aa75e7764f065ab294c3b0d1b9ccdca4380e5714154
|
7
|
+
data.tar.gz: f2e33ed85d4a28e5845426449b727b9d194b906046f6c24f4ffc914257696399c68722fb33aa50ef4d4859cab6fafa550f3e681350f84af77dd1be1a2c1a9ad7
|
data/Gemfile.lock
CHANGED
@@ -7,9 +7,9 @@ module Dcha
|
|
7
7
|
end
|
8
8
|
|
9
9
|
def pong(address)
|
10
|
-
return if @peers.include?(address)
|
11
|
-
transmit action: :mine, params: [chain.blocks]
|
12
10
|
@peers.push(address).uniq!
|
11
|
+
transmit action: :mine, params: [chain.blocks]
|
12
|
+
return if ipaddr.ip_address == address
|
13
13
|
transmit_to address, action: :pong, params: [ipaddr.ip_address]
|
14
14
|
end
|
15
15
|
end
|
data/lib/dcha/version.rb
CHANGED