chore(rpc): add InvalidStateRoot error variant (#2698)

This commit is contained in:
Matthias Seitz
2023-05-16 18:41:38 +02:00
committed by GitHub
parent 5598ecb9c9
commit a97c5b34a9

View File

@ -405,6 +405,14 @@ pub enum PayloadValidationError {
/// Thrown when a new payload contains a wrong block number.
#[error("invalid block number")]
InvalidBlockNumber,
/// Thrown when a new payload contains a wrong state root
#[error("invalid merkle root (remote: {remote:?} local: {local:?})")]
InvalidStateRoot {
/// The state root of the payload we received from remote (CL)
remote: H256,
/// The state root of the payload that we computed locally.
local: H256,
},
}
#[cfg(test)]