dcha 0.1.3 → 0.1.4
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 +5 -3
- 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: 4460091272e218d638a9a28f1ab38427065a5632
|
4
|
+
data.tar.gz: 4a0dc5bf07b7c0ee4fbe169def52ee649506566f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8bf5698fe91198724f13005988c71cb961eae979f1a68c229de02a25c5cff9008a300a55e268e3229bc66f02fd0847f5a9535541450047c288b37d360a8db27c
|
7
|
+
data.tar.gz: 57c584d3e2daf930f8869a302e599790d19071ac9a6bdacd53733723d615327f5bbb9d404315325c0e48c93a5605902d83d281a2533d134af44532ac695cca30
|
data/Gemfile.lock
CHANGED
@@ -7,10 +7,12 @@ module Dcha
|
|
7
7
|
end
|
8
8
|
|
9
9
|
def pong(address)
|
10
|
-
@peers.push(address).uniq!
|
11
10
|
transmit action: :mine, params: [chain.blocks]
|
12
|
-
|
13
|
-
|
11
|
+
transmit_to address, action: :add_peer, params: [ipaddr.ip_address]
|
12
|
+
end
|
13
|
+
|
14
|
+
def add_peer(address)
|
15
|
+
@peers.push(address).uniq!
|
14
16
|
end
|
15
17
|
end
|
16
18
|
end
|
data/lib/dcha/version.rb
CHANGED