Commit Graph

534 Commits

Author SHA1 Message Date
dependabot[bot]
9e2abf8ef4
build(deps): Bump cosmossdk.io/log from 1.1.1-0.20230704160919-88f2c830b0ca to 1.2.0 (#17246)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-08-01 14:16:13 +02:00
dependabot[bot]
1e115626bc
build(deps): Bump github.com/cometbft/cometbft from 0.38.0-rc2 to 0.38.0-rc3 (#17016) 2023-07-17 08:34:26 +02:00
mergify[bot]
9f4a4e416f
build(deps): use hashicorp/go-metrics instead of armon/go-metrics (backport #16790) (#16800)
Co-authored-by: Julien Robert <julien@rbrt.fr>
2023-06-30 15:27:05 +00: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
dependabot[bot]
cee7e93dd3
build(deps): Bump github.com/cometbft/cometbft from 0.38.0-rc1 to 0.38.0-rc2 (#16707)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Julien Robert <julien@rbrt.fr>
2023-06-26 20:33:21 +00:00
mergify[bot]
26d2907f57
build(deps): Bump github.com/cockroachdb/errors from 1.9.1 to 1.10.0 (backport #16516) (#16518)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Julien Robert <julien@rbrt.fr>
2023-06-13 12:37:36 +00:00
mergify[bot]
2100a73dce
fix: StateSync Restore by excluding memory store (backport #16449) (#16451)
Co-authored-by: Chill Validation <92176880+chillyvee@users.noreply.github.com>
2023-06-07 23:28:47 +00:00
dependabot[bot]
8ced14d6fa
build(deps): Bump github.com/cometbft/cometbft from 0.38.0-alpha.2 to 0.38.0-rc1 (#16434)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Julien Robert <julien@rbrt.fr>
2023-06-06 22:03:06 +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
dependabot[bot]
0246ee1713
build(deps): Bump github.com/hashicorp/go-plugin from 1.4.9 to 1.4.10 in /store (#16412)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-06-02 17:25:44 +00:00
Julien Robert
b590b09107
chore: small snapshot commands & docs improvement (#16404) 2023-06-02 12:02:08 +00:00
dependabot[bot]
cac7e89e1d
build(deps): Bump github.com/stretchr/testify from 1.8.3 to 1.8.4 (#16354)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-05-31 06:58:33 +00:00
Marko
d1a337eb78
refactor(Store): remove abci query req and res deps from store (#16321) 2023-05-30 15:50:23 +00:00
Julien Robert
0360c3d87f
docs: update streaming docs (#16311) 2023-05-26 13:47:46 +00:00
dependabot[bot]
52ccb7bf31
build(deps): Bump github.com/cosmos/cosmos-db from 1.0.0-rc.1 to 1.0.0 (#16295)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-05-26 08:18:57 +00:00
dependabot[bot]
533ee7a552
build(deps): Bump github.com/cometbft/cometbft from 0.38.0-alpha.1 to 0.38.0-alpha.2 (#16280)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Julien Robert <julien@rbrt.fr>
2023-05-24 23:36:25 +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
yihuang
81ba019e5e
feat: save restored snapshot locally (#16060)
Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>
2023-05-23 14:44:48 +00:00
dependabot[bot]
3187627c42
build(deps): Bump github.com/prometheus/common from 0.43.0 to 0.44.0 (#16255)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-05-23 07:50:44 +00:00
dependabot[bot]
1f5389e14c
build(deps): Bump github.com/mattn/go-isatty from 0.0.18 to 0.0.19 (#16241)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-05-22 06:30:53 +00:00
dependabot[bot]
89eee12fc8
build(deps): Bump github.com/stretchr/testify from 1.8.2 to 1.8.3 (#16222)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-05-19 06:44:38 +00:00
dependabot[bot]
bf3749207e
build(deps): Bump github.com/spf13/cast from 1.5.0 to 1.5.1 (#16166)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-05-15 21:10:38 +00:00
dependabot[bot]
3d0866bbaa
build(deps): Bump cosmossdk.io/math from 1.0.0 to 1.0.1 (#16165)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-05-15 21:09:58 +00:00
yihuang
793cbe5bfd
fix: snapshot error message wording (#16146) 2023-05-15 07:43:11 +00:00
yihuang
92247cb0e9
fix: snapshot commands panic if snapshot don't exists (#16138) 2023-05-13 08:06:05 +00:00
dependabot[bot]
cd45ab2abd
build(deps): Bump github.com/cosmos/gogoproto from 1.4.9 to 1.4.10 (#16122)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-05-11 21:35:16 +00:00
Dev Ojha
d39f64517c
perf: Clear cacheKV RAM if its too large (#15767)
Co-authored-by: Marko <marbar3778@yahoo.com>
2023-05-11 12:38:21 +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
dependabot[bot]
7e160b0e85
build(deps): Bump golang.org/x/crypto from 0.8.0 to 0.9.0 (#16077)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-05-10 07:05:28 +00:00
dependabot[bot]
fded23a427
build(deps): Bump github.com/prometheus/common from 0.42.0 to 0.43.0 (#16054)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Marko <marbar3778@yahoo.com>
2023-05-08 15:12:28 +00:00
dependabot[bot]
6403d76c48
build(deps): Bump google.golang.org/grpc from 1.54.0 to 1.55.0 in /errors (#16055)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: marbar3778 <marbar3778@yahoo.com>
2023-05-08 13:04:23 +00:00
dependabot[bot]
131f382d56
build(deps): Bump github.com/prometheus/client_golang from 1.15.0 to 1.15.1 (#16028)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-05-04 07:07:34 +00:00
Aaron Craelius
f848e88d7e
feat!: update to gogoproto 1.4.9 (#16026) 2023-05-03 21:57:26 +00:00
Marko
1cca9c5f5f
build(deps): ics23 bump to cosmos in store (#15967) 2023-04-28 13:56:08 +00:00
dependabot[bot]
79482d69df
build(deps): Bump cosmossdk.io/log from 1.0.0 to 1.1.0 (#15971)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-04-27 20:48:01 +00:00
Julien Robert
6a8251aafa
build(deps): bump cometbft to v0.37.1 (#15955) 2023-04-26 15:32:18 +00:00
dependabot[bot]
89caf149fc
build(deps): Bump github.com/cosmos/gogoproto from 1.4.7 to 1.4.8 in /store (#15904)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-04-21 06:37:16 +00:00
dependabot[bot]
a7d8477a19
build(deps): Bump github.com/decred/dcrd/dcrec/secp256k1/v4 from 4.1.0 to 4.2.0 (#15839)
Bumps [github.com/decred/dcrd/dcrec/secp256k1/v4](https://github.com/decred/dcrd) from 4.1.0 to 4.2.0.
<details>
<summary>Commits</summary>
<ul>
<li><a href="bacf8444a8"><code>bacf844</code></a> secp256k1: Prepare v4.2.0.</li>
<li><a href="e0ad9b8687"><code>e0ad9b8</code></a> secp256k1: Update PrivKeyFromBytes comment.</li>
<li><a href="6c5b953d28"><code>6c5b953</code></a> secp256k1: Add GeneratePrivateKeyFromRand tests.</li>
<li><a href="bd0b82d0be"><code>bd0b82d</code></a> secp256k1: Require concerete rand for privkey gen.</li>
<li><a href="b4fab9efd8"><code>b4fab9e</code></a> chaincfg/chainhash: Prepare v1.0.4.</li>
<li><a href="d71616bddb"><code>d71616b</code></a> secp256k1: Add GeneratePrivateKeyFromRand function</li>
<li><a href="9aa79ec168"><code>9aa79ec</code></a> chaincfg: Introduce subsidy split change r2 agenda.</li>
<li><a href="7db7325c42"><code>7db7325</code></a> chaincfg: Introduce BLAKE3 PoW agenda.</li>
<li><a href="ce46220cf7"><code>ce46220</code></a> secp256k1: Fix typo in a doc comment</li>
<li><a href="ca02bcaf5a"><code>ca02bca</code></a> docs: Add release notes for v1.7.7.</li>
<li>Additional commits viewable in <a href="https://github.com/decred/dcrd/compare/blockchain/v4.1.0...dcrec/secp256k1/v4.2.0">compare view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=github.com/decred/dcrd/dcrec/secp256k1/v4&package-manager=go_modules&previous-version=4.1.0&new-version=4.2.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)


</details>
2023-04-14 10:14:21 +00:00
dependabot[bot]
875e29ea9a
build(deps): Bump github.com/prometheus/client_golang from 1.14.0 to 1.15.0 (#15840) 2023-04-14 08:22:57 +00:00
dependabot[bot]
8745098053
build(deps): Bump github.com/rs/zerolog from 1.29.0 to 1.29.1 (#15838) 2023-04-14 09:45:46 +02:00
cool-developer
56705deb22
feat(store): add working hash (#15712)
Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>
Co-authored-by: Marko <marbar3778@yahoo.com>
2023-04-13 09:18:36 +00:00
Mark Rushakoff
64908e1559
build(deps): use latest commit of CometBFT v0.37.x branch (#15787) 2023-04-11 19:16:52 +00:00
Mark Rushakoff
0b09920c0a
test(store): ensure busy manager goroutine is finished (#15788)
## Description

Without this change, there were intermittent failures due to a non-empty t.TempDir() directory at the end of a test:

```console
$ go test  -run=LoadChunk$ ./snapshots/ -count=220 -failfast 
--- FAIL: TestManager_LoadChunk (0.01s)
    testing.go:1225: TempDir RemoveAll cleanup: unlinkat /var/folders/.../T/TestManager_LoadChunk1472891739/001: directory not empty
FAIL
FAIL    cosmossdk.io/store/snapshots    0.177s
```

With this change, I can no longer reproduce the flaky failure:

```console
$ go test -run=LoadChunk$ ./snapshots/ -count=1000 -failfast
ok      cosmossdk.io/store/snapshots    15.722s
```
---

### 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...

- [x] included the correct [type prefix](https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json) in the PR title
- [x] targeted the correct branch (see [PR Targeting](https://github.com/cosmos/cosmos-sdk/blob/main/CONTRIBUTING.md#pr-targeting))
- [x] provided a link to the relevant issue or specification
- [x] 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 all author checklist items have been addressed
- [ ] confirmed that this PR does not change production code
2023-04-11 16:33:39 +00:00
khanh-notional
d5a618db6a
feat: More flexibility for CacheMultiStoreWithVersion (#15683)
## Description
Closes: [cosmos/gaia#2313](https://github.com/cosmos/gaia/issues/2313)

The gaia v9 upgrade causes node to errors out when querying historical states before the upgrade. This is because we added a new module store in the upgrade which is the `provider module store`. Thus, every times we load the multi store for querying at a height prior to the upgrade, we try to load the `provider module store` and fail since it has not existed before the upgrade.

I make changes to `CacheMultiStoreWithVersion` so that if we fail to load any module store at a given height, we check if that module store has existed at that height or not (using `getCommitInfo()`), we can ignore the error if the store hasn't existed at that given height.

---

### 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-04-10 20:30:28 +00:00
dependabot[bot]
7720bc4cb6
build(deps): Bump golang.org/x/crypto from 0.7.0 to 0.8.0 (#15733)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-04-07 16:25:45 +00:00
Mark Rushakoff
22bfecfe38
style: fix linting issues in store module (#15724)
## Description

- Return an exported type rather than an unexported type, from an exported function
- Assign error values to _
- Add reason to nolint directive
- Remove ineffectual assignment
- Remove checked cast to same type as value

---

### 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...

- [x] included the correct [type prefix](https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json) in the PR title
- [x] 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~~
- [ ] ~~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 all author checklist items have been addressed
- [ ] confirmed that this PR does not change production code
2023-04-06 21:58:52 +00:00
Julien Robert
3f3beb319e
ci: bump go version (#15716) 2023-04-06 09:55:19 +02:00
Jacob Gadikian
b009a75eea
style: make lint-fix everything (#15631)
Co-authored-by: Julien Robert <julien@rbrt.fr>
2023-03-30 17:27:39 +00:00
dependabot[bot]
1316329316
build(deps): Bump cosmossdk.io/log from 0.1.1-0.20230329182155-367f0dc1194d to 1.0.0 (#15619) 2023-03-30 10:40:58 +00:00
dependabot[bot]
f3110e9d53
build(deps): Bump github.com/cosmos/gogoproto from 1.4.6 to 1.4.7 (#15617)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-03-30 11:05:17 +02:00