Commit Graph

469 Commits

Author SHA1 Message Date
mergify[bot] 0a4370bff0
test(baseapp): Refactor tx selector tests + better comments (backport #19284) (#19288)
Co-authored-by: Facundo Medica <14063057+facundomedica@users.noreply.github.com>
Co-authored-by: Facundo <facundomedica@gmail.com>
2024-02-03 14:40:44 +01:00
mergify[bot] 2a10f13d3e
fix: skip same-sender non-sequential sequence and then add others txs new solution (backport #19177) (#19250)
Co-authored-by: Brann Bronzebeard <90186866+ZiHengLee@users.noreply.github.com>
Co-authored-by: Facundo <facundomedica@gmail.com>
Co-authored-by: Facundo Medica <14063057+facundomedica@users.noreply.github.com>
Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>
2024-01-29 13:49:08 -05:00
Eric Warehime 9e6011429b
fix(baseapp): Reset GasMeter before deliverTX v0.47.x backport (#18826) 2023-12-19 17:09:08 -08:00
mergify[bot] 7d1278270c
feat(baseapp): expose `Mempool` (backport #17954) (#18010)
Co-authored-by: Devon Bear <itsdevbear@berachain.com>
Co-authored-by: Julien Robert <julien@rbrt.fr>
2023-10-09 11:46:51 +00:00
mergify[bot] a6f79a9117
fix(baseapp): select txs correctly with no-op mempool (backport #17769) (#17848)
Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>
Co-authored-by: Aleksandr Bezobchuk <aleks.bezobchuk@gmail.com>
2023-09-25 21:41:43 +02:00
mmsqe c79964c537
chore: log panic recovery in runTx (backport: #17556) (#17671)
Co-authored-by: Cal Bera <calbera@berachain.com>
2023-09-11 09:08:43 +02:00
mergify[bot] 4c18ff66b8
fix: check tx gas limit against block gas limit (backport #16547) (#17161)
Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>
Co-authored-by: Julien Robert <julien@rbrt.fr>
Co-authored-by: Devon Bear <itsdevbear@berachain.com>
Co-authored-by: Facundo Medica <14063057+facundomedica@users.noreply.github.com>
2023-08-03 14:19:12 +00:00
Julien Robert dda81a2275
refactor: avoid breaking change due to #16415 included in v0.50 (#16430) 2023-06-06 16:29:25 +02:00
mergify[bot] ba2f1be04c
chore: change prepare and process proposal to be NoOps by default (backport #16407) (#16410) 2023-06-02 17:49:29 +02:00
Marko 41a32fe4e0
feat(baseapp): add setter for circuit breaker (backport) (#16290) 2023-05-26 12:35:14 +00:00
mergify[bot] 273386fda4
feat: add Close method for resource cleanup in graceful shutdown (backport #16193) (#16204)
Co-authored-by: yihuang <huang@crypto.com>
Co-authored-by: Julien Robert <julien@rbrt.fr>
2023-05-19 09:56:58 +00:00
mergify[bot] fdb9fbeba0
fix: correct path required proto testdata (backport #14991) (#16083)
Co-authored-by: Julien Robert <julien@rbrt.fr>
2023-05-10 18:38:09 +02:00
mergify[bot] 89fd78e4f3
fix: use initialHeight correctly (backport #15789) (#15792)
Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>
Co-authored-by: Facundo Medica <facundomedica@gmail.com>
2023-04-11 19:31:52 +00:00
mergify[bot] efaea3812c
fix: remove unnecessary cms typecasting (backport #14054) (#15668)
Co-authored-by: Javier Su <javier.su.weijie@gmail.com>
Co-authored-by: Julien Robert <julien@rbrt.fr>
2023-04-03 11:30:57 +02:00
mergify[bot] b979f8b083
feat: auto-set block timestamp for historical queries (backport #15448) (#15573)
Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>
Co-authored-by: Aleksandr Bezobchuk <aleks.bezobchuk@gmail.com>
2023-03-28 18:05:41 -03:00
mergify[bot] 5a2545db2d
fix: always reset the state for Prepare and Process Proposal (backport #15487) (#15503)
Co-authored-by: Facundo Medica <14063057+facundomedica@users.noreply.github.com>
Co-authored-by: Facundo Medica <facundomedica@gmail.com>
Co-authored-by: Marko <marbar3778@yahoo.com>
2023-03-22 18:01:55 +00:00
mergify[bot] 828794e85c
fix: remove previous header in Prepare/Process Proposal + provide chain id in baseapp + fix context for verifying txs (backport #15303) (#15377)
Co-authored-by: Facundo Medica <14063057+facundomedica@users.noreply.github.com>
Co-authored-by: Facundo Medica <facundomedica@gmail.com>
2023-03-13 19:25:34 +00:00
mergify[bot] 818f6a047e
feat: Create ABCI++ Verfication Methods (backport #15298) (#15314)
Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>
Co-authored-by: Aleksandr Bezobchuk <aleks.bezobchuk@gmail.com>
Co-authored-by: Julien Robert <julien@rbrt.fr>
2023-03-08 21:20:38 +00:00
Julien Robert 8b60d4112b
refactor: migrate to CometBFT in v0.47 (#15060) 2023-02-20 16:36:58 +01:00
mergify[bot] fa4b6f6908
fix: avoid broadcasting tx through query (backport #15044) (#15046)
Co-authored-by: Facundo Medica <14063057+facundomedica@users.noreply.github.com>
2023-02-16 16:12:56 +00:00
mergify[bot] 2e80d3b8b1
fix: set block gas meter on prepare/process proposal (backport #15012) (#15040)
Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>
Co-authored-by: Julien Robert <julien@rbrt.fr>
2023-02-15 16:30:08 -05:00
mergify[bot] 3a1c797651
feat: add config `iavl-lazy-loading` to enable lazy loading of iavl store (backport #14189) (#14863)
Co-authored-by: yihuang <huang@crypto.com>
Co-authored-by: marbar3778 <marbar3778@yahoo.com>
2023-02-01 22:17:09 +01:00
mergify[bot] 30bd414d83
fix: improve rpc message when app is at height 0 (backport #14692) (#14703)
Co-authored-by: Julien Robert <julien@rbrt.fr>
2023-01-19 23:58:16 +01:00
mergify[bot] 469a00e3c7
fix: add missing postCtx (backport #14613) (#14614)
Co-authored-by: Vladislav Varadinov <vladislav.varadinov@gmail.com>
2023-01-13 17:45:33 +00:00
mergify[bot] 42aa3e15dd
feat(app): Update post handlers to incorporate the `runMsg` success bool (backport #13940) (#14586)
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
2023-01-13 17:49:26 +01:00
mergify[bot] 9186a1e3eb
docs: update docs links to v0.47 (backport #14572) (#14591)
Co-authored-by: Julien Robert <julien@rbrt.fr>
2023-01-12 15:46:55 +01:00
mergify[bot] ffb27662e4
fix: use deliverState in prepare and processProposal at height 1 (backport #14505) (#14533)
Co-authored-by: Facundo Medica <14063057+facundomedica@users.noreply.github.com>
Co-authored-by: Julien Robert <julien@rbrt.fr>
2023-01-09 08:58:13 +01:00
mergify[bot] 8ed17b9531
fix: return anteEvents when postHandler fail (backport #14448) (#14458) 2022-12-31 14:12:47 +00:00
mergify[bot] e8c6d1c7e9
refactor: Baseapp audit changes (backport #14379) (#14392)
Co-authored-by: Facundo Medica <14063057+facundomedica@users.noreply.github.com>
2022-12-22 21:22:26 +00:00
mergify[bot] 7d28bb1460
fix: panic recovery in PrepareProposal and ProcessProposal Handlers (backport #14381) (#14383)
Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>
2022-12-21 18:27:27 +00:00
mergify[bot] 5ed4075ba2
fix: improve baseapp event emission (backport #14356) (#14362)
Co-authored-by: Julien Robert <julien@rbrt.fr>
2022-12-19 23:16:12 +00:00
mergify[bot] 65a3ec71ef
feat: no-op mempool (backport #14297) (#14307)
Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>
2022-12-14 20:12:28 -05:00
mergify[bot] c61cf099cf
chore: cleanup baseapp tests (backport #14162) (#14180) 2022-12-06 21:03:43 +00:00
mergify[bot] e7afcca232
fix: state listener observe writes at wrong time (backport #13516) (#14137)
* fix: state listener observe writes at wrong time (#13516)

* fix: state listener observe writes at wrong time

Closes: #13457

Currently state listener is notified when the cache store write, which happens in commit event only, which breaks the current design.
The solution (as discussed in the issue) is to listen state writes on rootmulti store only.

It also changes the file streamer to output single data file for the writes in the whole block, since we can't distinguish writes from different stage of abci events.

It adds new config items for file streamer:
- streamers.file.output-metadata
- streamers.file.stop-node-on-error
- streamers.file.fsync

* synchronous abci call, and format doc

* fix comment

* update file streamer readme and fix typos

* typo

* fix: state listener observe writes at wrong time

Closes: #13457

Currently state listener is notified when the cache store write, which happens in commit event only, which breaks the current design.
The solution (as discussed in the issue) is to listen state writes on rootmulti store only.

It also changes the file streamer to output single data file for the writes in the whole block, since we can't distinguish writes from different stage of abci events.

It adds new config items for file streamer:
- streamers.file.output-metadata
- streamers.file.stop-node-on-error
- streamers.file.fsync

synchronous abci call, and format doc

fix comment

update file streamer readme and fix typos

typo

* improve UX of file streamer, make it immediately usable after enabled

- set default value to write_dir.
- make write_dir based on home directory by default.
- auto-create the directory if not exists.

* get homePage from opts

Co-authored-by: Marko <marbar3778@yahoo.com>
(cherry picked from commit 1f91ee2ee941fd9a1dd4bc3acecd753e3cb7e237)

# Conflicts:
#	CHANGELOG.md
#	baseapp/streaming.go
#	store/streaming/constructor.go
#	store/streaming/file/service.go

* fix changelog

* fix conflicts

Co-authored-by: yihuang <huang@crypto.com>
Co-authored-by: Julien Robert <julien@rbrt.fr>
2022-12-05 22:23:03 +00:00
mergify[bot] eb217576db
fix: remove duplicate ante events (backport #13983) (#14141) 2022-12-03 07:56:35 +00:00
mergify[bot] 01ca6d80d1
fix(baseapp): fix snapshot interval bug (backport #14049) (#14052)
* fix(baseapp): fix snapshot interval bug (#14049)

## Description
Fix for
Closes: #13766

---

### Author Checklist

*All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.*

I have...

- [ ] included the correct [type prefix](https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json) in the PR title
- [ ] added `!` to the type prefix if API or client breaking change
- [ ] targeted the correct branch (see [PR Targeting](https://github.com/cosmos/cosmos-sdk/blob/main/CONTRIBUTING.md#pr-targeting))
- [ ] provided a link to the relevant issue or specification
- [ ] followed the guidelines for [building modules](https://github.com/cosmos/cosmos-sdk/blob/main/docs/building-modules)
- [ ] included the necessary unit and integration [tests](https://github.com/cosmos/cosmos-sdk/blob/main/CONTRIBUTING.md#testing)
- [ ] added a changelog entry to `CHANGELOG.md`
- [ ] included comments for [documenting Go code](https://blog.golang.org/godoc)
- [ ] updated the relevant documentation or specification
- [ ] reviewed "Files changed" and left comments if necessary
- [ ] confirmed all CI checks have passed

### Reviewers Checklist

*All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.*

I have...

- [ ] confirmed the correct [type prefix](https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json) in the PR title
- [ ] confirmed `!` in the type prefix if API or client breaking change
- [ ] confirmed all author checklist items have been addressed
- [ ] reviewed state machine logic
- [ ] reviewed API design and naming
- [ ] reviewed documentation is accurate
- [ ] reviewed tests and test coverage
- [ ] manually tested (if applicable)

(cherry picked from commit 1ac7d3236e2301f476b5686e1640944381558026)

* fix changelog

Co-authored-by: Jeancarlo Barrios <JeancarloBarrios@users.noreply.github.com>
Co-authored-by: Julien Robert <julien@rbrt.fr>
2022-11-29 11:04:35 +01:00
mergify[bot] 2e77eafba3
docs: add docs about `x/auth/tx` (backport #14021) (#14034)
* docs: add docs about `x/auth/tx` (#14021)

* docs: add docs about `x/auth/tx`

* updates

* updates

* updates

* updates

* updates

* updates

* updates

Co-authored-by: Marko <marbar3778@yahoo.com>
(cherry picked from commit 6f329d70c6cc128c14189a6aa82b79add9798677)

# Conflicts:
#	api/cosmos/auth/v1beta1/query.pulsar.go
#	go.sum
#	simapp/go.sum
#	tests/go.sum
#	x/auth/types/query.pb.go

* bump deps (#14035)

* updates

* updates

Co-authored-by: Julien Robert <julien@rbrt.fr>
2022-11-27 23:01:15 +01:00
mergify[bot] 49d8a81af9
feat: sender mempool impl (backport #13888) (#13994)
* feat: sender mempool impl (#13888)

* draft sender mempool impl

* select

* nit

* random sender update

* nit

* prevent memory leak

* fix nil return

* small fixes

* added tests

* change count

* finish tx order test removed the three address test due to make the test to bloated when including non determinism

* remove unsued variable

* nit

* fix

* temoral commit braking

* nit most

* nit most

* final

* comments

* t

* comments

* test

* add nolint

* Fix comment

* golint comment

* golint

* improve format?

* more gosec disable

* Fix ctr usage

* use #nosec

* Update types/mempool/sender_nonce.go

* Kocubinski/random sender nonce (#13956)

* refactor

* fix iteration logic

* fix merge err

* import fixes

* derive order randomness from seed only

* gosec fix

* ignore gosec again

* comments

* property based

* minor fixes

* added property test

* comment

* fix imports

* comment

* Update types/mempool/sender_nonce_property_test.go

Co-authored-by: Matt Kocubinski <mkocubinski@gmail.com>

* remove unesessary loop

* improve function name

* Update types/mempool/sender_nonce.go

Co-authored-by: Facundo Medica <14063057+facundomedica@users.noreply.github.com>

* change import name

* change validation to be preemvtive

Co-authored-by: Matt Kocubinski <mkocubinski@gmail.com>
Co-authored-by: Facundo Medica <14063057+facundomedica@users.noreply.github.com>
(cherry picked from commit 908fda1f534e1a827c4e834e4ec29067c62c30dd)

# Conflicts:
#	types/mempool/nonce.go

* feat: sender mempool impl (#13888)

Co-authored-by: Jeancarlo Barrios <JeancarloBarrios@users.noreply.github.com>
Co-authored-by: Jeancarlo <jeancarlobarrios@gmail.com>
2022-11-24 11:06:47 +00:00
mergify[bot] 5a10af0920
extra check (#13846) (#13847)
(cherry picked from commit 7e69187e24fae565c7be9d7d9dd15a52fa8adbe8)

Co-authored-by: Marko <marbar3778@yahoo.com>
2022-11-13 00:16:29 +01:00
Matt Kocubinski d66b7fa189
feat: Settable PrepareProposal handler (#13831)
Co-authored-by: Jeancarlo Barrios <JeancarloBarrios@users.noreply.github.com>
2022-11-11 11:57:53 -06:00
Matt Kocubinski 61effe8260
feat: ABCI 1.0 baseapp integration (#13453) 2022-11-09 09:50:27 -06:00
Matt Kocubinski 2418c3ef2e
feat: nonce (sequence number) based mempool (#13645)
simple default mempool implementation

Co-authored-by: Jeancarlo <jeancarlobarrios@gmail.com>
2022-10-26 09:04:34 -05:00
Marko 04db139e8a
chore: move pruning to store (#13609)
* move pruning to store

* add changelog entry

Co-authored-by: Julien Robert <julien@rbrt.fr>
2022-10-24 14:02:17 +02:00
yihuang 15accd76fc
feat: support alternative query multistore (#13529)
* support customize query multistore

* Update CHANGELOG.md

* fix test

* Update baseapp/abci.go

Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>

* Update baseapp/baseapp.go

Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>

* Update baseapp/options.go

Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: Marko <marbar3778@yahoo.com>
Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>
2022-10-17 23:40:28 +08:00
Julien Robert 3c9b244f62
refactor: automate EventTypeMessage inclusion in every message execution (#13532) 2022-10-16 19:00:34 -04:00
Tyler 81d033e701
perf(x/auth): only check memo when memo is present (#13528) 2022-10-13 19:49:11 +00:00
Aaron Craelius f3a558c6b4
refactor!: require exported app wiring providers (#13292) 2022-10-10 20:27:44 +00:00
Marko 306a9a7170
feat!: consensus module (#12905) 2022-10-05 18:06:24 +00:00
Aleksandr Bezobchuk eb32125f8e
chore: improve ABCI 1.0 godocs (#13425) 2022-09-30 10:30:15 +00:00
yihuang a9f02d9cb7
fix: add gRPC nil/zero check in query (#13352) 2022-09-29 01:20:03 +00:00