Commit Graph

36 Commits

Author SHA1 Message Date
frog power 4000 cec3065a36
Revert "Return errors instead of panic (#3782)" (#4054)
This reverts commit 985aae5575.
2019-04-05 16:20:58 -04:00
Marin Basic 985aae5575 Return errors instead of panic (#3782)
This is related to issue #3741 where fetching data from
invalid store, package panic.

Modify subspace.go to return errors instead of panic.

Also update other packages that import subspace and
handle errors.
2019-04-04 08:10:56 +01:00
Joon f15ad04a57 Merge PR #2605: Paramstore Subkey 2019-02-04 18:13:04 -08:00
Joon 08e62fb157 Store Refactor 1 (#2985) 2019-02-01 17:03:09 -08:00
Jack Zampolin 14ebc65daf Merge PR #3119: Move all store keys into constants
* Move all store keys into constants
* Fix lint issue
* Add Pending.md
* QuerierKey -> QuerierRoute
2018-12-19 20:58:30 +01:00
mossid 8c978d2476 add tests and restriction for TypeTable 2018-10-16 03:02:48 +09:00
mossid 73d83b02cb typo 2018-10-14 02:50:32 +09:00
mossid fb78f1d0af add docs, fix GetSubspace, address comments
rm Subspace.ptr
2018-10-14 02:44:29 +09:00
mossid 5c92a546c6 rename store subspace, add WithTypeTable 2018-10-11 05:01:30 +09:00
mossid 4bf14c5650 apply request finalize, fix lint 2018-10-07 01:12:01 +09:00
mossid 7a68b376bd apply requests in progress 2018-10-07 01:12:01 +09:00
mossid 7d49675600 apply requests in progress 2018-10-07 01:12:01 +09:00
mossid e7de48e375 address comments 2018-10-07 01:12:01 +09:00
mossid a43a97bf10 address comments 2018-10-07 01:12:00 +09:00
mossid a766e0f2d9 address comments 2018-10-07 01:12:00 +09:00
Aleksandr Bezobchuk 67ac8c55b9 More minor cleanup 2018-10-07 01:12:00 +09:00
Aleksandr Bezobchuk 2aad1bd1b0 Minor doc and formatting updates 2018-10-07 01:12:00 +09:00
mossid c8746eccea fix lint 2018-10-07 01:12:00 +09:00
mossid cc75924182 last rereview 2018-10-07 01:12:00 +09:00
mossid d6105c5855 SetFromParamStruct -> SetStruct 2018-10-07 01:12:00 +09:00
mossid 9a35b7e949 space -> store, add doc 2018-10-07 01:12:00 +09:00
mossid 73b34353bf fix lint 2018-10-07 01:12:00 +09:00
mossid 39b5b388f1 finalize rebase 2018-10-07 01:12:00 +09:00
mossid fd8713ef9c rm key & doc.go in progress 2018-10-07 01:12:00 +09:00
mossid 78a89df393 fix lint 2018-10-07 01:12:00 +09:00
mossid 74bf6c6bb6 string -> []byte in keeper_test.go 2018-10-07 01:12:00 +09:00
mossid 6d80faface string -> []byte 2018-10-07 01:12:00 +09:00
mossid f33e856950 fix lint 2018-10-07 01:12:00 +09:00
mossid 37ce8d51c6 apply requests 2018-10-07 01:12:00 +09:00
mossid 61bc1a98c4 Key.s string -> []byte 2018-10-07 01:12:00 +09:00
mossid cc0e2c9523 paramstore refactor base
rm debug code

fix lint

fix hack.go
2018-10-07 01:11:59 +09:00
Dev Ojha 6b55093c75 Merge PR #2324: rename wire to codec
* rename wire to codec

* fix formatting and cli

* fix the docs
2018-09-13 14:17:32 -04:00
Jeremiah Andrews 2378e3431c Fix linter errors 2018-09-03 07:58:57 -07:00
Alessio Treglia 76a16ab288
Modify AnteHandler to take a simulate boolean parameter 2018-08-25 20:12:14 +01:00
Rigel d9dc061b4f
Merge pull request #1819: rational -> decimal
* changelog

* ...

* decimal func working

* decimal complete, untested

* fixing tests

* decimal compile errors resolved

* test compile errors

* precision multiplier test

* 1% laptop battery

* fixed TestNewDecFromStr

* equalities working

* fix bankers round chop

* ...

* working, some decimal issues resolved

* fix rounding error

* rounding works

* decimal works

* ...

* deleted rational

* rational conversion working

* revert changelog

* code compiles (not tests)

* went through all NewDec, made sure they were converted from NewRat properly

* test debugging

* all testing bugs besides the json marshalling fixed

* json unmarshal

* lint

* document update

* fix lcd test

* cli test fix

* mostly undo Dece -> Rate

* val comments

* Efficiency improvements

This now caches all of the precision multipliers (as they were all
used in non-mutative functions), and caches the precisionInt calculation.
(Now it just copies the already calculated value)

* Cache another precisionInt() call.

* Improve banker rounding efficiency

* remove defer, make negation in-place.

* chris val comments

* bez comments

* Aditya comments

* ...

* val comments

* rebasing start

* ...

* compiling

* tests pass

* cli fix

* anton, cwgoes, val comments

* val and jae comments

* type

* undo reuse quo
2018-08-14 20:15:02 -04:00
Joon bdccbeff9e Merge PR #1265: Global Paramstore
in progress
in progress
stake and slashing now params
fix gaia
fix gaia again
add msg type deactivation
delete local error
in progress
revert actual application in baseapp/gaia/stake
add test, fix apps
fix MinSignedPerWindow, pass lint
fix gaia
fix keeper_test
fit with multiple msgs
fix
apply requests
pass lint
really the last fix
fix dependency
fix keeper_test
fix lint
2018-07-14 02:12:23 +02:00