8000 replace tm for cmt by lasarojc · Pull Request #101 · cometbft/cometbft · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

replace tm for cmt #101

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Jan 16, 2023
Merged

replace tm for cmt #101

merged 8 commits into from
Jan 16, 2023

Conversation

lasarojc
Copy link
Contributor
@lasarojc lasarojc commented Jan 12, 2023

Closes #100


PR checklist

  • Tests written/updated, or no tests needed
  • CHANGELOG_PENDING.md updated, or no changelog entry needed
  • Updated relevant documentation (docs/) and code comments, or no
    documentation updates needed

@lasarojc lasarojc linked an issue Jan 12, 2023 that may be closed by this pull request
@lasarojc lasarojc force-pushed the lasarojc/100/replace-tm-for-cmt branch from 015a9d6 to e9072dc Compare January 13, 2023 12:17
@lasarojc lasarojc marked this pull request as ready for review January 13, 2023 13:12
@lasarojc lasarojc requested a review from a team as a code owner January 13, 2023 13:12
@lasarojc lasarojc force-pushed the lasarojc/100/replace-tm-for-cmt branch from 2cee8a9 to ce7b92c Compare January 13, 2023 13:19
@thanethomson thanethomson added backport-to-v0.37.x Tell Mergify to backport the PR to v0.37.x and removed backport-to-v0.37.x Tell Mergify to backport the PR to v0.37.x labels Jan 13, 2023
@thanethomson
Copy link
Contributor

Was it a lot of work to do this? Asking because we'll need to do this for the v0.34.x and v0.37.x branches, and I don't think we can automatically backport these changes.

Copy link
Contributor
@thanethomson thanethomson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this Lásaro!

Doing a grep -E '\stm[a-z]+ "github' **/*.go through your branch though, I still see the following import aliases:

cmd/tendermint/commands/root.go:        tmflags "github.com/tendermint/tendermint/libs/cli/flags"
consensus/byzantine_test.go:    tmcons "github.com/tendermint/tendermint/proto/tendermint/consensus"
consensus/invalid_test.go:      tmcons "github.com/tendermint/tendermint/proto/tendermint/consensus"
consensus/msgs.go:      tmcons "github.com/tendermint/tendermint/proto/tendermint/consensus"
consensus/msgs_test.go: tmcons "github.com/tendermint/tendermint/proto/tendermint/consensus"
consensus/reactor.go:   tmevents "github.com/tendermint/tendermint/libs/events"
consensus/reactor.go:   tmcons "github.com/tendermint/tendermint/proto/tendermint/consensus"
consensus/reactor_test.go:      tmcons "github.com/tendermint/tendermint/proto/tendermint/consensus"
consensus/state.go:     tmevents "github.com/tendermint/tendermint/libs/events"
consensus/wal.go:       tmcons "github.com/tendermint/tendermint/proto/tendermint/consensus"
consensus/wal_test.go:  tmtypes "github.com/tendermint/tendermint/types"
crypto/merkle/proof.go: tmcrypto "github.com/tendermint/tendermint/proto/tendermint/crypto"
crypto/merkle/proof_op.go:      tmcrypto "github.com/tendermint/tendermint/proto/tendermint/crypto"
crypto/merkle/proof_test.go:    tmcrypto "github.com/tendermint/tendermint/proto/tendermint/crypto"
crypto/merkle/proof_value.go:   tmcrypto "github.com/tendermint/tendermint/proto/tendermint/crypto"
inspect/inspect.go:     tmstrings "github.com/tendermint/tendermint/libs/strings"
libs/bits/bit_array.go: tmprotobits "github.com/tendermint/tendermint/proto/tendermint/libs/bits"
libs/cli/flags/log_level_test.go:       tmflags "github.com/tendermint/tendermint/libs/cli/flags"
p2p/node_info.go:       tmstrings "github.com/tendermint/tendermint/libs/strings"
p2p/peer.go:    tmconn "github.com/tendermint/tendermint/p2p/conn"
p2p/peer_test.go:       tmconn "github.com/tendermint/tendermint/p2p/conn"
store/store.go: tmstore "github.com/tendermint/tendermint/proto/tendermint/store"
store/store_test.go:    tmstore "github.com/tendermint/tendermint/proto/tendermint/store"
test/e2e/node/main.go:  tmnet "github.com/tendermint/tendermint/libs/net"

@lasarojc
Copy link
Contributor Author

Was it a lot of work to do this? Asking because we'll need to do this for the v0.34.x and v0.37.x branches, and I don't think we can automatically backport these changes.

I think that we can automate at least the aliasing safely, which will reduce the work considerably.

@lasarojc
Copy link
Contributor Author

I guess my grep wasn't as extensive (using the IDE, actually). Thanks for catching. Fixed now!

@lasarojc lasarojc marked this pull request as draft January 13, 2023 19:45
@lasarojc lasarojc marked this pull request as ready for review January 16, 2023 10:32
Copy link
Contributor
@sergio-mena sergio-mena left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @sergio-mena.
I did the change here and didn't find any occurrences.

@lasarojc lasarojc merged commit 88cbf47 into main Jan 16, 2023
@lasarojc lasarojc deleted the lasarojc/100/replace-tm-for-cmt branch January 16, 2023 14:43
cometcrafter pushed a commit to graphprotocol/cometbft that referenced this pull request Jun 25, 2024
…/v0.37.4/pr-101

 perf(consensus): Run broadcast routines out of process cometbft#3180  (backport cometbft#101)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Replace all tm* imports with cmt*
3 participants
0