symbol-sdk-typescript-javascript icon indicating copy to clipboard operation
symbol-sdk-typescript-javascript copied to clipboard

there is no ImportanceBlockInfo in src/model/blockchain/

Open xembook opened this issue 5 years ago • 1 comments

block = await blockRepo.getBlockByHeight(265860).toPromise()
console.log(block.constructor.name);

output is 'NormalBlockInfo' I think block height 265860 is ImportanceBlock. but there is no ImportanceBlockInfo in src/model/blockchain/

How should I know blockinfo is NormalBlock or ImportanceBlock?

xembook avatar Dec 31 '20 16:12 xembook

The importance block shares the same headers as the normal block but with additional importance info. The BlockTyp in the block header is used to identity different block typs

rg911 avatar Feb 05 '21 16:02 rg911