Commit Graph

216 Commits

Author SHA1 Message Date
Jae Kwon c0a64d74be Service log prettify 2015-07-20 17:02:18 -07: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
Jae Kwon c30d38270c base_service draft and some samples 2015-07-19 17:42:01 -07:00
Ethan Buchman a28d924966 move some logs to debug 2015-07-19 22:44:40 +00: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 84705caefb fix nil-pointer error in SecretConnection handshake 2015-07-16 01:08:07 -07:00
Jae Kwon 9e2b138c35 Added link to doc above MakeSecretConnection 2015-07-15 15:38:29 -07:00
Jae Kwon 9ef79e59bb Godeps <- golang.org/x/crypto/nacl etc 2015-07-15 14:56:52 -07: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 a8d03bddc9 added sts-final doc 2015-07-15 14:16:30 -07:00
Jae Kwon d13a593afd Parallel syntax change; SecretConnection implements net.Conn 2015-07-15 12:13:10 -07:00
Jae Kwon 5b41cc4fa5 Added secret_connection benchmark test 2015-07-15 04:07:03 -07:00
Jae Kwon 4981a5993d fixed handshake test; wrote broken read/write test 2015-07-14 22:35:32 -07:00
Jae Kwon dbef516659 failing tests for secret_connection 2015-07-14 18:41:24 -07:00
Jae Kwon 402b3a3e52 draft of secret_connection 2015-07-14 17:52:54 -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 fca9e7f9ce send pexRequest to random peer in ensurePeers if no addrs to dial 2015-07-12 02:16:33 +00:00
Ethan Buchman 555dab4fd6 limit number of allowed connections per ip 2015-07-12 02:16:33 +00:00
Ethan Buchman d0610845dc peers use uuid to avoid duplicate connections 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 fadfc673e3 better upnp error msgs 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
Jae Kwon d95234435a Fix bug in merkle/iavl_proof; TODO maybe read zero length slices as nil? 2015-07-08 18:27:16 -07:00
Jae Kwon 1f34236948 Limit binary data to 21MB 2015-07-07 18:35:21 -07:00
Jae Kwon e4435a8d1e Log embellishment 2015-07-05 17:07:45 -07:00
Jae Kwon 7983113024 logging of base p2p messages 2015-07-05 16:31:25 -07:00
Jae Kwon 6781b21d32 Split ReadBinary into ReadBinary/ReadBinaryPtr. 2015-06-26 16:43:41 -07:00
Jae Kwon 9965dd5de6 uint* to int* whereever appropriate; https://www.reddit.com/r/golang/comments/2q5vdu/int_vs_uint/ 2015-06-25 20:28:34 -07:00
Ethan Buchman 33566375af don't trust peer's node info 2015-06-17 17:55:16 -04:00
Ethan Buchman 57ff919d50 godep 2015-06-09 23:17:19 -04:00
Ethan Buchman 8a2d9525f0 network > chain_id, put in genesis.json 2015-05-29 18:14:19 -04:00
Jae Kwon 75ef479547 Config is passed into each module. Remove tendermint/confer 2015-05-17 16:19:57 -07:00
Jae Kwon ae171ba134 random dialing 2015-05-06 10:50:57 -07:00
Jae Kwon cfb4a40855 adding more debug logs 2015-05-04 22:22:39 -07:00
Jae Kwon 3c96890d2d All numbers are in BigEndian 2015-05-03 17:42:46 -07:00
Ethan Buchman 4f94e0f200 only allow one connection per ip 2015-05-01 18:06:15 -07:00
Jae Kwon d0fa3918ec NewTicker -> NewTimer, to fix a memory leak 2015-04-27 10:58:49 -07:00
Jae Kwon fcc26d7355 Resolve host for NetAddressFromString(). Test fix. 2015-04-23 18:41:14 -07:00
Jae Kwon f1703249ff ... 2015-04-23 18:40:44 -07:00
Jae Kwon d9bfe82d93 rpc.StartHTTPServer listener bug fix 2015-04-23 18:33:20 -07:00
Jae Kwon 66ff985cd2 Added a registry to Barak. 2015-04-23 16:56:46 -07:00
Ethan Buchman 0e80059e79 versioning 2015-04-23 16:53:28 -07:00
Jae Kwon 4bcfc1e4bb Merge pull request #55 from tendermint/sync
Sync
2015-04-22 11:15:31 -07:00
Jae Kwon 9513f601de Removed Log.File, all log goes out to stdout. 2015-04-22 11:07:34 -07:00
Ethan Buchman 67ea49c5fb Merge branch 'develop' of https://github.com/tendermint/tendermint into develop
Conflicts:
	p2p/peer.go
	rpc/core/net.go
	rpc/core/types/responses.go
2015-04-21 02:00:58 -07:00
Jae Kwon 2ba6f86f2e Add Network to SignBytes, to prevent network clashes 2015-04-20 23:59:52 -07:00
Jae Kwon df026f64fa Remoted bytes from logging messages 2015-04-20 18:51:20 -07:00
Jae Kwon dc1fddd1d8 Added NodeInfo (still need to add to AddrBook); Proper Handshake 2015-04-20 15:29:01 -07:00
Ethan Buchman 882a82bad4 more crawler work 2015-04-20 14:00:19 -07:00
Jae Kwon da9f4118a7 Atomic write to addrbook and privvalidator 2015-04-18 12:53:45 -07:00
Jae Kwon a9467414d6 Merge remote-tracking branch 'origin/websockets' into develop 2015-04-17 13:20:47 -07:00
Jae Kwon c72eb1be99 fix for{go func} scope issue 2015-04-17 11:08:03 -07:00
Jae Kwon 44565872ae Fixed BlockchainMessage{} Decode issue.
Fixed Warn(UnknownMessage) issues.
2015-04-16 17:53:33 -07:00
Jae Kwon 89cfedeb73 Make all messages be registered as pointer receivers,
Warn on unknown messages.
2015-04-16 17:46:27 -07:00
Ethan Buchman d27e0bbad5 event cache and fireable interace 2015-04-16 00:08:58 -07:00
Jae Kwon e5d34befde Remote TypeByte() 2015-04-14 15:57:16 -07:00
Jae Kwon 5b1c1eb0e0 ProposalMessage wrapper, warn on unknown messages 2015-04-13 08:40:37 -07:00
Jae Kwon 6d6f061f19 Support nil pointers for Binary.
If the thing does not already have a typebyte declared,
a fake one will be given (0x01).
A TypeByte of 0x00 is reserved for nil things.
No nil-dogs.
2015-04-12 17:46:16 -07:00
Jae Kwon 675dbf0e9c Merge branch 'rpc_jae' into develop
Conflicts:
	node/node.go
	rpc/core/accounts.go
	rpc/core_client/client.go
	rpc/handlers.go
	rpc/http_server.go
	rpc/test/helpers.go
	rpc/test/http_rpc_test.go
	rpc/test/json_rpc_test.go
2015-04-08 14:27:03 -07:00
Jae Kwon 7356556938 Some renames and small fixes. 2015-04-08 12:30:49 -07:00
Jae Kwon a09051438c Intermediate... working on debora 2015-04-08 11:35:17 -07:00
Ethan Buchman 474bf31400 events: integrate event switch into services via Eventable interface 2015-04-07 00:34:26 -05: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 9ce75fe755 add debora support 2015-03-31 17:04:53 -07:00
Ethan Buchman 60f166e823 tendermint2 2015-03-31 15:33:31 -07:00
Jae Kwon 1a4aab4c35 When using JSONRPC, do not double-encode JSON. 2015-03-30 15:14:33 -07:00
Jae Kwon af3c418ea9 comment fixes 2015-03-26 00:52:07 -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 788f9bfb93 started/stopped -> running; contiguous vs fast forward ConsensusState
updates.
2015-03-25 13:01:28 -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 cebfae60c7 BlockchainReactor syncs first before ConsensusReactor. 2015-03-25 11:50:28 -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 b25915ee41 Minor cleanup 2015-03-21 19:01:13 -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 65a232bd9d p2p: fix switch_test to account for handshake 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 5c8e69d6de Log adding of addresses to book 2015-01-21 14:18:25 -08:00
Jae Kwon 85110224b4 Fix PeerSet.Remove() bug. 2015-01-21 13:40:26 -08: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 3f159dab69 proper string formatting for txs 2015-01-16 00:31:34 -08:00