Skip to content

Commit

Permalink
core: removed leadercast leftovers (#2782)
Browse files Browse the repository at this point in the history
After removing the leadercast component, some leftovers were remaining the code, hence the cleanup.

category: misc
ticket: none
  • Loading branch information
pinebit authored Jan 12, 2024
1 parent 78dbf95 commit 28a96eb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion core/proto.go
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ func UnsignedDataSetFromProto(typ DutyType, set *pbv1.UnsignedDataSet) (Unsigned
resp := make(UnsignedDataSet)
for pubkey, data := range set.Set {
var err error
resp[PubKey(pubkey)], err = UnmarshalUnsignedData(typ, data)
resp[PubKey(pubkey)], err = unmarshalUnsignedData(typ, data)
if err != nil {
return nil, err
}
Expand Down
5 changes: 2 additions & 3 deletions core/unsigneddata.go
Original file line number Diff line number Diff line change
Expand Up @@ -420,9 +420,8 @@ func (s *SyncContribution) UnmarshalSSZ(b []byte) error {
return s.SyncCommitteeContribution.UnmarshalSSZ(b)
}

// UnmarshalUnsignedData returns an instantiated unsigned data based on the duty type.
// TODO(corver): Unexport once leadercast is removed or uses protobufs.
func UnmarshalUnsignedData(typ DutyType, data []byte) (UnsignedData, error) {
// unmarshalUnsignedData returns an instantiated unsigned data based on the duty type.
func unmarshalUnsignedData(typ DutyType, data []byte) (UnsignedData, error) {
switch typ {
case DutyAttester:
var resp AttestationData
Expand Down
1 change: 0 additions & 1 deletion docs/structure.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ charon/ # project root
│ │ # core workflow component implementations
│ ├─ scheduler/ # scheduler
│ ├─ fetcher/ # fetcher
│ ├─ leadercast/ # consensus implementation (will add qbft later)
│ ├─ dutydb/ # dutydb
│ ├─ validatorapi/ # validatorapi
│ ├─ parsigdb/ # parsigdb
Expand Down

0 comments on commit 28a96eb

Please sign in to comment.