Sergio Mena
bd8bbe86d4
Added missing ProcessProposal to socket_server.go
2022-07-27 20:07:02 +02:00
Sergio Mena
b8ae6501e4
Fixed ProcessProposalSync
2022-07-27 20:07:02 +02:00
Sergio Mena
0a0812cce9
Fix ProcessProposalAsync
2022-07-27 20:07:02 +02:00
Sergio Mena
873b90867a
make proto-gen
2022-07-27 20:07:02 +02:00
mconcat
5cc5110e9e
Rebased and git-squashed the commits in PR #7091
...
add processproposal proto/boilerplate/logic
mockery
gofmt
fix test
gofmt
move UNKNOWN response behaviour to reject
2022-07-27 20:07:02 +02:00
Sergio Mena
58effdd8b3
Old PrepareProposal on feature/abci++ppp ( #9106 )
...
* [Rebased to v0.34.x] abci: PrepareProposal (#6544 )
* fixed cherry-pick
* proto changes
* make proto-gen
* UT fixes
* generate Client directive
* mockery
* App fixes
* Disable 'modified tx' hack
* mockery
* Make format
* Fix lint
Co-authored-by: Marko <marbar3778@yahoo.com >
2022-07-27 15:09:02 +02:00
M. J. Fromberger
223ece93c8
mempool: ensure async requests are flushed to the server ( #9010 )
...
In the v0.34 line, the socket and gRPC clients require explicit flushes to
ensure that the client and server have received an async request. Add these
calls explicitly where required in the backport of the priority mempool.
In addition, the gRPC client's flush plumbing was not fully hooked up in the
v0.34 line, so this change includes that update as well.
2022-07-14 15:45:58 -07:00
Aleksandr Bezobchuk
6b7d30cf37
feat: v0.34.x Prioritized Mempool ( #8695 )
...
* Updated mocks
* add reactor tests
* add v1 reactor tests
* Fix fuzz test for priority mempool
* e2e adapted to mempool v1; prio pool is default now
* Reverted default mempool to be fifo
* Changed buf version
* Added priority mempool to ci testnet
* Fixed linter
* Updated makefile
* Aligned makefile changes to v0.34.x
* Added go install for proto
* Add log message to warn about prioritized mempool bug
Signed-off-by: Thane Thomson <connect@thanethomson.com >
* Changelog message
Co-authored-by: Jasmina Malicevic <jasmina.dustinac@gmail.com >
Co-authored-by: Callum Waters <cmwaters19@gmail.com >
Co-authored-by: Sam Kleinman <garen@tychoish.com >
Co-authored-by: Thane Thomson <connect@thanethomson.com >
2022-06-27 11:34:28 +02:00
William Banfield
da6ec8f082
invoke callbacks when set late in socket client ( #8331 )
2022-04-13 15:30:36 -04:00
dependabot[bot]
c9c570e151
build(deps): Bump google.golang.org/grpc from 1.42.0 to 1.43.0 ( #7454 )
...
* build(deps): Bump google.golang.org/grpc from 1.42.0 to 1.43.0
Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go ) from 1.42.0 to 1.43.0.
- [Release notes](https://github.com/grpc/grpc-go/releases )
- [Commits](https://github.com/grpc/grpc-go/compare/v1.42.0...v1.43.0 )
---
updated-dependencies:
- dependency-name: google.golang.org/grpc
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: M. J. Fromberger <fromberger@interchain.io >
2021-12-15 08:08:27 -08:00
dependabot[bot]
bd48acb2ca
build(deps): Bump google.golang.org/grpc from 1.38.0 to 1.42.0 ( #7232 )
...
* build(deps): Bump google.golang.org/grpc from 1.38.0 to 1.42.0
Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go ) from 1.38.0 to 1.42.0.
- [Release notes](https://github.com/grpc/grpc-go/releases )
- [Commits](https://github.com/grpc/grpc-go/compare/v1.38.0...v1.42.0 )
---
updated-dependencies:
- dependency-name: google.golang.org/grpc
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
* Fix Unix-domain socket paths.
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: M. J. Fromberger <fromberger@interchain.io >
Co-authored-by: tycho garen <garen@tychoish.com >
2021-11-08 12:39:15 -05:00
Sam Kleinman
4ef140f6ca
lint: cleanup pending lint errors ( #7237 )
2021-11-04 08:08:55 -04:00
mergify[bot]
a82cb7dcda
Revert "abci: change client to use multi-reader mutexes ( #6306 )" (backport #7106 ) ( #7109 )
2021-10-12 18:00:22 +02:00
mergify[bot]
e0c6199aae
abci: change client to use multi-reader mutexes (backport #6306 ) ( #6873 )
2021-08-30 11:57:39 -04:00
mergify[bot]
8d3c36ccc3
abci: Fix ReCheckTx for Socket Client (bp #6124 ) ( #6125 )
2021-02-18 08:36:05 -05:00
Marko
54338a52fa
proto: bump gogoproto (1.3.2) ( #5886 )
...
- bump gogoproto (1.3.2)
- regenerate proto files
Closes: #XXX
2021-01-19 12:41:35 +01:00
Erik Grinaker
c2b5f8bc4a
abci/grpc: fix invalid mutex handling in StopForError() ( #5849 )
...
Fixes #5840 .
2021-01-06 17:27:51 +01:00
Marko
26493bbbd8
test/e2e: fix secp failures ( #5649 )
2020-11-18 15:21:52 +01:00
Erik Grinaker
8329d12c18
abci/grpc: fix ordering of sync/async callback combinations ( #5556 )
...
Fixes #5540 , fixes #2965 . This is a hack that patches over the problem, but really the whole async handling in gRPC should be redesigned, as should ReqRes callback dispatch.
2020-10-26 22:44:57 +01:00
Marko
9379bc92fd
fix lint failures with 1.31 ( #5489 )
2020-10-22 13:36:08 +02:00
QuantumExplorer
1b733ea28d
fix a few typos ( #5402 )
2020-10-22 13:36:08 +02:00
Erik Grinaker
29ca7de63c
abci/grpc: return async responses in order ( #5520 ) ( #5531 )
...
Fixes #5439 . This is really a workaround for #5519 (unless we require async implementations to return ordered responses, but that kind of defeats the purpose of having an async API).
2020-10-20 10:56:48 +02:00
Marko
6f908eb814
crypto: add in secp256k1 support ( #5500 )
...
Secp256k1 was removed in the protobuf migration, this pr adds it back in order to provide this functionality for users (band)
Closes : #5495
2020-10-19 10:07:51 +02:00
Erik Grinaker
ebfe0cbb8c
abci: fix socket client error for state sync responses ( #5395 )
...
This caused the node to crash whenever any state sync-related request was called via the ABCI UNIX socket client.
2020-09-24 03:53:15 +00:00
Marko
0ed8dba991
lint: enable errcheck ( #5336 )
...
## Description
Enable errcheck linter throughout the codebase
Closes : #5059
2020-09-07 15:03:18 +00:00
Marko
b8d08b9ef4
lint: add errchecks ( #5316 )
...
## Description
Work towards enabling errcheck
ref #5059
2020-09-04 11:58:03 +00:00
Callum Waters
c752e2e586
abci: update evidence ( #5324 )
2020-09-02 18:17:59 +02:00
Anton Kaliaev
4827ed121f
libs/bits: inline defer and change order of mutexes ( #5187 )
...
* libs/bits: inline defer and change order of mutexes
Closes #3217
* abci/client: unexpose StopForError func
a) it's not called outside
b) the reason for exposing it in the first place is unclear
c) Stop already exist if someone from outside wants to stop the client
2020-08-26 13:18:30 +04:00
Marko
42e4e8b58e
lint: add markdown linter ( #5254 )
2020-08-17 16:40:50 +02:00
Erik Grinaker
cc247c091b
genesis: add support for arbitrary initial height ( #5191 )
...
Adds a genesis parameter `initial_height` which specifies the initial block height, as well as ABCI `RequestInitChain.InitialHeight` to pass it to the ABCI application, and `State.InitialHeight` to keep track of the initial height throughout the code. Fixes #2543 , based on [RFC-002](https://github.com/tendermint/spec/pull/119 ). Spec changes in https://github.com/tendermint/spec/pull/135 .
2020-08-11 17:03:28 +00:00
Erik Grinaker
08ffe13295
abci: add ResponseInitChain.app_hash, check and record it ( #5227 )
...
Fixes #5177 .
2020-08-11 14:28:11 +00:00
Callum Waters
312c4f8fe1
evidence: change evidence time to block time ( #5219 )
...
adds blockstore interface to evidence and adds fix to byzantine test
2020-08-11 14:39:07 +02:00
Marko
909163afa8
rpc: make gasWanted/Used snake_case ( #5137 )
...
## Description
THis pr adds `json_name` to replace proto generated json tags.
Closes : #5111
2020-07-20 13:10:09 +00:00
Marko
2ac5a559b4
libs: wrap mutexes for build flag with godeadlock ( #5126 )
...
## Description
This PR wraps the stdlib sync.(RW)Mutex & godeadlock.(RW)Mutex. This enables using go-deadlock via a build flag instead of using sed to replace sync with godeadlock in all files
Closes : #3242
2020-07-20 07:55:09 +00:00
Anton Kaliaev
8cdb53c811
docs: EventAttribute#Index is not deterministic ( #5132 )
...
Closes #5125
2020-07-19 09:36:01 +00:00
Marko
6ccccb0933
lint: errcheck ( #5091 )
...
## Description
add more error checks to tests
gonna do a third PR that tackles the non test cases
2020-07-14 11:04:41 +00:00
Anton Kaliaev
0825d57cf7
proto/tendermint/abci: fix Request oneof numbers ( #5116 )
...
- the sequence does not start with 1
- RequestDeliverTx has out-of-order field number
Closes #5115
2020-07-14 08:24:08 +00:00
Erik Grinaker
66ed8ec39d
proto: reorganize Protobuf schemas ( #5102 )
...
Reorganizes the Protobuf schemas. It is mostly bikeshedding, so if something is contentious or causes a lot of extra work then I'm fine with reverting. Some Protobuf and Go import paths will change.
* Move `abci/types/types.proto` to `abci/types.proto`.
* Move `crypto/keys/types.proto` and `crypto/merkle/types.proto` to `crypto/keys.proto` and `crypto/proof.proto`.
* Drop the use of `msgs` in filenames, as "message" is a very overloaded term (all Protobuf types are messages, and we also have `message Message`). Use `types.proto` as a catch-all, and otherwise name files by conceptual grouping instead of message kind.
2020-07-08 15:47:01 +00:00
Erik Grinaker
59a17b28a7
proto: improve enums ( #5099 )
...
Fixes some minor issues with Protobuf enums, not likely to break anything.
Branched off of #5096 , rebase to `master` before merging.
2020-07-08 13:49:50 +00:00
Erik Grinaker
ab20f3520f
proto: increase lint level to basic and fix lint warnings ( #5096 )
...
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2020-07-08 13:27:09 +00:00
Anton Kaliaev
16216028a1
proxy: improve ABCI app connection handling ( #5078 )
...
Closes #5074
Old code does not work when --consensus.create_empty_blocks=false
(because it only calls tmos.Kill when ApplyBlock fails). New code is
listening ABCI clients for Quit and kills TM process if there were any
errors.
2020-07-08 12:07:11 +00:00
Anton Kaliaev
6e434338ec
abci/types: add comment for TotalVotingPower ( #5081 )
...
Refs #4581
2020-07-03 10:24:12 +00:00
Marko
7e2cc1db5e
linter: (1/2) enable errcheck ( #5064 )
...
## Description
partially cleanup in preparation for errcheck
i ignored a bunch of defer errors in tests but with the update to go 1.14 we can use `t.Cleanup(func() { if err := <>; err != nil {..}}` to cover those errors, I will do this in pr number two of enabling errcheck.
ref #5059
2020-07-01 15:13:11 +00:00
Erik Grinaker
04b8cf7879
deps: bump tm-db to 0.6.0 ( #5058 )
2020-06-29 16:07:37 +02:00
Anton Kaliaev
0c7fd316eb
abci/example/kvstore: decrease val power by 1 upon equivocation ( #5056 )
...
in `persistent_kvstore`
2020-06-26 11:58:27 +00:00
Marko
5412426ae8
indexer: remove index filtering ( #5006 )
...
Co-authored-by: Anton Kaliaev <anton.kalyaev@gmail.com >
2020-06-23 17:42:10 +02:00
Anton Kaliaev
ceac02b891
types: add AppVersion to ConsensusParams ( #5031 )
...
Co-authored-by: JamesRay <66258875@qq.com >
making it possible to change app version via EndBlock
2020-06-23 12:14:16 +04:00
Marko
73e22a3c5a
abci: proto files follow same path ( #5039 )
...
## Description
have the defined abci proto types follow the same directory structure as in abci folder.
Closes: #XXX
2020-06-23 05:38:50 +00:00
Marko
dedf0d2350
proto: folder structure adhere to buf ( #5025 )
2020-06-22 10:00:51 +02:00
Marko
51da4fe356
types: rename partsheader to partsetheader ( #5029 )
...
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2020-06-22 09:38:03 +02:00