-
Update to
libp2p-core
v0.34.0
. -
Update to
libp2p-swarm
v0.37.0
.
- Limit # of inbound streams to 32. [See PR 2699].
-
Update to
libp2p-core
v0.33.0
. -
Update to
libp2p-swarm
v0.36.0
. -
Derive
Error
forGetRecordError
(see PR 2614).
- Update to
libp2p-swarm
v0.35.0
.
-
Update to
libp2p-core
v0.32.0
. -
Update to
libp2p-swarm
v0.34.0
. -
Require owned key in
get_record()
method (see PR 2477). -
Merge NetworkBehaviour's inject_* paired methods (see PR 2445).
-
Update dependencies.
-
Migrate to Rust edition 2021 (see PR 2339).
-
Derive
Clone
forKademliaEvent
(see PR 2411) -
Derive
Serialize
,Deserialize
forstore::record::Key
(see PR 2408) -
Add
get_closest_local_peers
toKademlia
(see PR 2436)
-
Use
instant
andfutures-timer
instead ofwasm-timer
(see PR 2245). -
Rename
KademliaEvent::InboundRequestServed
toKademliaEvent::InboundRequest
and moveInboundPutRecordRequest
intoInboundRequest::PutRecord
andInboundAddProviderRequest
intoInboundRequest::AddProvider
(see PR 2297). -
Populate the
key
field when convertingKadRequestMsg::PutValue
toproto::Message
(see PR 2309). -
Update dependencies.
-
Make default features of
libp2p-core
optional. PR 2181 -
Update dependencies.
-
Introduce
KademliaStoreInserts
option, which allows to filter records (see PR 2163). -
Check local store when calling
Kademlia::get_providers
(see PR 2221).
-
Update dependencies.
-
Expose inbound request information (see PR 2087). Note:
KademliaEvent::QueryResult
is renamed toKademliaEvent::OutboundQueryCompleted
. -
Expose whether
KademliaEvent::RoutingUpdated
is triggered with new peer (see PR 2087). -
Expose kbucket range on
KademliaEvent::RoutingUpdated
(see PR 2087). -
Remove false
debug_assert
onconnected_peers
(see PR 2120). -
Return correct number of remaining bootstrap requests (see PR 2125).
- Update
libp2p-swarm
.
-
Add
KademliaCaching
andKademliaConfig::set_caching
to configure whether Kademlia should track, in lookups, the closest nodes to a key that did not return a record, viaGetRecordOk::cache_candidates
. As before, if a lookup used a quorum of 1, these candidates will automatically be sent the found record. Otherwise, with a lookup quorum of > 1, the candidates can be used withKademlia::put_record_to
after selecting one of the return records to cache. As is the current behaviour, caching is enabled by default with amax_peers
of 1, i.e. it only tracks the closest node to the key that did not return a record. -
Add
Kademlia::put_record_to
for storing a record at specific nodes, e.g. for write-back caching after a successful read with quorum > 1. -
Update
libp2p-swarm
. -
Update dependencies.
- Update dependencies.
- Update dependencies.
- Add From impls for
kbucket::Key
. PR 1909.
- Update
libp2p-core
andlibp2p-swarm
.
-
Update
libp2p-core
andlibp2p-swarm
. -
Have two
ProviderRecord
s be equal iff theirkey
andprovider
fields are equal. PR 1850.
-
Upon newly established connections, delay routing table updates until after the configured protocol name has been confirmed by the connection handler, i.e. until after at least one substream has been successfully negotiated. In configurations with different protocol names, this avoids undesirable nodes being included in the local routing table at least temporarily. PR 1821.
-
Update dependencies.
-
Update
libp2p-core
andlibp2p-swarm
. -
Update
sha2
dependency.
-
Increase default max packet size from 4KiB to 16KiB. See issue 1622.
-
Add
Distance::log2
(PR 1719). -
Update
libp2p-swarm
andlibp2p-core
.
- Explicitly convert from u8 to usize in
BucketIndex::range
to prevent type inference issues (PR 1716).
-
Store addresses in provider records. See PR 1708.
-
Update
libp2p-core
andlibp2p-swarm
dependencies. -
Add
KBucketRef::range
exposing the minimum inclusive and maximum inclusiveDistance
for the bucket (PR 1680). -
Add
NetworkBehaviour::inject_address_change
implementation (PR 1649).
-
Remove
KademliaEvent::Discovered
(PR 1632) -
More control and insight for k-buckets (PR 1628). In particular,
Kademlia::kbuckets_entries
has been removed and replaced byKademlia::kbuckets
/Kademlia::kbucket
which provide more information than just the peer IDs. FurthermoreKademlia::add_address
now returns a result and two new events,KademliaEvent::RoutablePeer
andKademliaEvent::PendingRoutablePeer
are introduced (but are not required to be acted upon in order to retain existing behaviour). For more details, see the PR description.
- Maintenance release (PR 1623).