Commit Graph

3720 Commits

Author SHA1 Message Date
Christopher Goes
a6120686f9
Merge PR #2165: Implement generate-only option for commands that create txs 2018-09-05 01:12:03 +02:00
Alessio Treglia
8378f3ea86
Drop note in PENDING.md about generate_only=true query arg 2018-09-04 17:35:35 +02:00
Alessio Treglia
89b3ab9e51
Don't skip basic validation 2018-09-04 17:29:33 +02:00
Alessio Treglia
8c32a8f229
Check generate_only's output is actually unsigned 2018-09-04 15:06:55 +02:00
Christopher Goes
e783b90e9b
Merge PR #2227: simulation: Minor changes 2018-09-04 14:52:07 +02:00
Christopher Goes
d736204760
Merge PR #2228: tools: Remove gocyclo 2018-09-04 14:30:41 +02:00
Christopher Goes
1039388207
Merge PR #1944: Piggy-bank distribution spec 2018-09-04 14:19:09 +02:00
Christopher Goes
bb7b2ca0bb
Merge branch 'develop' into dev/remove_golint 2018-09-04 14:14:11 +02:00
Christopher Goes
d1e8edad65
Merge PR #2230: baseapp: Remove baseapp.SetTxDecoder() 2018-09-04 14:12:43 +02:00
ValarDragon
ea01b91958 baseapp: Remove baseapp.SetTxDecoder()
Closes #1441
2018-09-03 22:53:07 -07:00
ValarDragon
9b26ccfa76 tools: Remove gocyclo
We can investigate re-introducing our own fork #postlaunch.
Closes #2211
2018-09-03 21:31:20 -07:00
ValarDragon
5ed24e44d2 simulation: Minor changes
Now that we properly initialize governance, a ton of governance slashing
doesn't happen in the first few blocks. Because of this, we can run through
blocks in the range (0,200) quite rapidly. This PR acknowledges that and
increases many of the default block heights.
2018-09-03 19:15:51 -07:00
Alessio Treglia
86395809cb
Implement generate-only option for commands that create txs
The new CLI flag builds an unsigned transaction and writes it to STDOUT.
Likewise, REST clients can now append generate_only=true to a request's
query arguments list and expect a JSON response carrying the unsigned
transaction.

Closes: #966
2018-09-04 02:32:05 +02:00
rigelrozanski
5c600f2e2b jae comments 2018-09-03 15:49:36 -04:00
Christopher Goes
7f1b06a724
Merge PR #2187: simulation: Add benchmarking 2018-09-03 13:33:59 +02:00
Christopher Goes
e1ce5d42d8
Merge pull request #2214 from cosmos/dev/display_db_info
simulation: display db size at end of simulation, add makefile entries
2018-09-03 13:14:14 +02:00
Christopher Goes
a4f36aa874
Merge pull request #2200 from cosmos/dev/GetValidator_speed_improvement
Improve GetValidator speed
2018-09-03 13:07:09 +02:00
rigelrozanski
2c66ba0bd4 extra comment on cache key usage 2018-09-02 15:42:25 -04:00
ValarDragon
8a452b940a simulation: display db size at end of simulation, add makefile entries 2018-09-01 19:09:27 -07:00
Dev Ojha
311c5f8ac6
Merge branch 'develop' into dev/benchmark_simulation 2018-09-01 15:14:46 -07: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
ValarDragon
f29fdcafdd Add comments 2018-09-01 13:21:42 -07:00
ValarDragon
3b4caa5dd2 fix lint 2018-09-01 12:59:36 -07:00
ValarDragon
a991a2e1c4 Improve GetValidator speed
In simulation, this was shown to cause a 4x speedup. There are no safety
concerns here, as amino encoding is deterministic.
2018-09-01 12:59:36 -07:00
Dev Ojha
5643c0801b Merge branch 'develop' into dev/benchmark_simulation 2018-09-01 12:37:50 -07:00
ValarDragon
3c2100793e Address @cwgoes comments 2018-09-01 12:32:24 -07:00
LLLeon
efb3b95476 types: fixed the error returned from AccAddress unmarshal 2018-09-01 19:14:17 +08:00
ValarDragon
75025720a3 simulation: Initialize governance properly 2018-08-31 21:57:33 -07: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