Skip to content

Commit 0896be2

Browse files
committed
add: add constraint in Cells message
1 parent 9a8ff92 commit 0896be2

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

caps/eth.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -132,10 +132,10 @@ Cells are computed by splitting the blob and applying the erasure-code defined i
132132
A cell has its `index`, according to its relative position in the erasure-coded blob.
133133

134134
When a blob transaction is added to a peer's pool, availability of its cells should be
135-
announced to the network using the cells field in the [NewPooledTransactionHashes] message.
136-
If a bit in `cells` is set, it indicates that the peer holds the corresponding cell for all
137-
blobs included in the announced transactions.
138-
All peers that receive the message can then request the cells whose indices are
135+
announced to the network using the `cells` field in the [NewPooledTransactionHashes] message.
136+
The granularity of the `cells` is at the transaction level. If a bit is set, it indicates
137+
that the peer holds the corresponding cell for all blobs included in the announced
138+
transactions. All peers that receive the message can then request the cells whose indices are
139139
specified in the cells field using the [GetCells] message. Clients can selectively store
140140
cells according to their local parameters.
141141

@@ -537,7 +537,7 @@ received updates.
537537

538538
`[request-id: P, [txhash₁: B_32, txhash₂: B_32, ...], cells : B_16]`
539539

540-
This message requests the peer to return cells of the given txhashes.
540+
This message requests the peer to return cell data of the given txhashes.
541541
The `cells` element, a bitmap, specifies indices of the requested cells.
542542

543543
### Cells (0x13)
@@ -547,7 +547,9 @@ The `cells` element, a bitmap, specifies indices of the requested cells.
547547
This is the response to [GetCells].
548548
Each element must match the txhash and cells specified in the request.
549549
The sender can skip any indices that are not available, so the requester can fetch them
550-
from other peers.
550+
from other peers. Skipping is allowed only at the index level. The sender must return the
551+
corresponding cells for all blobs included in the transaction and cannot skip cells belonging
552+
to specific blobs.
551553

552554
## Change Log
553555

0 commit comments

Comments
 (0)