Skip to content

Commit

Permalink
updated shard id type to u32
Browse files Browse the repository at this point in the history
  • Loading branch information
wacban authored Apr 23, 2024
1 parent 2f96c15 commit cd243a6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions neps/nep-0539.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ ShardChunkHeaderInnerV3 {
Where alternatives for congestion info are decribed in more detail below in the
`Efficiently computing the congestion information` section.

Depending on the alternative solution this adds between 9 and 48 bytes to the
Depending on the alternative solution this adds between 5 and 48 bytes to the
chunk header, increasing it from 374 bytes up to 422 bytes in borsh representation.
(Assuming no validator proposals included.) This in turn increases the block size
by up to 48 bytes per shard.
Expand Down Expand Up @@ -173,7 +173,7 @@ The new chunk execution then follows this order.
delayed_receipts_gas: u128,
buffered_receipts_gas: u128,
receipt_bytes: u64,
allowed_shard: u64`,
allowed_shard: u32`,
}
```

Check failure on line 178 in neps/nep-0539.md

View workflow job for this annotation

GitHub Actions / markdown-lint

Fenced code blocks should be surrounded by blank lines [Context: "```"]

neps/nep-0539.md:178 MD031/blanks-around-fences Fenced code blocks should be surrounded by blank lines [Context: "```"]
2. (new) Compute bandwidth limits to other shards based on the congestion information.
Expand Down Expand Up @@ -395,7 +395,7 @@ information needed by other shards.

```rust
pub struct CongestionInfo {
allowed_shard: u64,
allowed_shard: u32,
congestion_level: u8,
}
```
Expand Down Expand Up @@ -425,7 +425,7 @@ pub struct CongestionInfo {
delayed_receipts_gas: u128,
buffered_receipts_gas: u128,
receipt_bytes: u64,
allowed_shard: u64,
allowed_shard: u32,
}
```

Expand Down

0 comments on commit cd243a6

Please sign in to comment.