Commit Graph

472 Commits

Author SHA1 Message Date
49b52ee3c7 Add test for MakePartSet with evidence 2018-07-26 19:00:07 -04:00
0e127562bf register evidence interface wherever its used 2018-07-26 18:53:19 -04:00
7ad92c44cb Merge branch 'master' into bucky/merge-master 2018-07-25 11:34:32 -04:00
6046b99197 consensus: include evidence in proposed block parts. fixes #2050 2018-07-24 21:58:39 -04:00
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
f6705f02c7 fixes post merge 2018-07-23 23:39:22 -04:00
ea31c4836a Merge branch 'develop' into jae/literefactor4 2018-07-23 23:28:14 -04:00
e1b48b16c4 Merge branch 'develop' into jae/optimize_blockchain 2018-07-23 22:16:34 -04:00
c798702764 crypto: Remove Ed25519 and Secp256k1 suffix on GenPrivKey 2018-07-20 10:44:21 -07:00
17c0029233 Merge remote-tracking branch 'origin/develop' into dev/refactor_crypto 2018-07-20 08:59:41 -07:00
0f2d97dffe Merge pull request #1742 from Liamsi/proto_files
Add Proto files for types.Header (incl. BlockId, Time, PartsSetHeader)
2018-07-20 17:43:25 +02:00
ed8714e40c Merge pull request #1965 from tendermint/693-part-2
make Block Header and Data non-pointers
2018-07-20 17:42:42 +02:00
96818af9d5 fix protos to make all tests pass, document differences 2018-07-18 19:06:38 +02:00
571e602f07 Merge remote-tracking branch 'origin/develop' into dev/refactor_crypto 2018-07-18 08:54:51 -07:00
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
a81ca93139 update to new (timestamp & empty structs) encoding in amino
- timestamps no longer have fixed length encoding
-
2018-07-18 16:37:15 +02:00
2744682e77 update to latest amino (pre) release v0.11.1
- also reformat code and order imports
2018-07-18 15:53:53 +02:00
d665c79cc9 WIP: more empty struct examples 2018-07-18 15:18:10 +02:00
3c38a25bbb add empty struct examples 2018-07-18 15:17:51 +02:00
0cd82fa166 add empty struct examples 2018-07-18 15:14:41 +02:00
99fa7f8132 everything works with https://github.com/tendermint/go-amino/pull/178 2018-07-18 15:14:41 +02:00
82104c9329 almost 2018-07-18 15:14:41 +02:00
dae7dc30e0 Switch usage of math/rand to cmn's rand (#1980)
This commit switches all usage of math/rand to cmn's rand. The only
exceptions are within the random file itself, the tools package, and the
crypto package. In tools you don't want it to lock between the go-routines.
The crypto package doesn't use it so the crypto package have no other
dependencies within tendermint/tendermint for easier portability.

Crypto/rand usage is unadjusted.

Closes #1343
2018-07-16 11:20:37 +04:00
d903057011 fix stopping pubsub 2018-07-14 14:50:56 +01:00
270659f03f make Block Header and Data non-pointers
make BlockMeta Header a non-pointer

Refs #693
2018-07-13 12:05:54 +04:00
3ffda994c2 Revert "rename privval#GetAddress and GetPubKey to Address and PubKey"
This reverts commit 58d0c8de89bcc6c081c5b33683c2d0a4e1f83eef.
2018-07-12 22:40:07 +04:00
6a85aecfb7 fix linter issues 2018-07-12 22:40:07 +04:00
d103aaf53f add test for Vote#Verify
remove test for String (very brittle)
2018-07-12 22:40:06 +04:00
17e1df0cbd test validator set more thoroughly
Refs #693
2018-07-12 22:40:06 +04:00
ff8ddee708 rename privval#GetAddress and GetPubKey to Address and PubKey 2018-07-12 22:40:06 +04:00
20bb522592 add tests for ABCIResults#Bytes and tx#IndexByHash 2018-07-12 22:40:06 +04:00
715ec19c96 add tests for protobuf
Refs #693
2018-07-12 22:40:06 +04:00
d51b196992 improve part set tests
Refs #693
2018-07-12 22:40:06 +04:00
5a4459935b add a test for ConsensusParams#Update
Refs #693
2018-07-12 22:40:06 +04:00
3132f7fad4 add tests for genesis
Refs #693
2018-07-12 22:40:06 +04:00
80399e60fb add tests for events public funcs
Refs #693
2018-07-12 22:40:05 +04:00
b271c40783 remove deprecated app_options field from genesis 2018-07-12 22:40:05 +04:00
37ce4e549e add more tests for evidence
Refs #693
2018-07-12 22:40:05 +04:00
e4db5f8dcd test event bus
Refs #693
2018-07-12 22:40:05 +04:00
6fe8ea966a remove events we do not emit 2018-07-12 22:40:05 +04:00
1377ef1e1f remove unused TxEventBuffer 2018-07-12 22:40:05 +04:00
95980d944b [types] add tests for Block and Commit
Refs #693
2018-07-12 22:40:05 +04:00
5453aa6169 Merge branch 'develop' into jae/literefactor4 2018-07-02 14:57:30 -04:00
ec710395b7 RIPEMD160 -> SHA256 2018-07-02 14:27:43 -04:00
d55243f0e6 fix import paths 2018-07-01 22:36:49 -04:00
2d98899b9b set MaxTxs to 10000 (the same that was used in the config before) 2018-07-01 09:44:12 +04:00
297cd4cfe8 limit HTTP request body and WS read msg size to 1MB 2018-06-29 12:40:32 +04:00
9563927bbd print only tx's hash and size when logging blocks
Closes #1799
2018-06-29 12:40:32 +04:00
8524a8da7f Try to fix circle... 2018-06-27 04:22:30 -07:00
bf0ff212b9 Refactor "lite" to handle delayed validator set changes.
Also, fix consensus liveness issue.
2018-06-25 17:12:25 -07:00