an object to manage sets of peers, their addresses and other metadata
Go to file
Steven Allen 2fb6d7a48f fix multiple TTL bugs
The first fix independently extends the address expiration time and the address
TTL:

By example:

* We have an address with a TTL of 4s that will expire in 1s.
* We update it with a TTL of 3s.

Before this change:

* We end up with an address with a TTL of 3s that will expire in 3s.

After this change:

* We end up with an address with a TTL of 4s that will expire in 3s.

---

The second fix prevents the in-memory addressbook from announcing existing
addresses every time their TTLs get updated.

---

The third fix correctly updates TTLs for existing addresses in the on-disk
addressbook.

This fixes https://github.com/libp2p/go-libp2p-identify/issues/2
2019-07-24 17:04:37 -07:00
addr dont commit with deps rewritten 2017-02-03 12:49:59 -08:00
pb dep: switch to core (#80) 2019-05-31 14:51:16 +01:00
pstoreds fix multiple TTL bugs 2019-07-24 17:04:37 -07:00
pstoremem fix multiple TTL bugs 2019-07-24 17:04:37 -07:00
queue dep: switch to core (#80) 2019-05-31 14:51:16 +01:00
test fix multiple TTL bugs 2019-07-24 17:04:37 -07:00
.gitignore update travis.yml for coveralls 2016-08-19 15:01:56 -07:00
.travis.yml farewell gx; thanks for serving us well. 2019-04-11 21:11:16 +01:00
codecov.yml codecov: ignore protobuf go sources. 2018-11-28 00:57:08 +00:00
go.mod update go-ds-badger. 2019-06-28 12:14:04 +02:00
go.sum update go-ds-badger. 2019-06-28 12:14:04 +02:00
interface.go Consolidate abstractions and core types into go-libp2p-core (#69) 2019-05-23 18:11:06 +01:00
LICENSE Add license and readme 2016-04-15 20:21:56 -07:00
metrics_test.go dep: switch to core (#80) 2019-05-31 14:51:16 +01:00
metrics.go dep: switch to core (#80) 2019-05-31 14:51:16 +01:00
peerinfo.go Consolidate abstractions and core types into go-libp2p-core (#69) 2019-05-23 18:11:06 +01:00
peerstore.go dep: switch to core (#80) 2019-05-31 14:51:16 +01:00
README.md farewell gx; thanks for serving us well. 2019-04-11 21:11:16 +01:00

go-libp2p-peerstore

GoDoc Coverage Status Build Status Discourse posts

An object to manage peers, their addresses, and other metadata about them.

Install

go get github.com/libp2p/go-libp2p-peerstore

Usage

Check out the GoDocs.

Contribute

Feel free to join in. All welcome. Open an issue!

This repository falls under the IPFS Code of Conduct.

Want to hack on IPFS?

License

MIT


The last gx published version of this module was: 2.0.19: QmaCTz9RkrU13bm9kMB54f7atgqM4qkjDZpRwRoJiWXEqs