Commit Graph

6131 Commits

Author SHA1 Message Date
Alessio Treglia 8fd85e16a5
Tweak mergify config
Set minimum approvers number to be strictly greater than 1.
2020-03-01 16:18:22 +00:00
Alessio Treglia 2ae25caa74
linter fixes (#5733)
* make .golangcy.yml work with Goland's Golint plugin

Explicitly disable all linters. Whitelist of enabled
plugins is already provided.

This would enable Goland users to user Golint plugin.

* fix deadcode warnings

* fix gocritic error

unslice: could simplify pkBytes[:] to pkBytes
2020-03-01 15:38:57 +00:00
Alessio Treglia 5f14dc2e42
Increase coverage across the store package (#5727) 2020-02-28 23:05:28 +00:00
Alexander Bezobchuk 7d6fc7ee25
Merge PR #5709: Add granularity options to pruning state 2020-02-28 13:45:59 -08:00
Alexander Bezobchuk db855fba07
Merge branch 'master' into jonathan/5684-prune-syncable 2020-02-28 12:45:59 -08:00
Alexander Bezobchuk e3580896ab
Migrate Keeper staking tests to use simapp (#5683)
* use simapp into keeper

* refactor TestHistoricalInfo to use simapp

* refactor historical info test

* temporal commit on querier test, it passes

* commit end of day refactoring

* rename and temp commit

* fix test query validators

* make TestQueryDelegations pass with simapp :D

* rename function

* make TestQueryRedelegations pass with simapp

* finish keeper refactor for querier in staking using simapp

* refactor delegation test TestUnbondDelegation to use simapp

* make all test pass temporary

* avoid usage of historicals

* refactor creation of the simapp

* refactor creation of simapp

* comment before creating new way to generate accounts

* make TestDelegation pass with generated accounts

* refactor to use accounts

* refactor test unbondingdelegationsmax entries

* refactor TestUndelegateSelfDelegationBelowMinSelfDelegation to use simapp

* update TestUndelegate from unbonding validator and fix bug

* refactor TestUndelegateFromUnbondedValidator to use simapp

* TestUnbondingAllDelegationFromValidator to use simapp

* refactor TestGetRedelegationsFromSrcValidator to use simapp

* refactor TestRedelegation to use simapp

* refactor TestRedelegateToSameValidator to use simapp

* refacotr TestRedelegationMaxEntries to use simapp

* refactor delegation test

* refactor TestRedelegateFromUnbondingValidator to use simapp

* finish refactor delegation test

* refactor and remove unused code

* migrate revocation of old slash test

* fix TestSlashUnbondingDelegation test to use simapp

* refactor TestSlashRedelegation to use simapp

* refactor TestSlashAtFutureHeight test

* test TestSlashAtNegativeHeight migrated to simapp

* migrated two tests from slash_test to use simapp

* refactor TestSlashWithRedelegation

* end refactoring slash_test

* refactor first test validation to simapp

* refacor TestUpdateValidatorByPowerIndex to use simapp

* refactor TestUpdateBondedValidatorsDecreaseCliff to simapp

* refactor TestSlashToZeroPowerRemoved

* TestValidatorBasics

* refactro TestGetValidatorSortingUnmixed to simapp

* refactor TestGetValidatorSortingMixed test to simap

* refctor TestGetValidatorsEdgeCases to use simapp

* make test TestValidatorBondHeight pass

* refactor TestFullValidatorSetPowerChange test

* end refactoring validator_test

* clean code

* move methods

* rename

* rename commont test

* git remove unused vars

* refactor ordering functions

* refactor old genesis_test to use simapp

* refactor TestValidatorByPowerIndex

* refactor TestDuplicatesMsgCreateValidator

* refactor TestInvalidPubKeyTypeMsgCreateValidator

* temporary commit

* refactor TestLegacyValidatorDelegations to use simapp

* refactor TestIncrementsMsgDelegate

* refactor next

* refactor TestEditValidatorIncreaseMinSelfDelegationBeyondCurrentBond

* refactor TestIncrementsMsgUnbond

* refator TestMultipleMsgCreateValidator

* refactor TestMultipleMsgDelegate

* refactor TestJailValidator

* refactor TestUnbondingPeriod and TestValidatorQueue

* refactor TestUnbondingFromUnbondingValidator and TestRedelegationPeriod

* refactor TestTransitiveRedelegation and TestMultipleRedelegationAtSameTime

* refactor TestMultipleRedelegationAtUniqueTimes and TestMultipleUnbondingDelegationAtSameTime

* refactor TestMultipleUnbondingDelegationAtUniqueTimes and TestUnbondingWhenExcessValidators

* end refactor handler_test

* remove test_common

* remove create test public keys

* fix based on PR comments

* use prealloc array for ConvertAddrsToValAddrs

* fix lint errors

* fix lint errors 2

* remove duplicated func

* rename function names

* Update simapp/test_helpers.go

* Update x/staking/keeper/keeper.go

* Update simapp/test_helpers.go

* Update simapp/test_helpers.go

* add last touches to the PR

* edit text

Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
Co-authored-by: Alessio Treglia <quadrispro@ubuntu.com>
2020-02-28 12:45:24 -08:00
Alessio Treglia 52c6e5e322
Merge branch 'master' into jonathan/4875-staking-test-use-simapp 2020-02-28 20:30:27 +00:00
Alessio Treglia 7080949f4e
Update CODEOWNERS as per @jaekwon's directives (#5728) 2020-02-28 18:27:42 +00:00
Alessio Treglia d094183895
Increase code coverage of version up to 100% (#5726) 2020-02-28 18:14:01 +00:00
Jonathan Gimeno f090da2100 edit text 2020-02-28 19:07:10 +01:00
Jonathan Gimeno f8442bb46f add last touches to the PR 2020-02-28 19:06:03 +01:00
Alexander Bezobchuk 2b688a0121
Merge branch 'master' into jonathan/4875-staking-test-use-simapp 2020-02-28 09:59:39 -08:00
Alexander Bezobchuk 19546f2197
Update simapp/test_helpers.go 2020-02-28 09:59:26 -08:00
Alexander Bezobchuk 03af49bda2
Update simapp/test_helpers.go 2020-02-28 09:59:17 -08:00
Alexander Bezobchuk 9aa2088c23
Update x/staking/keeper/keeper.go 2020-02-28 09:59:06 -08:00
Alexander Bezobchuk 256e5fc863
Update simapp/test_helpers.go 2020-02-28 09:58:55 -08:00
Alexander Bezobchuk 25129309f1
Merge branch 'master' into jonathan/5684-prune-syncable 2020-02-28 09:51:14 -08:00
Alexander Bezobchuk 5c1c64bfae
Merge PR #5718: Return Empty GasInfo on Failed Msg Validation 2020-02-28 09:51:00 -08:00
Alexander Bezobchuk 56c08949a4
Merge branch 'master' into jonathan/5684-prune-syncable 2020-02-28 09:39:03 -08:00
Marko a5fd4705ed
Merge PR #5723: fix config file 2020-02-28 09:36:26 -08:00
Alessio Treglia 1b78457135
Run go mod tidy (#5721) 2020-02-28 13:19:00 +00:00
Alessio Treglia 66f8e35b90
Build with go1.14 (#5719) 2020-02-28 12:26:11 +00:00
Jonathan Gimeno 2c32ff3ee4
Merge branch 'master' into jonathan/4875-staking-test-use-simapp 2020-02-28 10:58:16 +01:00
Jonathan Gimeno 60970baf20 update from PR comments 2020-02-28 10:53:56 +01:00
Jonathan Gimeno 3c262306fa add more information into GetPruningOptionsFromFlags 2020-02-28 10:48:34 +01:00
Anil Kumar Kammari 0b7449129a
Merge PR #5500: Regen network/multistore upgrades 2020-02-27 22:26:04 -08:00
Marko de0f1a9e40
Merge PR #5714: tools: add mergify 2020-02-27 21:36:42 -08:00
Jonathan Gimeno 60293dd2e6
Merge branch 'master' into jonathan/4875-staking-test-use-simapp 2020-02-27 17:51:14 +01:00
Jonathan Gimeno 0027111db4 fix linter test 2020-02-27 17:29:13 +01:00
Jonathan Gimeno f89fc6af03 Merge branch 'master' into jonathan/5684-prune-syncable 2020-02-27 17:23:40 +01:00
Jonathan Gimeno 191664bb30 fix issue number 2020-02-27 17:22:47 +01:00
Jonathan Gimeno ce46939308 rename function names 2020-02-27 16:49:53 +01:00
Jonathan Gimeno d279066285 remove duplicated func 2020-02-27 16:47:59 +01:00
Jonathan Gimeno fa3572e300 update start cmd desc 2020-02-27 16:35:13 +01:00
Jonathan Gimeno a21a7faebc update test error lint 2020-02-27 16:33:30 +01:00
Jonathan Gimeno 0a3fcf6d2d change section in changelog 2020-02-27 16:23:15 +01:00
Jonathan Gimeno 2dbd364d3b update changelog 2020-02-27 16:16:08 +01:00
Jonathan Gimeno 0c3117b3c7 add godoc into GetPruningOptionsFromFlags 2020-02-27 16:07:24 +01:00
Jonathan Gimeno 9aeefa77d3 update command doc 2020-02-27 16:05:10 +01:00
Jonathan Gimeno 93e3f33461 remove unused error 2020-02-27 16:02:29 +01:00
Jonathan Gimeno 2f55b9d255 change default and fix test 2020-02-27 15:56:07 +01:00
Jonathan Gimeno cfb3819183 add function to get pruning options from flags 2020-02-27 13:40:01 +01:00
Jonathan Gimeno a6cd6554ec extract to function logic to check pruning params 2020-02-27 12:30:24 +01:00
Jonathan Gimeno 0d8dade5e2 add case for none set 2020-02-27 12:18:21 +01:00
Jonathan Gimeno ae14edc900 add pre run command to check for prunning options 2020-02-27 12:01:27 +01:00
Alessio Treglia 5a2e59ebb2
Exclude proto files from format (#5706)
* Don't change proto files on make format

The format target does not need to depend on tools.
Thus remove dependency.

* Run make format

Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
2020-02-27 07:53:22 -03:00
dependabot-preview[bot] 8227d9e376
Bump github.com/golang/protobuf from 1.3.3 to 1.3.4 (#5707)
Bumps [github.com/golang/protobuf](https://github.com/golang/protobuf) from 1.3.3 to 1.3.4.
- [Release notes](https://github.com/golang/protobuf/releases)
- [Commits](https://github.com/golang/protobuf/compare/v1.3.3...v1.3.4)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
2020-02-27 02:47:05 -05:00
Anthony 2b75f50604
Merge PR #5708: fix type for the event documentation 2020-02-27 02:37:16 -05:00
Aaron Craelius 56104c2961
Merge PR #5703: Fix typo in distribution proto package name 2020-02-26 10:58:27 -05:00
Jonathan Gimeno 4de26fd67a fix lint errors 2 2020-02-26 16:35:04 +01:00