144 Commits

Author SHA1 Message Date
Jae Kwon
c4ed55d801 Refactor to move common libraries out of project 2015-10-22 17:39:06 -07:00
Jae Kwon
fd9f816050 refactor variable names, pool.requests -> pool.requesters 2015-10-12 16:39:05 -07:00
Jae Kwon
1c17ea3b14 blockchain parameter && log tweaks 2015-09-11 21:09:27 -07: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
3be3647dc8 tendermint/binary -> tendermint/wire 2015-07-28 12:18: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
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
Jae Kwon
dea5eab643 fix GetStatus() usage 2015-07-13 11:03:31 -07:00
Ethan Buchman
751b892cba cleanup, comments 2015-07-12 02:16:33 +00:00
Ethan Buchman
a7ecdd10de Merge from panic branch 2015-06-29 14:54:48 -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
Jae Kwon
829df93577 Re-use ValidatorSet.VerifyValidation() 2015-06-21 19:11:21 -07:00
Ethan Buchman
2045aee9cd pass chainID through sign interfaces 2015-05-29 18:14:19 -04:00
Ethan Buchman
bb67fe0356 dont run consensus state unless fast sync is off 2015-05-28 03:45:46 -07:00
Jae Kwon
057c8ef400 waiting back to pending 2015-05-28 03:30:26 -07:00
Jae Kwon
5ed36ef192 var rename and performance optimization 2015-05-28 02:18:53 -07:00
Jae Kwon
b281674058 variable renames 2015-05-28 01:59:23 -07:00
Ethan Buchman
ff87958f95 broadcast on newStepCh on switch to consensus reactor 2015-05-04 19:08:07 -04:00
Ethan Buchman
9892dfd0b3 allow multiple seed nodes 2015-04-23 18:52:44 -07:00
Ethan Buchman
d8d619811e dont switch off fast sync unless we have enough peers to know 2015-04-23 18:49:59 -07:00
Ethan Buchman
d54bf6bcd5 blockchain reactor to consensus reactor transition on catchup 2015-04-21 19:51:23 -07:00
Jae Kwon
a9467414d6 Merge remote-tracking branch 'origin/websockets' into develop 2015-04-17 13:20:47 -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
dc27d56cc3 minor fix for when the blockstore is ahead by one. 2015-04-13 08:40:19 -07:00
Jae Kwon
7356556938 Some renames and small fixes. 2015-04-08 12:30:49 -07:00
Ethan Buchman
474bf31400 events: integrate event switch into services via Eventable interface 2015-04-07 00:34:26 -05:00
Jae Kwon
13b6508ecd Package import path change 2015-04-01 17:30:16 -07:00
Ethan Buchman
60f166e823 tendermint2 2015-03-31 15:33:31 -07:00
Jae Kwon
79304b0dd3 Create BlockCache and TxCache for performance. 2015-03-28 23:44:07 -07:00
Jae Kwon
bd767c1fab Make fast_sync a command-line flag 2015-03-26 00:35:16 -07:00
Jae Kwon
7171823fc6 Fix blockpool bugs and clean up log messages. 2015-03-25 23:04:17 -07:00
Jae Kwon
a2b8318aac allow BlockchainReactor to reset ConsensusReactor state 2015-03-25 13:17:45 -07:00
Jae Kwon
788f9bfb93 started/stopped -> running; contiguous vs fast forward ConsensusState
updates.
2015-03-25 13:01:28 -07:00
Jae Kwon
938eda979b fix bug, peer may be nil 2015-03-25 12:21:52 -07:00
Jae Kwon
cebfae60c7 BlockchainReactor syncs first before ConsensusReactor. 2015-03-25 11:50:28 -07:00
Jae Kwon
08a83aa9fb Reactors can be stopped or started at any time. 2015-03-25 00:15:18 -07:00