Skip to content

eth/api_backend_pow.go — Version Comparison

v1.17.3 v1.17.4
Branch etc/v1.17.3-full-node etc/v1.17.4-full-node
Delta +31 -0 +36 -0

Diff between branches

diff --git a/eth/api_backend_pow.go b/eth/api_backend_pow.go
index 30ea723dc..285d34a17 100644
--- a/eth/api_backend_pow.go
+++ b/eth/api_backend_pow.go
@@ -21,6 +21,7 @@ import (
    "math/big"

    "github.com/ethereum/go-ethereum/common"
+   "github.com/ethereum/go-ethereum/miner"
 )

 func (b *EthAPIBackend) GetTd(ctx context.Context, hash common.Hash) *big.Int {
@@ -29,3 +30,7 @@ func (b *EthAPIBackend) GetTd(ctx context.Context, hash common.Hash) *big.Int {
    }
    return nil
 }
+
+func (b *EthAPIBackend) Miner() *miner.Miner {
+   return b.eth.Miner()
+}
← Back to Version Comparison