HaoyangLiu
0f29a26efa
Add a empty statik.go to avoid test_lint failure and add gocyclo for BroadcastTxRequestHandlerFn
2018-09-13 22:35:23 +08:00
HaoyangLiu
69b9a53b53
Remove generate golang file client/lcd/statik/statik.go
2018-09-13 21:33:04 +08:00
HaoyangLiu
5d5bdbb743
Use http.Handler instead of mux.Router
2018-09-13 20:35:54 +08:00
HaoyangLiu
dafe528559
rest-server is kept and there is no breaking change
2018-09-13 20:31:53 +08:00
HaoyangLiu
e704f095bd
Keep both subcommand: rest-server and lite-server
2018-09-13 20:30:24 +08:00
HaoyangLiu
5f38b50a85
modify makefile to automatically install tools and generate api docs
2018-09-13 19:56:23 +08:00
HaoyangLiu
76469c082e
Remove responses category in swagger.json and update update_API_docs.md
2018-09-07 10:17:17 +08:00
HaoyangLiu
b43a1a3808
Split swagger.json, currently only transaction, bank and version are supported
2018-09-03 18:41:52 +08:00
HaoyangLiu
ed935181e6
Refactor swagger.json for API docs
2018-09-03 18:32:13 +08:00
HaoyangLiu
1e97074165
Refactor key sign command and add it to gaiacli
2018-09-03 14:13:14 +08:00
HaoyangLiu
ea96d8bc2a
Add governance and slashing, implement post /txs api
2018-09-03 13:40:23 +08:00
HaoyangLiu
093c4ada5c
remove useless fmt.Sprintf and add paramCheck to recover key
2018-09-03 09:56:53 +08:00
HaoyangLiu
6ecec39cb0
Reset makefile
2018-09-02 22:44:32 +08:00
HaoyangLiu
e496bbd6f5
Update pending and skip statik in test_lint
2018-09-02 22:30:24 +08:00
HaoyangLiu
e742b02d3b
Refactor code for key management: use cdc instead of json and remove hardcode http status
2018-09-02 22:00:40 +08:00
HaoyangLiu
9a1dac2f87
Refactor code according to code review
2018-09-02 21:42:17 +08:00
HaoyangLiu
8e032f850a
Rename rest-server to lite-server and add README to clarify how to update API docs
2018-09-02 20:30:59 +08:00
HaoyangLiu
79c0bc40c8
Add swagger-ui to gaiacli rest-server
2018-09-02 20:09:43 +08:00
Christopher Goes
d214952450
Merge PR #2163 : Validator unbonding state
2018-09-01 23:15:03 +02:00
Christopher Goes
309a74ef6c
Merge PR #2208 : types: fixed the error returned from AccAddress unmarshal.
2018-09-01 23:06:36 +02:00
Christopher Goes
c96b88f504
Merge PR #2213 : Make the slashing logger print a string representation of slashFactor
2018-09-01 23:06:02 +02:00
ValarDragon
52775f3329
Make the slashing logger print a string representation of slashFactor
...
It used to print the decimal number, which has an extra factor of 10**10,
and is thus confusing.
2018-09-01 13:54:47 -07:00
LLLeon
efb3b95476
types: fixed the error returned from AccAddress unmarshal
2018-09-01 19:14:17 +08:00
rigelrozanski
f0c13bbfbd
resolve merge errors
2018-08-31 21:38:50 -04:00
Rigel
b296209536
Merge PR #2205 : minor develop fix
...
* minor corrections
* ...
* ...
2018-08-31 21:23:30 -04:00
rigelrozanski
acf1f09e73
Merge branch 'rigel/develop-fix' into rigel/validator-unbonding
2018-08-31 21:03:14 -04:00
rigelrozanski
6e295085c1
...
2018-08-31 20:56:35 -04:00
rigelrozanski
9593a2641a
...
2018-08-31 20:52:45 -04:00
rigelrozanski
07ba719c75
minor corrections
2018-08-31 20:50:12 -04:00
rigelrozanski
a880242895
Merge remote-tracking branch 'origin/develop' into rigel/validator-unbonding
2018-08-31 20:28:48 -04:00
Christopher Goes
1204857694
Merge PR #2122 : Implement slashing period
...
* Update PENDING.md
* SlashingPeriod struct
* Seperate keys.go, constant prefixes
* Make linter happy
* Update Gopkg.lock
* Seek slashing period by infraction height
* Slashing period hooks
* Slashing period unit tests; bugfix
* Add simple hook tests
* Add sdk.ValidatorHooks interface
* No-op hooks
* Real hooks
* Fix iteration direction & duplicate key, update Gaia
* Correctly simulate past validator set signatures
* Tiny rename
* Update dep; 'make format'
* Add quick slashing period functionality test
* Additional unit tests
* Use current validators when selected
* Panic in the right place
* Address @rigelrozanski comments
* Fix linter errors
* Address @melekes suggestion
* Rename hook
* Update for new bech32 types
* 'make format'
2018-08-31 20:01:23 -04:00
Christopher Goes
e1981d47e3
Merge PR #2181 : Implement a simulate-only CLI flag/field for REST endpoints
2018-08-31 22:35:52 +02:00
Rigel
b92ac313ac
Merg PR #2198 : Ensure Legacy Validator Delegation Invariants
...
* Test and allow jailed validator to self-bond
* Implement TestJailedValidatorDelegations
* Restructure TestJailedValidatorDelegations
* Add Delegation to Validator type and update handleMsgUnjail accordingly
* Update ErrMissingSelfDelegation error message
* Update democoin mock validator set impl
* Update pending log
* Add comment to ValidatorSet
* Fix conflicts/errors due to develop merge
2018-08-31 15:21:12 -04:00
Alessio Treglia
d84885ca49
No need to create a fake slice of signatures nor skip account no./sequence check
2018-08-31 19:09:39 +02:00
Alessio Treglia
1ed76565f2
Remove obsolete comments
2018-08-31 19:04:45 +02:00
Alessio Treglia
122ed3a900
Don't use pointers when you need them not!
2018-08-31 19:04:45 +02:00
Alessio Treglia
1370ca611b
Set GasAdjustment in CLIContext when handling HTTP requests
...
This is to address @alexanderbez's comments
2018-08-31 19:04:42 +02:00
Alessio Treglia
599923fb99
Introduce simulate mode
...
Add a simulate only flag '--dry-run' to both CLI tx commands
and RESTful endpoints to trigger the simulation of unsigned
transactions.
* Turning --dry-run on causes the --gas flag to be ignored.
The simulation will return the estimate of the gas required
to actually run the transaction.
* Adjustment is no longer required. It now defaults to 1.0.
* In some test cases accounts retrieved from the state do not
come with a PubKey. In such cases, a fake secp256k1 key is
generated and gas consumption calculated accordingly.
Closes : #2110
2018-08-31 19:04:11 +02:00
Christopher Goes
03f79ef744
Merge PR #2192 : Split LCD implementation PR, part one
2018-08-31 18:41:24 +02:00
Raymond
46172bb78b
Merge pull request #99 from HaoyangLiu/bianjie/lcd-proof-build-verfication
...
IRISHUB-238: change wait 3 second to wait tendermint new block. use M…
2018-08-31 23:27:29 +08:00
HaoyangLiu
67857d704b
IRISHUB-238: change wait 3 second to wait tendermint new block. use MustUnmarshalBinary instead of UnmarshalBinary
2018-08-31 23:20:06 +08:00
Raymond
436bbc195c
Merge pull request #97 from HaoyangLiu/bianjie/lcd-proof-build-verfication
...
IRISHUB-238: fix test_lint failure
2018-08-31 15:56:19 +08:00
HaoyangLiu
cb3e729582
IRISHUB-238: fix test_lint failure in context.go
2018-08-31 15:54:15 +08:00
HaoyangLiu
959582476b
IRISHUB-238: fix test_lint failure
2018-08-31 15:21:35 +08:00
Raymond
62869dc8a4
Merge pull request #96 from HaoyangLiu/bianjie/lcd-proof-build-verfication
...
IRISHUB-238: missing change a comment
2018-08-31 14:10:24 +08:00
HaoyangLiu
de8ac6e2a9
IRISHUB-238: missing change a comment
2018-08-31 14:06:53 +08:00
Raymond
d2e2b9c5eb
Merge pull request #93 from HaoyangLiu/bianjie/lcd-proof-build-verfication
...
PR part one, refactor code according to code reviewers
2018-08-31 14:01:42 +08:00
HaoyangLiu
b977baec73
IRISHUB-238: move certifier creation to a function
2018-08-31 13:31:24 +08:00
Rigel
ee0434e5a7
Revert "Merge PR #2176 : Ensure Legacy Validator Delegation Invariants" ( #2197 )
...
This reverts commit df33452490
.
2018-08-31 00:55:33 -04:00
Alexander Bezobchuk
df33452490
Merge PR #2176 : Ensure Legacy Validator Delegation Invariants
...
* Test and allow jailed validator to self-bond
* Implement TestJailedValidatorDelegations
* Restructure TestJailedValidatorDelegations
* Add Delegation to Validator type and update handleMsgUnjail accordingly
* Update ErrMissingSelfDelegation error message
* Update democoin mock validator set impl
* Update pending log
* Add comment to ValidatorSet
2018-08-31 00:10:51 -04:00