Commit Graph

173 Commits

Author SHA1 Message Date
obscuren
0015ce1e35 kick of bad peers 2014-10-07 11:18:46 +02:00
obscuren
677836cbee Kick off bad peers on bad chains and improved catch up on diverted chain 2014-10-02 17:35:38 +02:00
obscuren
a75c92000f Black listing of bad peers 2014-10-02 17:03:48 +02:00
obscuren
a34a971b50 improved blockchain downloading 2014-10-02 01:36:59 +02:00
obscuren
3af211dd65 Implemented WebSocket package 2014-09-30 23:26:52 +02:00
obscuren
ab6ede51d7 Working on new (blocking) event machine.
The new event machine will be used for loose coupling and handle the
communications between the services:

1) Block pool finds blocks which "links" with our current canonical
chain
2) Posts the blocks on to the event machine
3) State manager receives blocks & processes them
4) Broadcasts new post block event
2014-09-29 12:57:51 +02:00
obscuren
ea0357bf02 Block pool is thread safe 2014-09-28 14:52:58 +02:00
obscuren
44d50bc8d2 Have you seen my parents, sir? 2014-09-26 20:51:31 +02:00
obscuren
0acdeca3d6 skip messages properly 2014-09-26 20:19:01 +02:00
obscuren
b8354124be Added protocol caps accessors 2014-09-26 13:45:26 +02:00
obscuren
9ed8dc7384 Attempt to catch up from unknown block 2014-09-25 16:57:49 +02:00
obscuren
5cb4120ef5 queue get peers each 10 seconds 2014-09-24 21:20:57 +02:00
obscuren
3aeba50c38 merge error 2014-09-24 21:13:28 +02:00
obscuren
544b7fba7f Merge branch 'tmp' into develop
Conflicts:
	peer.go
2014-09-24 19:59:14 +02:00
obscuren
1fe2d0d0e0 Peers no longer take care of block processing 2014-09-24 19:55:28 +02:00
obscuren
b66fcf85df checkp 2014-09-24 11:55:02 +02:00
obscuren
ba43364f36 tmp 2014-09-24 11:41:57 +02:00
obscuren
46a496428f ugh 2014-09-23 18:19:51 +02:00
obscuren
6800c3665a Re-added min gas price check on tx pool 2014-09-23 17:55:34 +02:00
obscuren
9ed5b4d90e Support C++ GetBlockHash by assuming empty = done 2014-09-22 16:28:28 +02:00
obscuren
f3a93b046e Upped protocol version for VM change 2014-09-18 01:02:15 +02:00
obscuren
a26c479182 Added len 2014-09-17 15:58:02 +02:00
obscuren
1549a29c9d Connect to previous peer 2014-09-16 16:36:27 +02:00
obscuren
399256b384 VM execution fixes
Refactoring caused executing issues
2014-09-15 22:11:05 +02:00
obscuren
33a0dec8a1 Improved catching up and refactored 2014-09-15 15:42:12 +02:00
obscuren
2f614900e8 Updated GHOST 2014-09-15 01:11:01 +02:00
obscuren
74ef22d824 add it to the list 2014-09-14 14:30:33 +02:00
obscuren
86d1a26b13 fixed status message 2014-09-14 14:09:46 +02:00
obscuren
742a9b00bc tmp 2014-09-14 13:47:29 +02:00
obscuren
9e89dacc64 log removed 2014-09-14 13:42:13 +02:00
obscuren
f63cb27803 tmp 2014-09-14 13:42:02 +02:00
obscuren
c0187930dc Removed some commented code 2014-09-10 11:39:11 +02:00
obscuren
2f362509b8 New p2p protocol. NOTE: Needs major refactoring. See #50 2014-09-10 11:22:19 +02:00
obscuren
93008e279d Removed old chain code 2014-08-22 10:58:14 +02:00
obscuren
a289a77d5d DUP n SWAP n 2014-08-21 18:15:09 +02:00
obscuren
c44f4f32fe Re-enabled catching up flag 2014-08-21 14:52:21 +02:00
obscuren
eaa2e8900d PoC 6 networking code.
* Added block pool for gathering blocks from the network (chunks)
* Re wrote syncing
2014-08-21 14:47:58 +02:00
obscuren
42d2bc28af Upped protocol version 2014-08-09 18:10:11 +01:00
obscuren
7272577fe6 Added dns lookup 2014-08-07 15:11:54 +02:00
obscuren
5ede1224e4 minor rlp things 2014-08-01 10:21:43 +02:00
obscuren
42d47ecfb0 Removed peer disconnect on pong timeout. Fixes #106
This mechanism wasn't very accurate so it has been removed.
2014-07-30 11:26:38 +02:00
obscuren
27f8922653 Increased block request amount 2014-07-29 23:34:21 +02:00
obscuren
d1d2b660dc Prot 2014-07-29 15:55:08 +02:00
obscuren
41bd38147c Clean up and util methods 2014-07-26 11:24:44 +02:00
obscuren
7ee49c32b7 Added update method and general service timer
* disable catching up if no block received for longer than 10 seconds
2014-07-24 17:10:54 +02:00
obscuren
dcf4fad971 Networking code 2014-07-24 12:30:04 +02:00
obscuren
6d69ca36a7 Peer reconnect attempt 2014-07-24 12:25:41 +02:00
obscuren
306b5bcff3 Changed catching up code & peer handler
* Peers should be added no matter what
* Catch up with _anyone_
2014-07-24 12:11:30 +02:00
obscuren
32d125131f Refactored to new state and vm 2014-07-24 12:04:15 +02:00
obscuren
61cc2ba7d9 fixed 2014-07-18 13:00:22 +02:00