Skip to content

Commit 9837968

Browse files
authored
fix: update filecoin-pin to v0.22.3 (#119)
* Update filecoin-pin scenario dependency * Increase USER_1 FilecoinPay deposit * Raise USER_1 FilecoinPay deposit to 3 USDFC
1 parent 6f0886e commit 9837968

2 files changed

Lines changed: 9 additions & 6 deletions

File tree

scenarios/test_multi_copy_upload.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,15 +76,15 @@ def output_text(value) -> str:
7676
def patch_synapse_core_streaming_upload(npm_dir: Path) -> bool:
7777
"""Strip Content-Length from @filoz/synapse-core's streaming upload headers.
7878
79-
synapse-core (as of 0.4.1, which filecoin-pin 0.20.1 resolves to) sets a
79+
synapse-core 0.4.1 (which older filecoin-pin releases resolved to) set a
8080
Content-Length header on a body that flows through a streaming Transform.
8181
Node/undici rejects that as 'invalid content-length header', which
8282
filecoin-pin surfaces as
8383
'StorageContext store failed: Failed to store piece on service provider -
8484
Network request failed'.
8585
86-
TODO: drop this patch once filecoin-pin pins a synapse-core release that
87-
omits Content-Length on streaming bodies (track upstream in FilOzone/synapse-sdk).
86+
Keep this tolerant until the older workaround has been exercised against
87+
the latest filecoin-pin release in CI.
8888
8989
Returns True when the target file is in the desired state (whether or not
9090
a change was applied). Returns False only when the file is missing.
@@ -246,7 +246,7 @@ def run():
246246
"pkg",
247247
"set",
248248
"type=module",
249-
"dependencies.filecoin-pin=0.20.1",
249+
"dependencies.filecoin-pin=0.22.3",
250250
"dependencies.multiformats=13.4.2",
251251
],
252252
label="pin filecoin-pin dependencies",

src/commands/start/user_setup/constants.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,11 @@ pub const CONTAINER_FP_APPROVE_OPERATOR: &str = "user-fp-approve-operator";
1212
/// Gas limit for cast send transactions on Filecoin FEVM.
1313
pub const CAST_GAS_LIMIT: &str = "100000000";
1414

15-
/// 1 USDFC expressed in the token's 18-decimal base unit.
16-
pub const USDFC_DEPOSIT_AMOUNT: &str = "1000000000000000000";
15+
/// 3 USDFC expressed in the token's 18-decimal base unit.
16+
///
17+
/// Latest filecoin-pin defaults to a two-copy upload path that can require more
18+
/// than 2 USDFC of locked funds before creating both data sets.
19+
pub const USDFC_DEPOSIT_AMOUNT: &str = "3000000000000000000";
1720

1821
/// uint256 max value, used for unlimited operator approval allowances.
1922
pub const MAX_UINT256: &str =

0 commit comments

Comments
 (0)