Skip to content

replace tm for cmt - #101

Merged
lasarojc merged 8 commits into
mainfrom
lasarojc/100/replace-tm-for-cmt
Jan 16, 2023
Merged

lasarojc merged 8 commits into
mainfrom
lasarojc/100/replace-tm-for-cmt

Conversation

@lasarojc

@lasarojc lasarojc commented Jan 12, 2023 •

Copy link
Copy Markdown
Contributor

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
@thanethomson

Copy link
Copy Markdown
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.

@thanethomson thanethomson left a comment

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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
Copy Markdown
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

@sergio-mena sergio-mena left a comment •

Copy link
Copy Markdown
Collaborator

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