Skip to content

Commit

Permalink
Typo fix Update adr-002-ipld-da-sampling.md
Browse files Browse the repository at this point in the history
Fix Typographical Errors in Function Descriptions
  • Loading branch information
santamasa authored Nov 19, 2024
1 parent fcfaf92 commit 46bcd25
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/celestia-architecture/adr-002-ipld-da-sampling.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ It does not deal with IPFS internals.
// The context can be used to provide a timeout.
// TODO: Should there be a constant = lower bound for #samples
func ValidateAvailability(
ctx contex.Context,
ctx context.Context,
dah *DataAvailabilityHeader,
numSamples int,
onLeafValidity func(namespace.PrefixedData8),
Expand All @@ -154,7 +154,7 @@ func ValidateAvailability(
// The key difference is that it will sample enough chunks until it can recover the
// full extended data square, including original data (e.g. by using rsmt2d.RepairExtendedDataSquare).
func RetrieveBlockData(
ctx contex.Context,
ctx context.Context,
dah *DataAvailabilityHeader,
api coreiface.CoreAPI,
codec rsmt2d.Codec,
Expand All @@ -166,7 +166,7 @@ func RetrieveBlockData(
// the row to the Merkle Dag, in our case a Namespaced Merkle Tree.
// Note, that this method could also fill the DA header.
// The data will be pinned by default.
func (b *Block) PutBlock(ctx contex.Context, nodeAdder ipld.NodeAdder) error
func (b *Block) PutBlock(ctx context.Context, nodeAdder ipld.NodeAdder) error
```

We now describe the lower-level library that will be used by above methods.
Expand Down

0 comments on commit 46bcd25

Please sign in to comment.