xiaoping
dea4e96f66
fix docs links ( #2352 )
2018-09-10 10:42:48 +04:00
Ethan Buchman
a57aae7072
[ADR] ABCI errors and events ( #2314 )
...
* Start of ADR
* flesh out abci events and errors adrs
* adr: move 012 to 023
* adr-022: add note from cwgoes
2018-09-09 14:04:01 -04:00
Zach
0bec20a1e3
update readme, clsoes #2357 ( #2359 )
2018-09-08 16:45:12 +04:00
Ethan Buchman
8b94deca73
Merge pull request #2354 from tendermint/anton/fix-typos-in-spec
...
Fix typos in spec
2018-09-07 07:28:50 -04:00
Ethan Buchman
4cd2e40fb1
TMBIN -> Amino
2018-09-07 07:28:58 -04:00
Anton Kaliaev
47dc4e6428
fix a few typos in spec
2018-09-07 11:40:16 +04:00
Ethan Buchman
94288006ba
minor fixes
2018-09-06 22:47:05 -04:00
Ethan Buchman
299d46304d
update UPGRADING.md and minor docs fixes
2018-09-06 22:35:31 -04:00
Ethan Buchman
5106af484f
docs: add abci spec to config.js
2018-09-06 22:18:15 -04:00
Ethan Buchman
114c405120
docs/spec/abci: fixes and more from #2249
2018-09-06 22:17:00 -04:00
Ethan Buchman
1144e72c61
docs: refactor ABCI docs
...
* move spec/software/abci.md to spec/abci/apps.md and improve it
* move some of app-dev/app-development.md to spec/abci/client-server.md
2018-09-06 20:51:36 -04:00
Ethan Buchman
3fd54c5df5
docs/spec/abci: update spec
...
* better overview section
* section on tags
* remove notes about state/concurrency from CheckTx
* incorporate feedback from #2249
* explain how validator set updates effect future blocks
2018-09-06 19:36:30 -04:00
Ethan Buchman
20c55cffc4
docs: move app-dev/abci-spec.md to spec/abci/abci.md
2018-09-06 18:36:11 -04:00
Ethan Buchman
6fd79d1545
docs/spec/blockchain: remove tags from result for now
2018-09-06 12:47:26 -04:00
Ethan Buchman
8fcabe8b05
docs: fix note about ChainID size
2018-09-06 12:42:23 -04:00
Ethan Buchman
e0fa827a53
docs/spec/blockchain: specify consensus params in state.md
2018-09-06 12:41:57 -04:00
Ethan Buchman
bdf3238710
docs/spec/blockchain: bring blockchain.md up-to-date
2018-09-06 12:41:33 -04:00
Ethan Buchman
ed9e00a8a7
docs/spec/blockchain: fix encoding JSON
2018-09-06 12:41:02 -04:00
Ethan Buchman
91f8af8fd8
docs/spec/blockchain: update vote, signature, time
2018-09-05 19:14:18 -04:00
Ethan Buchman
80c217089a
docs/spec/blockchain: remove json tags, dont use HexBytes
2018-09-05 18:57:54 -04:00
Ethan Buchman
61914cf48e
docs/tm-core/using-tm: fix indentation for genesis.validators
2018-09-05 18:56:58 -04:00
Ethan Buchman
4416c9e4bc
fix links in abci readme. fixes #2335
2018-09-05 18:44:48 -04:00
Zach
7f6bd5c161
docs & spec: deduplicate block-structure.md ( #2331 )
2018-09-05 12:21:04 -04:00
Anton Kaliaev
cb91cd5965
[docs] one can also index txs by height now
2018-09-05 11:05:06 +04:00
Zach
92185c017c
Several minor docs & spec cleanup ( #2330 )
...
* addr_book_strick=false on local nets
* link to spec
* spec: remove TODO, see #1749 instead
* spec: make issues from TODOs
* update docs on addr_book_strict option
2018-09-05 10:30:36 +04:00
Zarko Milosevic
7b88172f41
Implement BFT time ( #2203 )
...
* Implement BFT time
* set LastValidators when creating state in state helper
for heights >= 2
2018-08-31 19:33:51 -04:00
Ethan Buchman
ffe91ae9e3
Merge pull request #2184 from tendermint/2035-max-bytes
...
MaxBytes
2018-08-31 15:16:37 -04:00
Peng Zhong
5ecdfacb8e
fix docs base directory ( #2295 )
2018-08-31 14:09:43 -04:00
Anton Kaliaev
4147f856dc
update arch doc
2018-08-31 16:10:41 +04:00
Anton Kaliaev
d73c5cbdb1
reap max bytes from the mempool & check transaction size
...
See ADR 020: Limiting txs size inside a block docs/architecture/adr-020-block-size.md
Refs #2035
2018-08-31 16:01:21 +04:00
Dev Ojha
bd531401a0
mempool: Store txs by hash inside of cache ( #2234 )
...
* mempool: Store txs by hash inside of cache
This allows for large cachesizes, without fear of the memory
consumption growing rapidly.
* (squash this) rename hashedTx -> txHash
2018-08-29 08:10:06 +04:00
Dev Ojha
b1bc3e4f89
crypto/secp256k1: Fix signature malleability, adopt more efficient en… ( #2239 )
...
* crypto/secp256k1: Fix signature malleability, adopt more efficient encoding
This removes signature malleability per ADR 14, and makes secp match
the encoding in ADR 15.
* (squash this) add lock
2018-08-28 09:32:54 +04:00
Zach
8972b6e293
Update config.js ( #2287 )
2018-08-28 08:37:35 +04:00
Alessio Treglia
5f255f0f71
Replace db_path with db_dir in default configuration ( #2284 )
...
* db_path is not being parsed
Fix default configuration, db_path is now db_dir.
Closes : cosmos/cosmos-sdk#1712
* Update CHANGELOG_PENDING.md
2018-08-27 17:27:18 +04:00
Peng Zhong
20e35654c6
lint markdown docs using a stop-words and write-good linters ( #2195 )
...
* lint docs with write-good, stop-words
* remove package-lock.json
* update changelog
* fix wrong paragraph formatting
* fix some docs formatting
* fix docs format
* fix abci spec format
2018-08-27 11:33:46 +04:00
Zach
aab5947d82
docs: deprecate RTD ( #2280 )
2018-08-27 10:37:54 +04:00
Zach
2f7fc87230
docs: fix img links, closes #2214 ( #2282 )
2018-08-27 10:36:22 +04:00
Dev Ojha
43ebc77f9b
Fix typo, closes #2269 ( #2277 )
2018-08-26 11:45:34 +04:00
Ethan Buchman
6dde320591
fixes from review
2018-08-17 10:32:10 -04:00
Ethan Buchman
1111c1848d
update abci spec
2018-08-16 13:19:14 -04:00
Ethan Buchman
91376627ea
update ADR
2018-08-16 13:19:13 -04:00
Anton Kaliaev
4e78badac9
docs: note max outbound peers excludes persistent
2018-08-15 12:54:20 +04:00
Zach
e10666859f
Zach/automated docs ( #2225 )
...
* add docs/config.js for better developer experience
* update docs_readme :)
2018-08-14 18:40:05 -04:00
Anton Kaliaev
6fad8eaf5a
[p2p/pex] connect to more than 10 peers ( #2169 )
...
* [p2p/pex] connect to more than 10 peers
also, remove DefaultMinNumOutboundPeers because a) I am not sure it's
needed b) it's super confusing
look closely
```
maxPeers := sw.config.MaxNumPeers - DefaultMinNumOutboundPeers
if maxPeers <= sw.peers.Size() {
sw.Logger.Info("Ignoring inbound connection: already have enough peers", "address", inConn.RemoteAddr().String(), "numPeers", sw.peers.Size(), "max", maxPeers)
```
we print maxPeers = config.MaxPeers - DefaultMinNumOutboundPeers. So we
may not have enough peers even though we say we have enough.
Refs #2130
* update spec
* replace MaxNumPeers with MaxNumInboundPeers/MaxNumOutboundPeers
Refs #2130
* update changelog
* make max rpc conns formula visible to users
* update spec
* docs: note max outbound peers excludes persistent
2018-08-14 18:25:56 -04:00
Anton Kaliaev
80e49abada
send ValidatorSetUpdates event when validator set changes ( #2161 )
...
Refs #1916
2018-08-14 19:16:35 +04:00
Dev Ojha
2756be5a59
libs: Remove usage of custom Fmt, in favor of fmt.Sprintf ( #2199 )
...
* libs: Remove usage of custom Fmt, in favor of fmt.Sprintf
Closes #2193
* Fix bug that was masked by custom Fmt!
2018-08-10 09:25:57 +04:00
bradyjoestar
785786bec4
add json2wal & fix wal2json ( #2196 )
...
* add json2wal & fix wal2json
* fix bug
* Update main.go
* add wal2JsonTest file
* Delete wal2JsonTest
2018-08-10 09:09:40 +04:00
Ian Tan
3c98cec2c2
Add ADR entry for `ProposeTx` ( #1813 )
...
This adds an ADR entry addressing the implementation of a `ProposeTx`
method in the ABCI proposed in #1776 . Fundamentally, this proposal gives
some control of block proposals to the application. The initial use case is
to support the Minimal Viable Plasma specification.
2018-08-08 23:12:36 +04:00
Dev Ojha
1fbca09e3c
[ADR] Proposal for multisignature encoding ( #1960 )
...
* ADR: Proposal for multisignature encoding
This proposal is partially tied to the resolution of #1957 .
* Change title to Encoding standard for multisignatures
* ADR: Change multisigs ADR now that amino must be used for pubkeys
* Address PR comments
2018-08-08 23:10:33 +04:00
Zach Ramsay
b30596b3a1
docs: fix links & other imrpvoements
2018-08-07 19:47:51 -04:00
Ethan Buchman
ec3e34efd8
Merge pull request #2145 from tendermint/bucky/adr-chain-versions
...
adr: chain-versions
2018-08-05 22:48:06 -04:00
Ethan Buchman
b19e148bc5
Merge pull request #2144 from tendermint/bucky/adr-protocol-versions
...
adr: protocol versioning
2018-08-05 22:47:12 -04:00
Ethan Buchman
6f8b62d1f3
Merge pull request #2149 from tendermint/bucky/adr-abci-validators
...
[ADR] ABCI Validators
2018-08-05 22:44:38 -04:00
Anton Kaliaev
bec9d5cba9
add proposer address to block's Header
...
Refs #1134
Validation:
- ignored in block.ValidateBasic since it's stateful information
- checked in blockExec.ValidateBlock
2018-08-05 15:16:49 -04:00
Ethan Buchman
279259ec8e
adr-018: abci validators
2018-08-05 12:45:27 -04:00
Ethan Buchman
8073e51b04
Merge pull request #2096 from tendermint/dev/adr_symmetric
...
[ADR] Proposal for encoding symmetric cryptography
2018-08-04 20:27:24 -04:00
ValarDragon
6691492540
(squash this) indicate what Ethereum does
2018-08-03 17:49:46 -07:00
Ethan Buchman
0f80a7da82
adr: chain-versions
2018-08-03 20:23:37 -04:00
Ethan Buchman
ae2238efe6
adr: protocol versioning
2018-08-03 20:21:40 -04:00
ValarDragon
87f09adeec
(Squash this) Be more explicit about the exact encoding of the secp signature
2018-08-02 23:27:16 -07:00
ValarDragon
b3a3c8a192
Merge remote-tracking branch 'origin/develop' into dev/adr_secp_signatures
2018-08-02 23:25:14 -07:00
ValarDragon
a040c36dfb
(squash this) change adr number, remove redundancy in function names
2018-08-02 10:43:47 -07:00
Dev Ojha
eaa137512c
adr: Encoding for cryptography at launch ( #2121 )
2018-08-01 18:19:21 -04:00
Zarko Milosevic
08ad162daa
docs: Modify blockchain spec to reflect validator set changes ( #2107 )
2018-07-31 20:19:57 +02:00
Anton Kaliaev
62b8ee270d
[docs] Validator's address can be skipped ( #2117 )
...
Refs #1712
2018-07-31 18:28:19 +02:00
Anton Kaliaev
0c7338c5f0
abci: Change validators to last_commit_info in RequestBeginBlock ( #2074 )
...
* change validators to last_commit_info in RequestBeginBlock
* do not send pubkeys with RequestBeginBlock
Refs #1856
2018-07-30 17:29:40 +02:00
ValarDragon
3d5d254932
(squash this) Mixed up field element and curve element. Idea still stands.
2018-07-28 20:41:19 -07:00
ValarDragon
ce9ddc7cd7
(squash this) Note not to overwrite aead's.
2018-07-28 06:33:15 -07:00
ValarDragon
c03ad56d55
(squash this) Note that this breaks existing keys.
2018-07-28 04:23:22 -07:00
ValarDragon
caef5dcd69
(Squash this) forgot to say that algo_name should be length prefixed
2018-07-28 04:14:07 -07:00
ValarDragon
af2894c0f8
(squash this) improve grammar.
2018-07-27 19:27:25 -07:00
ValarDragon
a2debe57c7
[ADR] Proposal for encoding symmetric cryptography
2018-07-27 18:10:41 -07:00
ValarDragon
5955eddc7d
ADR: Fix malleability problems in Secp256k1 signatures
...
Previously you could not assume that your transaction hash would
appear on chain.
2018-07-27 13:18:21 -07:00
Anton Kaliaev
96ae535fb8
proto3 timestamp ( #2064 )
...
This PR changes ABCI time format from int64 (Unix seconds) to WKT (WellKnownType) google.protobuf.Timestamp.
Refs #1857
Reasons:
better precision
standard DT for proto
* update Gopkg.lock
* [makefile] remove extra grep
- go list excludes vendor by default now
* proto3 timestamp
* [docs/abci-spec] note about serialisation format
* make time non-nullable
2018-07-27 04:23:19 +02:00
Alexander Simmerl
fd29fd6465
adr: PeerTransport ( #2069 )
...
* p2p: Propose PeerTransport ADR
* adr: Set status to in review
* adr: Add high-level decision
* adr: Extend on the idea of guards
* adr: Rework guards into transport specific filters
* adr: Rename to nodeAddr
* adr: Incorporate review
2018-07-27 02:27:19 +02:00
ValarDragon
7bf28af590
p2p/secret_connection: Switch salsa usage to hkdf + chacha
...
This now uses one hkdf on the X25519 shared secret to create
a key for the sender and receiver.
The hkdf call is now just called upon the computed shared
secret, since the shared secret is a function of the pubkeys.
The nonces now start at 0, as we are using chacha as a stream
cipher, and the sender and receiver now have different keys.
2018-07-26 00:12:32 +02:00
Anton Kaliaev
60378fd7f9
abci: remove fee ( #2043 )
...
Refs #1861
We don't use the fee field and its likely just confusing.
We can add backwards compatible priority (instead of fee) later.
Note priority is better than fee because it lets the app do the math on how to rank order transactions, rather than forcing that into tendermint (ie. if we return fee, priority would be fee/gas)
2018-07-24 17:28:26 +02:00
Anton Kaliaev
c248ce5ef6
p2p: Reject addrs coming from private peers ( #2032 )
...
Refs #1706
2018-07-24 17:10:58 +02:00
ValarDragon
571e602f07
Merge remote-tracking branch 'origin/develop' into dev/refactor_crypto
2018-07-18 08:54:51 -07:00
ValarDragon
99e582d79a
crypto: Refactor to move files out of the top level directory
...
Currently the top level directory contains basically all of the code
for the crypto package. This PR moves the crypto code into submodules
in a similar manner to what `golang/x/crypto` does. This improves code
organization.
Ref discussion: https://github.com/tendermint/tendermint/pull/1966
Closes #1956
2018-07-18 08:38:44 -07:00
Zach
40342bfa4a
Update DOCS_README.md ( #1985 )
2018-07-18 13:32:17 +04:00
Jeremiah Andrews
6c4ca140ed
Add private peer ID tracking to AddrBook ( #1989 )
...
* Add private peer ID tracking to AddrBook
* Remove private peer tracking/blocking from pex
* debug level msg when we fail to add private address
2018-07-18 13:22:09 +04:00
Dev Ojha
14cebd181d
config: 10x default send/recv rate ( #1978 )
...
* config: 10x default send/recv rate
This increases the default send/recv rate from 512 kB/s to 5.12 mB/s
Closes #1752
* Fix typo
2018-07-16 11:17:27 +04:00
Zach
bbf2bd1d81
Deprecate/refactor content in docs/specification ( #1934 )
...
* docs: deprecate specification dir, closes #1814
* update genesis
* old spec dir, deprecation complete
* rm a file
2018-07-11 23:45:10 +04:00
Ethan Buchman
7c06a98b71
Merge branch 'master' into develop
2018-07-10 09:46:31 -04:00
Anton Kaliaev
4de9d42e4c
limit the number of requests in flights for Prometheus server ( #1927 )
...
* limit the number of requests in flights for Prometheus server
Closes #1804
Default to 1 because usually there's just one collector.
* config: Up default for prom connections
2018-07-10 15:49:48 +04:00
Peng Zhong
0030a8e697
Peng/deprecate aib data ( #1926 )
...
* include ecosystem.json
* update changelog
* also include zarko's interview
2018-07-09 13:19:45 +04:00
Anton Kaliaev
ed01638076
remove doc. about no longer existing config option
2018-07-07 11:50:34 +02:00
Alexander Simmerl
f93798f72d
Merge branch 'master' into release/v0.22.1
2018-07-07 11:45:20 +02:00
Zach Ramsay
bef04114ef
docs: md fixes & latest tm-bench/monitor
2018-07-06 14:25:04 -04:00
Zach Ramsay
539722c02d
ports
2018-07-06 13:31:39 -04:00
Zach Ramsay
e54c0f804f
docs re-orgnization
2018-07-05 16:08:42 -04:00
Zach Ramsay
79d6bd8ce0
TEST
2018-07-05 13:27:54 -04:00
Zach Ramsay
14b6010240
move a file
2018-07-05 13:22:06 -04:00
Zach
e282b3d761
Merge branch 'master' into zach/path-fix
2018-07-05 10:10:11 -04:00
Zach
07747de305
add docs/DOCS_README.md for devs, closes #1885 ( #1905 )
2018-07-05 11:44:15 +04:00
Zach Ramsay
82a43593ab
add linters to docs
2018-07-04 12:01:19 -04:00
Zach Ramsay
ccaad06eb5
lint markdown
2018-07-04 12:00:57 -04:00
Ethan Buchman
bff68abe04
update abci spec
2018-07-03 23:16:32 -04:00
Zach Ramsay
fcf8bd94c2
docs/examples: update getting started and remove old script (now in scripts/install)
2018-07-03 19:07:19 -04:00