Anton Kaliaev
|
166fd82b70
|
max-bytes PR follow-up (#2318)
* ReapMaxTxs: return all txs if max is negative
this mirrors ReapMaxBytes behavior
See https://github.com/tendermint/tendermint/pull/2184#discussion_r214439950
* increase MaxAminoOverheadForBlock
tested with:
```
func TestMaxAminoOverheadForBlock(t *testing.T) {
maxChainID := ""
for i := 0; i < MaxChainIDLen; i++ {
maxChainID += "𠜎"
}
h := Header{
ChainID: maxChainID,
Height: 10,
Time: time.Now().UTC(),
NumTxs: 100,
TotalTxs: 200,
LastBlockID: makeBlockID(make([]byte, 20), 300, make([]byte, 20)),
LastCommitHash: tmhash.Sum([]byte("last_commit_hash")),
DataHash: tmhash.Sum([]byte("data_hash")),
ValidatorsHash: tmhash.Sum([]byte("validators_hash")),
NextValidatorsHash: tmhash.Sum([]byte("next_validators_hash")),
ConsensusHash: tmhash.Sum([]byte("consensus_hash")),
AppHash: tmhash.Sum([]byte("app_hash")),
LastResultsHash: tmhash.Sum([]byte("last_results_hash")),
EvidenceHash: tmhash.Sum([]byte("evidence_hash")),
ProposerAddress: tmhash.Sum([]byte("proposer_address")),
}
b := Block{
Header: h,
Data: Data{Txs: makeTxs(10000, 100)},
Evidence: EvidenceData{},
LastCommit: &Commit{},
}
bz, err := cdc.MarshalBinary(b)
require.NoError(t, err)
assert.Equal(t, MaxHeaderBytes+MaxAminoOverheadForBlock-2, len(bz)-1000000-20000-1)
}
```
* fix MaxYYY constants calculation
by using math.MaxInt64
See https://github.com/tendermint/tendermint/pull/2184#discussion_r214444244
* pass mempool filter as an option
See https://github.com/tendermint/tendermint/pull/2184#discussion_r214445869
* fixes after Dev's comments
|
2018-09-04 11:46:34 +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 |
|
Ethan Buchman
|
309a6772d7
|
types: fix formatting when printing signatures
- use cmn.Fingerprint and %X
|
2018-08-05 16:35:43 -04:00 |
|
ValarDragon
|
f903947ff3
|
crypto: Remove interface from crypto.Signature
Signatures are now []byte, which saves on the number of bytes after
amino encoding
(squash this) address Ismail's comment
|
2018-08-05 15:46:57 -04:00 |
|
Ethan Buchman
|
d55243f0e6
|
fix import paths
|
2018-07-01 22:36:49 -04:00 |
|
Liamsi
|
d2c05bc5b9
|
Revert "delete everything" (includes everything non-go-crypto)
This reverts commit 96a3502
|
2018-06-20 17:35:30 -07:00 |
|
Liamsi
|
96a3502126
|
delete everything
|
2018-06-20 15:19:08 -07:00 |
|
Jae Kwon
|
34974e3932
|
Make types use Amino; Refactor PrivValidator* to FilePV/SocketPV
|
2018-03-31 00:18:43 +02:00 |
|
Anton Kaliaev
|
b0d8f552c5
|
return err if peer has sent a vote that does not match our round
|
2018-03-15 11:58:20 +04:00 |
|
Ethan Buchman
|
3395f5fb0e
|
types: builds
|
2018-03-02 01:28:38 -05:00 |
|
Ethan Buchman
|
200787ede2
|
types: update for new go-wire. WriteSignBytes -> SignBytes
|
2018-03-02 01:25:54 -05:00 |
|
Ethan Buchman
|
cd0fd06b0d
|
update for sdk2 libs. need to fix kv test
NOTE we only updating for tmlibs and abci
|
2018-02-03 03:35:02 -05:00 |
|
Ethan Buchman
|
d0e0ac5fac
|
types: better error messages for votes
|
2017-12-27 14:46:24 -05:00 |
|
Ethan Buchman
|
9cdcffbe4b
|
types: comments; compiles; evidence test
|
2017-12-26 20:21:17 -05:00 |
|
Ethan Buchman
|
35587658cd
|
verify evidence in block
|
2017-12-26 20:21:17 -05:00 |
|
Ethan Buchman
|
4661c98c17
|
add pubkey to conflicting vote evidence
|
2017-12-26 20:21:17 -05:00 |
|
Ethan Frey
|
599673690c
|
Add timestamp to vote canonical encoding
|
2017-12-12 12:59:51 +01:00 |
|
Anton Kaliaev
|
922af7c405
|
int64 height
uint64 is considered dangerous. the details will follow in a blog post.
|
2017-12-01 19:04:53 -06:00 |
|
Anton Kaliaev
|
b3492356e6
|
uint64 height (Refs #911)
|
2017-12-01 17:17:22 -05:00 |
|
Ethan Buchman
|
5466720d75
|
minor changes from @odeke-em PR #725
|
2017-10-31 15:32:07 -04:00 |
|
Ethan Buchman
|
97e9802255
|
fix out of range error in VoteSet.addVote
|
2017-10-02 23:34:06 -04:00 |
|
Ethan Buchman
|
bdb34f9f4e
|
types: []byte -> data.Bytes
|
2017-04-27 19:01:18 -04:00 |
|
Ethan Buchman
|
d1926bcad1
|
use tmlibs
|
2017-04-21 18:12:54 -04:00 |
|
Ethan Buchman
|
5da9b3a803
|
postmerge
|
2017-04-21 18:09:47 -04:00 |
|
Ethan Buchman
|
0017fb7ffe
|
premerge
|
2017-04-21 17:38:40 -04:00 |
|
Ethan Buchman
|
38783e7fa1
|
types: SignatureEd25519 -> Signature
|
2016-12-18 00:14:07 -05:00 |
|
Ethan Buchman
|
1b3766d802
|
types: canonical_json.go
|
2016-12-17 21:21:27 -05:00 |
|
zachary balder
|
da8b043612
|
sign bytes w struct literals
|
2016-12-17 21:21:27 -05:00 |
|
Jae Kwon
|
b73a6905a1
|
Initial pass at bft_fix_2 completion
|
2016-11-15 18:37:00 -05:00 |
|
Jae Kwon
|
1173a85c85
|
Use BlockID everywhere
|
2016-11-15 18:34:58 -05:00 |
|
Jae Kwon
|
7221887330
|
VoteSet can handle conflicting votes. TODO: add more tests
|
2016-11-15 18:33:16 -05:00 |
|
Jae Kwon
|
3c5a2f55c2
|
Add validator index and address to Vote.
|
2016-11-15 18:33:16 -05:00 |
|
Jae Kwon
|
ad17090a0f
|
No global config
|
2016-05-08 15:00:58 -07:00 |
|
Jae Kwon
|
f17c4c1d57
|
s/Validation/Commit/g
|
2016-04-02 09:10:16 -07:00 |
|
Jae Kwon
|
d69b5c5ab6
|
Conform to go-wire 1.0
|
2015-11-10 13:10:43 -08:00 |
|
Jae Kwon
|
e12f9d10e7
|
Bare consensus refactor
|
2015-11-01 11:34:08 -08:00 |
|
Jae Kwon
|
c4ed55d801
|
Refactor to move common libraries out of project
|
2015-10-22 17:39:06 -07:00 |
|
Jae Kwon
|
5bf0040f14
|
Parts -> PartsHeader; *_parts -> *_parts_header in sign_bytes
|
2015-08-12 22:36:43 -07:00 |
|
Jae Kwon
|
3be3647dc8
|
tendermint/binary -> tendermint/wire
|
2015-07-28 12:18:17 -07:00 |
|
Ethan Buchman
|
8e50bf15de
|
panic wrapper functions
|
2015-07-21 10:46:05 -04:00 |
|
Jae Kwon
|
1e7cc32597
|
tendermint/account -> acm
|
2015-07-19 09:40:55 -07:00 |
|
Jae Kwon
|
41d04cf5b8
|
consensus reactor code polish, fixed prs BitArray cache invalidation bug
|
2015-07-05 13:40:59 -07:00 |
|
Jae Kwon
|
027ad79f9c
|
Fix String() for nil votes, and non-full Validation
|
2015-06-26 17:54:02 -07:00 |
|
Jae Kwon
|
9965dd5de6
|
uint* to int* whereever appropriate; https://www.reddit.com/r/golang/comments/2q5vdu/int_vs_uint/
|
2015-06-25 20:28:34 -07:00 |
|
Jae Kwon
|
01b5540ffe
|
consensus/state is 2-step asynchronous
|
2015-06-19 15:30:21 -07:00 |
|
Ethan Buchman
|
41502e05c1
|
chain_id written as string not hex in WriteSignBytes
|
2015-05-30 20:20:04 -04:00 |
|
Ethan Buchman
|
2045aee9cd
|
pass chainID through sign interfaces
|
2015-05-29 18:14:19 -04:00 |
|
Ethan Buchman
|
8a2d9525f0
|
network > chain_id, put in genesis.json
|
2015-05-29 18:14:19 -04:00 |
|
Jae Kwon
|
75ef479547
|
Config is passed into each module. Remove tendermint/confer
|
2015-05-17 16:19:57 -07:00 |
|
Jae Kwon
|
85c8850ac2
|
Config names have no dots, are under_scored.
|
2015-05-12 17:40:29 -07:00 |
|