ethereumproject / go-ethereum

Go language implementation of the original/classic design of the Ethereum protocol
GNU Lesser General Public License v3.0
441 stars 166 forks source link

Add height in rpc getwork #711

Closed sherlock-shi-x closed 5 years ago

sherlock-shi-x commented 5 years ago

When miners/stratums want to get new block template, they have to use rpc request twice.

After receiving result of 'eth_getWork', the real blockNumber right now may be different to the response of 'eth_getBlockByNumber'. Just call rpc once and get the complete informations.