MCPcopy Create free account
hub / github.com/base/base / validate

Method validate

crates/execution/txpool/src/wire.rs:46–48  ·  view source on GitHub ↗

Validates the payload against the configured maximum number of extension items. Called by the builder before decoding and applying the payload. Each extension type defines what constitutes one item.

(&self, _max_items: usize)

Source from the content-addressed store, hash-verified

44 /// Called by the builder before decoding and applying the payload. Each extension
45 /// type defines what constitutes one item.
46 fn validate(&self, _max_items: usize) -> Result<(), ExtensionError> {
47 Ok(())
48 }
49
50 /// Extracts extension data from an outbound pooled transaction.
51 ///

Callers

nothing calls this directly

Implementers 3

wire.rscrates/execution/txpool/src/wire.rs
validity.rscrates/execution/txpool/src/validity.r
rpc.rscrates/execution/txpool/src/builder/rp

Calls

no outgoing calls

Tested by

no test coverage detected