@@ -171,8 +171,8 @@ type Initializer struct {
171171
172172 // these values are atomics so they can be read from multiple other goroutines safely
173173 // write is protected by mtx
174- nonceValue atomic.Pointer [[]byte ]
175174 nonce atomic.Pointer [uint64 ]
175+ nonceValue atomic.Pointer [[]byte ]
176176 lastPosition atomic.Pointer [uint64 ]
177177 numLabelsWritten atomic.Uint64
178178
@@ -681,13 +681,18 @@ func (init *Initializer) verifyMetadata(m *shared.PostMetadata) error {
681681
682682func (init * Initializer ) saveMetadata () error {
683683 v := shared.PostMetadata {
684+ Version : 1 ,
685+
684686 NodeId : init .nodeId ,
685687 CommitmentAtxId : init .commitmentAtxId ,
686- LabelsPerUnit : init .cfg .LabelsPerUnit ,
687- NumUnits : init .opts .NumUnits ,
688- MaxFileSize : init .opts .MaxFileSize ,
689- Nonce : init .nonce .Load (),
690- LastPosition : init .lastPosition .Load (),
688+
689+ LabelsPerUnit : init .cfg .LabelsPerUnit ,
690+ NumUnits : init .opts .NumUnits ,
691+ MaxFileSize : init .opts .MaxFileSize ,
692+ Scrypt : init .opts .Scrypt ,
693+
694+ Nonce : init .nonce .Load (),
695+ LastPosition : init .lastPosition .Load (),
691696 }
692697 if init .nonceValue .Load () != nil {
693698 v .NonceValue = * init .nonceValue .Load ()
0 commit comments