dcha 0.1.1 → 0.1.2
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: e5ce56d70f3faeb20456a16fb3d64b3737b76488
|
4
|
+
data.tar.gz: b595e6352f53696f5b675a213cc5b2d5272ba6c9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bbb5eccad877714ea22e34e7cd57256dbc9c58f5759e7e1e80499d43c1a8d8647e3c68d839a05adc9e4e192c882ce60f15a389e6813d9b9a4d51da058935f3e9
|
7
|
+
data.tar.gz: 8f4c87d49ef722c58b7a506b88b083e178f7cf80b58e49e0e1d693149eb25df5a4d031379990a6584681d6f593e5d2e75d8ebbaa1f9fcc3401cfdb6794a9877a
|
data/Gemfile.lock
CHANGED
@@ -7,9 +7,9 @@ module Dcha
|
|
7
7
|
end
|
8
8
|
|
9
9
|
def pong(address)
|
10
|
-
@peers.push(address).uniq!
|
11
|
-
transmit action: :mine, params: [chain.blocks]
|
12
10
|
return if @peers.include?(address)
|
11
|
+
transmit action: :mine, params: [chain.blocks]
|
12
|
+
@peers.push(address).uniq!
|
13
13
|
transmit_to address, action: :pong, params: [ipaddr.ip_address]
|
14
14
|
end
|
15
15
|
end
|
data/lib/dcha/version.rb
CHANGED