@@ -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
@@ -678,13 +678,18 @@ func (init *Initializer) verifyMetadata(m *shared.PostMetadata) error {
678678
679679func (init * Initializer ) saveMetadata () error {
680680 v := shared.PostMetadata {
681+ Version : 1 ,
682+
681683 NodeId : init .nodeId ,
682684 CommitmentAtxId : init .commitmentAtxId ,
683- LabelsPerUnit : init .cfg .LabelsPerUnit ,
684- NumUnits : init .opts .NumUnits ,
685- MaxFileSize : init .opts .MaxFileSize ,
686- Nonce : init .nonce .Load (),
687- LastPosition : init .lastPosition .Load (),
685+
686+ LabelsPerUnit : init .cfg .LabelsPerUnit ,
687+ NumUnits : init .opts .NumUnits ,
688+ MaxFileSize : init .opts .MaxFileSize ,
689+ Scrypt : init .opts .Scrypt ,
690+
691+ Nonce : init .nonce .Load (),
692+ LastPosition : init .lastPosition .Load (),
688693 }
689694 if init .nonceValue .Load () != nil {
690695 v .NonceValue = * init .nonceValue .Load ()
0 commit comments