Commit Graph

179 Commits

Author SHA1 Message Date
Ethan Buchman 555ecb095d precommit nil if locked and no POL 2015-09-15 14:25:50 -04:00
Jae Kwon 625f23af13 Blockpool better timeouts, download rate observation, quicker switching to consensus; Id -> ID (sorry, this doesn't belong here) 2015-09-11 21:09:00 -07:00
Jae Kwon 908fd11665 more explicit _, err := Start() checking 2015-08-11 11:01:17 -07:00
Jae Kwon e86073ec96 Use rpc/client/ws_client; OnStart() returns error 2015-08-11 11:01:17 -07:00
Jae Kwon e7c1febb65 Simplify Service/Reactor pattern 2015-07-22 06:21:21 -07:00
Ethan Buchman 8e50bf15de panic wrapper functions 2015-07-21 10:46:05 -04:00
Jae Kwon 1d362a71ed Stop the peer to stop the mconn 2015-07-20 15:02:12 -07:00
Jae Kwon 571a134318 BaseService and BaseReactor refactor and unification 2015-07-20 14:52:24 -07:00
Ethan Buchman bb4ca1407f info->notice, debug->info 2015-07-19 22:44:40 +00:00
Ethan Buchman e087284a4f update logger package for new level 'notice' 2015-07-19 22:43:58 +00:00
Ethan Buchman 95765db7eb actually stop peer on failed Add 2015-07-19 22:41:19 +00:00
Ethan Buchman dc7b912881 crypto byte arrays are fixed length 2015-07-17 17:19:16 -04:00
Ethan Buchman ba70bffa23 add handshakeTimeout, bound chunkLength, comments 2015-07-17 03:58:57 -04:00
Jae Kwon e4c351f5fc UUID -> PubKeyEd25519 2015-07-15 14:31:03 -07:00
Jae Kwon fd64547ce7 Put a SecretConnection before the MConnection; Node Priv/PubKeys 2015-07-15 14:17:20 -07:00
Jae Kwon d91f073676 uuid branch tidying 2015-07-13 16:00:01 -07:00
Jae Kwon bdc2711f27 p2p comment prettify 2015-07-13 13:17:47 -07:00
Ethan Buchman f2ccfff18e respect maxNumPeers. closes #59 2015-07-12 18:31:24 +00:00
Ethan Buchman 0728539bc1 limit num connections per ip range 2015-07-12 17:54:34 +00:00
Ethan Buchman af5b763112 avoid connection to self 2015-07-12 16:49:12 +00:00
Ethan Buchman 555dab4fd6 limit number of allowed connections per ip 2015-07-12 02:16:33 +00:00
Ethan Buchman 9521e4e4e7 add peer to addrbook on AddPeer, after handshake 2015-07-12 02:16:33 +00:00
Ethan Buchman 3f7f3dd37f add git commit hash to nodeInfo 2015-07-12 02:16:33 +00:00
Jae Kwon 5107988fb5 Call peer.stop() if we're not going to start() it 2015-07-11 13:25:42 -07:00
Ethan Buchman 33566375af don't trust peer's node info 2015-06-17 17:55:16 -04:00
Ethan Buchman 4f94e0f200 only allow one connection per ip 2015-05-01 18:06:15 -07:00
Jae Kwon f1703249ff ... 2015-04-23 18:40:44 -07:00
Ethan Buchman 0e80059e79 versioning 2015-04-23 16:53:28 -07:00
Jae Kwon 9513f601de Removed Log.File, all log goes out to stdout. 2015-04-22 11:07:34 -07:00
Jae Kwon 2ba6f86f2e Add Network to SignBytes, to prevent network clashes 2015-04-20 23:59:52 -07:00
Jae Kwon dc1fddd1d8 Added NodeInfo (still need to add to AddrBook); Proper Handshake 2015-04-20 15:29:01 -07:00
Jae Kwon c72eb1be99 fix for{go func} scope issue 2015-04-17 11:08:03 -07:00
Jae Kwon a09051438c Intermediate... working on debora 2015-04-08 11:35:17 -07:00
Jae Kwon f271ab7256 various changes. removed debora temporarily 2015-04-03 16:15:52 -07:00
Jae Kwon 13b6508ecd Package import path change 2015-04-01 17:30:16 -07:00
Jae Kwon c74b5522a1 fixied IsListening() 2015-04-01 14:52:25 -07:00
Ethan Buchman 60f166e823 tendermint2 2015-03-31 15:33:31 -07:00
Jae Kwon 7171823fc6 Fix blockpool bugs and clean up log messages. 2015-03-25 23:04:17 -07:00
Jae Kwon bd6d9d646d start peer before AddPeer() on reactors. 2015-03-25 13:22:46 -07:00
Jae Kwon 94c3a51760 bug fix in daemon -- network name only, no chain hash 2015-03-25 12:13:32 -07:00
Jae Kwon aed4bbf0f0 Fix switch tests 2015-03-25 02:36:59 -07:00
Jae Kwon 08a83aa9fb Reactors can be stopped or started at any time. 2015-03-25 00:15:18 -07:00
Jae Kwon 0237d284cc Channel bytes are spelled fully, "XXXChannel" 2015-03-24 12:00:27 -07:00
Jae Kwon 43a0c253f8 Merge pull request #39 from tendermint/development
Development
2015-03-21 17:41:41 -07:00
Ethan Buchman a2938fd35b p2p: fix switch test for Broadcast returning success channel 2015-03-18 23:27:28 -07:00
Ethan Buchman 21530bf00f p2p: broadcast spawns goroutine to Send on each peer and times out after 10 seconds. Closes #7 2015-03-18 23:27:27 -07:00
Ethan Buchman 4abca6e963 p2p: push handshake containing chainId for early disconnect. Closes #12 2015-03-18 23:27:27 -07:00
Ethan Buchman 7aa1d67c97 rpc: add status and net info 2015-03-18 23:23:56 -07:00
Jae Kwon 29cff9ff48 updated dialing logs 2015-01-20 15:52:30 -08:00
Jae Kwon 687815f6ed Less log lines to STDOUT 2015-01-20 15:31:31 -08:00
Jae Kwon 40fec4f319 Stop peer routines upon connection failure 2014-12-30 16:49:23 -08:00
Jae Kwon 07b5b7a8f2 various log fixes 2014-12-29 18:39:19 -08:00
Jae Kwon 0bfb389b35 change logger to log15 2014-12-29 18:09:06 -08:00
Jae Kwon 5bace5cce8 Unreader to unread bytes 2014-12-29 15:14:54 -08:00
Jae Kwon fa7c83166f P2P docs 2014-12-23 19:31:24 -08:00
Jae Kwon 83d313cbe5 Refactor Tx, Validator, and Account structure 2014-12-16 05:45:40 -08:00
Jae Kwon 8e9c060e6d Begin writing RPC HTTP Server 2014-12-16 05:43:23 -08:00
Jae Kwon 8718bd52a4 made ValidatorSet.Hash deterministic; fix off-by-1 bugs 2014-11-05 03:12:07 -08:00
Jae Kwon c3fc1a39ea BitArray sub fix 2014-11-05 03:11:38 -08:00
Jae Kwon 647d26f7a0 consensus cleanup, privValidator config 2014-11-05 03:11:37 -08:00
Jae Kwon b615e51f95 basic main.go completion 2014-11-05 03:11:37 -08:00
Jae Kwon 335b7a5984 ... 2014-10-06 01:46:39 -07:00
Jae Kwon 1ae9ecd2a9 fix basic tests. 2014-10-04 19:16:49 -07:00
Jae Kwon 8e452aa0d2 fixed algorithm 2014-10-03 01:09:26 -07:00
Jae Kwon d300a67bb1 saving development state... 2014-08-30 04:17:10 -07:00
Jae Kwon 34fe442514 Connection -> MConnection, huge refactor. True multiplexing. 2014-07-28 01:41:25 -07:00
Jae Kwon 197c8328c9 ... 2014-07-24 14:20:33 -07:00
Jae Kwon 9f7765d334 cleanup log messages 2014-07-17 16:06:34 -07:00
Jae Kwon e50e14ddf5 switch events, node listens for new peers to ask for new addrs. 2014-07-17 16:06:34 -07:00
Jae Kwon 92ea6c626f addrbook key is a string 2014-07-15 22:07:33 -07:00
Jae Kwon ac668d4d14 Don't dial dupes 2014-07-15 15:54:33 -07:00
Jae Kwon f53e6d1a33 replace logger with go-logging 2014-07-14 16:15:13 -07:00
Jae Kwon 0ced862290 outgoing -> outbound, incoming -> inbound 2014-07-14 14:06:12 -07:00
Jae Kwon 56a92b512f Send external addresses upon new outbound peer 2014-07-14 14:04:26 -07:00
Jae Kwon 0b1265dc10 . 2014-07-10 22:14:23 -07:00
Jae Kwon 442cae1f3f addrbook cleanup 2014-07-10 02:19:50 -07:00
Jae Kwon 1b59caf950 created "Node" 2014-07-09 18:33:44 -07:00
Jae Kwon ce51af9d4d PeerSet is for fast iteration of peers 2014-07-08 00:02:04 -07:00
Jae Kwon 61224f86c9 package rename peer -> p2p 2014-07-07 20:03:50 -07:00