Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ethstorage/data_file.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ type DataFileHeader struct {
status uint64
}

// Mask the data in place. Padding zeros to userData if the len of userData is smaller than that of maskData,
// Mask the data in place. Padding zeros to userData if the len of userData is smaller than that of maskData.
func MaskDataInPlace(maskData []byte, userData []byte) []byte {
if len(userData) > len(maskData) {
panic("user data can not be larger than mask data")
Expand Down
4 changes: 2 additions & 2 deletions ethstorage/p2p/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ func (n *NodeP2P) init(resourcesCtx context.Context, chainID *big.Int, lg log.Lo
)
css, err := n.Host().Peerstore().Get(remotePeerId, protocol.EthStorageENRKey)
if err != nil {
// for node which is new to the ethstorage network, and it dial the nodes which do not contain
// the new node's enr, so the nodes do not know its shard list from enr, so it needs to call
// For nodes new to the ethstorage network that dial nodes which do not contain
// the new node's enr, the nodes do not know its shard list from enr, so it needs to call
// n.RequestShardList to fetch the shard list of the new node.
remoteShardList, e := n.RequestShardList(remotePeerId)
if e != nil && len(n.host.Peerstore().Addrs(remotePeerId)) == 0 {
Expand Down
Loading