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

Initial shard chain #8

Closed
2 tasks done
ilblackdragon opened this issue Oct 11, 2018 · 1 comment
Closed
2 tasks done

Initial shard chain #8

ilblackdragon opened this issue Oct 11, 2018 · 1 comment
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

  • Implement shard chain
  • Sending receipts across shards
@ilblackdragon ilblackdragon added this to the Sharding milestone Nov 21, 2018
@ilblackdragon ilblackdragon added the C-enhancement Category: An issue proposing an enhancement or a PR with one. label Nov 21, 2018
@ilblackdragon ilblackdragon changed the title Shard chain Initial shard chain Nov 27, 2018
@ilblackdragon
Copy link
Member Author

Proposed design of the objects:

chain::BlockChain <- general object for managing blockchain, nothing to do with production / verification

beaconchain::BeaconChain
    BlockChain
    Authority

shardchain::ShardChian
    BlockChain
    StateDb
    Runtime

client::Client
   BeaconChain
   Vec<ShardChain>

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:[email protected]: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:[email protected]: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:[email protected]: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 Apr 11, 2023
#8906)

…805)"

This reverts commit 700ec29.

Canary nodes found an issue with this change:
```
thread '<unnamed>' panicked at 'assertion failed: `(left == right)`
  left: `2519443987198`,
 right: `2429311750949`: Compute usage must match burnt gas',
```
nikurt pushed a commit that referenced this issue Apr 18, 2023
#8906)

…805)"

This reverts commit 700ec29.

Canary nodes found an issue with this change:
```
thread '<unnamed>' panicked at 'assertion failed: `(left == right)`
  left: `2519443987198`,
 right: `2429311750949`: Compute usage must match burnt gas',
```
nikurt pushed a commit that referenced this issue Apr 18, 2023
#8906)

…805)"

This reverts commit 700ec29.

Canary nodes found an issue with this change:
```
thread '<unnamed>' panicked at 'assertion failed: `(left == right)`
  left: `2519443987198`,
 right: `2429311750949`: Compute usage must match burnt gas',
```
nikurt pushed a commit that referenced this issue Apr 28, 2023
#8906)

…805)"

This reverts commit 700ec29.

Canary nodes found an issue with this change:
```
thread '<unnamed>' panicked at 'assertion failed: `(left == right)`
  left: `2519443987198`,
 right: `2429311750949`: Compute usage must match burnt gas',
```
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

3 participants