cosmos-sdk icon indicating copy to clipboard operation
cosmos-sdk copied to clipboard

[Bug]: simapp v1 snapshots restore return error with `unordered_txs` extension

Open hieuvubk opened this issue 5 months ago • 0 comments

When testing system-test, I got an error when run snapshots restore with simapp v1.

extension unordered_txs don't exhausted payload stream

Wonder why we have diff conditions with same snapshot item:

payload := nextItem.GetExtensionPayload()
if payload == nil {
	return nil, io.EOF
}

and

if nextItem.GetExtensionPayload() != nil {
	return fmt.Errorf("extension %s don't exhausted payload stream", metadata.Name)
}

currently failed because 2nd conditon.

hieuvubk avatar Aug 26 '24 13:08 hieuvubk