Files
const/blackhole.go
zeekayandHanzo Dev 14eb485bbe BlackholeAddr is a plain array, so constants does not import geth
blackhole.go imported github.com/luxfi/geth/common only to type one burn
address, which pulled geth — and through it crypto — into constants, a leaf
module the rest of the estate imports freely. It is a [20]byte now. A caller
that needs a geth address writes common.Address(constants.BlackholeAddr); the
conversion is free and the geth dependency is the caller's, where it belongs.

This changes the type at 36 call sites across coreth, evm and evmgpu, each of
which already imports geth/common and takes the conversion locally.

Co-authored-by: Hanzo Dev <[email protected]>
2026-09-06 00:26:52 -07:00

17 lines
656 B
Go

// Copyright (C) 2019-2025, Lux Industries, Inc. All rights reserved.
// See the file LICENSE for licensing terms.
package constants
// BlackholeAddr is the address where assets are burned: 20 bytes whose only
// nonzero byte is the first.
//
// It is a plain array rather than a geth common.Address so that constants — a
// leaf every module can import — does not pull in geth, and through it crypto.
// A caller that needs a common.Address writes common.Address(BlackholeAddr);
// the conversion is free and the dependency is theirs, not this package's.
var BlackholeAddr = [20]byte{
1, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
}