Skip to content
Merged
Changes from all commits
Commits
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
9 changes: 8 additions & 1 deletion crates/fula-blockstore/src/ipfs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -872,9 +872,16 @@ impl BlockStore for IpfsBlockStore {
pub struct NodeInfo {
#[serde(rename = "ID")]
pub id: String,
pub public_key: String,
pub addresses: Vec<String>,
// Only `addresses` is used (by `origins()`). The rest vary by kubo version
// — e.g. kubo 0.41 dropped `ProtocolVersion` in favour of a `Protocols`
// list — so default them; otherwise a missing field fails the whole
// `/api/v0/id` decode and silently disables the pinning `origins` hint.
#[serde(default)]
pub public_key: String,
#[serde(default)]
pub agent_version: String,
#[serde(default)]
pub protocol_version: String,
}

Expand Down