Skip to content
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

chore: bump TM to v0.35.0 release candidate #10210

Merged
merged 126 commits into from
Nov 16, 2021
Merged
Show file tree
Hide file tree
Changes from 111 commits
Commits
Show all changes
126 commits
Select commit Hold shift + click to select a range
24199fe
init commit
alexanderbez Sep 21, 2021
c10f754
update build
alexanderbez Sep 21, 2021
c22f6dd
update build
alexanderbez Sep 21, 2021
74dc513
update build
alexanderbez Sep 21, 2021
21b26e8
update build
alexanderbez Sep 21, 2021
6eabd63
update build
alexanderbez Sep 21, 2021
a1e33ba
update build
alexanderbez Sep 21, 2021
51364a2
moore changes
tac0turtle Sep 22, 2021
14d4899
Merge branch 'master' into bez/bump-tm-v0.35.x
tac0turtle Sep 22, 2021
c332101
Merge remote-tracking branch 'origin/master' into bump-tm-35
tychoish Sep 29, 2021
693e8f2
indirect gomod
tychoish Sep 29, 2021
4bdd6c0
Merge remote-tracking branch 'origin/master' into bump-tm-35
tychoish Sep 29, 2021
80d5d51
update to rc2
tychoish Sep 29, 2021
65cf9aa
fix lint err
tychoish Sep 29, 2021
9bc76a0
update
tychoish Sep 29, 2021
ccceeaf
lint downloads
tychoish Sep 29, 2021
b86511b
lint deps
tychoish Sep 29, 2021
06ebe66
fix all lint
tychoish Sep 29, 2021
8fb18ae
avoid linting gomod
tychoish Sep 29, 2021
6919471
echo diff
tychoish Sep 29, 2021
bceff25
avoid passing unfiltered list to linter
tychoish Sep 29, 2021
d09fe6d
fixer
tychoish Sep 30, 2021
ae4fe2f
avoid path hijinks
tychoish Sep 30, 2021
bf4ce68
start nodes
tychoish Sep 30, 2021
fb5f302
pass genesis doc to server
tychoish Oct 1, 2021
36c5669
Merge remote-tracking branch 'origin/master' into bez/bump-tm-v0.35.x
tychoish Oct 1, 2021
795f25d
things must be validator
tychoish Oct 1, 2021
937e208
fix lint
tychoish Oct 1, 2021
06bcaca
buildsystem fixes
tychoish Oct 1, 2021
c348876
fix merge
tychoish Oct 1, 2021
a257df4
fix logger test
tychoish Oct 1, 2021
7d271ac
buildsystem II
tychoish Oct 1, 2021
b20acc1
clean up simd app
tychoish Oct 1, 2021
f83f2ea
testnet probably wants validators
tychoish Oct 1, 2021
05963c4
fix test assertion
tychoish Oct 1, 2021
fa59c2e
another path bug
tychoish Oct 1, 2021
844f6b6
fix another cntains
tychoish Oct 1, 2021
576f1b9
fix config test
tychoish Oct 1, 2021
6018aec
avoid braodcasttxcommit
tychoish Oct 4, 2021
598de86
Merge remote-tracking branch 'origin/master' into bez/bump-tm-v0.35.x
tychoish Oct 4, 2021
764b7df
Revert "avoid braodcasttxcommit"
tychoish Oct 4, 2021
78aeefa
kick sync
tychoish Oct 4, 2021
89cb3b5
Merge remote-tracking branch 'origin/master' into bez/bump-tm-v0.35.x
tychoish Oct 4, 2021
d76b242
avoid other timeouts
tychoish Oct 4, 2021
23f4da4
Merge remote-tracking branch 'origin/master' into bez/bump-tm-v0.35.x
tychoish Oct 8, 2021
8334d61
fix compile
tychoish Oct 8, 2021
07e442f
upgrade to rc3
tychoish Oct 8, 2021
2cc0344
Skip confirmation for non-interactive tests.
creachadair Oct 19, 2021
89d74c6
Don't pass a valid address to an invalid address check.
creachadair Oct 19, 2021
93dc9df
Merge branch 'master' into bez/bump-tm-v0.35.x
creachadair Oct 19, 2021
33cd994
Fix module settings after merge.
creachadair Oct 19, 2021
5bc8e46
Revert "Skip confirmation for non-interactive tests."
creachadair Oct 19, 2021
6685d5c
Make golangci-lint work properly in CI.
creachadair Oct 19, 2021
2f6eb5f
Fix various lint warnings.
creachadair Oct 19, 2021
2e80447
Fix missing and unused import paths.
creachadair Oct 19, 2021
3ce56ad
cosmovisor: Check more accurately for DNS errors.
creachadair Oct 19, 2021
8172ce0
Merge branch 'master' into bez/bump-tm-v0.35.x
creachadair Oct 20, 2021
f7a8eb2
chore: Fix comment on DenomMetadata for 0.44 (#10408)
webmaster128 Oct 20, 2021
bb00071
Try to fix the build environment for the liveness test.
creachadair Oct 20, 2021
c131d82
Remove unnecessary dependency.
creachadair Oct 21, 2021
919a255
Drop check.
creachadair Oct 21, 2021
2171c2d
Merge branch 'master' into bez/bump-tm-v0.35.x
creachadair Oct 21, 2021
13de1b9
Fix up the build for the liveness test.
creachadair Oct 21, 2021
85720a9
Merge branch 'master' into bez/bump-tm-v0.35.x
creachadair Oct 21, 2021
5aa9c9b
Fix up go.mod and go.sum after merge.
creachadair Oct 21, 2021
24e3efc
Merge branch 'master' into bez/bump-tm-v0.35.x
creachadair Oct 21, 2021
9f4feb1
Fix up go.mod and go.sum after merge.
creachadair Oct 21, 2021
19f13f2
Wait for the network to settle between test cases.
creachadair Oct 22, 2021
df1cf9c
docs: fix heading level to title shows in TOC (#10423)
Oct 22, 2021
c294350
docs: adr-40: reduce multistore and make it atomic (#9355)
robert-zaremba Oct 22, 2021
c82e608
chore(upgrade): cleaning (#10413)
robert-zaremba Oct 22, 2021
b81a447
feat: Add `fee.{payer,granter}` and `tip` fields to StdSignDoc (#10348)
amaury1093 Oct 22, 2021
9b8173d
Fix broken download test.
creachadair Oct 22, 2021
878489c
Merge branch 'master' into bez/bump-tm-v0.35.x
creachadair Oct 22, 2021
ae40fff
Merge branch 'master' into bez/bump-tm-v0.35.x
creachadair Oct 26, 2021
59765bd
Fix go.sum after merge.
creachadair Oct 26, 2021
9d932d3
Fix module settings after merge.
creachadair Oct 26, 2021
cb97538
Fixup from merge.
creachadair Oct 26, 2021
a83d11b
Merge branch 'master' into bez/bump-tm-v0.35.x
creachadair Oct 26, 2021
bfa5746
Unbreak merge
creachadair Oct 26, 2021
4bf3604
Fix import package name.
creachadair Oct 26, 2021
b5ef9bd
Merge branch 'master' into bez/bump-tm-v0.35.x
creachadair Oct 27, 2021
b30113e
Remove dependency on internal package.
creachadair Oct 27, 2021
fddb7c2
Merge branch 'master' into bez/bump-tm-v0.35.x
creachadair Oct 28, 2021
334db22
Update to v0.35.0-rc4.
creachadair Oct 29, 2021
f2e38f6
fix: github test workflow (#10325)
robert-zaremba Oct 28, 2021
6453811
build(deps): Bump amannn/action-semantic-pull-request (#10456)
dependabot[bot] Oct 29, 2021
f22f113
Merge branch 'master' into bez/bump-tm-v0.35.x
creachadair Oct 30, 2021
dd6a7c8
Disable rocksdb test.
creachadair Oct 30, 2021
d18adb7
Merge branch 'master' into bez/bump-tm-v0.35.x
creachadair Oct 30, 2021
d8947cb
Fix CI lint.
creachadair Oct 30, 2021
cc08ecc
Fix CI lint. Does nobody ever check these?
creachadair Oct 30, 2021
97dfe2b
Merge branch 'master' into bez/bump-tm-v0.35.x
creachadair Nov 1, 2021
53302df
Fix up go.mod after merge.
creachadair Nov 1, 2021
68f589b
More lint.
creachadair Nov 1, 2021
89310ab
Merge branch 'master' into bez/bump-tm-v0.35.x
creachadair Nov 2, 2021
9d85bd4
Merge branch 'master' into bez/bump-tm-v0.35.x
creachadair Nov 3, 2021
5c28503
Fix up go.mod and go.sum after merge.
creachadair Nov 3, 2021
887c2dd
Update tendermint to v0.35.0 (release).
creachadair Nov 4, 2021
2cb650c
Update to v0.35.0 in submodules too.
creachadair Nov 4, 2021
fbb16cc
Merge branch 'master' into bez/bump-tm-v0.35.x
cmwaters Nov 8, 2021
ba188dd
revert some workflow changes
cmwaters Nov 8, 2021
6fbe09a
fix missing time import
cmwaters Nov 8, 2021
8be42e3
Merge branch 'master' into bez/bump-tm-v0.35.x
creachadair Nov 9, 2021
1b428bd
Fix go.mod and go.sum files after merge.
creachadair Nov 9, 2021
35523ad
Fix liveness again.
creachadair Nov 9, 2021
deee573
Fix variable.
creachadair Nov 9, 2021
bd772b9
Fix variable again.
creachadair Nov 9, 2021
43e8178
remove duplicate groups import
cmwaters Nov 10, 2021
9745b37
Merge branch 'master' into bez/bump-tm-v0.35.x
creachadair Nov 10, 2021
10c78ac
Fix go.sum after merge.
creachadair Nov 10, 2021
ea7f867
Merge branch 'master' into bez/bump-tm-v0.35.x
creachadair Nov 10, 2021
ec06728
Merge branch 'master' into bez/bump-tm-v0.35.x
cmwaters Nov 15, 2021
27e5990
revert dependency changes to db, container and cosmovisor packages
cmwaters Nov 15, 2021
85e637f
Merge branch 'master' into bez/bump-tm-v0.35.x
creachadair Nov 15, 2021
d47aef3
minor changes
tac0turtle Nov 16, 2021
d3fbd3d
revert pb.gw.go files
tac0turtle Nov 16, 2021
02320c4
minor changes
tac0turtle Nov 16, 2021
8d0fff5
Merge branch 'master' into bez/bump-tm-v0.35.x
creachadair Nov 16, 2021
6cc1f4e
Add a CHANGLOG entry for TM update.
creachadair Nov 16, 2021
d9e82e8
Merge branch 'master' into bez/bump-tm-v0.35.x
creachadair Nov 16, 2021
138c09a
Fix module files after merge.
creachadair Nov 16, 2021
bf7322c
Merge branch 'master' into bez/bump-tm-v0.35.x
tac0turtle Nov 16, 2021
d1635bf
Comment out stalled test and link an issue.
creachadair Nov 16, 2021
1142c30
Merge branch 'master' into bez/bump-tm-v0.35.x
creachadair Nov 16, 2021
c6b34db
Fix modules after merge.
creachadair Nov 16, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ jobs:
go.sum
- name: start localnet
run: |
make clean build-simd-linux localnet-start
make clean localnet-start
if: env.GIT_DIFF
- name: test liveness
run: |
Expand Down
7 changes: 3 additions & 4 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ linters:
- depguard
- dogsled
# - errcheck
- exportloopref
- goconst
- gocritic
- gofmt
Expand All @@ -21,19 +22,17 @@ linters:
- ineffassign
- misspell
- nakedret
- nolintlint
- prealloc
- revive
- exportloopref
- staticcheck
- structcheck
- stylecheck
- typecheck
- unconvert
- unused
- unparam
- misspell
creachadair marked this conversation as resolved.
Show resolved Hide resolved
- unused
# - wsl
- nolintlint

issues:
exclude-rules:
Expand Down
46 changes: 9 additions & 37 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

PACKAGES_NOSIMULATION=$(shell go list ./... | grep -v '/simulation')
PACKAGES_SIMTEST=$(shell go list ./... | grep '/simulation')
VERSION := $(shell echo $(shell git describe --always --match "v*") | sed 's/^v//')
TMVERSION := $(shell go list -m github.com/tendermint/tendermint | sed 's:.* ::')
COMMIT := $(shell git log -1 --format='%H')
export VERSION := $(shell echo $(shell git describe --always --match "v*") | sed 's/^v//')
export TMVERSION := $(shell go list -m github.com/tendermint/tendermint | sed 's:.* ::')
export COMMIT := $(shell git log -1 --format='%H')
LEDGER_ENABLED ?= true
BINDIR ?= $(GOPATH)/bin
BUILDDIR ?= $(CURDIR)/build
Expand Down Expand Up @@ -117,33 +117,10 @@ $(BUILD_TARGETS): go.sum $(BUILDDIR)/
$(BUILDDIR)/:
mkdir -p $(BUILDDIR)/

build-simd-all: go.sum
$(DOCKER) rm latest-build || true
$(DOCKER) run --volume=$(CURDIR):/sources:ro \
--env TARGET_PLATFORMS='linux/amd64 darwin/amd64 linux/arm64 windows/amd64' \
--env APP=simd \
--env VERSION=$(VERSION) \
--env COMMIT=$(COMMIT) \
--env LEDGER_ENABLED=$(LEDGER_ENABLED) \
--name latest-build tendermintdev/rbuilder:latest
$(DOCKER) cp -a latest-build:/home/builder/artifacts/ $(CURDIR)/

build-simd-linux: go.sum $(BUILDDIR)/
$(DOCKER) rm latest-build || true
$(DOCKER) run --volume=$(CURDIR):/sources:ro \
--env TARGET_PLATFORMS='linux/amd64' \
--env APP=simd \
--env VERSION=$(VERSION) \
--env COMMIT=$(COMMIT) \
--env LEDGER_ENABLED=false \
--name latest-build tendermintdev/rbuilder:latest
$(DOCKER) cp -a latest-build:/home/builder/artifacts/ $(CURDIR)/
cp artifacts/simd-*-linux-amd64 $(BUILDDIR)/simd

Comment on lines -120 to -142
Copy link
Contributor

Choose a reason for hiding this comment

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

Why are we removing this? I'm not sure if we need to change the Makefile in any way

Copy link
Contributor

Choose a reason for hiding this comment

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

I don't know -- this change was already on the branch when I started hacking on it. I believe maybe someone said these targets aren't needed anymore? But I don't see that in the log, that's a vague memory of a side convo.

Copy link
Member

Choose a reason for hiding this comment

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

@alexanderbez do you have context?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ughhh I don't recall...I also don't recall removing these?

Copy link
Contributor

Choose a reason for hiding this comment

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

It looks like they came out in 06bcaca. @tychoish do I recall rightly that someone told you these weren't needed?

Copy link
Contributor

Choose a reason for hiding this comment

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

I think I removed these on the recommendation of @robert-zaremba

Copy link
Contributor

Choose a reason for hiding this comment

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

Something about the rbuilder images being out-of-date and maybe not needed?

Copy link
Contributor

Choose a reason for hiding this comment

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

This probably would have been better as a separate PR but as long as there is a good reason for it I'm okay

cosmovisor:
$(MAKE) -C cosmovisor cosmovisor

.PHONY: build build-linux build-simd-all build-simd-linux cosmovisor
.PHONY: build build-linux cosmovisor

mockgen_cmd=go run github.com/golang/mock/mockgen

Expand Down Expand Up @@ -349,8 +326,8 @@ golangci_lint_cmd=golangci-lint
lint: lint-go
@if docker ps -a --format '{{.Names}}' | grep -Eq "^${containerMarkdownLint}$$"; then docker start -a $(containerMarkdownLint); else docker run --name $(containerMarkdownLint) -i -v "$(CURDIR):/work" $(markdownLintImage); fi

lint-fix:
$(golangci_lint_cmd) run --fix --out-format=tab --issues-exit-code=0
lint-fix: install-golangci-lint
golangci-lint run --fix --out-format=tab --issues-exit-code=0
@if docker ps -a --format '{{.Names}}' | grep -Eq "^${containerMarkdownLintFix}$$"; then docker start -a $(containerMarkdownLintFix); else docker run --name $(containerMarkdownLintFix) -i -v "$(CURDIR):/work" $(markdownLintImage) . --fix; fi

lint-go:
Expand Down Expand Up @@ -496,15 +473,10 @@ proto-update-deps:
###############################################################################

# Run a 4-node testnet locally via docker compose
localnet-start: build-linux localnet-stop
localnet-start: localnet-stop
$(if $(shell $(DOCKER) inspect -f '{{ .Id }}' cosmossdk/simd-env 2>/dev/null),$(info found image cosmossdk/simd-env),$(MAKE) -C contrib/images simd-env)
if ! test -f build/node0/simd/config/genesis.json; then $(DOCKER) run --rm \
--user $(shell id -u):$(shell id -g) \
-v $(BUILDDIR):/simd:Z \
-v /etc/group:/etc/group:ro \
-v /etc/passwd:/etc/passwd:ro \
-v /etc/shadow:/etc/shadow:ro \
cosmossdk/simd-env testnet init-files --v 4 -o . --starting-ip-address 192.168.10.2 --keyring-backend=test ; fi
$(DOCKER) run --rm -v $(CURDIR)/localnet:/data cosmossdk/simd-env \
testnet init-files --v 4 -o /data --starting-ip-address 192.168.10.2 --keyring-backend=test
docker-compose up -d

localnet-stop:
Expand Down
6 changes: 0 additions & 6 deletions baseapp/abci.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,12 +116,6 @@ func (app *BaseApp) Info(req abci.RequestInfo) abci.ResponseInfo {
}
}

// SetOption implements the ABCI interface.
func (app *BaseApp) SetOption(req abci.RequestSetOption) (res abci.ResponseSetOption) {
// TODO: Implement!
return
}

// FilterPeerByAddrPort filters peers by address/port.
func (app *BaseApp) FilterPeerByAddrPort(info string) abci.ResponseQuery {
if app.addrPeerFilter != nil {
Expand Down
2 changes: 1 addition & 1 deletion baseapp/abci_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ func TestGetBlockRentionHeight(t *testing.T) {

tc.bapp.SetParamStore(&paramStore{db: dbm.NewMemDB()})
tc.bapp.InitChain(abci.RequestInitChain{
ConsensusParams: &abci.ConsensusParams{
ConsensusParams: &tmprototypes.ConsensusParams{
Evidence: &tmprototypes.EvidenceParams{
MaxAgeNumBlocks: tc.maxAgeBlocks,
},
Expand Down
8 changes: 4 additions & 4 deletions baseapp/baseapp.go
Original file line number Diff line number Diff line change
Expand Up @@ -376,15 +376,15 @@ func (app *BaseApp) setDeliverState(header tmproto.Header) {

// GetConsensusParams returns the current consensus parameters from the BaseApp's
// ParamStore. If the BaseApp has no ParamStore defined, nil is returned.
func (app *BaseApp) GetConsensusParams(ctx sdk.Context) *abci.ConsensusParams {
func (app *BaseApp) GetConsensusParams(ctx sdk.Context) *tmproto.ConsensusParams {
if app.paramStore == nil {
return nil
}

cp := new(abci.ConsensusParams)
cp := new(tmproto.ConsensusParams)

if app.paramStore.Has(ctx, ParamStoreKeyBlockParams) {
var bp abci.BlockParams
var bp tmproto.BlockParams

app.paramStore.Get(ctx, ParamStoreKeyBlockParams, &bp)
cp.Block = &bp
Expand All @@ -408,7 +408,7 @@ func (app *BaseApp) GetConsensusParams(ctx sdk.Context) *abci.ConsensusParams {
}

// StoreConsensusParams sets the consensus parameters to the baseapp's param store.
func (app *BaseApp) StoreConsensusParams(ctx sdk.Context, cp *abci.ConsensusParams) {
func (app *BaseApp) StoreConsensusParams(ctx sdk.Context, cp *tmproto.ConsensusParams) {
if app.paramStore == nil {
panic("cannot store consensus params with no params store set")
}
Expand Down
23 changes: 12 additions & 11 deletions baseapp/baseapp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ func (ps *paramStore) Get(_ sdk.Context, key []byte, ptr interface{}) {
}

func defaultLogger() log.Logger {
return log.NewTMLogger(log.NewSyncWriter(os.Stdout)).With("module", "sdk/app")
logger, _ := log.NewDefaultLogger("plain", "info", false)
return logger.With("module", "sdk/app")
}

func newBaseApp(name string, options ...func(*baseapp.BaseApp)) *baseapp.BaseApp {
Expand Down Expand Up @@ -1431,8 +1432,8 @@ func TestMaxBlockGasLimits(t *testing.T) {
app := setupBaseApp(t, txHandlerOpt)

app.InitChain(abci.RequestInitChain{
ConsensusParams: &abci.ConsensusParams{
Block: &abci.BlockParams{
ConsensusParams: &tmproto.ConsensusParams{
Block: &tmproto.BlockParams{
MaxGas: 100,
},
},
Expand Down Expand Up @@ -1611,8 +1612,8 @@ func TestGasConsumptionBadTx(t *testing.T) {
app := setupBaseApp(t, txHandlerOpt)

app.InitChain(abci.RequestInitChain{
ConsensusParams: &abci.ConsensusParams{
Block: &abci.BlockParams{
ConsensusParams: &tmproto.ConsensusParams{
Block: &tmproto.BlockParams{
MaxGas: 9,
},
},
Expand Down Expand Up @@ -1776,16 +1777,16 @@ func TestGetMaximumBlockGas(t *testing.T) {
app.InitChain(abci.RequestInitChain{})
ctx := app.NewContext(true, tmproto.Header{})

app.StoreConsensusParams(ctx, &abci.ConsensusParams{Block: &abci.BlockParams{MaxGas: 0}})
app.StoreConsensusParams(ctx, &tmproto.ConsensusParams{Block: &tmproto.BlockParams{MaxGas: 0}})
require.Equal(t, uint64(0), app.GetMaximumBlockGas(ctx))

app.StoreConsensusParams(ctx, &abci.ConsensusParams{Block: &abci.BlockParams{MaxGas: -1}})
app.StoreConsensusParams(ctx, &tmproto.ConsensusParams{Block: &tmproto.BlockParams{MaxGas: -1}})
require.Equal(t, uint64(0), app.GetMaximumBlockGas(ctx))

app.StoreConsensusParams(ctx, &abci.ConsensusParams{Block: &abci.BlockParams{MaxGas: 5000000}})
app.StoreConsensusParams(ctx, &tmproto.ConsensusParams{Block: &tmproto.BlockParams{MaxGas: 5000000}})
require.Equal(t, uint64(5000000), app.GetMaximumBlockGas(ctx))

app.StoreConsensusParams(ctx, &abci.ConsensusParams{Block: &abci.BlockParams{MaxGas: -5000000}})
app.StoreConsensusParams(ctx, &tmproto.ConsensusParams{Block: &tmproto.BlockParams{MaxGas: -5000000}})
require.Panics(t, func() { app.GetMaximumBlockGas(ctx) })
}

Expand Down Expand Up @@ -2014,8 +2015,8 @@ func TestBaseApp_EndBlock(t *testing.T) {
name := t.Name()
logger := defaultLogger()

cp := &abci.ConsensusParams{
Block: &abci.BlockParams{
cp := &tmproto.ConsensusParams{
Block: &tmproto.BlockParams{
MaxGas: 5000000,
},
}
Expand Down
4 changes: 2 additions & 2 deletions baseapp/grpcrouter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package baseapp_test

import (
"context"
"os"
"sync"
"testing"

Expand Down Expand Up @@ -55,7 +54,8 @@ func TestRegisterQueryServiceTwice(t *testing.T) {
// Setup baseapp.
db := dbm.NewMemDB()
encCfg := simapp.MakeTestEncodingConfig()
app := baseapp.NewBaseApp("test", log.NewTMLogger(log.NewSyncWriter(os.Stdout)), db, encCfg.TxConfig.TxDecoder())
logger, _ := log.NewDefaultLogger("plain", "info", false)
app := baseapp.NewBaseApp("test", logger, db, encCfg.TxConfig.TxDecoder())
app.SetInterfaceRegistry(encCfg.InterfaceRegistry)
testdata.RegisterInterfaces(encCfg.InterfaceRegistry)

Expand Down
3 changes: 1 addition & 2 deletions baseapp/params.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"errors"
"fmt"

abci "github.com/tendermint/tendermint/abci/types"
tmproto "github.com/tendermint/tendermint/proto/tendermint/types"

sdk "github.com/cosmos/cosmos-sdk/types"
Expand All @@ -31,7 +30,7 @@ type ParamStore interface {
// ValidateBlockParams defines a stateless validation on BlockParams. This function
// is called whenever the parameters are updated or stored.
func ValidateBlockParams(i interface{}) error {
v, ok := i.(abci.BlockParams)
v, ok := i.(tmproto.BlockParams)
if !ok {
return fmt.Errorf("invalid parameter type: %T", i)
}
Expand Down
11 changes: 5 additions & 6 deletions baseapp/params_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"testing"

"github.com/stretchr/testify/require"
abci "github.com/tendermint/tendermint/abci/types"
tmproto "github.com/tendermint/tendermint/proto/tendermint/types"

"github.com/cosmos/cosmos-sdk/baseapp"
Expand All @@ -16,11 +15,11 @@ func TestValidateBlockParams(t *testing.T) {
expectErr bool
}{
{nil, true},
{&abci.BlockParams{}, true},
{abci.BlockParams{}, true},
{abci.BlockParams{MaxBytes: -1, MaxGas: -1}, true},
{abci.BlockParams{MaxBytes: 2000000, MaxGas: -5}, true},
{abci.BlockParams{MaxBytes: 2000000, MaxGas: 300000}, false},
{&tmproto.BlockParams{}, true},
{tmproto.BlockParams{}, true},
{tmproto.BlockParams{MaxBytes: -1, MaxGas: -1}, true},
{tmproto.BlockParams{MaxBytes: 2000000, MaxGas: -5}, true},
{tmproto.BlockParams{MaxBytes: 2000000, MaxGas: 300000}, false},
}

for _, tc := range testCases {
Expand Down
3 changes: 1 addition & 2 deletions client/broadcast.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"fmt"
"strings"

"github.com/tendermint/tendermint/mempool"
tmtypes "github.com/tendermint/tendermint/types"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
Expand Down Expand Up @@ -55,7 +54,7 @@ func CheckTendermintError(err error, tx tmtypes.Tx) *sdk.TxResponse {
txHash := fmt.Sprintf("%X", tx.Hash())

switch {
case strings.Contains(errStr, strings.ToLower(mempool.ErrTxInCache.Error())):
case strings.Contains(errStr, strings.ToLower(tmtypes.ErrTxInCache.Error())):
return &sdk.TxResponse{
Code: sdkerrors.ErrTxInMempoolCache.ABCICode(),
Codespace: sdkerrors.ErrTxInMempoolCache.Codespace(),
Expand Down
15 changes: 7 additions & 8 deletions client/broadcast_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@ import (

"github.com/stretchr/testify/require"
"github.com/tendermint/tendermint/crypto/tmhash"
"github.com/tendermint/tendermint/mempool"
"github.com/tendermint/tendermint/rpc/client/mock"
ctypes "github.com/tendermint/tendermint/rpc/core/types"
"github.com/tendermint/tendermint/rpc/coretypes"
tmtypes "github.com/tendermint/tendermint/types"

"github.com/cosmos/cosmos-sdk/client/flags"
Expand All @@ -21,15 +20,15 @@ type MockClient struct {
err error
}

func (c MockClient) BroadcastTxCommit(ctx context.Context, tx tmtypes.Tx) (*ctypes.ResultBroadcastTxCommit, error) {
func (c MockClient) BroadcastTxCommit(ctx context.Context, tx tmtypes.Tx) (*coretypes.ResultBroadcastTxCommit, error) {
return nil, c.err
}

func (c MockClient) BroadcastTxAsync(ctx context.Context, tx tmtypes.Tx) (*ctypes.ResultBroadcastTx, error) {
func (c MockClient) BroadcastTxAsync(ctx context.Context, tx tmtypes.Tx) (*coretypes.ResultBroadcastTx, error) {
return nil, c.err
}

func (c MockClient) BroadcastTxSync(ctx context.Context, tx tmtypes.Tx) (*ctypes.ResultBroadcastTx, error) {
func (c MockClient) BroadcastTxSync(ctx context.Context, tx tmtypes.Tx) (*coretypes.ResultBroadcastTx, error) {
return nil, c.err
}

Expand All @@ -43,9 +42,9 @@ func CreateContextWithErrorAndMode(err error, mode string) Context {
// Test the correct code is returned when
func TestBroadcastError(t *testing.T) {
errors := map[error]uint32{
mempool.ErrTxInCache: sdkerrors.ErrTxInMempoolCache.ABCICode(),
mempool.ErrTxTooLarge{}: sdkerrors.ErrTxTooLarge.ABCICode(),
mempool.ErrMempoolIsFull{}: sdkerrors.ErrMempoolIsFull.ABCICode(),
tmtypes.ErrTxInCache: sdkerrors.ErrTxInMempoolCache.ABCICode(),
tmtypes.ErrTxTooLarge{}: sdkerrors.ErrTxTooLarge.ABCICode(),
tmtypes.ErrMempoolIsFull{}: sdkerrors.ErrMempoolIsFull.ABCICode(),
}

modes := []string{
Expand Down
Loading