Skip to content
Merged
Show file tree
Hide file tree
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
8 changes: 4 additions & 4 deletions scenarios/test_multi_copy_upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Comment thread
rjan90 marked this conversation as resolved.
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.
Expand Down Expand Up @@ -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",
Expand Down
7 changes: 5 additions & 2 deletions src/commands/start/user_setup/constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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";
/// 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 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 =
Expand Down
Loading