tendermint/types
Ismail Khoffi 3ff820bdf4 fix amino overhead computation for Tx (#2792)
* fix amino overhead computation for Tx:

- also count the fieldnum / typ3
- add method to compute overhead per Tx
- slightly clarify comment on MaxAminoOverheadForBlock
- add tests

* fix TestReapMaxBytesMaxGas according to amino overhead

* fix TestMempoolFilters according to amino overhead

* address review comments:

 - add a note about fieldNum = 1
 - add forgotten godoc comment

* fix and use sm.TxPreCheck

* fix test

* remove print statement
2018-11-11 10:09:33 -05:00
..
proto3 Update to amino 0.14.0 (#2710) 2018-10-29 09:16:50 -04:00
time types/time: add note about stripping monotonic part 2018-09-06 17:58:52 -04:00
block.go fix amino overhead computation for Tx (#2792) 2018-11-11 10:09:33 -05:00
block_meta.go make Block Header and Data non-pointers 2018-07-13 12:05:54 +04:00
block_test.go fix amino overhead computation for Tx (#2792) 2018-11-11 10:09:33 -05:00
canonical.go Simplify proposal msg (#2735) 2018-10-31 10:27:11 -04:00
encoding_helper.go crypto/merkle: Remove byter in favor of plain byte slices (#2595) 2018-10-10 12:46:09 -04:00
event_bus.go Introduce EventValidBlock for informing peers about wanted block (#2652) 2018-10-31 09:20:36 -04:00
event_bus_test.go send ValidatorSetUpdates event when validator set changes (#2161) 2018-08-14 19:16:35 +04:00
events.go Introduce EventValidBlock for informing peers about wanted block (#2652) 2018-10-31 09:20:36 -04:00
events_test.go crypto: Refactor to move files out of the top level directory 2018-07-18 08:38:44 -07:00
evidence.go validate reactor messages (#2711) 2018-11-01 02:07:18 -04:00
evidence_test.go Add tests for ValidateBasic methods (#2754) 2018-11-09 15:59:04 +01:00
genesis.go [types] add Address to GenesisValidator (#2418) 2018-09-18 11:59:52 +04:00
genesis_test.go conesnsu: follow up to removing some consensus params (#2427) 2018-09-21 11:00:36 +02:00
heartbeat.go validate reactor messages (#2711) 2018-11-01 02:07:18 -04:00
heartbeat_test.go Add tests for ValidateBasic methods (#2754) 2018-11-09 15:59:04 +01:00
keys.go
params.go Add ValidatorPubkeyTypes as a consensus param (#2636) 2018-10-30 11:36:53 -04:00
params_test.go Add ValidatorPubkeyTypes as a consensus param (#2636) 2018-10-30 11:36:53 -04:00
part_set.go validate reactor messages (#2711) 2018-11-01 02:07:18 -04:00
part_set_test.go Add tests for ValidateBasic methods (#2754) 2018-11-09 15:59:04 +01:00
priv_validator.go privval: Switch to amino encoding in SignBytes (#2459) 2018-09-28 19:57:29 -04:00
proposal.go validate reactor messages (#2711) 2018-11-01 02:07:18 -04:00
proposal_test.go Add tests for ValidateBasic methods (#2754) 2018-11-09 15:59:04 +01:00
proto3_test.go libs: Remove usage of custom Fmt, in favor of fmt.Sprintf (#2199) 2018-08-10 09:25:57 +04:00
protobuf.go Add ValidatorPubkeyTypes as a consensus param (#2636) 2018-10-30 11:36:53 -04:00
protobuf_test.go Add ValidatorPubkeyTypes as a consensus param (#2636) 2018-10-30 11:36:53 -04:00
results.go Catch up with amino 0.13.0 (#2690) 2018-10-24 21:34:01 -04:00
results_test.go Update to Amino v0.13.0-rc0 (#2687) 2018-10-23 13:21:47 -04:00
signable.go validate reactor messages (#2711) 2018-11-01 02:07:18 -04:00
signed_msg_type.go validate reactor messages (#2711) 2018-11-01 02:07:18 -04:00
test_util.go [R4R] Fixed sized and reordered fields for Vote/Proposal/Heartbeat SignBytes (#2598) 2018-10-12 19:21:46 -04:00
tx.go fix amino overhead computation for Tx (#2792) 2018-11-11 10:09:33 -05:00
tx_test.go fix amino overhead computation for Tx (#2792) 2018-11-11 10:09:33 -05:00
validation.go validate reactor messages (#2711) 2018-11-01 02:07:18 -04:00
validator.go TMHASH is 32 bytes. Closes #1990 (#2732) 2018-10-31 12:42:05 -04:00
validator_set.go [R4R] Fixed sized and reordered fields for Vote/Proposal/Heartbeat SignBytes (#2598) 2018-10-12 19:21:46 -04:00
validator_set_test.go Catch up with amino 0.13.0 (#2690) 2018-10-24 21:34:01 -04:00
vote.go validate reactor messages (#2711) 2018-11-01 02:07:18 -04:00
vote_set.go if some process locks a block in round 0, then 0 is valid proposal.POLRound in rounds > 0 2018-10-25 16:40:20 +02:00
vote_set_test.go [R4R] Fixed sized and reordered fields for Vote/Proposal/Heartbeat SignBytes (#2598) 2018-10-12 19:21:46 -04:00
vote_test.go Add tests for ValidateBasic methods (#2754) 2018-11-09 15:59:04 +01:00
wire.go separate mock evidence from real evidence (#2571) 2018-10-09 14:10:05 +02:00