This issue is encapsulating this TODO https://github.com/lazyledger/lazyledger-core/blob/a77b6791c1eb19506d03cdb79b234076b6b444bf/types/block.go#L1354 as a bonus side quest, we should only use one piece of code to find the next power of two. Currently, there are two different functions that define the similar functionality. https://github.com/lazyledger/lazyledger-core/blob/a77b6791c1eb19506d03cdb79b234076b6b444bf/p2p/ipld/read.go#L73 and https://github.com/lazyledger/lazyledger-core/blob/a77b6791c1eb19506d03cdb79b234076b6b444bf/crypto/merkle/tree.go#L95
This issue is encapsulating this TODO https://github.com/lazyledger/lazyledger-core/blob/a77b6791c1eb19506d03cdb79b234076b6b444bf/types/block.go#L1354
as a bonus side quest, we should only use one piece of code to find the next power of two. Currently, there are two different functions that define the similar functionality.
https://github.com/lazyledger/lazyledger-core/blob/a77b6791c1eb19506d03cdb79b234076b6b444bf/p2p/ipld/read.go#L73
and
https://github.com/lazyledger/lazyledger-core/blob/a77b6791c1eb19506d03cdb79b234076b6b444bf/crypto/merkle/tree.go#L95