https://github.com/zilliqa/block-verifications
https://github.com/zilliqa/block-verifications
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/zilliqa/block-verifications
- Owner: Zilliqa
- License: gpl-3.0
- Created: 2022-01-19T07:29:38.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-01-24T09:03:47.000Z (over 4 years ago)
- Last Synced: 2025-02-16T10:42:59.364Z (over 1 year ago)
- Language: Go
- Homepage:
- Size: 29.3 KB
- Stars: 0
- Watchers: 15
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# block-verifications
This project demonstrates how to verify block by block using zilliqa golang sdk. Here is the steps:
1. get current ds block number, tx block number and DS committee list
2. wait a new tx block got generated
3. check tx block's header, detect if there is a new ds block generated
4. if there is a new ds block, verify it first, get new DS committee list, verify tx block after that
5. if there is no new ds block, verify tx block directly
6. goto 2
Links
1. tx block verification: https://github.com/Zilliqa/gozilliqa-sdk/blob/master/verifier/verifier.go#L116
2. ds block verification: https://github.com/Zilliqa/gozilliqa-sdk/blob/master/verifier/verifier.go#L108