mirror of
https://github.com/luxfi/geth.git
synced 2026-10-30 15:05:39 +00:00
Merged upstream changes from go-ethereum master branch (commit fb3c8f462)
while preserving luxfi branding and package structure.
Key changes:
- Updated to go-ethereum v1.16.6 (patch version bump from v1.16.5)
- Preserved luxfi module name (github.com/luxfi/geth)
- Preserved luxfi branding in LICENSE (Lux Industries Inc.)
- Maintained LuxMainnetChainConfig and LuxTestnetChainConfig
- All import paths use github.com/luxfi/geth (not ethereum)
- Added Lux genesis hashes for network identification
- Integrated new upstream features:
* Enhanced blob pool with conversion support
* New keccak256 preimage tracer
* Transaction pool validation improvements
* State sizing utilities
* Filter system enhancements
* Various performance and stability improvements
Build verified: geth v1.16.6-unstable compiled successfully
Co-authored-by: Ethereum Foundation <https://github.com/ethereum/go-ethereum>
67 lines
1.6 KiB
Go
67 lines
1.6 KiB
Go
// Copyright 2025 The go-ethereum Authors
|
|
// This file is part of go-ethereum.
|
|
//
|
|
// go-ethereum is free software: you can redistribute it and/or modify
|
|
// it under the terms of the GNU General Public License as published by
|
|
// the Free Software Foundation, either version 3 of the License, or
|
|
// (at your option) any later version.
|
|
//
|
|
// go-ethereum is distributed in the hope that it will be useful,
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
// GNU General Public License for more details.
|
|
//
|
|
// You should have received a copy of the GNU General Public License
|
|
// along with go-ethereum. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"os"
|
|
|
|
"github.com/luxfi/geth/internal/debug"
|
|
"github.com/luxfi/geth/internal/flags"
|
|
"github.com/urfave/cli/v2"
|
|
)
|
|
|
|
var app = flags.NewApp("go-ethereum workload test tool")
|
|
|
|
func init() {
|
|
app.Flags = append(app.Flags, debug.Flags...)
|
|
app.Before = func(ctx *cli.Context) error {
|
|
flags.MigrateGlobalFlags(ctx)
|
|
return debug.Setup(ctx)
|
|
}
|
|
app.After = func(ctx *cli.Context) error {
|
|
debug.Exit()
|
|
return nil
|
|
}
|
|
app.CommandNotFound = func(ctx *cli.Context, cmd string) {
|
|
fmt.Fprintf(os.Stderr, "No such command: %s\n", cmd)
|
|
os.Exit(1)
|
|
}
|
|
|
|
// Add subcommands.
|
|
app.Commands = []*cli.Command{
|
|
runTestCommand,
|
|
historyGenerateCommand,
|
|
filterGenerateCommand,
|
|
traceGenerateCommand,
|
|
filterPerfCommand,
|
|
filterFuzzCommand,
|
|
}
|
|
}
|
|
|
|
func main() {
|
|
exit(app.Run(os.Args))
|
|
}
|
|
|
|
func exit(err any) {
|
|
if err == nil {
|
|
os.Exit(0)
|
|
}
|
|
fmt.Fprintln(os.Stderr, err)
|
|
os.Exit(1)
|
|
}
|