Skip to content
Blockchain Association of Cameroon
BAC-L2-AVAX-113AvalancheExpert

Custom virtual machines II — implementation

Implementing the state transition specified in the previous workshop, and running it on a real network.

Level
L2Appchain developer
Duration
4 h
Track
Avalanche
Maintainer
Avalanche Lead Architect

Learning objectives

  • 01Implement block building and verification
  • 02Persist state and restore it after restart
  • 03Test the virtual machine independently of the network

Guided lab

Implement the specified registry's state transition and cover it with tests.

Independent lab

Run the virtual machine on a local multi-node network and verify state convergence.

Security angle

Incomplete block verification accepts an invalid block: write the rejection tests first.

Assessment

Virtual machine running on a multi-node network with verified state convergence.