Yusef Napora
59abcf549d
Certified addresses ( #98 )
2020-03-06 12:07:36 +00: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
vyzo
08caa87351
refactor protocol functionality into ProtoBook
2019-05-17 12:33:33 +03:00
vyzo
ea23986270
segmented protocol info
2019-05-09 12:14:03 +03:00
vyzo
af2cb17f80
read/write protocol lock
2019-04-27 22:15:45 +03:00
Steven Allen
b94490421d
peerstore: bump number/size of interned protocol names
...
512 * 256 (max path length on many systems) = 128KiB
2019-04-23 09:36:39 -07:00
Steven Allen
b65b48dbe1
intern protocol names
...
Ideally, we'd store a bitmap. But we'll have to think through how we want that
to play out with the datastore-backed peerstore (maybe move the `*Protocols`
methods down to the backend implementation?).
2019-04-23 00:54:18 -07:00
Raúl Kripalani
8db09c59cf
pstore.Close(): return errors from children.
2019-02-22 14:39:51 +00:00
Raúl Kripalani
135471f291
add io.Closer interface and implementation to Peerstore.
2019-02-19 11:45:32 +00:00
Raúl Kripalani
1c25f160a1
normalise import aliases.
2018-09-07 18:46:23 +01:00
Raúl Kripalani
171f051aa1
add tests for keybook; []peer.ID => peer.IDSlice.
2018-09-07 13:04:14 +01:00
Raúl Kripalani
d79386365e
rename NewPeerstoreWith(...) => NewPeerstore(...); adjust godoc.
2018-09-05 15:14:57 +01:00
Raúl Kripalani
2f98672d1d
rename *Peers() to PeersWith*().
2018-09-02 12:18:00 +01:00
Raúl Kripalani
e200f3a5c1
gx-go unrewrite.
2018-09-02 12:10:55 +01:00
Raúl Kripalani
81615c1df7
go fmt.
2018-08-30 18:05:22 +01:00
Raúl Kripalani
06d419242c
normalize naming: AddrManager => AddrBook; ctor for memory-backed AddrBook.
2018-08-30 16:43:40 +01:00
Raúl Kripalani
b9ac6b77b1
gx-go rw.
2018-08-30 15:26:03 +01:00
Raúl Kripalani
5d7633f0c9
move in-memory peerstore into mem package.
2018-08-30 15:26:03 +01:00
Raúl Kripalani
aeae977598
refactor peerstore (+)
...
1. Create interface.go with abstract interfaces.
2. Extract memory-based keybook into file.
3. Spin off PeerMetadata interface.
2018-08-29 16:23:04 +01:00
Cole Brown
4972b40efd
Add ARCCache to DatastoreAddrManager
2018-08-27 18:20:29 -04:00
Cole Brown
4a521e2e3b
Update AddrManagerDatastore to require a Batching Datastore
2018-08-27 18:20:29 -04:00
Cole Brown
c446ba70fe
Add NewPeerstoreDatastore
2018-08-27 18:20:29 -04:00
Cole Brown
00793e6244
Move Peers from Peerstore to AddrBook
2018-08-27 18:20:29 -04:00
Steven Allen
3f5b1a304a
support extracting inlined public keys
...
Technically, the caller can do this but this is more convenient.
2018-04-16 13:25:21 +09:00
Steven Allen
f6bb5a31c1
add method to atomically update TTLs
...
This allows one to find all addresses with a given TTL and update them to have a
new TTL.
2018-01-04 13:00:37 -08:00
Jeromy
7842b6862f
dont commit with deps rewritten
2017-02-03 12:49:59 -08:00
Jeromy
5ea1774aba
gx publish 1.4.2
2017-02-03 10:32:21 -08:00
Jeromy
f759b0e611
Add SetProtocols method to peerstore
...
This allows us to overwrite known protocols and remove potentially
unwanted ones during a full knowledge update. The current AddProtocol
just appends to the existing set.
2016-11-17 15:49:21 -08:00
Jeromy
639e4e1e92
gx publish 1.3.0
2016-10-04 18:43:44 -07:00
Jeromy
901c7a7e3d
fix CI, vet, and annoying types
2016-10-04 18:01:51 -07:00
Jeromy
c87d50ff49
use context from stdlib
2016-10-04 16:19:16 -07:00
Jeromy
df3e34df4b
make protocol methods threadsafe
2016-08-19 14:51:59 -07:00
Jeromy
3015b65a10
rework protocol storage and handling to better support upper layers needs
2016-08-19 14:16:56 -07:00
Jeromy
f03b1d4952
add methods for setting protocols of a peer
2016-06-10 16:13:11 -07:00
Jeromy
350c2ce7c2
extract peerstore from peer package
2016-05-31 11:31:50 -07:00
Jeromy
6d94c67e2a
move interface method to more appropriate location
2016-05-31 10:02:59 -07:00
Jeromy
825dac628c
Add peerstore method to subscribe to new addresses
2016-05-31 10:01:17 -07:00
Lars Gierth
0cf66c98e5
Use post-extraction import paths
2016-04-15 22:56:37 -07:00
Lars Gierth
6a447a0b87
Undo import path rewrites
2016-04-15 20:27:15 -07:00
Jeromy
e0edada87e
update version of go-multiaddr
2016-03-03 13:03:24 -08:00
Jeromy
cc44d77c27
path rewrites
2016-01-04 05:45:58 -08:00
Jeromy
c1161d225e
WIP
2015-12-06 23:11:16 -08:00
Jeromy
4f26d5927d
migrate to gx namespace
2015-11-18 16:11:24 -08:00
Jeromy
bda6cac7b4
fixes for sha3
2015-11-15 18:28:35 -08:00
Jeromy
096f68c608
more vendoring
2015-11-15 11:56:01 -08:00
Jeromy
5e7bc7b555
extract from 0.4.0
2015-11-11 16:19:51 -08:00
Juan Batiz-Benet
a754102d02
rewrote imports to p2p
2015-09-30 19:24:00 -04:00
Juan Batiz-Benet
e41f12f9ea
move to p2p dir
2015-09-30 18:42:55 -04:00