Function discover_new_messages
pub unconstrained fn discover_new_messages<Env>(
contract_address: AztecAddress,
compute_note_hash_and_nullifier: ComputeNoteHashAndNullifier<Env>,
)
pub unconstrained fn discover_new_messages<Env>(
contract_address: AztecAddress,
compute_note_hash_and_nullifier: ComputeNoteHashAndNullifier<Env>,
)
Performs the message discovery 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. 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.