mirror of
https://github.com/datahaven-xyz/datahaven
synced 2026-05-24 09:50:01 +00:00
fix: 🐛 wire trusted_msps only when the provider is a BSP (#458)
This is to better align the behaviour of the node with StorageHub's configurations, otherwise a MSP could pass `--trusted-msps` and use that functionality only intended for BSPs
This commit is contained in:
parent
873a886df4
commit
f0f99aee6f
1 changed files with 7 additions and 0 deletions
|
|
@ -1221,6 +1221,13 @@ where
|
|||
trusted_msps,
|
||||
..
|
||||
}) => {
|
||||
// Only BSP nodes can have trusted MSPs
|
||||
let trusted_msps = if *provider_type == ProviderType::Bsp {
|
||||
trusted_msps.clone()
|
||||
} else {
|
||||
Vec::new()
|
||||
};
|
||||
|
||||
// Setup file transfer service with trusted MSPs config
|
||||
builder
|
||||
.with_file_transfer(
|
||||
|
|
|
|||
Loading…
Reference in a new issue