Gav Wood
879f443ce1
Avoid rzce condition.
10 years ago
Lefteris Karapetsas
b75514756a
Use std::call_once instead of a mutex
10 years ago
Lefteris Karapetsas
a976df8c3b
Reduce number of statics in EthashAux
10 years ago
Lefteris Karapetsas
04aa9867f5
Potential fix for EthashAux race condition
Some EthashAux functions are protected by mutexes. These mutexes are
normal members of the EthashAux class which itself is a singleton. It
can happen that multiple threads will get inside the singleton creation
`get()` functions when requesting a lock, but the lock will not be
acquired due to the singleton not yet existing.
This leads to multiple threads going in the same code and causing double
free corruption.
Making the mutexes static members of the singleton should hopefully
address the issue
10 years ago
Lefteris Karapetsas
7604f4c224
Smarter and more flexible GPU memory check
- Added new option --cl-extragpumem with which you can let the OpenCL
miner know how much GPU memory you believe your system would need for
miscellaneous stuff like Windowing system rendering e.t.c. The default
is 350 MB.
- Added new option --curent-block with which you can let the miner know
the current block during the configuration phase and as such help him
provide a much more accurate calculation of how much GPU memory is
required.
- Added help(documentation) for some arguments that did not have one
10 years ago
Lefteris Karapetsas
3e2fc17e81
Print additional info if DAG creation fails
10 years ago
Lefteris Karapetsas
b325a5c3b2
Mutex guard m_fulls on eval()
10 years ago
Gav Wood
4251276cb3
Fix mining. Again.
10 years ago
Gav Wood
c4df26e82e
Actually load the DAG.
10 years ago
Gav Wood
05ea9941c9
Move non-cryptopp dependent stuff into devcore.
10 years ago
Gav Wood
fea144622a
Bump and build fix.
10 years ago
Gav Wood
a6f80e6f97
Use straight homedirectory rather than Application Support.
10 years ago
arkpar
cbb5e640ef
more blockchain import optimizations
10 years ago
Lefteris Karapetsas
3145b5aa7d
Throw if ethash_XXX_new() fails
10 years ago
Gav Wood
47b6e38df9
Fixes for transact gas usage.
10 years ago
Lefteris Karapetsas
648a83f0fc
Stricter interface for EthashAux::light()
10 years ago
Lefteris Karapetsas
5cc63de2f9
Use seedhash everywhere in EthashAux
We now use seedhash everywhere and generate a block number only where
it's needed. Namely ethash_light_new()
10 years ago
Gav Wood
83650be213
Fix GPU mining in ethminer.
10 years ago
Gav Wood
da1fcbb19b
DAG generation improvements.
Generate next DAG in AZ!
Cleanups to Ethash & Aux.
DAG Progress in AZ.
10 years ago
Gav Wood
2eed2ca5e0
Refactored much EthashAux., especially the DAG generation callback stuff.
Made m_epochs active again.
10 years ago
Lefteris Karapetsas
4f855b5de3
Add simple callback for DAG generation progress reporting
10 years ago
Lefteris Karapetsas
ab7b092b47
Fix EthashAux eval(). Dagger tests now pass
10 years ago
Lefteris Karapetsas
4134160f9a
Remove unneeded function for ethash to our h256 conversion
10 years ago
Lefteris Karapetsas
6b28fbe4a6
Further fixes in Ethash integration and testing
10 years ago
Lefteris Karapetsas
165c374fd4
New ethash API integration part 1
- cpp-ethereum now compiles with the new API
- Proper integration with testing will come with the next commits
10 years ago
Gav Wood
ee03387457
ethashCL doesn't need memory to shadow each GPU.
10 years ago
arkpar
a1c84c7172
blockchain download and import performance optimizations
10 years ago
Gav Wood
fd5ea37e55
Transaction nonce now "sorted". Fixes #1615
10 years ago
chriseth
8f98d65626
Split params into evm-related and mining/block-related.
10 years ago
chriseth
2111cd4894
Move assembly related files to libevmasm and Params.h/.cpp to libevmcore.
10 years ago
Gav Wood
1b71d6a7c2
Standalone miner.
10 years ago
Gav Wood
55b9038d6f
More awesome logging stuff.
10 years ago
Gav Wood
8328220471
Fixes for reimporting, make block availability atomic.
10 years ago
Gav Wood
c07e43b4ad
Don't create full if missing when just verifying.
10 years ago
Gav Wood
0627bfaa2e
note.
10 years ago
Gav Wood
9450a7c463
Cleanup light, full caches are removed automatically without making
mining slow.
10 years ago
Gav Wood
51b2617b2e
Avoid 1GB memory leak. Downside: will seriously slow down mining.
10 years ago
Gav Wood
8f532e81cb
Fix to ethash seedHash caching.
10 years ago
Gav Wood
45bacf8566
AlethZero fixes.
10 years ago
Gav Wood
15f74352e3
Compile fixes.
10 years ago
Gav Wood
c1045d4711
Refactor just about everything important in the core.
TODO: make compile :-)
10 years ago
Gav Wood
87a160ab21
GPU Miner prototyped in new API.
10 years ago
Gav Wood
2fb7883a12
Refactor just about everything important in the core.
TODO: make compile :-)
10 years ago
Gav Wood
cc82d9fbc5
GPU Miner prototyped in new API.
10 years ago
Gav Wood
c533f1cbda
OpenCL stuff, Fix for eth_call.
10 years ago
Gav Wood
f2b56e7647
Move hash to a hidden function, and provide a datapath to it so avoid
unneeded SHA3s.
10 years ago
Gav Wood
3053282582
Avoid killing old DAGs for now. Presents a memory leak to the tune of
1GB/epoch (!!!) but this will all be fixed when @LefterisJP introduces
ethash-side memoisation.
10 years ago
Gav Wood
d16737c707
New DAG file scheme.
10 years ago
Gav Wood
3efcc49bdf
Upgrade to latest ethhash API.
10 years ago
Gav Wood
13d77a34e5
Avoid asserting until I know exactly what ethash_quick_check_difficulty is
meant to do.
10 years ago