Commit Graph

1280 Commits

Author SHA1 Message Date
Ethan Buchman
0a87bfa26f
Merge pull request #521 from cosmos/bucky/fix-multistore-load
baseapp: fix restarting
2018-02-27 23:19:43 -05:00
Ethan Buchman
588acc272e baseapp: dont save header for now. use DeliverTx state in InitChain (fixes #474) 2018-02-27 23:07:54 -05:00
Ethan Buchman
7f44470ad5 baseapp: save header on commit. fixes #507 2018-02-27 22:29:26 -05:00
Ethan Buchman
d6fcb797e4
Merge pull request #514 from cosmos/fabo/383-rest-api
Add REST API spec
2018-02-27 19:58:13 -05:00
Ethan Buchman
57e8030b55
Merge pull request #510 from cosmos/adrian/checktx
REVIEW: Don't abort after AnteHandler if CheckTx
2018-02-27 19:55:46 -05:00
Ethan Buchman
5d52ceb111
Merge pull request #499 from cosmos/feature/get-commit-kv-store
REVIEW: Add GetCommitKVStore and CommitKVStore
2018-02-27 19:27:53 -05:00
Ethan Buchman
a91bcaf4f2
Merge pull request #488 from cosmos/moar-tests
REVIEW: baseapp: start TestInfo
2018-02-27 19:11:49 -05:00
Ethan Buchman
e519ccb1fb
Merge pull request #498 from cosmos/makefile
MERGE: makefile: dont use sub vendor deps
2018-02-27 16:28:55 -05:00
Fabian
0cafd75351
Create lcd-rest-api.yaml 2018-02-27 13:08:23 +01:00
Adrian Brink
d79473d1ab
Go through all tests 2018-02-26 11:59:48 +01:00
Adrian Brink
ec4711afd8
Don't abort after AnteHandler if CheckTx
Currently we are aborting running a transaction after the AnteHandler in
case it is a checkTx. This means that the handler never gets the chance
to check the validity of a transaction. Furthermore the AnteHandler
should not handle CheckTx logic.

The AnteHandler should handle global validation, whereas each Handler
should handle module validation.
2018-02-25 21:59:11 +01:00
Ethan Buchman
834f98c692
Merge pull request #500 from cosmos/docs_handlers
Clarify AnteHandler and MsgHandler
2018-02-21 15:13:30 -05:00
Adrian Brink
5c2758b8df
Clarify AnteHandler and MsgHandler 2018-02-21 20:16:22 +01:00
Ethan Buchman
e4ba2f83a2 makefile: dont use sub vendor deps 2018-02-21 09:53:14 -05:00
Jae Kwon
7f4bcff3cf Add GetCommitKVStore and CommitKVStore 2018-02-21 09:49:33 -05:00
Ethan Buchman
53812a2076
Merge pull request #490 from cosmos/basecoin-install-patch
basecoin get_tools
2018-02-21 00:17:46 -05:00
Ethan Buchman
e18d8ea558
Merge pull request #493 from cosmos/sed-dummy-kvstore
rename dummy to kvstore
2018-02-21 00:10:16 -05:00
Ethan Buchman
d69d3d8149 dev version 2018-02-20 23:14:58 -05:00
Ethan Buchman
8ccf055ca1
Merge pull request #496 from cosmos/release-v0.10.0
version and changelog
2018-02-20 22:50:46 -05:00
Ethan Buchman
0515bc094b version and changelog 2018-02-20 22:51:30 -05:00
Zach Ramsay
0e0b6ae504 x/bank: moar tests 2018-02-21 02:05:41 +00:00
Zach Ramsay
b9780ff9ae x/bank: boost test coverage 2018-02-20 23:57:24 +00:00
Zach Ramsay
2b25f5948d glide.lock 2018-02-20 22:10:01 +00:00
Zach Ramsay
c1b9721f89 coverage recipe 2018-02-20 21:13:27 +00:00
Adrian Brink
9ec5f37a02
Fix installation process for basecoind from top-level folder
The make build command only works if you install the dependencies first.
Previously you had to cd into examples/basecoin and run get_vendor_deps
and then cd into cosmos-sdk and then run build.

With this change a user can just run build in the top-level folder and
the dependencies are installed automatically.
2018-02-20 13:00:48 +01:00
rigelrozanski
37600d2cd0 basecoin get_tools 2018-02-20 10:10:36 +00:00
zramsay
e1e886a0fc s/dummy&Dummy/kvstore&KVStore/g 2018-02-19 22:17:06 +00:00
Ethan Buchman
6197eb831e
Merge pull request #487 from cosmos/glide-update-for-abci
glide update: use abci develop
2018-02-19 13:59:19 -05:00
zramsay
dfa9bc8117 baseapp: start TestInfo (#471) 2018-02-19 18:02:52 +00:00
zramsay
7e39fb01f1 glide update: use abci develop 2018-02-19 17:13:59 +00:00
Jae Kwon
1197c6db93 Making basecoind quickly terminate - temporary workaround 2018-02-18 22:09:10 -08:00
Ethan Buchman
1bb3b975c8
Merge pull request #481 from cosmos/docs-apps
docs: notes about the different apps
2018-02-18 21:47:48 -05:00
Ethan Buchman
f7b8775013
Merge pull request #482 from cosmos/zach-basecoin-tests
tests for basecoin/app
2018-02-18 21:44:47 -05:00
zramsay
0e93f694d6 basecoin/tests: send real tx, check balances (#471) 2018-02-19 02:31:52 +00:00
Ethan Buchman
6f4ffab6e8 docs: notes about the different apps 2018-02-18 20:54:55 -05:00
Ethan Buchman
c9dd62dd89
Merge pull request #476 from cosmos/begin-end-block
baseapp: ctxCheck and ctxDeliver, begin/endBlocker
2018-02-18 13:52:50 -05:00
Ethan Buchman
5019700425 Set(Begin/End)Blocker and some comments 2018-02-18 13:48:36 -05:00
Ethan Buchman
1a4c9a957f
Merge pull request #477 from cosmos/feature/go10
Add directive to Sprintf call to pass make test on go1.10
2018-02-18 11:07:57 -05:00
Adrian Brink
b457a4363f
Add directive to Sprintf call to pass make test on go1.10 2018-02-18 14:09:22 +01:00
Ethan Buchman
b2a12628c7 fix comment 2018-02-17 19:24:40 -05:00
Ethan Buchman
31ce53e256 baseapp: more tests 2018-02-17 19:13:22 -05:00
Ethan Buchman
958a632eed baseapp: ctxCheck and ctxDeliver, begin/endBlocker 2018-02-17 18:14:15 -05:00
Ethan Buchman
8fc12a5265
Merge pull request #431 from cosmos/feature/strongly_typed_msgs
Strongly typed transactions in handlers
2018-02-17 16:53:53 -05:00
Adrian Brink
125954ace8 Strongly typed transactions in handlers
During transaction processing we retrieve the type of msg and based on
that we get the applicable handler from the router. This means that the
router should only receive messages that it knows how to handle. Instead
of using Get interfaces, we should cast to the actual type of
transaction and then access the transaction details that way.
It's okay to panic here, because if the DummyHandler receives a message
that it cannot cast to the expected type it means something is wrong
with the router. Instead of retrieving an arbitrary key by chance we
should panic.
2018-02-17 16:51:20 -05:00
Ethan Buchman
3b826455c6
Merge pull request #470 from cosmos/basecoin-refactor-more
Basecoin refactor more
2018-02-17 16:39:00 -05:00
Ethan Buchman
8d8f4114a8 x/sketchy -> examples/basecoin/x/sketchy 2018-02-17 16:32:30 -05:00
Ethan Buchman
c31f871de6 finish removing TestApp and TestTx 2018-02-17 16:32:30 -05:00
Ethan Buchman
c56b6254de update basecoin for baseapp changes - still need to fix tests 2018-02-17 16:32:30 -05:00
Ethan Buchman
f6cea66e2e test and fix InitChain 2018-02-17 16:32:30 -05:00
Ethan Buchman
c7df77ce3c simplify baseapp and InitStater -> InitChainer 2018-02-17 16:32:30 -05:00