diff --git a/trusted_applet/internal/storage/slots/journal.go b/trusted_applet/internal/storage/slots/journal.go index 56637f7..2413fe7 100644 --- a/trusted_applet/internal/storage/slots/journal.go +++ b/trusted_applet/internal/storage/slots/journal.go @@ -164,19 +164,9 @@ func (j *Journal) Update(data []byte) error { return fmt.Errorf("failed to write blocks: %v", err) } - // Attempt to re-read the entry we just wrote to make sure that all is well... - br := newBlockReader(j.dev, j.nextBlock) - latest, err := unmarshalEntry(br) - if err != nil { - return fmt.Errorf("failed to re-scan written entry: %v", err) - } - if got, want := latest.Revision, e.Revision; got != want { - return fmt.Errorf("journal error, latest entry revision %d != written revision %d", got, want) - } - // Finally, update the journal state. j.nextBlock += numBlocks - j.current = *latest + j.current = e return nil }