Open Liuhaai opened 5 months ago
Currently HeaderByHeight
still needs to deseralize the entire block, the cost is the same as GetBlockByHeight
.
Currently
HeaderByHeight
still needs to deseralize the entire block, the cost is the same asGetBlockByHeight
.
I see no HeaderByHeight
is implemented in filedao_v2. Could you give a snippet why should the whole block be deseralized?
What would you like to be added
HeaderByHeight
, which to be implemented in filedao_v2, should be used instead ofGetBlockByHeight
in https://github.com/iotexproject/iotex-core/blob/1791f82354c672631690e7b759de6bb51cb2a031/blockchain/filedao/filedao.go#L235Why is this needed
Some queries can be optmized by HeaderByHeight
How important you think this is for IoTeX
Additional information
Let us know any background or context that would help us better understand the request (for example the particular use-case that prompted this request)