Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(kad): update republish interval and expiration time defaults #3230

Merged
merged 97 commits into from
Mar 29, 2024
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
Show all changes
97 commits
Select commit Hold shift + click to select a range
1ef309e
feat(dht): updated republish and expiration
lidel Dec 12, 2022
0b92650
added changelog entry
guillaumemichel Jan 23, 2024
98dc8a1
merge with master
guillaumemichel Jan 23, 2024
47273a4
added changelog entry
guillaumemichel Jan 23, 2024
f571c9e
Update CHANGELOG.md
guillaumemichel Jan 24, 2024
f05b752
chore: update config.yml for new issues
dhuseby Jan 24, 2024
b3bdee8
chore(webrtc): release version 0.7.1-alpha
thomaseizinger Jan 24, 2024
a153df9
feat(swarm): allow behaviours to share addresses of peers
StemCll Jan 24, 2024
4600253
deps: bump snow from 0.9.4 to 0.9.5
dependabot[bot] Jan 24, 2024
b18c003
deps: bump wasm-bindgen-futures from 0.4.39 to 0.4.40
dependabot[bot] Jan 29, 2024
7338331
deps: bump serde from 1.0.195 to 1.0.196
dependabot[bot] Jan 29, 2024
7186613
deps: bump snow from 0.9.5 to 0.9.6
dependabot[bot] Jan 29, 2024
8443da8
deps: bump async-io from 2.2.2 to 2.3.1
dependabot[bot] Jan 30, 2024
5eba6c1
deps: bump pin-project from 1.1.3 to 1.1.4
dependabot[bot] Jan 30, 2024
3a5bd57
deps: bump obi1kenobi/cargo-semver-checks-action from 2.2 to 2.3
dependabot[bot] Jan 30, 2024
ceabcbe
deps: bump the axum group with 2 updates
dependabot[bot] Jan 30, 2024
286fc5d
deps: bump tj-actions/glob from 19 to 20
dependabot[bot] Jan 30, 2024
5ce28cf
deps: bump serde_json from 1.0.111 to 1.0.113
dependabot[bot] Jan 30, 2024
508342f
docs(gossipsub): fix typos in error.rs
AdventureSeeker987 Jan 30, 2024
d1ca6d4
chore: Update .github/workflows/semantic-pull-request.yml [skip ci]
web-flow Jan 31, 2024
8567e4d
chore: Update .github/workflows/stale.yml [skip ci]
web-flow Jan 31, 2024
fdbb081
deps: bump prometheus-client from 0.22.0 to 0.22.1
dependabot[bot] Feb 5, 2024
4f1f117
deps: bump actions/upload-pages-artifact from 3.0.0 to 3.0.1
dependabot[bot] Feb 14, 2024
2710d83
deps: bump tokio from 1.35.1 to 1.36.0
dependabot[bot] Feb 14, 2024
97303b7
deps: bump wasm-bindgen-futures from 0.4.40 to 0.4.41
dependabot[bot] Feb 15, 2024
5f04dbb
deps: bump reqwest from 0.11.23 to 0.11.24
dependabot[bot] Feb 15, 2024
0380f0a
deps: bump curve25519-dalek from 4.1.1 to 4.1.2
dependabot[bot] Feb 15, 2024
e63339c
deps: bump libc from 0.2.152 to 0.2.153
dependabot[bot] Feb 16, 2024
c27832c
fix(kad): remove default IPFS protocol name
guillaumemichel Feb 19, 2024
620352c
deps: bump num-traits from 0.2.17 to 0.2.18
dependabot[bot] Feb 19, 2024
ec52740
deps: bump ed25519-dalek from 2.1.0 to 2.1.1
dependabot[bot] Feb 19, 2024
bcec9cc
deps: bump thiserror from 1.0.56 to 1.0.57
dependabot[bot] Feb 20, 2024
344f40e
deps: bump x25519-dalek from 2.0.0 to 2.0.1
dependabot[bot] Feb 20, 2024
a6e891e
deps: bump tempfile from 3.9.0 to 3.10.0
dependabot[bot] Feb 20, 2024
c785ae1
deps: bump wasm-bindgen-test from 0.3.39 to 0.3.41
dependabot[bot] Feb 20, 2024
8cf25f7
deps: bump syn from 2.0.48 to 2.0.49
dependabot[bot] Feb 20, 2024
eb84af5
chore: fix typos
Thabokani Feb 22, 2024
9971695
deps: bump anyhow from 1.0.79 to 1.0.80
dependabot[bot] Feb 26, 2024
17eb256
deps: bump web-sys from 0.3.67 to 0.3.68
dependabot[bot] Feb 26, 2024
dbc61a4
deps: bump stun from 0.5.0 to 0.5.1
dependabot[bot] Feb 27, 2024
d9c0596
deps: bump futures-timer from 3.0.2 to 3.0.3
dependabot[bot] Feb 27, 2024
bfb0c40
deps: bump serde_json from 1.0.113 to 1.0.114
dependabot[bot] Feb 27, 2024
549e534
deps: bump socket2 from 0.5.5 to 0.5.6
dependabot[bot] Feb 27, 2024
72feac1
deps: bump syn from 2.0.49 to 2.0.51
dependabot[bot] Feb 27, 2024
bbfac65
refactor(examples): change file-sharing from async-std to tokio
bklaing2 Feb 29, 2024
7fd9446
fix(stream): Implement Error for OpenStreamError
dariusc93 Feb 29, 2024
61909ef
docs: extend idle connection timeout on ping tutorial
rvalle Mar 2, 2024
d3a6e30
deps: bump rust-embed from 8.2.0 to 8.3.0
dependabot[bot] Mar 4, 2024
b39afee
deps: bump serde from 1.0.196 to 1.0.197
dependabot[bot] Mar 4, 2024
b59a9b1
fix(mergify): disable approve rules (#5208)
mxinden Mar 4, 2024
e0a5a2a
deps: bump tempfile from 3.10.0 to 3.10.1
dependabot[bot] Mar 4, 2024
42798ef
deps: bump thirtyfour from 0.32.0-rc.8 to 0.32.0-rc.10
dependabot[bot] Mar 5, 2024
47899ef
chore: move `futures-bounded` out of mono-repo
thomaseizinger Mar 5, 2024
8f7f705
feat(kad): add `refresh_interval` config used to poll `bootstrap`
PanGan21 Mar 8, 2024
2451570
deps: bump syn from 2.0.51 to 2.0.52
dependabot[bot] Mar 8, 2024
37474ad
deps: bump lru from 0.12.1 to 0.12.2
dependabot[bot] Mar 8, 2024
28f18c0
deps: bump smallvec from 1.12.0 to 1.13.1
dependabot[bot] Mar 8, 2024
753535f
deps: bump log from 0.4.20 to 0.4.21
dependabot[bot] Mar 8, 2024
f92ecd6
chore(README/maintainers): remove mxinden
mxinden Mar 10, 2024
bc835b6
deps: bump wasm-bindgen-futures from 0.4.41 to 0.4.42
dependabot[bot] Mar 11, 2024
1341161
deps: bump async-io from 2.3.1 to 2.3.2
dependabot[bot] Mar 11, 2024
8d31450
deps: bump h2 from 0.4.0 to 0.4.2
drHuangMHT Mar 11, 2024
96162cb
deps: bump mio from 0.8.9 to 0.8.11
dependabot[bot] Mar 12, 2024
a3aaea6
deps: bump prometheus-client from 0.22.1 to 0.22.2
dependabot[bot] Mar 12, 2024
98680b6
deps: bump the axum group with 1 update
dependabot[bot] Mar 12, 2024
28d00a8
deps: bump reqwest from 0.11.24 to 0.11.25
dependabot[bot] Mar 12, 2024
dce8252
deps: bump soketto from 0.7.1 to 0.8.0
dependabot[bot] Mar 12, 2024
2c82767
deps: bump tj-actions/glob from 20 to 21
dependabot[bot] Mar 13, 2024
def3146
chore(deps): bump google.golang.org/protobuf from 1.30.0 to 1.33.0 in…
dependabot[bot] Mar 14, 2024
190fc82
deps: bump opentelemetry dependency (#5181)
jxs Mar 21, 2024
c864f63
deps: bump obi1kenobi/cargo-semver-checks-action from 2.3 to 2.4
dependabot[bot] Mar 21, 2024
79a1902
deps: bump wasm-bindgen-test from 0.3.41 to 0.3.42
dependabot[bot] Mar 21, 2024
57af689
deps: bump heck from 0.4.1 to 0.5.0
dependabot[bot] Mar 21, 2024
8afa8ee
deps: bump reqwest from 0.11.25 to 0.11.26
dependabot[bot] Mar 21, 2024
0aef95c
chore: address clippy lints and bump ci clippy stable
jxs Mar 25, 2024
b8b157a
docs: fix typos in some comments
cuishuang Mar 25, 2024
21ffd2f
fix(websocket-websys): change close code in drop implementation to 1000
sisou Mar 25, 2024
d6ed135
chore: re-enable mergify for dependabot & trivial (#5264)
jxs Mar 25, 2024
6799b3f
deps: bump bs58 from 0.5.0 to 0.5.1
dependabot[bot] Mar 25, 2024
c229387
deps: bump reqwest from 0.11.26 to 0.11.27
dependabot[bot] Mar 25, 2024
a2a5d4b
deps: bump regex from 1.10.3 to 1.10.4
dependabot[bot] Mar 25, 2024
49b1765
deps: bump bytes from 1.5.0 to 1.6.0
dependabot[bot] Mar 25, 2024
31d1aa6
deps: bump smallvec from 1.13.1 to 1.13.2
dependabot[bot] Mar 25, 2024
3af69be
deps: bump the axum group with 1 update
dependabot[bot] Mar 25, 2024
ec2d329
deps: bump proc-macro2 from 1.0.78 to 1.0.79
dependabot[bot] Mar 25, 2024
d7bcc0b
deps: bump the opentelemetry group with 4 updates
dependabot[bot] Mar 25, 2024
ff93fa7
deps: bump thiserror from 1.0.57 to 1.0.58
dependabot[bot] Mar 25, 2024
143fac4
deps: bump async-trait from 0.1.77 to 0.1.78
dependabot[bot] Mar 25, 2024
505a194
deps: bump syn from 2.0.52 to 2.0.55
dependabot[bot] Mar 25, 2024
5bccabe
deps: bump anyhow from 1.0.80 to 1.0.81
dependabot[bot] Mar 25, 2024
625ec7c
deps: bump trybuild from 1.0.89 to 1.0.90
dependabot[bot] Mar 25, 2024
29c4200
deps: bump pin-project from 1.1.4 to 1.1.5
dependabot[bot] Mar 25, 2024
e5346ec
fix(kad): compute `jobs_query_capacity` accurately
junekhan Mar 27, 2024
f792b58
feat(kad): FIND_NODE for own peer id returns closest peers
guillaumemichel Mar 28, 2024
76fc6f8
added changelog entry
guillaumemichel Jan 23, 2024
90824fa
rebase
guillaumemichel Mar 28, 2024
190ed48
Merge branch 'master' into feat/update-dht-defaults
guillaumemichel Mar 28, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ libp2p-floodsub = { version = "0.44.0", path = "protocols/floodsub" }
libp2p-gossipsub = { version = "0.46.1", path = "protocols/gossipsub" }
libp2p-identify = { version = "0.44.1", path = "protocols/identify" }
libp2p-identity = { version = "0.2.8" }
libp2p-kad = { version = "0.45.3", path = "protocols/kad" }
libp2p-kad = { version = "0.46.0", path = "protocols/kad" }
libp2p-mdns = { version = "0.45.1", path = "protocols/mdns" }
libp2p-memory-connection-limits = { version = "0.2.0", path = "misc/memory-connection-limits" }
libp2p-metrics = { version = "0.14.1", path = "misc/metrics" }
Expand Down
7 changes: 7 additions & 0 deletions protocols/kad/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 0.46.0 - unreleased
jxs marked this conversation as resolved.
Show resolved Hide resolved

- Update to DHT republish interval and expiration time defaults to 22h and 48h respectively, rationale in [libp2p/specs#451](https://github.com/libp2p/specs/pull/451)
See [PR 3230](https://github.com/libp2p/rust-libp2p/pull/3230)

## 0.45.3

- The progress of the close query iterator shall be decided by ANY of the new peers.
Expand Down Expand Up @@ -138,6 +143,8 @@

- Update to `libp2p-swarm` `v0.42.0`.

- Update to DHT republish interval and expiration time defaults to 22h and 48h respectively. (PR #[3230](https://github.com/libp2p/rust-libp2p/pull/3230), rationale in [libp2p/specs#451](https://github.com/libp2p/specs/pull/451))

- Remove lifetime from `RecordStore` and use GATs instead. See [PR 3239].

- Limit number of active outbound streams to 32. See [PR 3287].
Expand Down
2 changes: 1 addition & 1 deletion protocols/kad/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "libp2p-kad"
edition = "2021"
rust-version = { workspace = true }
description = "Kademlia protocol for libp2p"
version = "0.45.3"
version = "0.46.0"
authors = ["Parity Technologies <admin@parity.io>"]
license = "MIT"
repository = "https://github.com/libp2p/rust-libp2p"
Expand Down
6 changes: 3 additions & 3 deletions protocols/kad/src/behaviour.rs
Original file line number Diff line number Diff line change
Expand Up @@ -189,12 +189,12 @@ impl Default for Config {
kbucket_pending_timeout: Duration::from_secs(60),
query_config: QueryConfig::default(),
protocol_config: Default::default(),
record_ttl: Some(Duration::from_secs(36 * 60 * 60)),
record_ttl: Some(Duration::from_secs(48 * 60 * 60)),
jxs marked this conversation as resolved.
Show resolved Hide resolved
record_replication_interval: Some(Duration::from_secs(60 * 60)),
record_publication_interval: Some(Duration::from_secs(24 * 60 * 60)),
record_publication_interval: Some(Duration::from_secs(22 * 60 * 60)),
record_filtering: StoreInserts::Unfiltered,
provider_publication_interval: Some(Duration::from_secs(12 * 60 * 60)),
provider_record_ttl: Some(Duration::from_secs(24 * 60 * 60)),
provider_record_ttl: Some(Duration::from_secs(48 * 60 * 60)),
kbucket_inserts: BucketInserts::OnConnected,
caching: Caching::Enabled { max_peers: 1 },
}
Expand Down
Loading