Commit Graph

10 Commits

Author SHA1 Message Date
Steven Allen
e161a361fc chore: update deps 2021-07-15 17:29:05 -07:00
Yusef Napora
59abcf549d
Certified addresses (#98) 2020-03-06 12:07:36 +00:00
Steven Allen
334bc6f886 chore(dep): update deps
* update go-libp2p-core and fix tests for new minimum key size. This slows down
the test but terribly.
* switch to go-multiaddr-fmt
* update the datastore
* update gogo/protobuf
2019-10-28 15:32:22 -07:00
Steven Allen
0b5b389640 dep: switch to core (#80)
* dep: switch to core

Specifically, remove go-libp2p-{crypto,peer} deps.

* catch a few more usages of deprecated packages.
2019-05-31 14:51:16 +01:00
Steven Allen
926321cd88 fix unmarshalling of peer IDs 2019-04-23 00:59:28 -07:00
Raúl Kripalani
87fab3950d pstoreds: switch protobuf compilation to gogofaster. 2019-02-19 17:41:14 +00:00
Raúl Kripalani
fd57c55d87 document custom gogo types; reorg code. 2018-11-30 16:19:57 +00:00
Raúl Kripalani
22f8aa142c fix makefile for protobuf. 2018-11-15 13:40:48 +00:00
Raúl Kripalani
4c43736fe9 pstoreds: tighten up gc-based peerstore.
Introduces custom types in protobuf to serde directly into multiaddrs
and peer IDs. Simplify purge by ordering addrs by expiry. In general,
getting this readier for merge.
2018-11-15 13:32:08 +00:00
Raúl Kripalani
c423e9e997 pstoreds: migrate from strict TTL to GC-based expiry.
Each entry in the address book KV store now represents a full peer
with all its addresses. Expiries and TTLs are kept inline. Records are
serialised with Protobuf.

Housekeeping is performed on retrieve, and via a periodic GC routine.
The architecture mimics a write-through cache, although not strictly.
2018-11-13 16:57:51 +00:00