Closed danwt closed 2 years ago
This could be a false positive or a problem with the way the test is setup.
Replication commit
cd x/ccv/difftest
go test -run TestDTTestSuite/TestAssumptions diff_test.go
When I test acknowledgements, there is an error delivering the first ACK from the consumer back to the provider. That is: the first empty VSC packet is required in order to complete the init handshake. The ack for this fails to be delivered using the ibc-go testing framework.
Why "the first empty VSC packet"?
The first VSC packet is sent either here https://github.com/cosmos/interchain-security/blob/10c19a090536e3373f66a8131c833cdafb7abd43/x/ccv/provider/keeper/relay.go#L130 (in case there are pending VSCs) or here https://github.com/cosmos/interchain-security/blob/10c19a090536e3373f66a8131c833cdafb7abd43/x/ccv/provider/keeper/relay.go#L152 once GetChainToChannel(ctx, chainID)
returns a channelID
, which is set here https://github.com/cosmos/interchain-security/blob/10c19a090536e3373f66a8131c833cdafb7abd43/x/ccv/provider/module.go#L311
Hey I will look into this again. I was using an empty vsc packet in the tests to explicitly complete the last step of the handshake.
I will check if this is a real bug or if it's just because of the way the test is written.
I had a single character typo.
When I test acknowledgements, there is an error delivering the first ACK from the consumer back to the provider. That is: the first empty VSC packet is required in order to complete the init handshake. The ack for this fails to be delivered using the ibc-go testing framework.
I need to debug more but this is not a priority. Here is the ack data
here is the error
here is the relevant code
and here is the capability name and ctx