JobResult
Stores a worker's submitted result for a job
The JobResult account is created when a worker submits their result.
Seeds: ["result", job] — one result per job.
Fields
| Field | Type | Description |
|---|---|---|
job | Pubkey | Parent job |
worker | Pubkey | Who submitted the result |
result_hash | [u8; 32] | Hash of the off-chain result data |
submitted_at | i64 | Unix timestamp |
Notes
- Like
data_hashon the Job account,result_hashfollows the off-chain data pattern. The actual result is stored externally (IPFS, Arweave, etc.) and only the hash is committed on-chain. - The JobResult account is separate from the Job account to keep Job fixed-size.
- When
close_jobis called on a terminal job, the JobResult account's rent is returned to the worker who submitted it.