Skip to content

fix contractor journal sanity check race condition

Ava Howell requested to merge contractor-sanitycheck-race into master

This PR fixes a rare, nondeterministic race in the renter's contractor where the sanity check would sometimes fail. Instead of reloading the journal from disk and sanity checking against the loading data, the contractor now has a lock-protected data contractorPersist field that is continuously updated under lock and used for the sanity check.

Merge request reports