<feed xmlns='http://www.w3.org/2005/Atom'>
<title>monzero-core.git/src/cryptonote_basic/miner.cpp, branch v0.14.1.0</title>
<subtitle>Monzero core node, command-line wallet, consensus code, and release tooling.
</subtitle>
<id>https://code.monzero.org/monzero-core.git/atom?h=v0.14.1.0</id>
<link rel='self' href='https://code.monzero.org/monzero-core.git/atom?h=v0.14.1.0'/>
<link rel='alternate' type='text/html' href='https://code.monzero.org/monzero-core.git/'/>
<updated>2019-06-09T10:29:03Z</updated>
<entry>
<title>miner: fix double free of thread attributes</title>
<updated>2019-06-09T10:29:03Z</updated>
<author>
<name>ston1th</name>
<email>ston1th@users.noreply.github.com</email>
</author>
<published>2019-06-09T08:51:18Z</published>
<link rel='alternate' type='text/html' href='https://code.monzero.org/monzero-core.git/commit/?id=117f9501d8edbd4dc378d1ff070b79fd4277f158'/>
<id>urn:sha1:117f9501d8edbd4dc378d1ff070b79fd4277f158</id>
<content type='text'>
issue: #5568
</content>
</entry>
<entry>
<title>Increment m_threads_active when mining thread starts</title>
<updated>2019-04-15T03:08:33Z</updated>
<author>
<name>Doyle</name>
<email>doylet@protonmail.com</email>
</author>
<published>2019-04-15T03:08:33Z</published>
<link rel='alternate' type='text/html' href='https://code.monzero.org/monzero-core.git/commit/?id=6643b04737d58a84427e6b8c04f56b0326dc5e00'/>
<id>urn:sha1:6643b04737d58a84427e6b8c04f56b0326dc5e00</id>
<content type='text'>
</content>
</entry>
<entry>
<title>functional_tests: add more blockchain related tests</title>
<updated>2019-04-11T11:07:58Z</updated>
<author>
<name>moneromooo-monero</name>
<email>moneromooo-monero@users.noreply.github.com</email>
</author>
<published>2019-03-23T16:20:08Z</published>
<link rel='alternate' type='text/html' href='https://code.monzero.org/monzero-core.git/commit/?id=064ab123401814b755c776d8e53f132f6a151657'/>
<id>urn:sha1:064ab123401814b755c776d8e53f132f6a151657</id>
<content type='text'>
Related to emission, reorgs, getting tx data back, output
distribution and histogram
</content>
</entry>
<entry>
<title>Merge pull request #5381</title>
<updated>2019-04-11T11:03:32Z</updated>
<author>
<name>Riccardo Spagni</name>
<email>ric@spagni.net</email>
</author>
<published>2019-04-11T11:03:32Z</published>
<link rel='alternate' type='text/html' href='https://code.monzero.org/monzero-core.git/commit/?id=38717dafc0e76fd5f939eb5ee76a278e2c74a752'/>
<id>urn:sha1:38717dafc0e76fd5f939eb5ee76a278e2c74a752</id>
<content type='text'>
def40161 miner: fix race when stopping mining with start mining enabled (moneromooo-monero)
</content>
</entry>
<entry>
<title>wallet: new option to start background mining</title>
<updated>2019-04-04T18:10:45Z</updated>
<author>
<name>moneromooo-monero</name>
<email>moneromooo-monero@users.noreply.github.com</email>
</author>
<published>2019-03-30T19:21:30Z</published>
<link rel='alternate' type='text/html' href='https://code.monzero.org/monzero-core.git/commit/?id=a2561653cbcba96e7e2dd352b9e0ea57cd220b2c'/>
<id>urn:sha1:a2561653cbcba96e7e2dd352b9e0ea57cd220b2c</id>
<content type='text'>
The setup-background-mining option can be used to select
background mining when a wallet loads. The user will be asked
the first time the wallet is created.
</content>
</entry>
<entry>
<title>miner: fix race when stopping mining with start mining enabled</title>
<updated>2019-04-01T19:28:50Z</updated>
<author>
<name>moneromooo-monero</name>
<email>moneromooo-monero@users.noreply.github.com</email>
</author>
<published>2019-03-15T19:08:22Z</published>
<link rel='alternate' type='text/html' href='https://code.monzero.org/monzero-core.git/commit/?id=def4016171e190e75b5f04430b56dfb9686c2f27'/>
<id>urn:sha1:def4016171e190e75b5f04430b56dfb9686c2f27</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Merge pull request #5288</title>
<updated>2019-04-01T15:20:25Z</updated>
<author>
<name>Riccardo Spagni</name>
<email>ric@spagni.net</email>
</author>
<published>2019-04-01T15:20:25Z</published>
<link rel='alternate' type='text/html' href='https://code.monzero.org/monzero-core.git/commit/?id=574c399386f95f61d9e0fb3e929eaab85203c315'/>
<id>urn:sha1:574c399386f95f61d9e0fb3e929eaab85203c315</id>
<content type='text'>
39f000b3 miner: fix possible exit crash due to race in stop (moneromooo-monero)
</content>
</entry>
<entry>
<title>Merge pull request #5185</title>
<updated>2019-03-17T15:55:32Z</updated>
<author>
<name>Riccardo Spagni</name>
<email>ric@spagni.net</email>
</author>
<published>2019-03-17T15:55:32Z</published>
<link rel='alternate' type='text/html' href='https://code.monzero.org/monzero-core.git/commit/?id=429930534df43b8bef46a4a39dbfbc3d3b5939b0'/>
<id>urn:sha1:429930534df43b8bef46a4a39dbfbc3d3b5939b0</id>
<content type='text'>
59478c80 daemon: new mining_status command (moneromooo-monero)
</content>
</entry>
<entry>
<title>miner: fix possible exit crash due to race in stop</title>
<updated>2019-03-14T16:59:08Z</updated>
<author>
<name>moneromooo-monero</name>
<email>moneromooo-monero@users.noreply.github.com</email>
</author>
<published>2019-03-14T16:54:03Z</published>
<link rel='alternate' type='text/html' href='https://code.monzero.org/monzero-core.git/commit/?id=39f000b3948e64a38b14b1d358ced1b2d1f44bf3'/>
<id>urn:sha1:39f000b3948e64a38b14b1d358ced1b2d1f44bf3</id>
<content type='text'>
If a thread asks to stop the miner, m_stop will be set, and
that thread will wait to join. If the main thread is exiting
at that time, it will ask the miner to stop, but the miner
will claim it's not mining and early out since m_stop is
set. This will cause the database and other things to get
shutdown. If the miner happens to find a block at that time,
it will try to call core, and crash.

Instead, lock and check whether any threads are currently
in m_threads, since they'll only be cleared once the threads
are joined. Moreover, since we lock, the second thread will
have to wait for the first one to have finished. Calling
join twice on a thread seems fine as per pthread_join(3).
</content>
</entry>
<entry>
<title>daemon: new mining_status command</title>
<updated>2019-03-09T20:51:53Z</updated>
<author>
<name>moneromooo-monero</name>
<email>moneromooo-monero@users.noreply.github.com</email>
</author>
<published>2019-02-22T20:17:45Z</published>
<link rel='alternate' type='text/html' href='https://code.monzero.org/monzero-core.git/commit/?id=59478c80dd01d00e16994a77e36a94cdbe3c9412'/>
<id>urn:sha1:59478c80dd01d00e16994a77e36a94cdbe3c9412</id>
<content type='text'>
</content>
</entry>
</feed>
