Apply suggestions from code review
Co-authored-by: Justin Traglia <95511699+jtraglia@users.noreply.github.com>
This commit is contained in:
parent
04bda8b174
commit
06ead3aa0d
|
@ -51,10 +51,7 @@ def get_head(store: Store) -> Root:
|
|||
# Get available children for the current slot
|
||||
children = [
|
||||
root for (root, block) in blocks.items()
|
||||
if (
|
||||
block.parent_root == head
|
||||
and is_data_available(root)
|
||||
)
|
||||
if block.parent_root == head and is_data_available(root):
|
||||
]
|
||||
if len(children) == 0:
|
||||
return head
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
|
||||
## 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
|
||||
|
||||
|
|
Loading…
Reference in New Issue