Skip to content

Commit

Permalink
routing/http/types: allow pass through of already signed records
Browse files Browse the repository at this point in the history
  • Loading branch information
hacdias committed Feb 15, 2024
1 parent e1aa41c commit b930d1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routing/http/types/record_announcement.go
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ func (ar AnnouncementRecord) IsSigned() bool {

func (ar *AnnouncementRecord) Sign(peerID peer.ID, key crypto.PrivKey) error {
if ar.IsSigned() {
return errors.New("already signed")
return ar.Verify()
}

Check warning on line 214 in routing/http/types/record_announcement.go

View check run for this annotation

Codecov / codecov/patch

routing/http/types/record_announcement.go#L213-L214

Added lines #L213 - L214 were not covered by tests

if key == nil {
Expand Down

0 comments on commit b930d1f

Please sign in to comment.