Skip to content

Commit

Permalink
sei-tm: updated proto with gas estimated + build blocks with gas used…
Browse files Browse the repository at this point in the history
… + mempool tests
  • Loading branch information
jewei1997 committed Feb 16, 2025
1 parent 1426ace commit 72c9ed2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -351,15 +351,15 @@ replace (
github.com/CosmWasm/wasmd => github.com/sei-protocol/sei-wasmd v0.3.0
github.com/CosmWasm/wasmvm => github.com/sei-protocol/sei-wasmvm v1.5.4-sei.0.0.1
github.com/confio/ics23/go => github.com/cosmos/cosmos-sdk/ics23/go v0.8.0
github.com/cosmos/cosmos-sdk => github.com/sei-protocol/sei-cosmos v0.3.53-0.20250215035109-fe415094782d
github.com/cosmos/cosmos-sdk => github.com/sei-protocol/sei-cosmos v0.3.53-0.20250216212604-71bb5f7f06e8
github.com/cosmos/iavl => github.com/sei-protocol/sei-iavl v0.2.0
github.com/cosmos/ibc-go/v3 => github.com/sei-protocol/sei-ibc-go/v3 v3.3.5
github.com/ethereum/go-ethereum => github.com/sei-protocol/go-ethereum v1.13.5-sei-9.0.20241224143343-21ee50facc96
github.com/gogo/protobuf => github.com/regen-network/protobuf v1.3.3-alpha.regen.1
github.com/sei-protocol/sei-db => github.com/sei-protocol/sei-db v0.0.47
// Latest goleveldb is broken, we have to stick to this version
github.com/syndtr/goleveldb => github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7
github.com/tendermint/tendermint => github.com/sei-protocol/sei-tendermint v0.4.8-0.20250215035453-d3dc9a04aab3
github.com/tendermint/tendermint => github.com/sei-protocol/sei-tendermint v0.4.8-0.20250216212059-b2eb16b4df9d
github.com/tendermint/tm-db => github.com/sei-protocol/tm-db v0.0.4
google.golang.org/grpc => google.golang.org/grpc v1.33.2
)
8 changes: 4 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -1348,16 +1348,16 @@ github.com/sei-protocol/go-ethereum v1.13.5-sei-9.0.20241224143343-21ee50facc96
github.com/sei-protocol/go-ethereum v1.13.5-sei-9.0.20241224143343-21ee50facc96/go.mod h1:kcRZmuzRn1lVejiFNTz4l4W7imnpq1bDAnuKS/RyhbQ=
github.com/sei-protocol/goutils v0.0.2 h1:Bfa7Sv+4CVLNM20QcpvGb81B8C5HkQC/kW1CQpIbXDA=
github.com/sei-protocol/goutils v0.0.2/go.mod h1:iYE2DuJfEnM+APPehr2gOUXfuLuPsVxorcDO+Tzq9q8=
github.com/sei-protocol/sei-cosmos v0.3.53-0.20250215035109-fe415094782d h1:6e6N9QbbCVkMN0YsnXo1Vhacv/XazK+6zOuppjxYI4w=
github.com/sei-protocol/sei-cosmos v0.3.53-0.20250215035109-fe415094782d/go.mod h1:X/Fhh/QNNBKIVvJJUT3IKz4nyJ8PhB5/iFD0LSlyB74=
github.com/sei-protocol/sei-cosmos v0.3.53-0.20250216212604-71bb5f7f06e8 h1:MQHZm+aJT96g6/eC7KkWeou+2OeVb1FldJdBPtr/Tbw=
github.com/sei-protocol/sei-cosmos v0.3.53-0.20250216212604-71bb5f7f06e8/go.mod h1:X/Fhh/QNNBKIVvJJUT3IKz4nyJ8PhB5/iFD0LSlyB74=
github.com/sei-protocol/sei-db v0.0.47 h1:/1/btOKcNd+JPbCNTb87DENlKix7lnpubxAPWFgvrig=
github.com/sei-protocol/sei-db v0.0.47/go.mod h1:m5g7p0QeAS3dNJHIl28zQpzOgxQmvYqPb7t4hwgIOCA=
github.com/sei-protocol/sei-iavl v0.2.0 h1:OisPjXiDT+oe+aeckzDEFgkZCYuUjHgs/PP8DPicN+I=
github.com/sei-protocol/sei-iavl v0.2.0/go.mod h1:qRf8QYUPfrAO7K6VDB2B2l/N7K5L76OorioGBcJBIbw=
github.com/sei-protocol/sei-ibc-go/v3 v3.3.5 h1:SQRzWi9KSMuGNGd3f5RWAmsGGk7yeY1zhnEnrr/nqug=
github.com/sei-protocol/sei-ibc-go/v3 v3.3.5/go.mod h1:VwB/vWu4ysT5DN2aF78d17LYmx3omSAdq6gpKvM7XRA=
github.com/sei-protocol/sei-tendermint v0.4.8-0.20250215035453-d3dc9a04aab3 h1:9q16dmMaVfXs9DYX5nPpugKEMZg9gziJi9QFXiAXqZI=
github.com/sei-protocol/sei-tendermint v0.4.8-0.20250215035453-d3dc9a04aab3/go.mod h1:4LSlJdhl3nf3OmohliwRNUFLOB1XWlrmSodrIP7fLh4=
github.com/sei-protocol/sei-tendermint v0.4.8-0.20250216212059-b2eb16b4df9d h1:d2+5DFKMyJyakHieePgo7YFMetcVq/7xMs5MMDXKWns=
github.com/sei-protocol/sei-tendermint v0.4.8-0.20250216212059-b2eb16b4df9d/go.mod h1:4LSlJdhl3nf3OmohliwRNUFLOB1XWlrmSodrIP7fLh4=
github.com/sei-protocol/sei-tm-db v0.0.5 h1:3WONKdSXEqdZZeLuWYfK5hP37TJpfaUa13vAyAlvaQY=
github.com/sei-protocol/sei-tm-db v0.0.5/go.mod h1:Cpa6rGyczgthq7/0pI31jys2Fw0Nfrc+/jKdP1prVqY=
github.com/sei-protocol/sei-wasmd v0.3.0 h1:IJabKisvmsstAPsVAk37HxVyQwAe36g1CNYM/QcPisc=
Expand Down
4 changes: 2 additions & 2 deletions x/evm/ante/gas.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ func (gl GasDecorator) AnteHandle(ctx sdk.Context, tx sdk.Tx, simulate bool, nex
fmt.Printf("[DEBUG]: In x/evm/ante/gas.go/NewGasLimitDecorator: gasMeter limit = %+v\n", gasMeter.Limit())
ctx = ctx.WithGasMeter(gasMeter)
if tx.GetGasEstimate() >= 21000 {

Check failure on line 32 in x/evm/ante/gas.go

View workflow job for this annotation

GitHub Actions / forward-compatibility

tx.GetGasEstimate undefined (type "github.com/cosmos/cosmos-sdk/types".Tx has no field or method GetGasEstimate)
ctx = ctx.WithGasUsedEstimate(tx.GetGasEstimate())
ctx = ctx.WithGasEstimate(tx.GetGasEstimate())

Check failure on line 33 in x/evm/ante/gas.go

View workflow job for this annotation

GitHub Actions / forward-compatibility

ctx.WithGasEstimate undefined (type "github.com/cosmos/cosmos-sdk/types".Context has no field or method WithGasEstimate)

Check failure on line 33 in x/evm/ante/gas.go

View workflow job for this annotation

GitHub Actions / forward-compatibility

tx.GetGasEstimate undefined (type "github.com/cosmos/cosmos-sdk/types".Tx has no field or method GetGasEstimate)
} else {
ctx = ctx.WithGasUsedEstimate(gasMeter.GasConsumed())
ctx = ctx.WithGasEstimate(gasMeter.GasConsumed())

Check failure on line 35 in x/evm/ante/gas.go

View workflow job for this annotation

GitHub Actions / forward-compatibility

ctx.WithGasEstimate undefined (type "github.com/cosmos/cosmos-sdk/types".Context has no field or method WithGasEstimate)
}
return next(ctx, tx, simulate)
}

0 comments on commit 72c9ed2

Please sign in to comment.