Commit 8efd119
feat: ipns libp2p fetch (#906)
Adds `@libp2p/fetch` functionality to the pubsub router of `helia/ipns`.
The pubsub router will libp2p/fetch the latest local record from new pubsub peers if libp2p.services.fetch is found.
https://specs.ipfs.tech/ipns/ipns-pubsub-router/#layering-persistence-onto-libp2p-pubsub
Closes #893
---------
Co-authored-by: Alex Potsides <alex@achingbrain.net>1 parent 397f2d8 commit 8efd119
3 files changed
Lines changed: 556 additions & 49 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| 78 | + | |
78 | 79 | | |
79 | 80 | | |
80 | 81 | | |
81 | 82 | | |
| 83 | + | |
82 | 84 | | |
| 85 | + | |
| 86 | + | |
83 | 87 | | |
84 | 88 | | |
85 | 89 | | |
86 | 90 | | |
87 | 91 | | |
| 92 | + | |
88 | 93 | | |
89 | 94 | | |
90 | 95 | | |
| |||
0 commit comments