Commit Graph

148 Commits

Author SHA1 Message Date
Julien Robert
cc5c4d0699
chore(network): remove DefaultConfigWithAppConfigWithQueryGasLimit (#21055) 2024-07-26 08:16:12 +00:00
yukionfire
d6ad92db0f
chore(all): replace all fmt.Errorf without paramters with errors.New (#21068) 2024-07-25 14:54:49 +02:00
beer-1
511fb07914
feat: adds error handling for out-of-gas panics in grpc query handlers. (#20945) 2024-07-16 09:44:42 +00:00
testinginprod
d79cd5898f
refactor(genutil): remove genesis bank balance iteration dependency (#20878) 2024-07-05 08:24:42 +00:00
Julien Robert
f82bb76439
test: remove some deps from testutil/network (#20843) 2024-07-03 12:24:24 +00:00
Marko
05ff7a7cb7
feat(crypto): add blst (#20296)
Co-authored-by: itsdevbear <itsdevbear@berachain.com>
Co-authored-by: Akhil Kumar P <36399231+akhilkumarpilli@users.noreply.github.com>
2024-06-11 17:16:07 +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
Matt Kocubinski
493d486bc6
refactor: decouple from sdk/codec in amino codec usage (#20369) 2024-05-14 16:52:51 +00:00
Marko
0dfb54e36a
refactor! : bump comet to v1 (#19726)
Co-authored-by: yihuang <yi.codeplayer@gmail.com>
2024-05-06 14:12:00 +00:00
Marko
43764cff30
chore: consensus spinout (#20010) 2024-05-03 14:08:17 +00:00
Tien Nguyen
8a98c7c36b
fix: Fix data race test coverage. (#20156) 2024-04-23 20:22:09 +00:00
Marko
8e60f3b7eb
chore: remove grpc-web (#20140) 2024-04-23 06:47:17 +00:00
son trinh
a0d727eebc
refactor(x/auth): auth module can recognize x/accounts account (#20002) 2024-04-11 09:56:37 +00:00
Julián Toledano
fad30cd111
refactor(x/genutil)!: remove Address.String() (#19926)
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2024-04-03 20:24:55 +00:00
Matt Kocubinski
c807aaede8
refactor!: mv AddressCodecs aliases from runtime -> core (#19747)
Co-authored-by: Marko <marbar3778@yahoo.com>
2024-03-14 14:19:15 +00:00
Marko
6db53cafcb
chore(sdk): remove modules as a dependency (1/n) (#19003) 2024-01-11 07:55:50 +00:00
gluax
78ce70d485
fix(testutil): fix FreeTCPAddr localhost usage (#18996) 2024-01-10 08:54:32 +00:00
Julien Robert
7ecdbd0814
chore(testutil): use correct address codec (#18985) 2024-01-09 13:49:05 +00:00
mmsqe
24a8123c22
test: add NodeURI for clientCtx (#18930) 2024-01-03 06:24:34 +00:00
Cosmos SDK
8f0d5b15f0
chore: typos fixes by cosmos-sdk bot (#18689)
Co-authored-by: github-merge-queue <github-merge-queue@users.noreply.github.com>
Co-authored-by: Julien Robert <julien@rbrt.fr>
Co-authored-by: marbar3778 <marbar3778@yahoo.com>
2023-12-11 13:03:19 +00:00
Carlos Santiago Yanzon
a37f4165f8
refactor(types,client)!: refactor global address sdk.Config (#18372) 2023-11-29 16:24:10 +00:00
Marko
03c3f8e71f
refactor(tests): testutil.Network as an interface (#18389)
Co-authored-by: Anmol <anmol1696@gmail.com>
2023-11-08 18:38:57 +00:00
Emmanuel T Odeke
05261cc46e
refactor(x/auth): spin out go.mod (#18351) 2023-11-07 11:42:58 +00:00
Marko
21e69bad04
refactor(bank): add go module (#18279) 2023-10-27 09:25:04 +00:00
Marko
2a6640d488
refactor(staking): add go.mod (#18257) 2023-10-26 07:39:34 +00:00
Julien Robert
139a29e7e2
refactor(network): call app.Close() on network cleanup (#18249) 2023-10-25 10:09:03 +00:00
Elias Naur
c1f050ffd6
fix(sim): make testutil/network genesis state deterministic (#18203) 2023-10-23 19:46:25 +00:00
Marko
65a1ec64f7
chore: remove params module entirely (#17838) 2023-09-22 13:51:37 +00:00
Julien Robert
6601713eb6
feat(client): allow overwritting client.toml (#17513) 2023-08-29 08:40:13 +00:00
mmsqe
751c0c892c
fix(rpc): change the default json-rpc listen address to localhost (#17470) 2023-08-23 12:55:21 +00:00
Julien Robert
c6b0bb62ac
refactor(client): use address codec (#17503) 2023-08-23 10:43:47 +00:00
Marko
58855c6859
refactor: remove global valaddress bech32 codec calls (1/2) (#17098)
Co-authored-by: Devon Bear <itsdevbear@berachain.com>
Co-authored-by: Julien Robert <julien@rbrt.fr>
2023-07-26 19:01:21 +00:00
ruthishvitwit
fd7e549a3c
chore: enable errcheck linter (#16406) 2023-07-12 08:58:27 +00:00
Jacob Gadikian
6afece635c
style: add gci linter (#16605) 2023-06-22 15:35:51 +00:00
Aleksandr Bezobchuk
6cee22df52
feat!: Comet v0.38 Integration (#15519)
Co-authored-by: marbar3778 <marbar3778@yahoo.com>
Co-authored-by: cool-developer <51834436+cool-develope@users.noreply.github.com>
Co-authored-by: Aaron Craelius <aaron@regen.network>
Co-authored-by: Matt Kocubinski <mkocubinski@gmail.com>
Co-authored-by: Julien Robert <julien@rbrt.fr>
2023-05-24 16:09:19 +00:00
ocnc
5865050f01
fix(tests): Fixes LatestHeight in testutil network (#16219)
Co-authored-by: Facundo Medica <14063057+facundomedica@users.noreply.github.com>
2023-05-19 10:28:49 +00:00
Julien Robert
16e940df55
chore: rename comet logger wrapper (#15983) 2023-04-28 14:36:09 +00:00
Facundo Medica
af3122aa6c
feat!: Provide logger through depinject (#15818)
Co-authored-by: Julien Robert <julien@rbrt.fr>
2023-04-24 09:42:55 +00:00
Marko
9e4fbb6db1
feat!: add node status endpoint (#15597)
Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>
Co-authored-by: Facundo Medica <14063057+facundomedica@users.noreply.github.com>
2023-04-13 13:42:52 +00:00
Marko
51f3e70a12
style: more linting (#15618) 2023-03-30 13:00:18 +00:00
Jacob Gadikian
37ba88872d
style: enable strict gofumpt (#15579) 2023-03-28 18:59:21 +00:00
Amaury
a4a3c81d11
feat(client): Add cobra's context to clientCtx (#15458)
Co-authored-by: Facundo Medica <14063057+facundomedica@users.noreply.github.com>
2023-03-20 14:14:58 +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
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
Julien Robert
832517befc
feat: add application genesis (#15031) 2023-02-22 10:29:03 +00:00
Marko
2b484a241f
feat: add rand funcs to math (#15043) 2023-02-18 18:39:46 +00:00
Julien Robert
c17c3caab8
refactor: rename commands to match consensus engine name (#14956) 2023-02-08 20:09:28 +00:00