From b514b4a28e1d3e9575ce56e47093b767b0537d64 Mon Sep 17 00:00:00 2001 From: Phi Date: Wed, 3 Jun 2026 13:36:52 +0200 Subject: [PATCH 1/3] Update filecoin-pin scenario dependency --- scenarios/test_multi_copy_upload.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scenarios/test_multi_copy_upload.py b/scenarios/test_multi_copy_upload.py index fd2b9d8..4f5c625 100644 --- a/scenarios/test_multi_copy_upload.py +++ b/scenarios/test_multi_copy_upload.py @@ -76,15 +76,15 @@ def output_text(value) -> str: def patch_synapse_core_streaming_upload(npm_dir: Path) -> bool: """Strip Content-Length from @filoz/synapse-core's streaming upload headers. - synapse-core (as of 0.4.1, which filecoin-pin 0.20.1 resolves to) sets a + synapse-core 0.4.1 (which older filecoin-pin releases resolved to) set a Content-Length header on a body that flows through a streaming Transform. Node/undici rejects that as 'invalid content-length header', which filecoin-pin surfaces as 'StorageContext store failed: Failed to store piece on service provider - Network request failed'. - TODO: drop this patch once filecoin-pin pins a synapse-core release that - omits Content-Length on streaming bodies (track upstream in FilOzone/synapse-sdk). + Keep this tolerant until the older workaround has been exercised against + the latest filecoin-pin release in CI. Returns True when the target file is in the desired state (whether or not a change was applied). Returns False only when the file is missing. @@ -246,7 +246,7 @@ def run(): "pkg", "set", "type=module", - "dependencies.filecoin-pin=0.20.1", + "dependencies.filecoin-pin=0.22.3", "dependencies.multiformats=13.4.2", ], label="pin filecoin-pin dependencies", From 5e5abf3ab7de2e4c0ade49c551da022258f54a2c Mon Sep 17 00:00:00 2001 From: Phi Date: Wed, 3 Jun 2026 15:55:10 +0200 Subject: [PATCH 2/3] Increase USER_1 FilecoinPay deposit --- src/commands/start/user_setup/constants.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/commands/start/user_setup/constants.rs b/src/commands/start/user_setup/constants.rs index 113d778..a982776 100644 --- a/src/commands/start/user_setup/constants.rs +++ b/src/commands/start/user_setup/constants.rs @@ -12,8 +12,11 @@ pub const CONTAINER_FP_APPROVE_OPERATOR: &str = "user-fp-approve-operator"; /// Gas limit for cast send transactions on Filecoin FEVM. pub const CAST_GAS_LIMIT: &str = "100000000"; -/// 1 USDFC expressed in the token's 18-decimal base unit. -pub const USDFC_DEPOSIT_AMOUNT: &str = "1000000000000000000"; +/// 2 USDFC expressed in the token's 18-decimal base unit. +/// +/// Latest filecoin-pin defaults to a two-copy upload path that can require more +/// than 1 USDFC of locked funds before creating both data sets. +pub const USDFC_DEPOSIT_AMOUNT: &str = "2000000000000000000"; /// uint256 max value, used for unlimited operator approval allowances. pub const MAX_UINT256: &str = From fb571536c12f1666725d7fb73945b30ec6e28aff Mon Sep 17 00:00:00 2001 From: Phi Date: Wed, 3 Jun 2026 16:54:27 +0200 Subject: [PATCH 3/3] Raise USER_1 FilecoinPay deposit to 3 USDFC --- src/commands/start/user_setup/constants.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/commands/start/user_setup/constants.rs b/src/commands/start/user_setup/constants.rs index a982776..100ee8d 100644 --- a/src/commands/start/user_setup/constants.rs +++ b/src/commands/start/user_setup/constants.rs @@ -12,11 +12,11 @@ pub const CONTAINER_FP_APPROVE_OPERATOR: &str = "user-fp-approve-operator"; /// Gas limit for cast send transactions on Filecoin FEVM. pub const CAST_GAS_LIMIT: &str = "100000000"; -/// 2 USDFC expressed in the token's 18-decimal base unit. +/// 3 USDFC expressed in the token's 18-decimal base unit. /// /// Latest filecoin-pin defaults to a two-copy upload path that can require more -/// than 1 USDFC of locked funds before creating both data sets. -pub const USDFC_DEPOSIT_AMOUNT: &str = "2000000000000000000"; +/// than 2 USDFC of locked funds before creating both data sets. +pub const USDFC_DEPOSIT_AMOUNT: &str = "3000000000000000000"; /// uint256 max value, used for unlimited operator approval allowances. pub const MAX_UINT256: &str =