diff options
author | Determinant <[email protected]> | 2020-06-27 22:46:31 -0400 |
---|---|---|
committer | Determinant <[email protected]> | 2020-06-27 22:46:31 -0400 |
commit | 1c68a9849d5f493ab62e18a125158f6288c1e363 (patch) | |
tree | 5215d77ab546bc55a85ecfec97191c0b61df2d65 /coreth.go | |
parent | 07a9f9db09f7ade1be5a90197c46fde2e5245fea (diff) |
check the coinbase in ParseBlockv0.2.7-rc.1v0.2.6
Diffstat (limited to 'coreth.go')
-rw-r--r-- | coreth.go | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -22,6 +22,13 @@ import ( "github.com/mattn/go-isatty" ) +var ( + ZeroAddr = common.Address{ + 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + } +) + type Tx = types.Transaction type Block = types.Block type Hash = common.Hash @@ -59,10 +66,7 @@ func NewETHChain(config *eth.Config, nodecfg *node.Config, etherBase *common.Add backend, _ := eth.New(&ctx, config, cb, mcb, bcb, chainDB) chain := ÐChain{backend: backend, cb: cb, mcb: mcb, bcb: bcb} if etherBase == nil { - etherBase = &common.Address{ - 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - } + etherBase = &ZeroAddr } backend.SetEtherbase(*etherBase) return chain |