Skip to content

Commit 2139437

Browse files
suchapalaverclaude
andcommitted
fix(tap-agent): resolve V2 actor system and collection ID parsing issues
This commit addresses multiple issues that were preventing the V2 TAP actor system from functioning properly: 1. **Actor Race Condition Prevention**: Added existence check in SenderAccount to prevent duplicate actor creation attempts that caused "Actor already registered" errors during concurrent receipt processing. 2. **Collection ID Parsing**: Fixed parsing of collection_id strings from database during migration period: - Handle both 20-byte addresses and 32-byte collection IDs - Proper whitespace trimming and error reporting - Consistent 0x prefix handling for both Address and CollectionId parsing 3. **Attestation Error Messages**: Updated error messages to be factual about what is observed rather than speculative about causes when key derivation fails after testing multiple combinations. 4. **BIP32 Path Length Handling**: Maintained existing v1/v2 fallback system for handling long deployment IDs that exceed BIP32 path limits. The V2 TAP actor system now starts successfully and can process receipts. RAV generation is pending allocation closure in the test environment. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 30e95f3 commit 2139437

File tree

6 files changed

+448
-10
lines changed

6 files changed

+448
-10
lines changed

crates/attestation/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ edition = "2021"
66
[dependencies]
77
anyhow.workspace = true
88
indexer-allocation = { path = "../allocation" }
9+
sha2.workspace = true
910
thegraph-core.workspace = true
11+
tracing.workspace = true
1012

1113

1214
[dev-dependencies]

0 commit comments

Comments
 (0)