Skip to content

Commit c73a7ac

Browse files
committed
fix benchmark
1 parent ae41246 commit c73a7ac

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

benchmark/app_test.go

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ func InitializeBenchmarkApp(tb testing.TB, maxGasPerBlock int64) *BenchmarkApp {
4343
},
4444
TB: tb,
4545
}
46-
ba.Ctx = ba.NewUncachedContext(false, tmproto.Header{})
46+
ba.Ctx = ba.NewUncachedContext(false, tmproto.Header{ChainID: bandtesting.ChainID})
4747
ba.Querier = keeper.Querier{
4848
Keeper: ba.OracleKeeper,
4949
}
@@ -91,8 +91,11 @@ func (ba *BenchmarkApp) DeliverMsg(account *Account, msgs []sdk.Msg) (sdk.GasInf
9191
func (ba *BenchmarkApp) CallBeginBlock() abci.ResponseBeginBlock {
9292
return ba.BeginBlock(
9393
abci.RequestBeginBlock{
94-
Header: tmproto.Header{Height: ba.LastBlockHeight() + 1},
95-
Hash: ba.LastCommitID().Hash,
94+
Header: tmproto.Header{
95+
Height: ba.LastBlockHeight() + 1,
96+
ChainID: bandtesting.ChainID,
97+
},
98+
Hash: ba.LastCommitID().Hash,
9699
},
97100
)
98101
}

benchmark/helper_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ func GenSequenceOfTxs(
133133
msgs,
134134
sdk.Coins{sdk.NewInt64Coin("uband", 1)},
135135
math.MaxInt64,
136-
"",
136+
bandtesting.ChainID,
137137
[]uint64{account.Num},
138138
[]uint64{account.Seq},
139139
account.PrivKey,

0 commit comments

Comments
 (0)