feat(synapse-core): add SP-to-SP piece pull functionality#544
Conversation
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
synapse-dev | d416aec | Commit Preview URL Branch Preview URL |
Feb 26 2026, 05:29 AM |
c2011f6 to
7af205b
Compare
|
Added a temporary utils/example-sp-fetch-e2e.js testing file to test the sp-sp fetch flow. It stores pieces with one SP, confirms they are parked, then asks the second SP to fetch from the first and confirms they are parked. It's working currently on devnet using FilOzone/foc-devnet#34 👌. |
ac3552a to
3c5cdb9
Compare
0a20df0 to
a231d32
Compare
3c5cdb9 to
429c2e3
Compare
|
Rebased on top of the latest @hugomrdias stack #571 |
429c2e3 to
8ec5942
Compare
a5f8971 to
d75fb75
Compare
8ec5942 to
b6d3479
Compare
b221f97 to
ff14a1d
Compare
ff14a1d to
13ed974
Compare
13ed974 to
2d1a65e
Compare
|
latest fixup in here adds the ability to supply a pre-built |
2d1a65e to
caebe09
Compare
|
And another fix, I realised I still had a ton of "fetch" in here. Now all "pull". |
2f8c0ca to
59e576b
Compare
hugomrdias
left a comment
There was a problem hiding this comment.
im not the biggest fan of this idempotent POST endpoint, left some comment inline.
59e576b to
63c6170
Compare
|
Force pushed a gnarly rebase, now just one commit on top of master. 🤞 |
2d43c4f to
70fa757
Compare
|
I borked the rebase when I said this was done yesterday, didn't include the fixes I said I'd made! Should be good now though. And #593 is on top of this. They are both now on top of latest master. |
hugomrdias
left a comment
There was a problem hiding this comment.
Need rebase besides that all good
Add low-level Pull module for initiating piece pulls from external storage providers to the local SP via Curio's POST /pdp/piece/pull endpoint. Features: - pullPieces: Initiate pull requests with EIP-712 signed authorization - waitForPullStatus: Poll until completion with status callbacks - Support for both existing data sets (signAddPieces) and new data sets (signCreateDataSetAndAddPieces) - Configurable timeout and abort signal support The pull endpoint is idempotent - repeated calls with the same extraData return status updates rather than creating duplicates.
70fa757 to
d416aec
Compare
Add low-level Pull module for initiating piece pulls from external storage providers to the local SP via Curio's POST /pdp/piece/pull endpoint. Features: - pullPieces: Initiate pull requests with EIP-712 signed authorisation - waitForPullStatus: Poll until completion with status callbacks - Support for both existing data sets (signAddPieces) and new data sets (signCreateDataSetAndAddPieces) - Configurable timeout and abort signal support The pull endpoint is idempotent - repeated calls with the same extraData return status updates rather than creating duplicates.
Ref: filecoin-project/curio#864
Part of #494