Skip to content
This repository was archived by the owner on Aug 2, 2021. It is now read-only.

Commit eaba70f

Browse files
committed
network: Add comment on cap id index + remove leftover debug
1 parent 8fa38a2 commit eaba70f

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

network/adaptive.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ func isSameBools(left []bool, right []bool) bool {
8383
// It is used both to store the capabilities in the node, and
8484
// to communicate the node capabilities to its peers
8585
type Capabilities struct {
86-
idx map[CapabilityId]int
86+
idx map[CapabilityId]int // maps the CapabilityIds to their position in the Caps vector
8787
Caps []*Capability
8888
mu sync.Mutex
8989
}

network/adaptive_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,6 @@ func TestCapabilitiesRLP(t *testing.T) {
141141
t.Fatal(err)
142142
}
143143

144-
fmt.Println(cRestored)
145144
cap1Restored := cRestored.get(cap1.Id)
146145
if cap1Restored.Id != cap1.Id {
147146
t.Fatalf("cap 1 id not correct, expected %d, got %d", cap1.Id, cap1Restored.Id)

0 commit comments

Comments
 (0)