Apply suggestions from code review

Co-authored-by: Justin Traglia <95511699+jtraglia@users.noreply.github.com>
This commit is contained in:
fradamt 2024-08-07 22:13:41 +02:00 committed by GitHub
parent 04bda8b174
commit 06ead3aa0d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 5 deletions

View File

@ -51,10 +51,7 @@ def get_head(store: Store) -> Root:
# Get available children for the current slot # Get available children for the current slot
children = [ children = [
root for (root, block) in blocks.items() root for (root, block) in blocks.items()
if ( if block.parent_root == head and is_data_available(root):
block.parent_root == head
and is_data_available(root)
)
] ]
if len(children) == 0: if len(children) == 0:
return head return head

View File

@ -23,7 +23,7 @@
## Introduction ## Introduction
The purpose of this document is to complement [EIP-7594 -- Data Availability Sampling Core](das-core.md), by specifying the peer sampling functionality of the full PeerDAS protocol. This functionality may initially not be implemented, or only implemented by some clients, in which case it is replaced by [subnet sampling](das-core.md#subnet-sampling), an extension of the custody component of the protocol. The purpose of this document is to complement [EIP-7594 -- Data Availability Sampling Core](das-core.md) by specifying the peer sampling functionality of the full PeerDAS protocol. Initially, this functionality may not be implemented by all clients. In such cases, it is replaced by [subnet sampling](das-core.md#subnet-sampling), which is an extension of the custody component of the protocol.
## Helper functions ## Helper functions