Skip to content

Commit b4e7374

Browse files
authored
docs(drand): document the meaning of "IsChained" (#11692)
1 parent 4a1a7bd commit b4e7374

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

chain/beacon/drand/drand.go

+3
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ type DrandBeacon struct {
5353
localCache *lru.Cache[uint64, *types.BeaconEntry]
5454
}
5555

56+
// IsChained tells us whether this particular beacon operates in "chained mode". Prior to Drand
57+
// quicknet, beacons form a chain. After the introduction of quicknet, they do not, so we need to
58+
// change how we interact with beacon entries. (See FIP-0063)
5659
func (db *DrandBeacon) IsChained() bool {
5760
return db.isChained
5861
}

node/modules/dtypes/beacon.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ type DrandConfig struct {
1313
Servers []string
1414
Relays []string
1515
ChainInfoJSON string
16-
IsChained bool
16+
IsChained bool // Prior to Drand quicknet, beacons form a chain, post quicknet they do not (FIP-0063)
1717
}

0 commit comments

Comments
 (0)