Assessment reports>Polyhedra DVN>Threat Model>setBlockUpdater

Function: setBlockUpdater(uint32 _srcEid, address _newBlockUpdater)

Sets the block-updater contract. Callable by the owner only.

Inputs

  • _srcEid

    • Control: Full.

    • Constraints: None.

    • Impact: The source EID to configure the block updater for.

  • _newBlockUpdater

    • Control: Full.

    • Constraints: Cannot be zero and cannot be equal to the currently stored block-updater address.

    • Impact: The new address to use as the block updater.

Branches and code coverage

Intended branches

  • Updates the block-updater configuration.

Negative behavior

  • Caller is not the owner.

  • Reverts if the _newBlockUpdater is zero.

  • The _newBlockUpdater is the same as the stored block-updater address.

Zellic © 2025Back to top ↑