Jeffrey Wilcke
8c38f8d815
miner: synchronise start / stop
...
This PR fixes an issue where the remote worker was stopped twice and not
properly handled. This adds a synchronised running check to the start
and stop methods preventing closing of a channel more than once.
9 years ago
Felix Lange
fbdb44dcc1
cmd/utils, rpc/comms: stop XEth when IPC connection ends
...
There are a bunch of changes required to make this work:
- in miner: allow unregistering agents, fix RemoteAgent.Stop
- in eth/filters: make FilterSystem.Stop not crash
- in rpc/comms: move listen loop to platform-independent code
Fixes #1930 . I ran the shell loop there for a few minutes and didn't see
any changes in the memory profile.
9 years ago
Gustav Simonsson
d9addf79fa
Improve error string and remove unneeded else clause
9 years ago
Gustav Simonsson
829201382b
rpc: return error code for eth_getWork when no work ready
9 years ago
Jeffrey Wilcke
c32073b11f
miner, rpc: added submit hashrate for remote agents
9 years ago
Felix Lange
bfbcfbe4a9
all: fix license headers one more time
...
I forgot to update one instance of "go-ethereum" in commit 3f047be5a
.
9 years ago
Felix Lange
3f047be5aa
all: update license headers to distiguish GPL/LGPL
...
All code outside of cmd/ is licensed as LGPL. The headers
now reflect this by calling the whole work "the go-ethereum library".
9 years ago
Jeffrey Wilcke
e870e61bc9
miner: smart mining
...
Work is now handled and carried over multiple sessions. Previously one
session only was assumed, potentially resulting in invalid (outdated)
work
* Larger work / result queue
* Full validation option
9 years ago
Felix Lange
ea54283b30
all: update license information
10 years ago
Felix Lange
1d42888d30
core/types: make blocks immutable
10 years ago
Taylor Gerring
8e77f81586
Return 32-byte hashes from GetWork
...
Ensures that the Get Work results are a consistent length. Closes #917
10 years ago
obscuren
fa729a0c55
miner: go fmt
10 years ago
Vitalik Buterin
5caf1aa1a9
Switched getWork third output from difficulty to target
10 years ago
obscuren
2cc9211269
miner: fixed remote miner current work
10 years ago
obscuren
d36501a6e5
Fixed miner
...
* Miners could stall because the worker wasn't aware the miner was done
10 years ago
obscuren
a59ea7ce29
Changed miner
...
* Instead of delivering `Work` to the `Worker`, push a complete Block to
the `Worker` so that each agent can work on their own block.
10 years ago
obscuren
9be7853e34
Fixed issues with stalled remote miner
10 years ago
Taylor Gerring
91a2275ad3
Move RemoteAgent to miner pkg
10 years ago
Taylor Gerring
439481d177
Rename Agent to RemoteAgent
10 years ago
Taylor Gerring
01c0ba22ae
Add DAG seed hash and difficulty to GetWork
10 years ago
Taylor Gerring
ab6311c1bd
Move remote mining agent to XEth
10 years ago
Taylor Gerring
16a58f8f2a
Always return 3 strings
10 years ago
Taylor Gerring
31879eca8c
Stub corrected getWork response
10 years ago
Taylor Gerring
3772f02569
Rename for filename typo
10 years ago
Taylor Gerring
372e1cad5b
Cleanup get/submitWork
...
getWork needs to return additional values
10 years ago
obscuren
8ed4f226d1
check for nil ptrs
10 years ago
obscuren
82956df523
Get work / submit work partially implemented.
...
* WIP missing arguments for submitting new work
* GetWork **done**
10 years ago