Skip to content

Commit b930d1f

Browse files
committed
routing/http/types: allow pass through of already signed records
1 parent e1aa41c commit b930d1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routing/http/types/record_announcement.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ func (ar AnnouncementRecord) IsSigned() bool {
210210

211211
func (ar *AnnouncementRecord) Sign(peerID peer.ID, key crypto.PrivKey) error {
212212
if ar.IsSigned() {
213-
return errors.New("already signed")
213+
return ar.Verify()
214214
}
215215

216216
if key == nil {

0 commit comments

Comments
 (0)