Function empty_address_queue_test

Source
pub async fn empty_address_queue_test<R: RpcConnection>(
    forester: &Keypair,
    rpc: &mut R,
    address_tree_bundle: &mut AddressMerkleTreeBundle,
    signer_is_owner: bool,
    epoch: u64,
    is_metadata_forester: bool,
) -> Result<(), RelayerUpdateError>
Expand description

Mocks the address insert logic of a forester. Gets addresses from the AddressQueue and inserts them into the AddressMerkleTree.

Checks:

  1. Element has been marked correctly
  2. Merkle tree has been updated correctly

TODO: Event has been emitted, event doesn’t exist yet