Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

there is no ImportanceBlockInfo in src/model/blockchain/ #744

Open
xembook opened this issue Dec 31, 2020 · 1 comment
Open

there is no ImportanceBlockInfo in src/model/blockchain/ #744

xembook opened this issue Dec 31, 2020 · 1 comment
Labels
enhancement New feature or request question Further information is requested

Comments

@xembook
Copy link

xembook commented Dec 31, 2020

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?

@rg911 rg911 added question Further information is requested enhancement New feature or request P4 labels Feb 5, 2021
@rg911
Copy link
Contributor

rg911 commented Feb 5, 2021

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 rg911 added this to Product Backlog in Symbol-SDK Project via automation Feb 5, 2021
@rg911 rg911 removed the P4 Issue label Feb 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
Symbol-SDK Project
  
Product Backlog
Development

No branches or pull requests

2 participants