Skip to content

Commit

Permalink
Delete checkSMTstoreEqual
Browse files Browse the repository at this point in the history
  • Loading branch information
Manav-Aggarwal committed Aug 12, 2022
1 parent f2c8ef6 commit 483c7d9
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions baseapp/baseapp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2200,17 +2200,6 @@ func executeBlock(t *testing.T, app *BaseApp, txs []txTest, blockHeight int64) {
app.EndBlock(abci.RequestEndBlock{Height: blockHeight})
}

func checkSMTStoreEqual(appB1 *BaseApp, appB2 *BaseApp, storeKeyName string) bool {

cmsB1 := appB1.cms.(*multi.Store)
storeHashB1 := cmsB1.GetSubstoreSMT(storeKeyName).Root()

cmsB2 := appB2.cms.(*multi.Store)
storeHashB2 := cmsB2.GetSubstoreSMT(storeKeyName).Root()

return bytes.Equal(storeHashB1, storeHashB2)
}

func TestEndToEndFraudProof(t *testing.T) {
routerOpt := func(bapp *BaseApp) {
bapp.Router().AddRoute(sdk.NewRoute(routeMsgKeyValue, func(ctx sdk.Context, msg sdk.Msg) (*sdk.Result, error) {
Expand Down

0 comments on commit 483c7d9

Please sign in to comment.