2966 Commits

Author SHA1 Message Date
Ethan Buchman
bddd29ef56 Merge branch 'statecache' into rpc 2015-03-29 18:03:28 -07:00
Ethan Buchman
731de7a6aa rpc: return (*Response, error) for all functions 2015-03-29 18:02:04 -07:00
Ethan Buchman
d30fc2fa43 rpc: fix tests to count mempool; copy responses to avoid data races 2015-03-29 18:02:04 -07:00
Ethan Buchman
fb90d5bc92 rpc: cleanup, more tests, working http and jsonrpc 2015-03-29 18:02:03 -07:00
Ethan Buchman
6e81e8a848 rpc: fixes for better type handlings, explicit error field in response, more tests 2015-03-29 18:01:59 -07:00
Ethan Buchman
9aeafffd9b rpc: generalized rpc using reflection on funcs and params 2015-03-29 18:00:28 -07:00
Ethan Buchman
1fb1163721 rpc: separate out golang API into rpc/core 2015-03-29 18:00:28 -07:00
Ethan Buchman
d2724c9731 rpc: give each call a dedicated Response struct, add basic test 2015-03-29 18:00:28 -07:00
Jae Kwon
42e2e11364 add dirty bit to BlockCache accounts and storages.
construct account’s storage lazily.
2015-03-29 17:47:12 -07:00
Jae Kwon
ae5af4d44e Merge pull request #1 from tendermint/blah
Blockpool party
2015-03-29 14:56:26 -07:00
Jae Kwon
4be97fa9d4 Transcribe vm changes from vm_fixes by Ethan 2015-03-29 00:07:10 -07:00
Jae Kwon
79304b0dd3 Create BlockCache and TxCache for performance. 2015-03-28 23:44:07 -07:00
Jae Kwon
fd0646fc4f Compare blockhashes in stageBlock() 2015-03-26 14:18:10 -07:00
Jae Kwon
af3c418ea9 comment fixes 2015-03-26 00:52: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
bd6d9d646d start peer before AddPeer() on reactors. 2015-03-25 13:22:46 -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
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
612f8bab9d Fixed RepeatTimer race condition 2015-03-25 00:01:01 -07:00
Jae Kwon
0237d284cc Channel bytes are spelled fully, "XXXChannel" 2015-03-24 12:00:27 -07:00
Jae Kwon
9703d34b65 fixed pool, using locks now. 2015-03-24 12:00:01 -07:00
Jae Kwon
a4606f1c5e Make pool tests faster 2015-03-22 19:20:54 -07:00
Jae Kwon
9266f8e27c Merge pull request #40 from tendermint/blockpool
Blockpool
2015-03-22 19:15:53 -07:00
Jae Kwon
87e1f76324 tendermint/block -> tendermint/types and tendermint/blockchain 2015-03-22 19:00:08 -07:00
Jae Kwon
513decfc5a added NOTE on inefficiency. 2015-03-22 16:31:29 -07:00
Jae Kwon
14161ea39c Blockpool tests 2015-03-22 16:23:24 -07:00
Jae Kwon
6c7d85c64c Basic test for block_pool 2015-03-22 12:46:53 -07:00
Jae Kwon
cb0176d4c7 first draft of blockpool 2015-03-22 03:30:22 -07:00
Jae Kwon
06a440d9b2 use switch x := y.(type) form 2015-03-22 03:29:28 -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
ebuchman
3b05b24b68 Merge pull request #37 from tendermint/create_and_transact
state: fixes for creating a contract and msging it in the same block
2015-03-21 17:32:23 -07:00
Ethan Buchman
6a227004aa state: fixes for creating a contract and msging it in the same block 2015-03-21 17:20:34 -07:00
Ethan Buchman
acf25835aa vm: fix endianess by flipping on subslic 2015-03-21 15:51:36 -07:00
Ethan Buchman
7bf34b1883 state: fix CreateAddress to use Address not Word 2015-03-21 13:57:39 -07:00
Ethan Buchman
e6da48880b vm: fix Pad functions, state: add debug log for create new account 2015-03-21 13:38:46 -07:00
Ethan Buchman
f2d5aba2a9 mempool: add GetState() 2015-03-21 13:31:17 -07:00
Ethan Buchman
54e222866a Check StorageRoot for Zero before state.Load() again. Closes #36 2015-03-21 13:29:01 -07:00
Jae Kwon
af3b31db24 Check StorageRoot for Zero before state.Load(). 2015-03-21 13:18:57 -07:00
Jae Kwon
ab8ad30648 Set Pubkey on vm.Account. 2015-03-21 13:16:58 -07:00
Jae Kwon
a040e6bc27 Merge pull request #34 from tendermint/tx_return
rpc: return tx hash, creates contract, contract addr in broadcast (requi...
2015-03-21 09:14:00 -07:00
Jae Kwon
33fd74eeff Merge pull request #33 from tendermint/close_db
db: add Close() to db interface. closes #31
2015-03-21 09:10:01 -07:00
Ethan Buchman
f93bb35c02 rpc: return tx hash, creates contract, contract addr in broadcast (required some helper functions). Closes #30 2015-03-21 02:45:07 -07:00
Ethan Buchman
94c200711b db: add Close() to db interface. closes #31 2015-03-21 01:47:23 -07:00