Fixed data races

This commit is contained in:
SChernykh
2022-05-28 20:47:49 +02:00
parent cb147773b5
commit 9e7666d12f
3 changed files with 5 additions and 6 deletions
+1 -1
View File
@@ -115,7 +115,7 @@ BlockTemplate& BlockTemplate::operator=(const BlockTemplate& b)
m_extraNonceOffsetInTemplate = b.m_extraNonceOffsetInTemplate;
m_numTransactionHashes = b.m_numTransactionHashes;
m_prevId = b.m_prevId;
m_height = b.m_height;
m_height = b.m_height.load();
m_difficulty = b.m_difficulty;
m_seedHash = b.m_seedHash;
m_timestamp = b.m_timestamp;