Commit Graph

147 Commits

Author SHA1 Message Date
Aaron Craelius
5c90246b3f
feat(log): remove core dependency and update core interface to be dependency free (#21045)
Co-authored-by: marbar3778 <marbar3778@yahoo.com>
Co-authored-by: Julien Robert <julien@rbrt.fr>
2024-07-26 11:00:27 +00:00
riyueguang
9f5ee3a083
chore: fix some comments (#21085)
Signed-off-by: riyueguang <rustruby@outlook.com>
2024-07-26 11:00:15 +00:00
Qt
3304d0803d
refactor: use errors.New to replace fmt.Errorf with no parameters (#20943)
Co-authored-by: Marko <marko@baricevic.me>
2024-07-18 12:01:45 +02:00
Julien Robert
afddef3906
refactor(server/v2): simplify servers (#20796) 2024-06-27 19:27:37 +00:00
Marko
e6e1a853de
refactor(core,server): make commands not rely on server context (#20422)
Co-authored-by: Hieu Vu <72878483+hieuvubk@users.noreply.github.com>
Co-authored-by: Julien Robert <julien@rbrt.fr>
2024-05-28 13:07:36 +00:00
Marko
1b47dc91a3
chore: move logger to core (#20388) 2024-05-28 12:30:09 +00:00
Julien Robert
def211d868
feat(server): add custom start handler (#19854) 2024-03-27 07:12:49 +00:00
Qt
2bfc037a07
docs: update docs (#19676)
Co-authored-by: son trinh <son@decentrio.ventures>
Co-authored-by: Julien Robert <julien@rbrt.fr>
2024-03-08 16:59:11 +00:00
Devon Bear
23359a0b6d
feat(server): Allow calling back into the application struct in PostSetup. (#19455)
Co-authored-by: Marko <marbar3778@yahoo.com>
2024-02-26 16:15:01 +00:00
Adam Tucker
89df28ceb9
feat(server): in-place testnet creator (#19280) 2024-02-12 10:53:07 +00:00
Connor Davis
3e05255956
fix(simapp): home flag is not respected (#18994)
Co-authored-by: Julien Robert <julien@rbrt.fr>
2024-01-30 21:38:22 +00:00
Robert Zaremba
8c7e694117
feat(server): cmd flag to disable colored logs (#18478) 2023-11-19 14:50:18 +00:00
Julien Robert
bf82c750a1
refactor(simapp): un-wire crisis (#18380) 2023-11-07 08:51:48 +00:00
Julien Robert
d82503e24e
refactor(x/genutil,server): add export functions to x/gentutil (#18303) 2023-10-30 15:49:49 +00:00
Chenqun Lu
a37830383d
fix(snapshot): grant execution permissions to the snapshot dir for the owner (#18294)
Co-authored-by: Julien Robert <julien@rbrt.fr>
2023-10-29 08:32:38 +00:00
yihuang
793ca9a872
perf: parse chain-id from big genesis file could be slow (#18204)
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: Julien Robert <julien@rbrt.fr>
2023-10-26 08:14:52 +00:00
Marko
331e106b97
fix: use a lower file permission in file creation (#18206) 2023-10-26 07:48:36 +00:00
Julien Robert
6601713eb6
feat(client): allow overwritting client.toml (#17513) 2023-08-29 08:40:13 +00:00
Julien Robert
6b0f8add45
fix: use correct config key for db_backend (#17406)
Co-authored-by: Kevin Yang <5478483+k-yang@users.noreply.github.com>
2023-08-16 18:29:41 +00:00
Dev Ojha
dea5b97eb2
feat!: Add gas limits to queries (#16239)
Co-authored-by: Marko <marbar3778@yahoo.com>
Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>
Co-authored-by: Julien Robert <julien@rbrt.fr>
2023-08-08 20:30:29 +00:00
zakir
c36c86005f
refactor(cli): remove duplicate --home flag (#17215) 2023-08-01 09:42:32 +00:00
Julien Robert
8d80df8e3c
fix: properly use --trace flag (#16827) 2023-07-04 19:11:27 +00:00
cool-developer
3e18f4088b
feat: update store module for new iavl (#15568)
Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>
Co-authored-by: Marko <marbar3778@yahoo.com>
2023-06-06 19:08:35 +00:00
Julien Robert
0bded0d195
fix: do not overwrite comet config when set in InterceptConfigsPreRunHandler (#16395) 2023-06-01 11:21:28 +00:00
Dev Ojha
b500b0104f
refactor: Apply Yihuang's server blocking improvement (#16252) 2023-05-23 09:25:47 +00:00
yihuang
c1ceb3bdda
feat: add local snapshots management commands (#16067)
Co-authored-by: Marko <marbar3778@yahoo.com>
2023-05-11 10:11:31 +00:00
Marko
25df90d0fc
feat!: bootstrap comet cmd for local state sync (#16061)
Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>
Co-authored-by: HuangYi <huang@crypto.com>
2023-05-10 10:25:07 +00:00
Julien Robert
0da5e83176
feat: default to noop mempool when max-txs is negative (#16071) 2023-05-09 17:41:20 +00:00
Julien Robert
ebcad58468
fix(autocli): fix simapp enhancing (#15906) 2023-04-25 14:08:02 +00:00
Julien Robert
c1974e4b3c
refactor: remove cometbft/libs/cli import (#15673) 2023-04-03 14:48:02 +00:00
Julien Robert
d21f58c638
feat(log): wire logger filtering (#15601) 2023-03-30 09:48:38 +00:00
Facundo Medica
6a03586074
fix: remove previous header in Prepare/Process Proposal + provide chain id in baseapp + fix context for verifying txs (#15303)
## Description

### Issue
Some values (like chain ID) were being leaked from the previous block/initialization into PrepareProposal and ProcessProposal, these values are only available if:
1. The node has never been stopped since the genesis block (as these values are set on `InitChain`)
2. The node has already commited a block (as the previous header was being used for the new state of prepare and process proposal).

So if a node is restarted, during the first prepare and process proposal these values won't be populated, and that will cause issues if they are being used.

### Solution

Remove any previous header information from a previous block in the prepare and process proposal contexts, making things consistent at every height.

- Added ChainID to baseapp
- Use an empty header in Commit() with only the chain id set
- Fix context for prepare and process proposal

Closes: #15269



---

### 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-03-13 17:15:39 +00:00
Julien Robert
ea8c76eb65
feat: add filtering to logger (#15212) 2023-03-13 13:16:20 +00:00
Julien Robert
abd4ac0790
feat: make logger easily replaceable (#15358) 2023-03-13 09:01:58 +00:00
Mark Rushakoff
1bb632a567
chore: prefer to panic instead of os.Exit (#15285) 2023-03-07 15:12:39 +00:00
Mark Rushakoff
f151bf627a
refactor(log): require destination in calls to NewLogger (#15262) 2023-03-06 19:05:49 +00:00
Julien Robert
5d559dd265
feat!: use cosmossdk.io/log logger (#15011) 2023-02-27 21:36:22 +00:00
Aleksandr Bezobchuk
7f99ad5fe7
refactor: cleanup server logic (#15041) 2023-02-22 16:09:08 +00:00
yihuang
497dc2cb78
fix: create snapshot dir for rocksdb backend (#15054) 2023-02-17 17:05:40 +00:00
Julien Robert
c17c3caab8
refactor: rename commands to match consensus engine name (#14956) 2023-02-08 20:09:28 +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
yihuang
b266522c88
feat: add config iavl-lazy-loading to enable lazy loading of iavl store (#14189)
Co-authored-by: Marko <marbar3778@yahoo.com>
2023-01-31 21:52:32 +00:00
Likhita Polavarapu
7559d9ecd3
refactor: create go.mod for store (#14746)
Co-authored-by: Marko <marbar3778@yahoo.com>
2023-01-25 13:31:56 +00:00
Noel Ukwa
c822836501
refactor: migrate calls from alias file to appropriate store/types (#14455)
Co-authored-by: Marko <marbar3778@yahoo.com>
Closes https://github.com/cosmos/cosmos-sdk/issues/14406
2023-01-10 15:31:06 +00:00
Marko
e048402efb
chore: modify db support (#14451) 2022-12-30 14:08:37 +00:00
Julien Robert
82bd8880fc
fix: fix --log_format flag not working (#14441) 2022-12-29 10:09:16 +01:00
Jacob Gadikian
1bb0629846
chore: iavl-v0.20-alpha1 and cosmos-db (#14411)
Co-authored-by: marbar3778 <marbar3778@yahoo.com>
2022-12-28 21:42:00 +01:00
Aleksandr Bezobchuk
bbd7e31305
chore: audit server package (#14359) 2022-12-19 19:42:09 +00:00
Marko
1b6192fec0
refactor: provide a helper for baseapp options (#14175)
* provide a helper for baseapp options

* rename

* changelog entry

* fix spelling
2022-12-06 14:28:18 +00:00