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

Beacon chain #7

Closed
5 tasks done
ilblackdragon opened this issue Oct 11, 2018 · 2 comments
Closed
5 tasks done

Beacon chain #7

ilblackdragon opened this issue Oct 11, 2018 · 2 comments
Assignees
Labels
C-enhancement Category: An issue proposing an enhancement or a PR with one.
Milestone

Comments

@ilblackdragon
Copy link
Member

ilblackdragon commented Oct 11, 2018

For MVB we use beacon chain to keep state:

  • Implement blockchain tracking (storing into DB blocks and headers)
  • Block production
  • Block validation
  • Network catch up
  • Witness staking, selection and accounting for block production
@MaksymZavershynskyi
Copy link
Contributor

Network catch up is currently missing.

@ilblackdragon
Copy link
Member Author

@bowenwang1996 says we have catchup. If we need more specific catch up mechanics let's file separate issue.

chefsale added a commit that referenced this issue Mar 15, 2021
Test Plan:
```
sandi@sandi-ThinkPad-X1-Carbon-7th ~/w/n/n/t/i/example (master)> cargo run -p indexer-example run
   Compiling indexer-example v0.1.0 (/home/sandi/workspace/near/nearcore/tools/indexer/example)
    Finished dev [unoptimized + debuginfo] target(s) in 34.21s
     Running `/home/sandi/workspace/near/nearcore/target/debug/indexer-example run`
Mar 15 15:15:15.352  INFO indexer: Starting Streamer...
Mar 15 15:15:15.363  INFO stats: Server listening at ed25519:HumL9eo6ZHmNNkwmB6LpswH3YP7AA2RCjPR476LErS1i@0.0.0.0:24567
Mar 15 15:15:17.385  INFO indexer_example: #1 HNA6J8v6LHv6Ak3uD4X81GPS2sfvDgMHZhoy69AXJwkr Chunks: 0, Transactions: 0, Receipts: 0, ExecutionOutcomes: 0
Mar 15 15:15:18.401  INFO indexer_example: #2 5K2rKMqBUAua9eCA3uP46t3yntNZ8vbEFRLnBazBB6wH Chunks: 1, Transactions: 0, Receipts: 0, ExecutionOutcomes: 0
Mar 15 15:15:18.913  INFO indexer_example: #3 C6mu4VXWerLBr1gBnBGexz2q5nMdLNbNbsw6Md2uxLWE Chunks: 1, Transactions: 0, Receipts: 0, ExecutionOutcomes: 0
Mar 15 15:15:19.422  INFO indexer_example: #4 4Jh9G9WRWA3YuqCtRPrE8WuSWxvcyDfmLAPKU3YxPyvM Chunks: 1, Transactions: 0, Receipts: 0, ExecutionOutcomes: 0
Mar 15 15:15:19.930  INFO indexer_example: #5 3MaretjoFgfcUoAcA7x9SvfvJf7Bi7mSjtXC9o1Z2RZB Chunks: 1, Transactions: 0, Receipts: 0, ExecutionOutcomes: 0
Mar 15 15:15:20.461  INFO indexer_example: #6 644pcD9ZSz6dwjKpgc184RfnuXG6xB5pgwKT732ndRdt Chunks: 1, Transactions: 0, Receipts: 0, ExecutionOutcomes: 0
Mar 15 15:15:21.489  INFO indexer_example: #7 rj8gRGK9n7SiLLsbsBnoFhnMNtrP424JQzaaWFE3mEo Chunks: 1, Transactions: 0, Receipts: 0, ExecutionOutcomes: 0
Mar 15 15:15:21.997  INFO indexer_example: #8 2mQDVeaZZ12o68DSZA9mwxeCRBpKfZ2PqripV9tT9CGC Chunks: 1, Transactions: 0, Receipts: 0, ExecutionOutcomes: 0
Mar 15 15:15:22.510  INFO indexer_example: #9 6sF7tWNLP9YCD2hxzicVHVwXVccQXn1xmXepKBcWJEGS Chunks: 1, Transactions: 0, Receipts: 0, ExecutionOutcomes: 0
Mar 15 15:15:23.024  INFO indexer_example: #10 5yCfSrTKq51XMKhDKCHTJ9foEvNiNWwWmeMF16nCft19 Chunks: 1, Transactions: 0, Receipts: 0, ExecutionOutcomes: 0
^CMar 15 15:15:23.565  INFO indexer_example: #11 6cW7QqzYBsUwNzJPUAXS5QPEtrEn4LFUFWtNNLyKtMF9 Chunks: 1, Transactions: 0, Receipts: 0, ExecutionOutcomes: 0
```
chefsale added a commit that referenced this issue Mar 15, 2021
Test Plan:
```
sandi@sandi-ThinkPad-X1-Carbon-7th ~/w/n/n/t/i/example (master)> cargo run -p indexer-example run
   Compiling indexer-example v0.1.0 (/home/sandi/workspace/near/nearcore/tools/indexer/example)
    Finished dev [unoptimized + debuginfo] target(s) in 34.21s
     Running `/home/sandi/workspace/near/nearcore/target/debug/indexer-example run`
Mar 15 15:15:15.352  INFO indexer: Starting Streamer...
Mar 15 15:15:15.363  INFO stats: Server listening at ed25519:HumL9eo6ZHmNNkwmB6LpswH3YP7AA2RCjPR476LErS1i@0.0.0.0:24567
Mar 15 15:15:17.385  INFO indexer_example: #1 HNA6J8v6LHv6Ak3uD4X81GPS2sfvDgMHZhoy69AXJwkr Chunks: 0, Transactions: 0, Receipts: 0, ExecutionOutcomes: 0
Mar 15 15:15:18.401  INFO indexer_example: #2 5K2rKMqBUAua9eCA3uP46t3yntNZ8vbEFRLnBazBB6wH Chunks: 1, Transactions: 0, Receipts: 0, ExecutionOutcomes: 0
Mar 15 15:15:18.913  INFO indexer_example: #3 C6mu4VXWerLBr1gBnBGexz2q5nMdLNbNbsw6Md2uxLWE Chunks: 1, Transactions: 0, Receipts: 0, ExecutionOutcomes: 0
Mar 15 15:15:19.422  INFO indexer_example: #4 4Jh9G9WRWA3YuqCtRPrE8WuSWxvcyDfmLAPKU3YxPyvM Chunks: 1, Transactions: 0, Receipts: 0, ExecutionOutcomes: 0
Mar 15 15:15:19.930  INFO indexer_example: #5 3MaretjoFgfcUoAcA7x9SvfvJf7Bi7mSjtXC9o1Z2RZB Chunks: 1, Transactions: 0, Receipts: 0, ExecutionOutcomes: 0
Mar 15 15:15:20.461  INFO indexer_example: #6 644pcD9ZSz6dwjKpgc184RfnuXG6xB5pgwKT732ndRdt Chunks: 1, Transactions: 0, Receipts: 0, ExecutionOutcomes: 0
Mar 15 15:15:21.489  INFO indexer_example: #7 rj8gRGK9n7SiLLsbsBnoFhnMNtrP424JQzaaWFE3mEo Chunks: 1, Transactions: 0, Receipts: 0, ExecutionOutcomes: 0
Mar 15 15:15:21.997  INFO indexer_example: #8 2mQDVeaZZ12o68DSZA9mwxeCRBpKfZ2PqripV9tT9CGC Chunks: 1, Transactions: 0, Receipts: 0, ExecutionOutcomes: 0
Mar 15 15:15:22.510  INFO indexer_example: #9 6sF7tWNLP9YCD2hxzicVHVwXVccQXn1xmXepKBcWJEGS Chunks: 1, Transactions: 0, Receipts: 0, ExecutionOutcomes: 0
Mar 15 15:15:23.024  INFO indexer_example: #10 5yCfSrTKq51XMKhDKCHTJ9foEvNiNWwWmeMF16nCft19 Chunks: 1, Transactions: 0, Receipts: 0, ExecutionOutcomes: 0
^CMar 15 15:15:23.565  INFO indexer_example: #11 6cW7QqzYBsUwNzJPUAXS5QPEtrEn4LFUFWtNNLyKtMF9 Chunks: 1, Transactions: 0, Receipts: 0, ExecutionOutcomes: 0
```
near-bulldozer bot pushed a commit that referenced this issue Mar 15, 2021
Test Plan:
```
sandi@sandi-ThinkPad-X1-Carbon-7th ~/w/n/n/t/i/example (master)> cargo run -p indexer-example run
   Compiling indexer-example v0.1.0 (/home/sandi/workspace/near/nearcore/tools/indexer/example)
    Finished dev [unoptimized + debuginfo] target(s) in 34.21s
     Running `/home/sandi/workspace/near/nearcore/target/debug/indexer-example run`
Mar 15 15:15:15.352  INFO indexer: Starting Streamer...
Mar 15 15:15:15.363  INFO stats: Server listening at ed25519:HumL9eo6ZHmNNkwmB6LpswH3YP7AA2RCjPR476LErS1i@0.0.0.0:24567
Mar 15 15:15:17.385  INFO indexer_example: #1 HNA6J8v6LHv6Ak3uD4X81GPS2sfvDgMHZhoy69AXJwkr Chunks: 0, Transactions: 0, Receipts: 0, ExecutionOutcomes: 0
Mar 15 15:15:18.401  INFO indexer_example: #2 5K2rKMqBUAua9eCA3uP46t3yntNZ8vbEFRLnBazBB6wH Chunks: 1, Transactions: 0, Receipts: 0, ExecutionOutcomes: 0
Mar 15 15:15:18.913  INFO indexer_example: #3 C6mu4VXWerLBr1gBnBGexz2q5nMdLNbNbsw6Md2uxLWE Chunks: 1, Transactions: 0, Receipts: 0, ExecutionOutcomes: 0
Mar 15 15:15:19.422  INFO indexer_example: #4 4Jh9G9WRWA3YuqCtRPrE8WuSWxvcyDfmLAPKU3YxPyvM Chunks: 1, Transactions: 0, Receipts: 0, ExecutionOutcomes: 0
Mar 15 15:15:19.930  INFO indexer_example: #5 3MaretjoFgfcUoAcA7x9SvfvJf7Bi7mSjtXC9o1Z2RZB Chunks: 1, Transactions: 0, Receipts: 0, ExecutionOutcomes: 0
Mar 15 15:15:20.461  INFO indexer_example: #6 644pcD9ZSz6dwjKpgc184RfnuXG6xB5pgwKT732ndRdt Chunks: 1, Transactions: 0, Receipts: 0, ExecutionOutcomes: 0
Mar 15 15:15:21.489  INFO indexer_example: #7 rj8gRGK9n7SiLLsbsBnoFhnMNtrP424JQzaaWFE3mEo Chunks: 1, Transactions: 0, Receipts: 0, ExecutionOutcomes: 0
Mar 15 15:15:21.997  INFO indexer_example: #8 2mQDVeaZZ12o68DSZA9mwxeCRBpKfZ2PqripV9tT9CGC Chunks: 1, Transactions: 0, Receipts: 0, ExecutionOutcomes: 0
Mar 15 15:15:22.510  INFO indexer_example: #9 6sF7tWNLP9YCD2hxzicVHVwXVccQXn1xmXepKBcWJEGS Chunks: 1, Transactions: 0, Receipts: 0, ExecutionOutcomes: 0
Mar 15 15:15:23.024  INFO indexer_example: #10 5yCfSrTKq51XMKhDKCHTJ9foEvNiNWwWmeMF16nCft19 Chunks: 1, Transactions: 0, Receipts: 0, ExecutionOutcomes: 0
^CMar 15 15:15:23.565  INFO indexer_example: #11 6cW7QqzYBsUwNzJPUAXS5QPEtrEn4LFUFWtNNLyKtMF9 Chunks: 1, Transactions: 0, Receipts: 0, ExecutionOutcomes: 0
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-enhancement Category: An issue proposing an enhancement or a PR with one.
Projects
None yet
Development

No branches or pull requests

5 participants