diff --git a/tests/t0124_gateway_ipns_record_test.go b/tests/t0124_gateway_ipns_record_test.go index 7a41b23f5..751ae6498 100644 --- a/tests/t0124_gateway_ipns_record_test.go +++ b/tests/t0124_gateway_ipns_record_test.go @@ -19,8 +19,6 @@ func TestGatewayIPNSRecord(t *testing.T) { // ipfs dag import ../t0124-gateway-ipns-record/fixtures.car && // ipfs routing put /ipns/${IPNS_KEY} ../t0124-gateway-ipns-record/${IPNS_KEY}.ipns-record // ' - // TODO: what if you'd import with `t0124/simple-id.ipns-record`, - // then the loader "just" finds the file with `peer_id_simple-id.ipns-record`? ipns := ipns.MustOpenIPNSRecordWithKey("t0124/k51qzi5uqu5dh71qgwangrt6r0nd4094i88nsady6qgd1dhjcyfsaqmpp143ab.ipns-record") ipnsKey := ipns.Key() diff --git a/tooling/ipns/ipns.go b/tooling/ipns/ipns.go index 9eada8d5f..0a7b80550 100644 --- a/tooling/ipns/ipns.go +++ b/tooling/ipns/ipns.go @@ -66,22 +66,4 @@ func MustOpenIPNSRecordWithKey(file string) *IpnsRecord { } return ipnsRecord -} - -// func MustOpenDNSLink(file string) *DNSLinks { -// fixturePath := path.Join(fixtures.Dir(), file) -// dnsLinks, err := OpenDNSLink(fixturePath) -// if err != nil { -// panic(err) -// } - -// return dnsLinks -// } - -// func (d *DNSLinks) Get(id string) string { -// dnsLink, ok := d.DNSLinks[id] -// if !ok { -// panic(fmt.Errorf("dnslink %s not found", id)) -// } -// return dnsLink.Subdomain -// } +} \ No newline at end of file diff --git a/tooling/ipns/record.go b/tooling/ipns/record.go index 5da303eba..49be37a34 100644 --- a/tooling/ipns/record.go +++ b/tooling/ipns/record.go @@ -24,11 +24,6 @@ func UnmarshalIpnsRecord(data []byte) (*IpnsRecord, error) { } func (i *IpnsRecord) WithKey(key string) *IpnsRecord { - // TODO: for some reason our keys are set to `"m"`, figure out why and reenable this check if possible. - // if i.entry.PublicKey != "" && i.entry.PublicKey != key { - // panic(fmt.Errorf("public key mismatch: %s != %s", i.entry.PublicKey, key)) - // } - i.Entry.PublicKey = key return i }