Commit Graph
9053 Commits
Author SHA1 Message Date
Anton Kaliaev 0b22b27bbb avoid infinite recursion by proxying to iterator
```
WARNING: staticcheck, gosimple and unused are all set, using megacheck instead
db/go_level_db.go:126:15⚠️ infinite recursive call (SA5007) (megacheck)
db/go_level_db.go:135:17⚠️ infinite recursive call (SA5007) (megacheck)
db/mem_db.go:106:2⚠️ redundant return statement (S1023) (megacheck)
```

https://circleci.com/gh/tendermint/tmlibs/220

Also remove unnecessary return statement
2017-10-17 11:01:46 +04:00
Emmanuel Odeke bff069f83c types: ConsensusParams test + document the ranges/limits
Fixes https://github.com/tendermint/tendermint/issues/747
Updates https://github.com/tendermint/tendermint/issues/693

* Document the unmentioned limits for ConsensusParams.Validate()
* Make the limit for ConsensusParams.BlockSizeParams.MaxBytes
clear at 100MiB
2017-10-16 16:57:44 -06:00
Anton Kaliaev 616b07ff6b make AppOptions an interface{} 2017-10-16 10:58:52 +04:00
Anton Kaliaev b26f812399 update changelog 2017-10-16 10:58:52 +04:00
Anton Kaliaev 321061125f add app_options to GenesisDoc (Refs #564) 2017-10-16 10:58:52 +04:00
Anton Kaliaev 6469e2ccca save genesis doc in DB to prevent user errors
https://github.com/tendermint/tendermint/pull/676#discussion_r144411458
2017-10-16 10:51:58 +04:00
Anton Kaliaev c4646bf87f make state#Params not a pointer
also remove the comment
2017-10-16 10:34:02 +04:00
Anton Kaliaev 716364182d [state] expose ChainID and Params
```
jaekwon
Yeah we should definitely expose ChainID.
ConsensusParams is small enough, we can just write it.
```
https://github.com/tendermint/tendermint/pull/676#discussion_r144123203
2017-10-16 10:34:02 +04:00
Anton Kaliaev 1971e149fb ChainID() and Params() do not return errors
- remove state#GenesisDoc() method
2017-10-16 10:34:02 +04:00
Emmanuel OdekeandAnton Kaliaev 7939d62ef0 all, state: unexpose GenesisDoc, ChainID fields make them accessor methods
Fixes #671

Unexpose GenesisDoc and ChainID fields to avoid them being
serialized to the DB on every block write/state.Save()

A GenesisDoc can now be alternatively written to the state's
database, by serializing its JSON as a value of key "genesis-doc".

There are now accessors and a setter for these attributes:
- state.GenesisDoc() (*types.GenesisDoc, error)
- state.ChainID() (string, error)
- state.SetGenesisDoc(*types.GenesisDoc)

This is a breaking change since it changes how the state's
serialization and requires that if loading the GenesisDoc entirely
from the database, you'll need to set its value in the database
as the GenesisDoc's JSON marshaled bytes.
2017-10-16 10:34:01 +04:00
ZachandGitHub 4c1f1e4e57 Merge pull request #746 from srmo/701-add-dev-docs-in-java
701 add dev docs in java
2017-10-15 11:02:36 -04:00
ZachandGitHub 09170f76fe Merge pull request #743 from tendermint/zramsay-patch-1
Update getting-started.rst
2017-10-15 11:01:19 -04:00
srmo 9e1edf8685 [docs] add Java examples for each section 2017-10-15 13:45:43 +02:00
srmo e7fe299504 [docs] replace all GO snippets with collapsible blocks 2017-10-15 12:21:06 +02:00
srmo b90edffe28 [docs] add first java block for deliverTx 2017-10-15 12:00:08 +02:00
srmo f361092ed9 [docs] provide means to have collapsible code blocks without adding a new theme 2017-10-15 11:59:37 +02:00
Ethan Buchman c0e373bad0 bump bucky fermions 2017-10-14 08:46:06 -04:00
Ethan Buchman a1e0f0ba95 docs/ecosystem: add py-tendermint to abci-servers 2017-10-14 00:59:34 -04:00
Greg Szabo 95048b21b2 Added fermion to bucky 2017-10-13 21:45:17 -04:00
Emmanuel Odeke 5f218a43fd rpc/client: use compile time assertions instead of methods 2017-10-13 14:30:54 -06:00
ZachandGitHub 7fe470fc76 Update getting-started.rst 2017-10-13 14:50:54 -04:00
Anton KaliaevandGitHub cd2ad19db4 Merge pull request #57 from tendermint/feature/improve-db-interface
WIP: Improve db interface
2017-10-13 18:31:05 +04:00
Ethan BuchmanandGitHub d490c25807 Merge pull request #720 from tendermint/types-heartbeat-test
types/heartbeat: test all Heartbeat functions
2017-10-13 09:22:59 -04:00
Ethan BuchmanandGitHub 340f33b475 Merge pull request #734 from tendermint/482-support-historical-abci-queries
support historical abci queries
2017-10-13 09:14:32 -04:00
Greg Szabo 639aedd5a1 Changed wallets 2017-10-13 08:31:15 -04:00
Alexis Sellier 6b1e3bcee3 Add comments about copying 2017-10-13 13:03:43 +02:00
Anton Kaliaev 7518c4a9be [rpc] update comment [ci skip] 2017-10-13 15:03:21 +04:00
Anton Kaliaev db413aadfd fixes from @cloudhead review 2017-10-13 15:03:21 +04:00
Anton Kaliaev 5433e5771e support historical abci queries (Refs #482) 2017-10-13 15:03:20 +04:00
Greg Szabo 43c86c2a9c Ansible 2.2 compatibility fix 2017-10-12 14:55:24 -04:00
Greg Szabo 7aa0957fc5 Changed fermion numbers 2017-10-12 14:42:59 -04:00
Greg Szabo e0fbe6fb3e Version parsing changed in build to accommodate Gaia's extra space 2017-10-12 14:08:29 -04:00
Greg Szabo 51d74ebdfa Zaki added 2017-10-12 12:49:26 -04:00
Greg Szabo 7872ade626 testnet specification fixes 2017-10-12 10:17:38 -04:00
Adrian BrinkandGitHub 8e7f0e7701 Upgrade keys to use bcrypt with salts (#38)
This commit adds salts to the library using bcrypt.
2017-10-12 14:26:59 +02:00
Greg Szabo f152658f6c Introducing neutrino denom 2017-10-11 13:05:15 -04:00
Zach Ramsay e2e50bc0fc rpc: use /iavl repo in test (#713) 2017-10-11 10:35:22 -04:00
Anton Kaliaev 7166252a52 add codeowners file [ci skip] 2017-10-11 12:48:05 +04:00
Anton Kaliaev 35e38e8932 call go env GOPATH if env var is not found (Refs #60) 2017-10-11 12:42:54 +04:00
Ethan Buchman 27245ce6f6 Merge branch 'master' into develop 2017-10-10 19:12:40 -04:00
Ethan BuchmanandGitHub d4634dc683 Merge pull request #729 from tendermint/release/0.11.1
Release/0.11.1
v0.11.1
2017-10-10 18:50:15 -04:00
Ethan Buchman 8c08fc671c fix version 2017-10-10 18:49:08 -04:00
Zach Ramsay 32dec98c1c example: fix func suffix 2017-10-10 17:33:51 -04:00
Ethan BuchmanandGitHub a2d40580d7 Merge pull request #732 from sbellem/docs-install-typo-fix
[docs: typo fix] add missing "have"
2017-10-10 11:22:39 -04:00
Ethan BuchmanandGitHub 0011af7adf Merge pull request #727 from sbellem/docs-typo-fix
[docs:typo fix] remove misplaced "the"
2017-10-10 11:20:34 -04:00
Sylvain Bellemare 1764106606 [docs: typo fix] add missing "have" 2017-10-10 17:15:35 +02:00
Ethan Buchman 3356544706 update changelog 2017-10-10 11:10:48 -04:00
Ethan Buchman 335e012b6a Merge branch 'develop' into release/0.11.1 2017-10-10 11:08:14 -04:00
Ethan BuchmanandGitHub a458da8f92 Merge pull request #724 from tendermint/708-leaving-out-params-crashes-tm-rpc
Leaving out params crashes tm rpc
2017-10-10 10:53:21 -04:00
Ethan Buchman 9fb45c5b5a remove a stale comment 2017-10-10 10:52:26 -04:00