Validator

Digest Transaction

Beacons call this RPC to notify Validators about a new transaction. Beacons issue the RPC to Validators that hold input hashes relevant to the given transaction, selecting one Validator for each hash if multiple Validators overlap on the same prefix. The Validator checks whether the transaction inputs are present in its UHS and issues a "digest transaction notification" RPC to the Co-ordinator service. If a transaction contains an input hash which is not present in its UHS, the Validator calls the "digest error" RPC on the watchtower with the transaction ID and which UHS elements could not be found.

Digest Block

The Co-ordinator calls this RPC to notify Validators about a new block. If the block is contiguous with the previously digested block, the Validator atomically applies the transactions to its UHS, deleting input hashes and adding output hashes. If the block is not contiguous (because the Validator has missed previous block notifications), the Validator first contacts the archiver to download and digest the missing blocks, before applying the current block.

Last updated