eth, miner: verify PoW in the remote agent to notify submitter (#3438)

This commit is contained in:
Péter Szilágyi
2016-12-20 03:14:36 +02:00
committed by Felix Lange
parent 1fe67c125d
commit 0ee796632a
2 changed files with 22 additions and 13 deletions

View File

@ -82,7 +82,7 @@ type PublicMinerAPI struct {
// NewPublicMinerAPI create a new PublicMinerAPI instance.
func NewPublicMinerAPI(e *Ethereum) *PublicMinerAPI {
agent := miner.NewRemoteAgent()
agent := miner.NewRemoteAgent(e.Pow())
e.Miner().Register(agent)
return &PublicMinerAPI{e, agent}