| 17 | /// A flashblock containing partial block data. |
| 18 | #[derive(Debug, Serialize, Deserialize, PartialEq, Eq, Clone)] |
| 19 | pub struct Flashblock { |
| 20 | /// Unique payload identifier. |
| 21 | pub payload_id: PayloadId, |
| 22 | /// Index of this flashblock within the block. |
| 23 | pub index: u64, |
| 24 | /// Base payload data (only present on first flashblock). |
| 25 | pub base: Option<ExecutionPayloadBaseV1>, |
| 26 | /// Delta containing transactions and state changes. |
| 27 | pub diff: ExecutionPayloadFlashblockDeltaV1, |
| 28 | /// Associated metadata. |
| 29 | pub metadata: Metadata, |
| 30 | } |
| 31 | |
| 32 | impl Flashblock { |
| 33 | /// Attempts to decode a flashblock from bytes that may be plain JSON or brotli-compressed JSON. |
no outgoing calls
no test coverage detected