Callum Waters
933256c862
node start up phases
2022-11-01 11:26:46 +01:00
Sergio Mena
3136b7a084
Revert make proto-gen in #9590 ( #9621 )
2022-10-25 12:44:55 +02:00
Rootul P
3bd2153136
docs: clarify BlockIDFlag variants ( #9590 )
...
* docs: clarify BlockIDFlag variants
* Update proto/tendermint/types/types.proto
Co-authored-by: Sergio Mena <sergio@informal.systems >
* Update proto/tendermint/types/types.proto
Co-authored-by: Sergio Mena <sergio@informal.systems >
* Update spec/core/data_structures.md
Co-authored-by: Sergio Mena <sergio@informal.systems >
* Update spec/core/data_structures.md
Co-authored-by: Sergio Mena <sergio@informal.systems >
* make proto-gen
Co-authored-by: Sergio Mena <sergio@informal.systems >
2022-10-21 22:33:37 +02:00
Callum Waters
a0ed437942
config: cleaner separation of tests ( #9421 )
2022-09-22 12:42:25 +02:00
Callum Waters
e84d43ec93
cli: add --hard flag to rollback command to remove block as well ( #9261 )
...
Co-authored-by: Levi Aul <levi@leviaul.com >
2022-09-21 09:51:22 +02:00
Riccardo Montagnin
8e90d294ca
feat: support HTTPS inside websocket ( #9416 )
2022-09-13 10:02:19 +02:00
Julien Robert
101bf50e71
refactor: migrate to cosmos/gogoproto ( #9356 )
...
* refactor: migrate to `cosmos/gogoproto`
* add changelog
* Update Makefile
Co-authored-by: Thane Thomson <connect@thanethomson.com >
* update link
Co-authored-by: Thane Thomson <connect@thanethomson.com >
2022-09-06 07:28:37 -04:00
samricotta
2ff11e5bc2
Update rpc client header ( #9276 )
...
* Update rpc client header
2022-09-01 14:35:07 +02:00
Thane Thomson
cceea4de22
chore: Format and fix lints ( #9336 )
...
* make format
Signed-off-by: Thane Thomson <connect@thanethomson.com >
* Fix linting directives
Signed-off-by: Thane Thomson <connect@thanethomson.com >
* make mockery
Signed-off-by: Thane Thomson <connect@thanethomson.com >
* Appease CI linter
Signed-off-by: Thane Thomson <connect@thanethomson.com >
* Appease CI linter
Signed-off-by: Thane Thomson <connect@thanethomson.com >
Signed-off-by: Thane Thomson <connect@thanethomson.com >
2022-08-30 12:28:46 -04:00
Sergio Mena
3233568cee
Added PrepareProposal and ProcessProposal data CHANGELOG_PENDING.md. Reworked UPGRADING.md ( #9315 )
...
* master-->main in `CONTRIBUTING.md`
* Added feature branches in `CONTRIBUTING.md`
* Fixes to `UPGRADING.md`
* [cherrypicked] docs: minor tweaks (#5404 )
* docs: fix /validators description
Refs https://github.com/tendermint/spec/pull/169
* consensus: remove nil err from logging statement
* update UPGRADING.md
* note about LightBlocks
* Reworked "Unreleased" section of `UPGRADING.md`
* Added PrepareProposal and ProcessProposal to `CHANGELOG_PENDING.md`
* Apply suggestions from @thanethomson's code review
Co-authored-by: Thane Thomson <connect@thanethomson.com >
* Addressed @tychoish's comment
Co-authored-by: Anton Kaliaev <anton.kalyaev@gmail.com >
Co-authored-by: Thane Thomson <connect@thanethomson.com >
2022-08-26 23:53:13 +02:00
Sergio Mena
50b5c23d88
Merge branch 'feature/abci++ppp'
2022-08-22 17:16:17 +02:00
Callum Waters
b37f062619
e2e: add evidence tests ( #9292 )
2022-08-22 13:33:47 +02:00
samricotta
aa303edaef
Forward port discard abci responses change ( #9286 )
...
* Backport of sam/abci-responses (#9090 ) (#9159 )
Signed-off-by: Thane Thomson <connect@thanethomson.com >
Co-authored-by: William Banfield <4561443+williambanfield@users.noreply.github.com >
Co-authored-by: Thane Thomson <connect@thanethomson.com >
2022-08-22 12:53:01 +02:00
Callum Waters
2d8df1bd4e
proto: deduplicate consensus params ( #9287 )
2022-08-22 10:50:21 +02:00
Thane Thomson
daaf5d6441
docs: Update all docs to prepare for v0.37 ( #9243 )
...
* Update docs references from master to main
Signed-off-by: Thane Thomson <connect@thanethomson.com >
* Update DOCS_README to reflect current reality
Signed-off-by: Thane Thomson <connect@thanethomson.com >
* Update vuepress config with current versions and updated discussions link
Signed-off-by: Thane Thomson <connect@thanethomson.com >
* Update generated docs versions
Signed-off-by: Thane Thomson <connect@thanethomson.com >
* Update docs build to use temp folder instead of home
Signed-off-by: Thane Thomson <connect@thanethomson.com >
* Document build-docs Makefile target
Signed-off-by: Thane Thomson <connect@thanethomson.com >
* Add serve-docs Makefile target to serve local build of docs
Signed-off-by: Thane Thomson <connect@thanethomson.com >
* Ensure 404 page is copied during docs build
Signed-off-by: Thane Thomson <connect@thanethomson.com >
* Redirect /master/ to /main/
Signed-off-by: Thane Thomson <connect@thanethomson.com >
* Attempt to resolve #7908
Signed-off-by: Thane Thomson <connect@thanethomson.com >
* Update OpenAPI references from master to main
Signed-off-by: Thane Thomson <connect@thanethomson.com >
* Update CHANGELOG references from master to main
Signed-off-by: Thane Thomson <connect@thanethomson.com >
* Update Docker readme references from master to main
Signed-off-by: Thane Thomson <connect@thanethomson.com >
* Update UPGRADING references from master to main
Signed-off-by: Thane Thomson <connect@thanethomson.com >
* Update package-specific documentation references from master to main
Signed-off-by: Thane Thomson <connect@thanethomson.com >
* Update spec references from master to main
Signed-off-by: Thane Thomson <connect@thanethomson.com >
* Update all code comment references to docs site from master to main
Signed-off-by: Thane Thomson <connect@thanethomson.com >
* Build v0.34.x as "latest"
Signed-off-by: Thane Thomson <connect@thanethomson.com >
* Explicitly mark v0.34 docs as latest in version selector
Signed-off-by: Thane Thomson <connect@thanethomson.com >
* Update all links from docs.tendermint.com/main to docs.tendermint.com/latest
Signed-off-by: Thane Thomson <connect@thanethomson.com >
* ci: Redeploy docs on pushes to v0.34.x
Signed-off-by: Thane Thomson <connect@thanethomson.com >
* Temporarily copy spec directory into docs while building
Signed-off-by: Thane Thomson <connect@thanethomson.com >
* Add nav link to main and clearly mark as unstable
Signed-off-by: Thane Thomson <connect@thanethomson.com >
* Revert to only publishing docs in nav for v0.34 and v0.33 with no latest
Signed-off-by: Thane Thomson <connect@thanethomson.com >
* Link to docs.tendermint.com/v0.34 from RFCs
Signed-off-by: Thane Thomson <connect@thanethomson.com >
* Rather just use main for all docs.tendermint.com references on main branch
Signed-off-by: Thane Thomson <connect@thanethomson.com >
* Rename GitHub tree links from master to main
Signed-off-by: Thane Thomson <connect@thanethomson.com >
* Update link for ABCI Rust client
Signed-off-by: Thane Thomson <connect@thanethomson.com >
* Update github links from master to main
Signed-off-by: Thane Thomson <connect@thanethomson.com >
* Update badges in root readme
Signed-off-by: Thane Thomson <connect@thanethomson.com >
* Remove codecov badge since we do not use it any more
Signed-off-by: Thane Thomson <connect@thanethomson.com >
* Remove Java and Kotlin tutorials
Signed-off-by: Thane Thomson <connect@thanethomson.com >
* Remove specs from docs build
Signed-off-by: Thane Thomson <connect@thanethomson.com >
* Migrate spec links to GitHub repo from docs site
Signed-off-by: Thane Thomson <connect@thanethomson.com >
* Remove references to non-existent PEX reactor spec
Signed-off-by: Thane Thomson <connect@thanethomson.com >
* Fix linting badge in README
Signed-off-by: Thane Thomson <connect@thanethomson.com >
Signed-off-by: Thane Thomson <connect@thanethomson.com >
2022-08-19 13:18:33 -04:00
Sergio Mena
7dc4f934b0
Merge branch main into feature/abci++ppp
2022-08-12 13:59:19 +02:00
Jacob Gadikian
a6dde14ec4
do not use ioutil ( #9206 )
2022-08-10 14:35:14 -04:00
Sergio Mena
d268e56383
Sync PrepareProposal with Spec. Main part ( #9158 )
...
* ----start----
* [PARTIAL cherry-pick] ABCI Vote Extension 2 (#6885 )
* Cherry-picked #6567 : state/types: refactor makeBlock, makeBlocks and makeTxs (#6567 )
* [Cherrypicked] types: remove panic from block methods (#7501 )
* [cherrypicked] abci++: synchronize PrepareProposal with the newest version of the spec (#8094 )
This change implements the logic for the PrepareProposal ABCI++ method call. The main logic for creating and issuing the PrepareProposal request lives in execution.go and is tested in a set of new tests in execution_test.go. This change also updates the mempool mock to use a mockery generated version and removes much of the plumbing for the no longer used ABCIResponses.
* make proto-gen
* Backported EvidenceList's method ToABCI from #7961
* make build
* Fix mockery for Mempool
* mockery
* Backported abci Application mocks from #7961
* mockery2
* Fixed new PrepareProposal test cases in state/execution_test.go
* Fixed returned errors in consensus/state.go
* lint
* Addressed @cmwaters' comment
Co-authored-by: mconcat <monoidconcat@gmail.com >
Co-authored-by: JayT106 <JayT106@users.noreply.github.com >
Co-authored-by: Sam Kleinman <garen@tychoish.com >
Co-authored-by: William Banfield <4561443+williambanfield@users.noreply.github.com >
2022-08-03 17:24:24 +02:00
Sergio Mena
2164883501
Old PrepareProposal and vote extension integration on feature/abci++ppp ( #9117 )
...
* abci: PrepareProposal-VoteExtension integration [2nd try] (#7821 )
* PrepareProposal-VoteExtension integration (#6915 )
* make proto-gen
* Fix protobuf crash in e2e nightly tests
* Update types/vote.go
Co-authored-by: M. J. Fromberger <fromberger@interchain.io >
* Addressed @creachadair's comments
Co-authored-by: mconcat <monoidconcat@gmail.com >
Co-authored-by: M. J. Fromberger <fromberger@interchain.io >
* Proto changes
* make proto-gen
* Fixed UTs
* bump
* lint
* lint2
* lint3
* lint4
* lint5
* lint6
* no_lint
Co-authored-by: mconcat <monoidconcat@gmail.com >
Co-authored-by: M. J. Fromberger <fromberger@interchain.io >
2022-08-03 13:29:15 +02:00
Sergio Mena
61619ab072
Update feature/abci++ppp branch with latest infra changes in main ( #9157 )
...
* Update CODEOWNERS to use teams (#9129 )
* Update CODEOWNERS to use teams
Update the `CODEOWNERS` file to use the
@tendermint/tendermint-engineering and @tendermint/tendermint-research
teams as opposed to adding people one by one. This makes repository
administration somewhat easier to manage, especially when
onboarding/offboarding people.
Signed-off-by: Thane Thomson <connect@thanethomson.com >
* Add Ethan as superuser
Signed-off-by: Thane Thomson <connect@thanethomson.com >
* Prepare `main` to become new default branch (#9095 )
* Update Makefile with changes from #7372
Signed-off-by: Thane Thomson <connect@thanethomson.com >
* Sync main GitHub config with master and update
Signed-off-by: Thane Thomson <connect@thanethomson.com >
* Remove unnecesary dot folders
Signed-off-by: Thane Thomson <connect@thanethomson.com >
* Sync dotfiles
Signed-off-by: Thane Thomson <connect@thanethomson.com >
* Remove unused Jepsen tests for now
Signed-off-by: Thane Thomson <connect@thanethomson.com >
* tools: remove k8s (#6625 )
Remove mintnet as discussed on team call.
closes #1941
* Restore nightly fuzz testing of P2P addrbook and pex
Signed-off-by: Thane Thomson <connect@thanethomson.com >
* Fix YAML lints
Signed-off-by: Thane Thomson <connect@thanethomson.com >
* Fix YAML formatting nits
Signed-off-by: Thane Thomson <connect@thanethomson.com >
* More YAML nits
Signed-off-by: Thane Thomson <connect@thanethomson.com >
* github: fix linter configuration errors and occluded errors (#6400 )
* Minor fixes to OpenAPI spec to sync with structs on main
Signed-off-by: Thane Thomson <connect@thanethomson.com >
* Remove .github/auto-comment.yml - does not appear to be used
Signed-off-by: Thane Thomson <connect@thanethomson.com >
* Add issue config with link to discussions
Signed-off-by: Thane Thomson <connect@thanethomson.com >
* Adjust issue/PR templates to suit current process
Signed-off-by: Thane Thomson <connect@thanethomson.com >
* Remove unused RC branch config from release workflow
Signed-off-by: Thane Thomson <connect@thanethomson.com >
* Fix wildcard matching in build jobs config
Signed-off-by: Thane Thomson <connect@thanethomson.com >
* Document markdownlint config
Signed-off-by: Thane Thomson <connect@thanethomson.com >
* Restore manual E2E test group config
Signed-off-by: Thane Thomson <connect@thanethomson.com >
* Document linter workflow with local execution instructions
Signed-off-by: Thane Thomson <connect@thanethomson.com >
* Document and fix minor nit in Super-Linter markdownlint config
Signed-off-by: Thane Thomson <connect@thanethomson.com >
* Update .github/ISSUE_TEMPLATE/bug-report.md
Co-authored-by: William Banfield <4561443+williambanfield@users.noreply.github.com >
* Apply suggestions from code review
Co-authored-by: William Banfield <4561443+williambanfield@users.noreply.github.com >
* Update pull request template to add language around discussions/issues
Signed-off-by: Thane Thomson <connect@thanethomson.com >
* .golangci.yml: Deleted commented-out lines
Signed-off-by: Thane Thomson <connect@thanethomson.com >
* ci: Drop "-2" from e2e-nightly-fail workflow
Signed-off-by: Thane Thomson <connect@thanethomson.com >
* Address triviality concern in PR template
Signed-off-by: Thane Thomson <connect@thanethomson.com >
Co-authored-by: Marko <marbar3778@yahoo.com >
Co-authored-by: Sam Kleinman <garen@tychoish.com >
Co-authored-by: William Banfield <4561443+williambanfield@users.noreply.github.com >
Co-authored-by: Thane Thomson <connect@thanethomson.com >
Co-authored-by: Marko <marbar3778@yahoo.com >
Co-authored-by: Sam Kleinman <garen@tychoish.com >
Co-authored-by: William Banfield <4561443+williambanfield@users.noreply.github.com >
2022-08-03 11:06:54 +02:00
Callum Waters
1e9d81fb8a
chore: bump go to 1.18 ( #9147 )
2022-08-01 16:45:25 +02:00
Callum Waters
49ec3b9780
chore: lint repo (use american english) ( #9144 )
2022-08-01 14:24:49 +02:00
Thane Thomson
85636f6a00
Prepare main to become new default branch ( #9095 )
...
* Update Makefile with changes from #7372
Signed-off-by: Thane Thomson <connect@thanethomson.com >
* Sync main GitHub config with master and update
Signed-off-by: Thane Thomson <connect@thanethomson.com >
* Remove unnecesary dot folders
Signed-off-by: Thane Thomson <connect@thanethomson.com >
* Sync dotfiles
Signed-off-by: Thane Thomson <connect@thanethomson.com >
* Remove unused Jepsen tests for now
Signed-off-by: Thane Thomson <connect@thanethomson.com >
* tools: remove k8s (#6625 )
Remove mintnet as discussed on team call.
closes #1941
* Restore nightly fuzz testing of P2P addrbook and pex
Signed-off-by: Thane Thomson <connect@thanethomson.com >
* Fix YAML lints
Signed-off-by: Thane Thomson <connect@thanethomson.com >
* Fix YAML formatting nits
Signed-off-by: Thane Thomson <connect@thanethomson.com >
* More YAML nits
Signed-off-by: Thane Thomson <connect@thanethomson.com >
* github: fix linter configuration errors and occluded errors (#6400 )
* Minor fixes to OpenAPI spec to sync with structs on main
Signed-off-by: Thane Thomson <connect@thanethomson.com >
* Remove .github/auto-comment.yml - does not appear to be used
Signed-off-by: Thane Thomson <connect@thanethomson.com >
* Add issue config with link to discussions
Signed-off-by: Thane Thomson <connect@thanethomson.com >
* Adjust issue/PR templates to suit current process
Signed-off-by: Thane Thomson <connect@thanethomson.com >
* Remove unused RC branch config from release workflow
Signed-off-by: Thane Thomson <connect@thanethomson.com >
* Fix wildcard matching in build jobs config
Signed-off-by: Thane Thomson <connect@thanethomson.com >
* Document markdownlint config
Signed-off-by: Thane Thomson <connect@thanethomson.com >
* Restore manual E2E test group config
Signed-off-by: Thane Thomson <connect@thanethomson.com >
* Document linter workflow with local execution instructions
Signed-off-by: Thane Thomson <connect@thanethomson.com >
* Document and fix minor nit in Super-Linter markdownlint config
Signed-off-by: Thane Thomson <connect@thanethomson.com >
* Update .github/ISSUE_TEMPLATE/bug-report.md
Co-authored-by: William Banfield <4561443+williambanfield@users.noreply.github.com >
* Apply suggestions from code review
Co-authored-by: William Banfield <4561443+williambanfield@users.noreply.github.com >
* Update pull request template to add language around discussions/issues
Signed-off-by: Thane Thomson <connect@thanethomson.com >
* .golangci.yml: Deleted commented-out lines
Signed-off-by: Thane Thomson <connect@thanethomson.com >
* ci: Drop "-2" from e2e-nightly-fail workflow
Signed-off-by: Thane Thomson <connect@thanethomson.com >
* Address triviality concern in PR template
Signed-off-by: Thane Thomson <connect@thanethomson.com >
Co-authored-by: Marko <marbar3778@yahoo.com >
Co-authored-by: Sam Kleinman <garen@tychoish.com >
Co-authored-by: William Banfield <4561443+williambanfield@users.noreply.github.com >
2022-07-29 15:20:03 -04: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
Joe Abbey
4a1df4911d
fix: "Lazy" Stringers to defer Sprintf and Hash until logs print ( #8845 )
2022-06-23 14:56:34 -04:00
M. J. Fromberger
7fa34c63af
Set a cap on the length of subscription queries. ( #8349 )
...
A manual backport of #7263 .
As a safety measure, don't allow a query string to be unreasonably long. The
query filter is not especially efficient, so a query that needs more than basic
detail should filter coarsely in the subscriber and refine on the client side.
This affects Subscribe and TxSearch queries.
2022-04-14 08:15:18 -07:00
Sam Kleinman
efddab0734
rpc: avoid leaking threads ( #8329 )
2022-04-13 13:28:03 -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
Thane Thomson
12e3419f2b
rpc: Add experimental config params to allow for subscription buffer size control (tm v0.34.x) ( #7230 )
...
A workaround for #6729 . Add parameters to control buffer sizes for
event subscription RPC clients. On some networks, buffering causes
clients to be dropped and/or events to be lost.
For additional context, see the discussion on #7188 .
- Add experimental_subscription_buffer_size config parameter
- Add experimental_websocket_write_buffer_size config parameter
- Add experimental_close_on_slow_client config parameter
Co-authored-by: M. J. Fromberger <fromberger@interchain.io >
2021-11-09 12:35:45 -08:00
dependabot[bot]
d0031b0503
build(deps): Bump github.com/go-kit/kit from 0.10.0 to 0.12.0 ( #7213 )
...
* build(deps): Bump github.com/go-kit/kit from 0.10.0 to 0.12.0
Bumps [github.com/go-kit/kit](https://github.com/go-kit/kit ) from 0.10.0 to 0.12.0.
- [Release notes](https://github.com/go-kit/kit/releases )
- [Commits](https://github.com/go-kit/kit/compare/v0.10.0...v0.12.0 )
---
updated-dependencies:
- dependency-name: github.com/go-kit/kit
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
* add nolint
* fix lint
* fix build
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: tycho garen <garen@tychoish.com >
2021-11-08 14:39:00 -05:00
Sam Kleinman
4ef140f6ca
lint: cleanup pending lint errors ( #7237 )
2021-11-04 08:08:55 -04:00
mergify[bot]
0366c2b688
rpc: log update (backport #6825 ) ( #6826 )
2021-08-14 09:54:02 -04:00
mergify[bot]
da9eefd111
rpc: add chunked rpc interface (backport #6445 ) ( #6717 )
...
* rpc: add chunked rpc interface (#6445 )
(cherry picked from commit d9134063e7 )
# Conflicts:
# light/proxy/routes.go
# node/node.go
# rpc/core/net.go
# rpc/core/routes.go
* fix conflicts
Co-authored-by: Sam Kleinman <garen@tychoish.com >
Co-authored-by: marbar3778 <marbar3778@yahoo.com >
2021-07-14 09:22:53 +00:00
Callum Waters
2c2f511f24
light: correctly handle contexts (backport -> v0.34.x) ( #6685 )
2021-07-09 14:30:33 +02:00
Callum Waters
7869f5ec1d
light/evidence: handle FLA backport ( #6331 )
2021-04-08 09:49:25 -07:00
mergify[bot]
b7a4d5e7ba
fix: jsonrpc url parsing and dial function ( #6264 ) ( #6288 )
...
This PR fixes how the jsonrpc parses the URL, and how the dial function connects to the RPC.
Closes: https://github.com/tendermint/tendermint/issues/6260
(cherry picked from commit 9ecfcc93a6 )
Co-authored-by: Frojdi Dymylja <33157909+fdymylja@users.noreply.github.com >
2021-03-29 11:05:03 +00:00
mergify[bot]
b00cac9368
rpc: index block events to support block event queries (bp #6226 ) ( #6261 )
2021-03-22 15:01:25 -04:00
mergify[bot]
4e25703d58
rpc/jsonrpc/server: return an error in WriteRPCResponseHTTP(Error) (bp #6204 ) ( #6230 )
...
* rpc/jsonrpc/server: return an error in WriteRPCResponseHTTP(Error) (#6204 )
instead of panicking
Closes #5529
(cherry picked from commit 00b9524168 )
# Conflicts:
# CHANGELOG_PENDING.md
# rpc/jsonrpc/server/http_json_handler.go
# rpc/jsonrpc/server/http_server.go
# rpc/jsonrpc/server/http_server_test.go
# rpc/jsonrpc/server/http_uri_handler.go
* resolve conflicts
* fix linting
* fix conflict
Co-authored-by: Anton Kaliaev <anton.kalyaev@gmail.com >
Co-authored-by: Marko Baricevic <marbar3778@yahoo.com >
2021-03-17 14:55:05 +00:00
mergify[bot]
1b5697a41d
mempool/rpc: log grooming (bp #6201 ) ( #6203 )
2021-03-04 09:04:13 -05:00
mergify[bot]
a047a4a70f
logs: cleanup ( #6198 )
...
Co-authored-by: Marko <marbar3778@yahoo.com >
2021-03-04 10:42:19 +00:00
mergify[bot]
52b1d90f56
rpc/jsonrpc: Unmarshal RPCRequest correctly (bp #6191 ) ( #6193 )
...
* rpc/jsonrpc: Unmarshal RPCRequest correctly (#6191 )
i.e. without double pointer. With double pointer, it was possible to
submit `null` value, which will crash the server.
```
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x189ddc0]
goroutine 1 [running]:
github.com/tendermint/tendermint/rpc/jsonrpc/types.(*RPCRequest).UnmarshalJSON(0xc0000147e0, 0xc00029f201, 0x4, 0x1ff, 0x883baa0, 0xc0000147e0)
/Users/anton/go/src/github.com/tendermint/tendermint/rpc/jsonrpc/types/types.go:70 +0x100
encoding/json.(*decodeState).literalStore(0xc000216bb0, 0xc00029f201, 0x4, 0x1ff, 0x1998800, 0xc0000147e0, 0x199, 0xc000231700, 0x10e0a5e, 0x197)
/usr/local/Cellar/go/1.16/libexec/src/encoding/json/decode.go:860 +0x30ce
encoding/json.(*decodeState).value(0xc000216bb0, 0x1998800, 0xc0000147e0, 0x199, 0x1998800, 0xc0000147e0)
/usr/local/Cellar/go/1.16/libexec/src/encoding/json/decode.go:384 +0x40c
encoding/json.(*decodeState).array(0xc000216bb0, 0x18df040, 0xc0001be540, 0x16, 0xc000216bd8, 0x10e405b)
/usr/local/Cellar/go/1.16/libexec/src/encoding/json/decode.go:558 +0x365
encoding/json.(*decodeState).value(0xc000216bb0, 0x18df040, 0xc0001be540, 0x16, 0x16, 0x6e)
/usr/local/Cellar/go/1.16/libexec/src/encoding/json/decode.go:360 +0x22f
encoding/json.(*decodeState).unmarshal(0xc000216bb0, 0x18df040, 0xc0001be540, 0xc000216bd8, 0x0)
/usr/local/Cellar/go/1.16/libexec/src/encoding/json/decode.go:180 +0x2c9
encoding/json.Unmarshal(0xc00029f200, 0x6, 0x200, 0x18df040, 0xc0001be540, 0x0, 0x0)
/usr/local/Cellar/go/1.16/libexec/src/encoding/json/decode.go:107 +0x15d
```
(cherry picked from commit fe4e97afe0 )
# Conflicts:
# CHANGELOG_PENDING.md
* fix conflict
Co-authored-by: Anton Kaliaev <anton.kalyaev@gmail.com >
2021-03-02 14:46:48 +04:00
Callum Waters
b021ad5b7a
test: don't use foo-bar.net in TestHTTPClientMakeHTTPDialer ( #5997 ) ( #6047 )
...
This test relied on connecting to the external site `foo-bar.net`, and (predictably) the site went down and broke all of our CI runs. This changes it to use local HTTP servers instead.
Co-authored-by: Erik Grinaker <erik@interchain.berlin >
2021-02-04 13:11:07 +04: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
Aleksandr Bezobchuk
53463b3fef
rpc: fix content-type header
2020-11-16 10:54:34 -05:00
Callum Waters
9d354c842e
evidence: structs can independently form abci evidence ( #5610 )
2020-11-05 10:38:42 +01:00
Marko
9379bc92fd
fix lint failures with 1.31 ( #5489 )
2020-10-22 13:36:08 +02:00
Anton Kaliaev
55ff694aa6
light/rpc: fix ABCIQuery ( #5375 )
...
Closes #5106
2020-10-22 12:17:53 +02:00
Marko
09982ae407
backport block size fixes ( #5492 )
...
* mempool: length prefix txs when getting them from mempool (#5483 )
* correctly calculate evidence data size (#5482 )
* block: use commit sig size instead of vote size (#5490 )
* tx: reduce function to one parameter (#5493 )
2020-10-13 18:07:54 +02:00
Erik Grinaker
58b4deca86
blockstore: fix race conditions when loading data ( #5382 )
...
Fixes #5377 and comments in #4588 (review).
2020-09-23 10:13:43 +04:00
Anton Kaliaev
85a4be87a7
rpc/client: take context as first param ( #5347 )
...
Closes #5145
also applies to light/client
2020-09-23 09:21:57 +04:00