Skip to content

Conversation

@rvagg
Copy link
Member

@rvagg rvagg commented Jun 27, 2025

Avoids this encoding:

2025-06-25T11:41:02.140Z        INFO    pdp     pdp/task_prove.go:262   PDP Prove Task  {"proofSetID": 373, "taskID": 1176601, "proofs": [{"Leaf":[157,185,128,132,183,204,73,85,72,32,159,2,6,190,124,198,165,209,86,137,99,163,98,202,19,32,64,128,0,1,2,4],"Proof":[[4,8,16,32,64,128,0,1,2,4,8,16,32,64,128,0,1,2,85,2,230,25,171,64,10,122,42,142,5,13,156,38],[138,95,214,224,44,11,229,216,180,42,75,103,26,74,37,114,120,240,155,119,242,62,198,14,129,63,22,193,244,104,102,61],[71,17,64,193,91,97,16,180,100,219,153,149,227,103,253,55,25,111,93,166,194,222,145,13,16,178,156,19,234,64,126,7],[200,5,107,168,108,133,191,254,212,32,33,90,93,241,69,214,73,53,
...

(But I still think this log output is helpful, eventually it could become a debug though)

@LexLuthr LexLuthr merged commit 135d330 into filecoin-project:synapse Jul 10, 2025
29 of 30 checks passed
LexLuthr pushed a commit that referenced this pull request Jul 22, 2025
* ServiceAuth and NullAuth (#512)

* ServiceAuth and NullAuth

* fix

---------

Co-authored-by: zenground0 <[email protected]>

* Fix/public service sql mig (#516)

* Add sql migration function to enable public service with dummy key

* Fix typo

---------

Co-authored-by: zenground0 <[email protected]>

* Tigher busy waiting (#521)

Co-authored-by: zenground0 <[email protected]>

* fix (#523)

Co-authored-by: zenground0 <[email protected]>

* Look in pdp piecerefs to check for actual readiness (#525)

* Look in pdp piecerefs to check for actual readiness

* fix

---------

Co-authored-by: zenground0 <[email protected]>

* YOLO (#526)

Co-authored-by: zenground0 <[email protected]>

* Remove unpadding transformation from root size (#529)

Co-authored-by: zenground0 <[email protected]>

* feat(pdp): add transaction tracking for root additions (synapse branch) (#530)

* feat(pdp): add transaction tracking for root additions

- Add Location header to root addition response with tx hash
- Add GET /proof-sets/{id}/roots/added/{txHash} endpoint for status checks
- Implement handleGetProofSetRoot for retrieving root details
- Return confirmed root IDs after transaction confirmation

* fix(pdp): use lowercase transaction hashes consistently in database operations

* fix(pdp): retain root addition records to prevent 404s on status queries

Previously, pdp_proofset_root_adds records were deleted after processing,
causing clients to receive 404 errors when querying transaction status
after successful root additions. This created a poor UX as clients couldn't
verify transaction outcomes if they queried too late.

This change aligns root addition tracking with proof set creation by:
- Adding roots_added column to mark processed records instead of deleting
- Updating watcher to UPDATE instead of DELETE when processing completes
- Including roots_added status in API response for client visibility

The fix ensures transaction status remains queryable indefinitely while
maintaining backward compatibility. Existing records will be processed
normally with roots_added=FALSE by default.

API enhancement: /pdp/proof-sets/{id}/roots/added/{txHash} now includes
"rootsAdded" field indicating if roots were fully processed.

* fix(pdp): extra checks to make sure the db entries are consistent

* fix(pdp): address review feedback

* chore(pdp): add more logging; don't bail early on tx error (#549)

* chore(pdp): add transaction processing logging

* chore(pdp): tweak logging statements

* fix(chain): improve chain scheduler robustness and eth tx monitoring (#553)

- Add mutex protection and notification timeout handling to CurioChainSched
- Implement timeout protection for eth client calls to prevent indefinite blocking
- Add comprehensive test coverage for chain scheduler and eth message watcher
- Extract interfaces (EthClient, TaskEngine, EthTransactionManager) for testability

* chore(logs): log proof data as hex (#551)

---------

Co-authored-by: ZenGround0 <[email protected]>
Co-authored-by: zenground0 <[email protected]>
Co-authored-by: Rod Vagg <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants