From cb5c081858fe9076d98247cd24d294eb1a446a52 Mon Sep 17 00:00:00 2001 From: Aleksandr Bezobchuk Date: Thu, 5 Jul 2018 11:06:15 -0400 Subject: [PATCH] expose ChainContext coinbase field --- core/chain.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/chain.go b/core/chain.go index 924cc770..c461b3ec 100644 --- a/core/chain.go +++ b/core/chain.go @@ -20,7 +20,7 @@ import ( // NOTE: Ethermint will distribute the fees out to validators, so the structure // and functionality of this is a WIP and subject to change. type ChainContext struct { - coinbase ethcommon.Address + Coinbase ethcommon.Address } // Engine implements Ethereum's core.ChainContext interface. As a ChainContext @@ -45,7 +45,7 @@ func (cc *ChainContext) GetHeader(ethcommon.Hash, uint64) *ethtypes.Header { // NOTE: Ethermint will distribute the fees out to validators, so the structure // and functionality of this is a WIP and subject to change. func (cc *ChainContext) Author(_ *ethtypes.Header) (ethcommon.Address, error) { - return cc.coinbase, nil + return cc.Coinbase, nil } // APIs implements Ethereum's core.ChainContext interface. It currently