ComposableFi / ibc-go

Interblockchain communication protocol (IBC) implementation in Golang.
https://ibcprotocol.org/
MIT License
8 stars 3 forks source link

FAIL: TestCheckHeaderAndUpdateState #34

Open boern opened 2 years ago

boern commented 2 years ago
→ types ±|main|$ go test -test.timeout=0 -run TestCheckHeaderAndUpdateState -v
=== RUN   TestCheckHeaderAndUpdateState
    update_test.go:46: ==== RPC_CLIENT_ADDRESS not set, will use default ====
2022/11/15 14:35:02 Connecting to ws://127.0.0.1:9944...
    update_test.go:53: ==== connected! ====
    update_test.go:73: ====== subcribed! ======
    update_test.go:144: Initializing client state
    update_test.go:148: Recieved Commitment #1
EROR[11-15|14:36:04] failed to calculate root for mmr leaf []
    update_test.go:351:
            Error Trace:    /home/boern/workspace/composable/ibc-go/modules/light-clients/11-beefy/types/update_test.go:351
            Error:          Received unexpected error:

                            github.com/cosmos/ibc-go/v5/modules/light-clients/11-beefy/types.(*ClientState).verifyHeader
                                /home/boern/workspace/composable/ibc-go/modules/light-clients/11-beefy/types/update.go:172
                            github.com/cosmos/ibc-go/v5/modules/light-clients/11-beefy/types.(*ClientState).VerifyClientMessage
                                /home/boern/workspace/composable/ibc-go/modules/light-clients/11-beefy/types/update.go:29
                            github.com/cosmos/ibc-go/v5/modules/light-clients/11-beefy/types_test.TestCheckHeaderAndUpdateState
                                /home/boern/workspace/composable/ibc-go/modules/light-clients/11-beefy/types/update_test.go:350
                            failed to encode MMR leaf: corrupted proof: proof items is not enough to build a tree
            Test:           TestCheckHeaderAndUpdateState
--- FAIL: TestCheckHeaderAndUpdateState (62.29s)
FAIL
exit status 1
FAIL    github.com/cosmos/ibc-go/v5/modules/light-clients/11-beefy/types    62.331s

I executed the test as described in the README, but it failed. The 11-beefy light client is still in development ? and it can be used in cosmos appchain ?