Wrap Proposer so we can add the SeraiPreExecutionDigest (timestamps)

This commit is contained in:
Luke Parker
2025-11-14 08:02:18 -05:00
parent cde0f753c2
commit 82ca889ed3
3 changed files with 64 additions and 4 deletions

View File

@@ -253,7 +253,7 @@ mod substrate {
for log in header.consensus.digest.logs() {
match log {
DigestItem::PreRuntime(consensus, encoded)
if *consensus == SeraiExecutionDigest::CONSENSUS_ID =>
if *consensus == SeraiPreExecutionDigest::CONSENSUS_ID =>
{
pre_execution_digest =
SeraiPreExecutionDigest::deserialize_reader(&mut encoded.as_slice()).ok();