Commit Graph

42 Commits

Author SHA1 Message Date
Tyler
f9f3bfb066
fix: do not allow unordered txs to have sequence values set (#24581)
Co-authored-by: Alex | Interchain Labs <alex@interchainlabs.io>
Co-authored-by: Aaron Craelius <aaronc@users.noreply.github.com>
2025-04-28 20:55:05 +00:00
Tyler
f5600147e5
fix: use unix nano in mempool for unordered nonces (#24579) 2025-04-25 20:35:24 +00:00
Alex | Interchain Labs
3c6deab626
chore: run modernize (#24356) 2025-04-03 10:42:20 -04:00
lido333
8cd9b20cbc
chore: slices Delete (#24164)
Co-authored-by: Alex | Interchain Labs <alex@interchainlabs.io>
2025-03-31 16:26:44 +00:00
Alex | Interchain Labs
7fd79df4e1
chore: fix all linting (#24101) 2025-03-21 15:04:36 -07:00
Tyler
7f7c41e4aa
feat: backport unordered transactions (#23708)
Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>
Co-authored-by: yihuang <huang@crypto.com>
Co-authored-by: Facundo <facundomedica@gmail.com>
Co-authored-by: Facundo Medica <14063057+facundomedica@users.noreply.github.com>
Co-authored-by: Alex | Interchain Labs <alex@interchainlabs.io>
2025-02-27 11:01:50 -08:00
mergify[bot]
e89009eac5
fix(mempool): data race in mempool prepare proposal handler (backport #21413) (#21541)
Co-authored-by: yihuang <huang@crypto.com>
Co-authored-by: Julien Robert <julien@rbrt.fr>
2024-09-05 07:25:12 +00:00
mergify[bot]
11039b7932
fix(types/mempool): fix slice init length (backport #21494) (#21519)
Co-authored-by: dropbigfish <fillfish@foxmail.com>
Co-authored-by: Julien Robert <julien@rbrt.fr>
2024-09-03 14:25:20 +00:00
mergify[bot]
f76c659fd2
fix(mempool): use no-op mempool as default (backport #19970) (#20008)
Co-authored-by: Tom <54514587+GAtom22@users.noreply.github.com>
Co-authored-by: marbar3778 <marbar3778@yahoo.com>
Co-authored-by: Julien Robert <julien@rbrt.fr>
2024-04-11 17:48:11 +02:00
mergify[bot]
9a59234c42
fix: align signer extraction adapter for mempool remove (backport #19759) (#19773)
Co-authored-by: mmsqe <mavis@crypto.com>
Co-authored-by: marbar3778 <marbar3778@yahoo.com>
2024-03-18 12:16:07 +00:00
mergify[bot]
3e9a3e94bf
feat: Add signer extraction adapter to prio-nonce mempool (backport #18991) (#19042)
Co-authored-by: Eric Warehime <eric.warehime@gmail.com>
Co-authored-by: Julien Robert <julien@rbrt.fr>
2024-01-15 10:25:14 +01:00
mergify[bot]
42dbfc4d70
feat: Optimistic Execution (backport #16581) (#18205)
Co-authored-by: Facundo Medica <14063057+facundomedica@users.noreply.github.com>
Co-authored-by: Facundo <facundomedica@gmail.com>
2023-10-23 21:44:56 +02:00
mergify[bot]
612d0a68bf
fix: nil pointer ref priority nonce mempool iterator (backport #17668) (#17674)
Co-authored-by: Bala Murali Krishna Komatireddy <krishna192reddy@gmail.com>
Co-authored-by: Julien Robert <julien@rbrt.fr>
2023-09-11 13:38:01 +02:00
Julien Robert
c452721442
style: add gci linter (#16758)
Co-authored-by: Jacob Gadikian <faddat@users.noreply.github.com>
2023-06-29 09:46:37 +00:00
Aaron Craelius
82659a7477
refactor!: deprecate sdk.Msg.GetSigners (#15284)
Co-authored-by: Matt Kocubinski <mkocubinski@gmail.com>
2023-05-25 18:35:09 +00:00
Jacob Gadikian
37ba88872d
style: enable strict gofumpt (#15579) 2023-03-28 18:59:21 +00:00
Aleksandr Bezobchuk
0d20a1456d
docs: update mempool Select godoc (#15486) 2023-03-20 21:09:14 +00:00
Aleksandr Bezobchuk
1c31e98903
refactor: Use Custom Priority in Priority Nonce Mempool (#15328) 2023-03-15 16:29:54 +00:00
Julien Robert
5d559dd265
feat!: use cosmossdk.io/log logger (#15011) 2023-02-27 21:36:22 +00:00
Facundo Medica
74ff94fdd5
fix: Format decimals correctly for signmode textual (#15129)
Co-authored-by: Amaury <1293565+amaurym@users.noreply.github.com>
2023-02-27 12:34:20 +00:00
Matt Kocubinski
4c51b77bf5
chore: fix misc linter errors (#15145) 2023-02-23 22:42:52 +00:00
Aleksandr Bezobchuk
77660ec452
chore: UX Mempool Tweaks (#15121) 2023-02-21 20:21:24 -06:00
Julien Robert
c17c3caab8
refactor: rename commands to match consensus engine name (#14956) 2023-02-08 20:09:28 +00:00
Julien Robert
a7ac29e3f4
chore: rename log pkg and add zerolog (#14955) 2023-02-08 11:32:22 +00:00
Marko
281017ae90
refactor: use cosmos-sdk/log throughout (#14909)
## Description

removes the dependency of tendermint/utils/log from countless locations. This is in effort of reducing Tendermint's lib usage in the sdk 

this is nonbreaking as the interface is the same. To eliminate tm/utils/log in the sdk we need a few more things. Once we have fully removed the tendermint logger, I would propose we break the interface and define our own for our use case, when we pass the logger to tendermint in the node.New() function we can wrap our logger for its use case 

---

### 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/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)
2023-02-07 10:54:48 +00:00
Julien Robert
80dd55f79b
refactor: rename to CometBFT (#14914) 2023-02-06 18:11:14 +00:00
Julien Robert
41a3dfeced
refactor!: migrate Cosmos SDK to CometBFT (#14897) 2023-02-05 14:51:33 +01:00
JayT106
e6b849ade5
feat(mempool): priority nonce mempool option with tx replacement (#14484)
Co-authored-by: Matt Kocubinski <mkocubinski@gmail.com>
2023-01-10 23:45:48 +01:00
Jacob Gadikian
be8c5a09c2
chore: lint tests (#14268) 2022-12-18 23:48:31 +00:00
Matt Kocubinski
2ad1ef2b09
feat: Add tx limit support in priority nonce mempool (#14321) 2022-12-15 21:04:27 +00:00
Julien Robert
cf9102f549
docs: improve mempool docs (#14282) 2022-12-15 21:49:21 +07:00
Aleksandr Bezobchuk
a4d1ede3e9
feat: no-op mempool (#14297) 2022-12-14 20:44:05 +00:00
Matt Kocubinski
c6c7eb9ef2
feat: Priority & sender-nonce mempool implementation (#13262)
Co-authored-by: Jeancarlo <jeancarlobarrios@gmail.com>
Co-authored-by: Jeancarlo Barrios <JeancarloBarrios@users.noreply.github.com>
Co-authored-by: Amaury <1293565+amaurym@users.noreply.github.com>
Co-authored-by: Facundo Medica <14063057+facundomedica@users.noreply.github.com>
Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>
Co-authored-by: Aleksandr Bezobchuk <aleks.bezobchuk@gmail.com>
2022-12-12 19:16:18 -06:00
Aleksandr Bezobchuk
f13afd12ed
refactor: mempool use context.Context (#14266) 2022-12-12 16:40:53 -05:00
Marko
682b72c157
chore: types audit (#14258) 2022-12-12 10:47:42 -05:00
Jeancarlo Barrios
754ca3169e
feat: add tx limit to mempool (#14014)
* feat: add bounding max tx to mempool

* add bounded condition

* sligh improvement on generator

* remove unbouded option

* add test

* added mempool options mechanism

* mising test

* seting mempool

* change function name

* change function name

* failing test

* Revert "failing test"

This reverts commit d527982b0d4ec826ff680afb8f43ac1d71809ccf.

* fix import block

* changelog entries

* add ability to do unbounded mempool

* remove unesesary variable

* small comments

* change 0 to mean unbounded

* t

* small test fix

* add the ability to be bounded unbounded and disabled

* t

* set default maxtx

* Update docs/docs/building-apps/02-app-mempool.md

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

* example for opts

* remove superflues logs entry

* add mempool to configurations

* fix more understandable name

* remove table in favor of bulletpoints

* sender nonce to unbounded

* Update docs/docs/building-apps/02-app-mempool.md

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

* Update types/mempool/sender_nonce.go

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

* Update types/mempool/sender_nonce.go

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

* Update docs/docs/building-apps/02-app-mempool.md

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

* Update server/config/config.go

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

* t

* add comment for options

* fix inport

* fix inport

Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>
Co-authored-by: Emmanuel T Odeke <emmanuel@orijtech.com>
2022-12-02 00:39:55 +00:00
Jeancarlo Barrios
908fda1f53
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>
2022-11-24 00:15:41 +01:00
Aleksandr Bezobchuk
78886bc8de
chore: ADR-060 Updates (#13844) 2022-11-14 07:05:56 +00:00
Matt Kocubinski
61effe8260
feat: ABCI 1.0 baseapp integration (#13453) 2022-11-09 09:50:27 -06:00
Marko
dc004c85f2
quick lint while doing other prs (#13726) 2022-11-02 11:12:36 +00:00
Matt Kocubinski
657b51d64b
cleanup mempool tests (#13658) 2022-10-26 16:15:42 +00: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