Closed shuse2 closed 1 year ago
When bitmap is 0, it should use the empty hash instead of using the next query it should follow as this PR
0
https://github.com/LiskHQ/lisk-engine/blob/main/pkg/trie/smt/verify.go#L73 In this first condition, bitmap is not considered. Therefore, even when bitmap is 0, it will be ignored and
Change the first bitmap of the jumbo SMT fixture, and check if it passes the test
Expected behavior
When bitmap is
0
, it should use the empty hash instead of using the next query it should follow as this PRActual behavior
https://github.com/LiskHQ/lisk-engine/blob/main/pkg/trie/smt/verify.go#L73 In this first condition, bitmap is not considered. Therefore, even when bitmap is
0
, it will be ignored andSteps to reproduce
Change the first bitmap of the jumbo SMT fixture, and check if it passes the test