Files
zeekay 8ff2228467 fix(evm): add ZAP nil-safety, genesis trie flush, and Fortuna gas model
Add nil-safety guards for SharedMemory and ValidatorState when running
under ZAP transport (no shared memory proxy). Force trie flush via
triedb.Cap(0) after genesis regeneration to prevent missing trie node
errors. Add Fortuna (ACP-176) gas model support returning Big0 post-fork.
Clean up plugin main entry point. Update consensus to v1.22.67.
2026-02-10 18:54:58 -08:00
..
…

Peer Package

The peer package handles networking for the VM.

Network

The Network interface implements the networking portion of the required VM interface. The VM utilizes the Network interface to:

  • Set an App Gossip handler for incoming VM gossip messages
  • Set an App Request handler for incoming VM request messages
  • Send App Requests to peers in the network and specify a response handler to be called upon receiving a response or failure notification
  • Send App Gossip messages to the network

Client

The client utilizes the Network interface to send requests to peers on the network and utilizes the waitingHandler to wait until a response or failure is received from the Luxd networking layer.

This allows the user of Client to treat it as if it were returning results from the network synchronously.

result, err := client.Request(nodeID, request) // Blocks until receiving a response from the network
if err != nil {
    return err
}

foo(result) // do something with the result