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
6 years ago
Dev Ojha
124d0db1e0
Make txs and evidencelist use merkle.SimpleHashFromBytes to create hash ( #2635 )
This is a performance regression, but will also spare the types directory
from knowing about RFC 6962, which is a more correct abstraction. For txs
this performance hit will be fixed soon with #2603 . For evidence, the
performance impact is negligible due to it being capped at a small number.
6 years ago
Dev Ojha
12fa9d1cab
crypto/merkle: Remove byter in favor of plain byte slices ( #2595 )
* crypto/merkle: Remove byter in favor of plain byte slices
This PR is fully backwards compatible in terms of function output!
(The Go API differs though) The only test case changes was to refactor
it to be table driven.
* Update godocs per review comments
6 years ago
Joon
71a34adfe5
General Merkle Proof ( #2298 )
* first commit
finalize rebase
add protoc_merkle to Makefile
* in progress
* fix kvstore
* fix tests
* remove iavl dependency
* fix tx_test
* fix test_abci_cli
fix test_apps
* fix test_apps
* fix test_cover
* rm rebase residue
* address comment in progress
* finalize rebase
6 years ago
Anton Kaliaev
e873fed815
calculate amino overhead on the fly
6 years ago
Anton Kaliaev
e957f322c7
be more precise in comments
6 years ago
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
6 years ago
Zach Ramsay
44dad6d70b
Revert "detele everything"
This reverts commit d02c5d1e30
.
6 years ago
Zach Ramsay
d02c5d1e30
detele everything
6 years ago
Ethan Buchman
ec710395b7
RIPEMD160 -> SHA256
6 years ago
Ethan Buchman
d55243f0e6
fix import paths
6 years ago
Alexander Simmerl
a605b66c5a
Move abci imports
7 years ago
Liamsi
d2c05bc5b9
Revert "delete everything" (includes everything non-go-crypto)
This reverts commit 96a3502
7 years ago
Liamsi
96a3502126
delete everything
7 years ago
Jae Kwon
34974e3932
Make types use Amino; Refactor PrivValidator* to FilePV/SocketPV
7 years ago
Ethan Buchman
3395f5fb0e
types: builds
7 years ago
Ethan Buchman
7a5060dc52
replace data.Bytes with cmn.HexBytes
7 years ago
Ethan Buchman
4e3488c677
update types
7 years ago
Ethan Buchman
eeab0efa56
types: tx.go comments
7 years ago
Anton Kaliaev
922af7c405
int64 height
uint64 is considered dangerous. the details will follow in a blog post.
7 years ago
Ethan Buchman
d1a00c684e
types: comments
7 years ago
Ethan Buchman
e1792c1ea5
fix tx string format take 2
8 years ago
Ethan Buchman
d5113377e2
fix tx string format
8 years ago
Jae Kwon
4c7a2be06a
Add Tx String representation
8 years ago
Ethan Buchman
bdb34f9f4e
types: []byte -> data.Bytes
8 years ago
Ethan Buchman
d5b524e309
go-merkle -> merkleeyes/iavl and tmlibs/merkle
8 years ago
Ethan Buchman
5da9b3a803
postmerge
8 years ago
Ethan Buchman
0017fb7ffe
premerge
8 years ago
Ethan Buchman
f4d0076344
TxResult includes Tx. /tx only works if indexer active
8 years ago
Ethan Buchman
6e065affe5
rpc: /tx allows height+hash
8 years ago
Ethan Buchman
2a59cda77e
/tx returns tx bytes
8 years ago
Ethan Frey
705e7bd577
Implemented and tested Txs.Index, hopefully better coverage
8 years ago
Ethan Frey
28307fd4c9
Add proof generation for one tx
8 years ago
Ethan Buchman
05136ff09d
update some comments
8 years ago
Ethan Buchman
65ebc344ac
broadcast_commit
9 years ago
Ethan Buchman
501c4e4bac
fixes from review
9 years ago
Ethan Buchman
d23f38b4f3
txs.Hash() to avoid extra allocs
9 years ago
Jae Kwon
e12f9d10e7
Bare consensus refactor
9 years ago
Jae Kwon
c4ed55d801
Refactor to move common libraries out of project
9 years ago
Ethan Buchman
e4f0e2b399
update namereg with longer names, more allowed chars
9 years ago
Ethan Buchman
6f25dfef44
move NewContractAddress to types and use ripemd160
9 years ago
Jae Kwon
3be3647dc8
tendermint/binary -> tendermint/wire
9 years ago
Jae Kwon
0ef5c3ad07
Fix returning prematurely within if(runCall){...}.
Renames
9 years ago
Ethan Buchman
31b9d8ee27
SNativeTx -> PermissionTx, consolidate permissions and native contracts
9 years ago
Ethan Buchman
d528d002fa
SNativeTx sign bytes
9 years ago
Ethan Buchman
e037093740
snative refactor and SNativeTx
9 years ago
Ethan Buchman
8e50bf15de
panic wrapper functions
9 years ago
Jae Kwon
1e7cc32597
tendermint/account -> acm
9 years ago
Jae Kwon
2e1d8ba054
Make Ripemd160 the default
10 years ago
Ethan Buchman
72b681a1bc
fix TxID to use ripemd160 in events and rpc return
10 years ago