Commit Graph

33 Commits

Author SHA1 Message Date
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