Function do_sync_state
pub unconstrained fn do_sync_state<Env>(
contract_address: AztecAddress,
compute_note_hash_and_nullifier: ComputeNoteHashAndNullifier<Env>,
)
pub unconstrained fn do_sync_state<Env>(
contract_address: AztecAddress,
compute_note_hash_and_nullifier: ComputeNoteHashAndNullifier<Env>,
)
Performs the state synchronization process, in which private logs are downloaded and inspected to find new private notes, partial notes and events, etc., and pending partial notes are processed to search for their completion logs. This is the mechanism via which a contract updates its knowledge of its private state.
Note that the state is synchronized up to the latest block synchronized by PXE (referred to as "anchor block"). That should be close to the chain tip as block synchronization is performed before contract function simulation is done.
Receives the address of the contract on which discovery is performed along with its
compute_note_hash_and_nullifierfunction.