Go to file
yihuang 4d02519ec0
feat: support profiling block replay during abci handshake (#14953)
## Description

by default, the signal trap is not setup during abci handshake, so you can't profile at this stage, but it's an interesting way to profile production block data with the block replay. 



---

### 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-08 23:53:27 +00:00
.github ci: update release slack channel and algolia api key (#14942) 2023-02-07 09:24:13 -05:00
.vscode feat: add vscode e2e config (#13851) 2022-11-14 11:26:28 +01:00
api refactor: rename commands to match consensus engine name (#14956) 2023-02-08 20:09:28 +00:00
baseapp chore: rename log pkg and add zerolog (#14955) 2023-02-08 11:32:22 +00:00
client refactor: rename commands to match consensus engine name (#14956) 2023-02-08 20:09:28 +00:00
codec refactor: rename commands to match consensus engine name (#14956) 2023-02-08 20:09:28 +00:00
collections feat(collections): indexes for IndexedMap (#14706) 2023-02-03 09:23:49 +00:00
contrib refactor: use cosmos-sdk/log throughout (#14909) 2023-02-07 10:54:48 +00:00
core build(deps): Bump cosmossdk.io/math from 1.0.0-beta.5 to 1.0.0-beta.6 (#14918) 2023-02-06 09:21:47 +00:00
crypto refactor: rename commands to match consensus engine name (#14956) 2023-02-08 20:09:28 +00:00
depinject feat(depinject): send logging to file instead of stderr (#14825) 2023-01-27 21:10:55 +01:00
docs refactor: rename commands to match consensus engine name (#14956) 2023-02-08 20:09:28 +00:00
errors build(deps): Bump google.golang.org/grpc from 1.52.1 to 1.52.3 (#14794) 2023-01-26 16:25:32 +00:00
fuzz chore: use sdkmath in misc packages (#14606) 2023-01-16 12:48:32 +00:00
internal refactor: create go.mod for store (#14746) 2023-01-25 13:31:56 +00:00
log chore: rename log pkg and add zerolog (#14955) 2023-02-08 11:32:22 +00:00
math fix(math): check for negative precision (#14922) 2023-02-06 17:55:10 +01:00
orm refactor(orm)!: support core genesis (#14822) 2023-02-07 15:24:55 +00:00
proto refactor: rename commands to match consensus engine name (#14956) 2023-02-08 20:09:28 +00:00
runtime refactor: rename commands to match consensus engine name (#14956) 2023-02-08 20:09:28 +00:00
scripts refactor!: migrate Cosmos SDK to CometBFT (#14897) 2023-02-05 14:51:33 +01:00
server feat: support profiling block replay during abci handshake (#14953) 2023-02-08 23:53:27 +00:00
simapp refactor: rename commands to match consensus engine name (#14956) 2023-02-08 20:09:28 +00:00
std fix: register evidence regression (#10595) 2021-12-14 14:25:31 +00:00
store chore: rename log pkg and add zerolog (#14955) 2023-02-08 11:32:22 +00:00
telemetry fix: all: fix resource leaks found by staticmajor (#13394) 2022-10-06 20:11:40 +00:00
tests refactor: rename commands to match consensus engine name (#14956) 2023-02-08 20:09:28 +00:00
testutil refactor: rename commands to match consensus engine name (#14956) 2023-02-08 20:09:28 +00:00
third_party/proto chore: proto format (#13685) 2022-10-28 17:40:48 +02:00
tools refactor: rename commands to match consensus engine name (#14956) 2023-02-08 20:09:28 +00:00
types refactor: rename commands to match consensus engine name (#14956) 2023-02-08 20:09:28 +00:00
version refactor!: migrate Cosmos SDK to CometBFT (#14897) 2023-02-05 14:51:33 +01:00
x refactor: rename commands to match consensus engine name (#14956) 2023-02-08 20:09:28 +00:00
.clang-format chore: improve proto formatting (#12656) 2022-07-21 10:56:31 +00:00
.dockerignore Add basic Dockerfile to build all binaries and export gaiad 2018-04-10 12:39:47 +02:00
.gitattributes Merge PR #6426: Migrate API Server 2020-06-15 13:39:09 -04:00
.gitignore feat(depinject): send logging to file instead of stderr (#14825) 2023-01-27 21:10:55 +01:00
.gitpod.yml Create .gitpod.yml (#12662) 2022-08-15 15:18:30 +02:00
.golangci.yml chore: longer golang-ci timeout (#14432) 2022-12-27 15:26:34 +01:00
.goreleaser.yml ci: fix release notes not populated by goreleaser 2022-08-13 20:41:27 +02:00
.markdownlint.json docs: Code blocks in SDK docs are broken (#11189) 2022-02-14 23:39:35 +01:00
.markdownlintignore docs: Improve markdownlint configuration (#11104) 2022-02-10 12:07:01 +00:00
.mergify.yml chore: update .mergify.yml #13841 2022-11-11 18:49:36 +00:00
buf.work.yaml refactor: migrate to cosmos/gogoproto (#13070) 2022-09-08 17:27:48 +00:00
CHANGELOG.md feat: support profiling block replay during abci handshake (#14953) 2023-02-08 23:53:27 +00:00
CODE_OF_CONDUCT.md Update CODE_OF_CONDUCT.md (#7381) 2020-09-28 11:28:30 +02:00
CODING_GUIDELINES.md feat: migrate to docusaurus (#13471) 2022-10-10 14:01:53 +00:00
CONTRIBUTING.md docs: set buf commit for v0.47.x (#14675) 2023-01-20 12:43:53 +00:00
docker-compose.yml build: add remote debugging with delve (#10587) 2021-12-01 12:44:54 +00:00
Dockerfile perf: dockerfiles (#14793) 2023-01-26 21:21:54 +01:00
go.mod fix: downgrade goleveldb (sims after CometBFT switch) (#14952) 2023-02-08 18:46:44 +00:00
go.sum fix: downgrade goleveldb (sims after CometBFT switch) (#14952) 2023-02-08 18:46:44 +00:00
go.work.example refactor: add logger package (#14872) 2023-02-01 23:42:15 +00:00
LICENSE chore: update license copyright (#12542) 2022-07-13 10:19:10 +00:00
Makefile refactor: rename to CometBFT (#14914) 2023-02-06 18:11:14 +00:00
README.md refactor!: migrate Cosmos SDK to CometBFT (#14897) 2023-02-05 14:51:33 +01:00
RELEASE_PROCESS.md docs: add documentation on documentation deployment (#13739) 2022-11-03 17:23:52 +01:00
ROADMAP.md docs: add Q1 roadmap (#14898) 2023-02-04 09:48:38 +00:00
SECURITY.md refactor!: migrate Cosmos SDK to CometBFT (#14897) 2023-02-05 14:51:33 +01:00
sonar-project.properties ci: make sonarcloud more quiet (#14585) 2023-01-12 10:24:56 +00:00
UPGRADING.md refactor: rename commands to match consensus engine name (#14956) 2023-02-08 20:09:28 +00:00

Cosmos SDK

banner

The Cosmos SDK is a framework for building blockchain applications. CometBFT (BFT Consensus) and the Cosmos SDK are written in the Go programming language. Cosmos SDK is used to build Gaia, the implementation of the Cosmos Hub.

WARNING: The Cosmos SDK has mostly stabilized, but we are still making some breaking changes.

Note: Requires Go 1.19+

Quick Start

To learn how the Cosmos SDK works from a high-level perspective, see the Cosmos SDK High-Level Intro.

If you want to get started quickly and learn how to build on top of Cosmos SDK, visit Cosmos SDK Tutorials. You can also fork the tutorial's repository to get started building your own Cosmos SDK application.

For more information, see the Cosmos SDK Documentation.

Contributing

See CONTRIBUTING.md for details on how to contribute and participate in our dev calls. If you want to follow the updates or learn more about the latest design then join our Discord.

Tools and Frameworks

The Cosmos ecosystem is vast. Awesome Cosmos is a community-curated list of notable frameworks, modules and tools.

Cosmos Hub Mainnet

The Cosmos Hub application, gaia, has its own cosmos/gaia repository. Go there to join the Cosmos Hub mainnet and more.

Inter-Blockchain Communication (IBC)

The IBC module for the Cosmos SDK has its own cosmos/ibc-go repository. Go there to build and integrate with the IBC module.

Ignite CLI

Ignite CLI is the all-in-one platform to build, launch, and maintain any crypto application on a sovereign and secured blockchain. If you are building a new app or a new module, use Ignite CLI to get started and speed up development.

Disambiguation

This Cosmos SDK project is not related to the React-Cosmos project (yet). Many thanks to Evan Coury and Ovidiu (@skidding) for this Github organization name. As per our agreement, this disambiguation notice will stay here.