Browse Source

Added method to GNSRecordSet for appending RRs.

Bernd Fix 3 months ago
parent
commit
b207ddba21
1 changed files with 5 additions and 0 deletions
  1. 5
    0
      src/gnunet/service/gns/record.go

+ 5
- 0
src/gnunet/service/gns/record.go View File

@@ -28,6 +28,11 @@ func NewGNSRecordSet() *GNSRecordSet {
28 28
 	}
29 29
 }
30 30
 
31
+func (rs *GNSRecordSet) AddRecord(rec *message.GNSResourceRecord) {
32
+	rs.Count++
33
+	rs.Records = append(rs.Records, rec)
34
+}
35
+
31 36
 type SignedBlockData struct {
32 37
 	Purpose *crypto.SignaturePurpose // Size and purpose of signature (8 bytes)
33 38
 	Expire  util.AbsoluteTime        // Expiration time of the block.

Loading…
Cancel
Save