Commit Graph

212 Commits

Author SHA1 Message Date
Dev Ojha 173ed6a63d Merge PR #2282: simulation: Switch the log method from a single string to string builders 2018-09-09 23:34:09 +08: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
ValarDragon 8a452b940a simulation: display db size at end of simulation, add makefile entries 2018-09-01 19:09:27 -07:00
Dev Ojha 946e24d7bf Merge PR #2152: Make CI not update the lock file
* CI: Make CI not update the lock file

We want CI to be running the lock in the repo, not generating a new one.
Linting now ensures that the lock file is up to date.

* Switch to Chris' comment

* Update pending to indicate this new command
2018-08-28 12:53:56 -04:00
Christopher Goes c37ae1d563 50 blocks now 2018-08-23 15:25:00 +02:00
Christopher Goes efa820b8f4 Try printing output instead 2018-08-23 15:14:12 +02:00
Christopher Goes 435f0d5f8f Decrease 'make test_sim_gaia_fast' to 100 blocks 2018-08-23 14:08:02 +02:00
Alessio Treglia 56a98cb047
Simple integration tests for {base,demo}coind
Closes: #1632
2018-08-22 18:17:15 +01:00
Matthew Slipper 5ce9b9af5a Merge PR #2015: Change gaiad testnet example output flag
Closes #1960.
2018-08-21 23:28:16 -04:00
Christopher Goes d8d17df2c5 Correctly set variables in Makefile 2018-08-21 14:22:41 +02:00
Christopher Goes 98a5844310 Makefile phony; Gopkg.lock 2018-08-20 17:06:18 +02:00
Ethan Buchman af73b885e7 Merge branch 'develop' into bucky/merge-master 2018-08-19 16:24:45 -04:00
Christopher Goes b8cfc1e19f
Merge PR #2068: Minor simulation changes 2018-08-17 16:19:33 +02:00
Jack Zampolin 45bd414fc2 Run localnet on every commit ensure network reaches at least 10 blocks (#2067) 2018-08-16 20:23:57 +02:00
Christopher Goes 3d50567034
Merge PR #1783: Slashing, validator set, and governance simulation 2018-08-16 17:36:15 +02:00
Avi Saranga 0adbd60dfa Merge PR #1989: Openbsd support 2018-08-14 10:39:27 +02:00
Dev Ojha 9997ea2243 Merge PR #2016: dep: Fix error with scratch directory
If dep already sees its scratch directory (.vendor-new), dep ensure fails. This rm -rf's that directory so make get_vendor_deps doesn't fail.
2018-08-14 10:35:08 +02:00
Dev Ojha 1854430e7b makefile: Improve error message when LEDGER_ENABLED=True & no gcc (#2008)
Closes #2005
2018-08-13 20:42:38 +02:00
ValarDragon 496c75c35a tests: Move cli tests behind a build flag
This is done to make go test ./... work for people using the sdk as a sdk.
Closes #1806
2018-07-25 13:47:00 -07:00
Greg Szabo 75eeaadaae Merge PR #1234: Cloud network setup scripts
* Remotenet command for AWS and ansible fixes for all remotenet commands
* Ansible for AWS, terraform for AWS
* Moved remotenet commands to networks/ folder, created ansible playbooks and example scripts to set up remote testnets in the cloud
* Added application deployment infrastructure scripts
* Obsoleted DigitalOcean scripts, some cleanup in AWS scripts
* Changelog -> pending, disclaimer
2018-07-24 06:27:39 +02:00
Dev Ojha 6d0da9bc2a Merge PR #1782: tools: Re-add get_tools to makefile 2018-07-21 00:12:21 +02:00
Christopher Goes 1e5a7993ed Environment variables => flags 2018-07-19 08:40:46 +02:00
rigelrozanski 423d0c4a18 Merge remote-tracking branch 'origin/develop' into cwgoes/a-random-walk-down-proof-of-stake 2018-07-19 01:56:42 -04:00
Rigel 8e26eb73a5
Merge branch 'develop' into svaishnavy/cosmos-sdk-cli 2018-07-18 21:27:04 -04:00
Sridhar Ganesan fcab14435d Removing extra space that was accidentally added 2018-07-18 10:52:55 +02:00
Dev Ojha 2c81f4973f Merge PR #1731: tools: remove `rm -rf vendor/` from `make get_vendor_deps`
We now ensure that the Gopkg.lock is correct, and that the toml
doesn't depend on any branches, so this is no longer necessary.
2018-07-18 10:21:52 +02:00
Dev Ojha 6cfef64382 Merge PR #1732: tools: add make {get, update, check}_dev_tools
This is so that validators can have a more minimal install, but we
can still install linters for developers. (And any other future dev
tools)
2018-07-18 10:20:24 +02:00
Christopher Goes dcbd13c392 Environment variables 2018-07-18 09:54:41 +02:00
Christopher Goes 6c61577b0b Misc, environment variables 2018-07-18 07:37:38 +02:00
Christopher Goes c61b1aa591 Event stats 2018-07-18 01:27:51 +02:00
Christopher Goes 253b82f92a Makefile changes 2018-07-18 00:04:10 +02:00
Christopher Goes eda7eb48cd Gaia simulation needs internal field access 2018-07-17 23:06:30 +02:00
Sridhar Ganesan 1603804ca0 Using basecoin as the template and refactoring the command that creates the workspace setup
Removing templates, making changes to makefile to remove dependency on packr
2018-07-17 21:18:55 +02:00
Christopher Goes a6dd96db4d Merge branch 'develop' into cwgoes/a-random-walk-down-proof-of-stake 2018-07-17 02:23:10 +02:00
Sridhar Ganesan 07ddbae7a3 Adding install_cosmos-sdk-cli to target all 2018-07-16 21:48:16 +02:00
Sridhar Ganesan e3a54f7c28 ignoring template directory in cosmos-sdk-cli 2018-07-16 21:23:27 +02:00
Sridhar Ganesan c0cf595221 Using packr install instead of go install 2018-07-16 21:16:39 +02:00
Sridhar Ganesan b952331b22 Including changes to Makefile to build cosmos-sdk-cli and also ignoring linting for cosmos-sdk-cli 2018-07-16 20:45:56 +02:00
Dev Ojha a2047c5c81 Merge PR #1687: tools: Ensure Gopkg.lock is correct in linting
* tools: Ensure Gopkg.lock is correct in linting

This adds dep status to the lint process. Also fixes linting errors
that existed earlier. (not sure why they didn't show up on CI)

Closes #1574

* Update dep, use the lock file new dep version creates
2018-07-14 23:48:41 +02:00
Alexander Bezobchuk bb1f1a21bf Fix Cross Compile Build/Ledger Build Tag (#1674)
* Merge pull request #1674: Fix Cross Compile Build/Ledger Build Tag
* Merge pull request #1674: Fix Cross Compile Build/Ledger Build Tag
* Remove incorrect Ledger test
2018-07-14 04:17:53 +02:00
Christopher Goes 601251d9b8 Update Gopkg.lock & Makefile 2018-07-12 21:31:24 +02:00
Christopher Goes 53138fb36f 'make test_sim', simulation folder 2018-07-11 19:43:25 +02:00
ValarDragon 08e98d3124 tools: Switch gometalinter to use a config file 2018-07-07 12:00:06 -07:00
Ethan Buchman d388036454 Merge PR #1520: various fixes for test_cli
* various fixes for test_cli
* linting
2018-07-03 06:33:53 +02:00
Dev Ojha 097dd8a164 tools: Add unparam linter (#1443)
* tools: Add unparam linter

unparam detects unused parameters in functions, and a parameter to
a function which only ever takes on one value. The latter is an
indication that more tests are required.

There are many nolints in this PR, as I believe that writing tests
to fix alot of these situations is out of scope for this PR / it
will be changed in future commits. There are some nolints for
when we have to comply to normal api's.

* crypto/keys no longer used by x/gov/client/rest/rest.go
2018-06-29 18:22:24 -04:00
Dev Ojha b66a5cc853 Merge PR #1455: tools: Add make format
This adds a command to automatically fix gofmt and misspell errors.
2018-06-29 09:37:16 +02:00
Dev Ojha ac3adff1e8 Merge PR #1438: Tools: Add errcheck linter
This linter ensures that all errors are checked.
This is disabled in the client directories, since its not needed on
those writes
2018-06-29 00:52:10 +02:00
Dev Ojha 3e14868bd6 Merge PR #1429: tools: Add ineffassign linter
* tools: Add ineffassign linter

This errors on assignments that don't actually do anything. i.e.

x, err := myFunc(1)
y, err = myFunc(2)

This will call out that the first function's call error was never
used.

* Fix makefile, add misspell to makefile
2018-06-28 19:12:02 +02:00
Dev Ojha 2755c66545 Merge PR #1424: tools: add unconvert linter
unconvert checks for unnecessary type conversions
2018-06-28 18:08:29 +02:00
Dev Ojha 6d9f07dfee tools: Add go vet as a linter (#1421)
* tools: add go vet

* tools: Add go vet as a linter
2018-06-27 20:32:06 -04:00
Rigel 6f140d7296 Merge PR #1119: Unbonding, Redelegation
* stake/fees spec updates
* staking overview.md revisions, moving files
* docs reorganization
* staking spec state revisions
* transaction stake updates
* complete staking spec update
* WIP adding unbonding/redelegation commands
* added msg types for unbonding, redelegation
* stake sub-package reorg
* working stake reorg
* modify lcd tests to not use hardcoded json strings
* add description update
* index keys
* key managment for unbonding redelegation complete
* update stake errors
* completed handleMsgCompleteUnbonding fn
* updated to use begin/complete unbonding/redelegation
* fix token shares bug
* develop docs into unbonding
* got non-tests compiling after merge develop
* working fixing tests
* PrivlegedKeeper -> PrivilegedKeeper
* tests compile
* fix some tests
* fixing tests
* remove PrivilegedKeeper
* get unbonding bug
* only rpc sig verification failed tests now
* move percent unbonding/redelegation to the CLI and out of handler logic
* remove min unbonding height
* add lcd txs
* add pool sanity checks, fix a buncha tests
* fix ante. set lcd log to debug (#1322)
* redelegation tests, adding query functionality for bonds
* add self-delegations at genesis ref #1165
* PR comments (mostly) addressed
* cleanup, added Query LCD functionality
* test cleanup/fixes
* fix governance test
* SlashValidatorSet -> ValidatorSet
* changelog
* stake lcd fix
* x/auth: fix chainID in ante
* fix lcd test
* fix lint, update lint make command for spelling
* lowercase error string
* don't expose coinkeeper in staking
* remove a few duplicate lines in changelog
* chain_id in stake lcd tests
* added transient redelegation
* 'transient' => 'transitive'
* Re-add nolint instruction
* Fix tiny linter error
2018-06-27 04:00:12 +02:00
Dev Ojha 15bba919e2 Merge PR #1341: Switch gometalinter to stable
* Switch gometalinter to stable
* Delete empty folder
2018-06-22 22:08:50 +02:00
Dev Ojha 7f1169db4d Merge PR #1337: tools: Fix makefile install scripts
Previously, the install scripts weren't installing golint and gometalinter.
This commit fixes this, and installs tendermints linter, and the HEAD of
the gometalinter repository. Now make all should work.
2018-06-22 20:01:44 +02:00
Dev Ojha 0292a3b4d9 Merge PR #1291: Delete unused tests
* Tweak retry logic on waitForHeight
* Add HTTP retry logic to LCD tests
* Simplify waitForHeight changes
* Update changelog
* Add 'make test_cli_retry', 'make test_unit_retry'
* Run test_cli_retry in CI
* Delete unused tests
2018-06-20 00:29:54 +02:00
Greg Szabo 1d568d1706 Added -tags netgo flag to statically link binary 2018-06-15 12:18:26 -07:00
Greg Szabo 73b0b489cf
Merge branch 'develop' into greg/testnet-command-2 2018-06-13 09:28:04 -07:00
Ethan Buchman 522042fd12 gaiadebug tool 2018-06-12 22:41:33 -07:00
Greg Szabo 4c5e536b31 Added testnet command and localnet targets
Finished testnet command and introduced localnet targets in Makefile, together with gaiadnode Docker image

Fixed function parameter list - now starts with ctx

Separated GenTxConfig into a server/config package so both the server package and the mock package can use it

Adding server/config to app package

gaiadnode Docker image

Separated GenTxConfig into a server/config package so both the server package and the mock package can use it

Adding server/config to app package

Fixes requested by Rigel

Removed commented code

Global flag fixes
2018-06-12 11:25:03 -07:00
Rigel 1b20adcd22 Merge PR #1191: LCD cleanup / add LCD gas field
* remove global variables from lcd
* added make race, fix lcd race condition
* cleanup
* Five-character changelog update
2018-06-12 03:12:37 +02:00
Adrian Brink 17ab868af5 Correct graphviz command in Makefile 2018-06-01 22:50:41 -07:00
Greg Szabo 7b64a9466a
Added binary check to Makefile 2018-05-25 03:03:18 +02:00
Greg Szabo 220afc7cf4
Remotenet start/status/stop added to Makefile to create a DO validator network 2018-05-25 03:02:54 +02:00
rigelrozanski cd689ce2c1 remove experimental bash tests from ci
int

Fix typo

...
2018-05-07 19:12:45 -04:00
rigelrozanski e970dce841 circle/makefile upgraaade 2018-05-02 23:07:05 -04:00
Sunny Aggarwal 9ccee0770f switched test to test_nopcli 2018-05-01 23:33:23 -04:00
rigelrozanski bffb0132a5 lint fix, add make test_lint 2018-04-27 15:20:12 -04:00
rigelrozanski 3a4813ff01 added test_nocli for fast non-cli tests 2018-04-26 14:26:39 -04:00
Sunny Aggarwal b500cfcf44 added to Makefile 2018-04-22 14:47:12 -07:00
rigelrozanski e584d5acac ci build -> install
pubkey issue

...

rebase fixes

...
2018-04-18 12:19:35 -04:00
rigelrozanski abce3850ec build fixes 2018-04-18 12:18:28 -04:00
rigelrozanski 179caa5768 refactor gaia with stake 2018-04-18 12:18:28 -04:00
Ethan Buchman 1f93e965fb add log_level flag 2018-04-05 14:16:20 +03:00
Ethan Buchman 02a2008c0d move gaia to cmd, update makefile 2018-04-05 13:08:19 +03:00
Ethan Buchman 24e1bb4f24 make install 2018-03-31 19:13:34 +03:00
Ethan Buchman e226cb7a35
Merge branch 'develop' into cwgoes/misc-minor-fixes 2018-03-31 18:54:06 +03:00
Christopher Goes f1af53fe30
Move 'sketchy' and 'cool' modules to democoin, which is separate from basecoin 2018-03-30 20:13:22 +02:00
Christopher Goes bb66b852ef Move keybase DB to ~/.basecoind/data (closes #644) 2018-03-29 12:04:52 +02:00
Fabian 2da9025bd3 switched delete statement and filenames 2018-03-26 11:44:13 +02:00
Adrian Brink 75674a9ec3
Implement Simple Staking as a module
The simple staking module allows validators to bond and add more stake
to their bond. It doesn't allow partial unbond and has no delegation.
The staking power per validator though is correctly reflected within the
consensus.
2018-03-20 12:14:35 +01:00
mossid df3a7095f0 modify server/start_test.go and Makefile to pass ci 2018-03-19 13:29:32 +01:00
Ethan Buchman f25c9fc06a tools: get_tools 2018-03-08 19:48:17 +00:00
Adrian Brink c42f036318 Fix build, just tools/ missing 2018-03-08 19:48:17 +00:00
Zaki Manian ce689ab4f3 Switch dependency resolution to dep and update Makefile to use dep 2018-03-08 19:48:17 +00:00
Ethan Frey 66e6677281 Copy over gaiacli skeleton to basecli 2018-03-01 02:36:57 +00:00
Ethan Buchman ed88100f15
Merge pull request #515 from cosmos/bugfix/remove-basecoin-extra-vendor
Remove errant basecoin vendor mess
2018-02-27 23:57:38 -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 Frey babbf0635f Remove errant basecoin vendor mess 2018-02-27 17:44:20 +01:00
Ethan Buchman e4ba2f83a2 makefile: dont use sub vendor deps 2018-02-21 09:53:14 -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
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
zramsay e1e886a0fc s/dummy&Dummy/kvstore&KVStore/g 2018-02-19 22:17:06 +00:00
Jae Kwon 1197c6db93 Making basecoind quickly terminate - temporary workaround 2018-02-18 22:09:10 -08:00
Zach Ramsay d4dcc4c3c8 tests: more organized 2018-02-13 09:12:23 -05:00
Zach Ramsay b51d5dda8c remove deprecated 'tests/' directory & old D-file 2018-02-13 09:12:23 -05:00
Ethan Buchman bdc33f6a10 examples/gaia 2018-02-13 08:40:09 -05:00
Ethan Frey c7f31bdf26 Collapsed nested commands in gaiacli 2018-02-13 08:40:09 -05:00
Ethan Frey b10afcaf4c Rough separation of gaiad and gaiacli 2018-02-13 08:40:09 -05:00
Ethan Frey 90a102cf3e Start with demo chub command
Add version and node subcommand as TODOs
2018-02-13 08:39:42 -05:00
Adrian Brink f98f57b4ff
Removes the _attic folder from x/
If you need to reference things from _attic, please check `ref/attic`.
That branch keeps all the old _attic files.

I've removed it here in order to make it easier for developers to search
and understand the codebase. We shouldn't have stale code on `develop`.
2018-02-09 08:05:32 +01:00