diff --git a/core/vm/contracts.go b/core/vm/contracts.go index 010f477337..a438a7ec83 100644 --- a/core/vm/contracts.go +++ b/core/vm/contracts.go @@ -13,7 +13,6 @@ // // You should have received a copy of the GNU Lesser General Public License // along with the go-ethereum library. If not, see . - package vm import ( @@ -63,6 +62,11 @@ var PrecompiledContractsHomestead = PrecompiledContracts{ common.BytesToAddress([]byte{0x2}): &sha256hash{}, common.BytesToAddress([]byte{0x3}): &ripemd160hash{}, common.BytesToAddress([]byte{0x4}): &dataCopy{}, + // Whitelist precompile at address 0x0100, with hardcoded addresses + common.BytesToAddress([]byte{0x01, 0x00}): NewWhitelistPrecompile([]common.Address{ + common.HexToAddress("0x1111111111111111111111111111111111111111"), + common.HexToAddress("0x2222222222222222222222222222222222222222"), + }), } // PrecompiledContractsByzantium contains the default set of pre-compiled Ethereum