Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ETC lite patch #16

Draft
wants to merge 99 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
99 commits
Select commit Hold shift + click to select a range
d0dc349
graphql: return correct logs for tx (#25612)
s1na Aug 31, 2022
3b41be6
graphql: fixes missing tx logs (#25745)
s1na Sep 13, 2022
972007a
Release Geth v1.10.24
karalabe Sep 14, 2022
593b4e6
params: init basic ETC config vals
meowsbits Oct 27, 2022
697ee77
core/forkid,core,core/types,core/vm,miner,params: mystique/london, ei…
meowsbits Oct 27, 2022
93495c0
common,consensus/ethash,internal/ethapi: install etcash support at et…
meowsbits Oct 27, 2022
c9f8495
cmd/geth,cmd/utils,core,eth/catalyst,eth/ethconfig,params: install --…
meowsbits Oct 27, 2022
7416843
cmd/utils: [squashme] install --classic flag decl
meowsbits Oct 27, 2022
10a70c8
eth,les: skip checkpoint assignment in case of colliding ETC/ETH gene…
meowsbits Oct 27, 2022
f732600
.gitmodules,tests: add tests/testdata-etc submodule (from etclabscore…
meowsbits Oct 27, 2022
0e8201e
tests: init state tests, failing
meowsbits Oct 27, 2022
a3c71c5
params: move eip155,160 and mystique blocks to chainconfig struct
meowsbits Oct 27, 2022
fb16d9d
params,tests: [squashme] finish ETC_ fork fields impl in test configs
meowsbits Oct 27, 2022
7211c73
params,tests: fix fork/test configurations, fixes (most) tests
meowsbits Oct 27, 2022
5ffbebd
params: comments!
meowsbits Oct 27, 2022
dada559
tests: bump testdata-etc submodule to latest core-geth generated
meowsbits Oct 28, 2022
03fc698
tests: rename file for sensible alphabetic sorting
meowsbits Nov 1, 2022
09b3feb
tests: skip loading the config files, they are not tests
meowsbits Nov 1, 2022
d95b8af
go.mod,go.sum: bump github.com/VictoriaMetrics/fastcache to latest (v…
meowsbits Nov 1, 2022
100bf8e
core: panic: panic at sender_cacher.go
meowsbits Nov 1, 2022
898e7fd
Merge branch 'foundation-master' into etc-treads-lightly-retests
meowsbits Nov 1, 2022
6c9aea5
eth/ethconfig: whitespace
meowsbits Nov 1, 2022
01e6e0c
.gitmodules,tests: getting etclabscore/tests@etcversion_filled up-to-…
meowsbits Dec 12, 2022
6353e5f
tests: assign context.Difficulty from test env
meowsbits Dec 12, 2022
64dc8a4
many: major refactoring of ETC config implementation
meowsbits Dec 13, 2022
a996efa
tests: [temporary] skip EOF1 xclient tests
meowsbits Dec 13, 2022
9c3bdba
Merge branch 'master' into etc-lite-patch
meowsbits Dec 13, 2022
02a8903
Merge branch 'master' into etc-lite-patch
meowsbits Feb 8, 2023
b734f4b
params: (lint) undefined: isForked
meowsbits Feb 8, 2023
03f69b6
go.mod,go.sum: go mod tidy
meowsbits Feb 8, 2023
cde6f94
tests: (FIXME) hotpatch to workaround Merge/Merged name conflict
meowsbits Feb 8, 2023
509b816
.golangci.yml: exclude deprecation errors on rand.Read,rand.Seed (Go …
meowsbits Feb 8, 2023
17b4076
consensus/ethash: (lint) File is not `goimports`-ed (goimports)
meowsbits Feb 8, 2023
5a7eaa3
Merge branch 'release/1.11' into etc-lite-patch
meowsbits Feb 22, 2023
0da56c8
go.mod,go.sum: go mod tidy
meowsbits Feb 22, 2023
a0491a0
deps: update supranational/blst to 0.3.11 (#27890)
dependabot[bot] Aug 10, 2023
55863ce
core/txpool/blobpool: fix metrics name for prometheus export (#27901)
imulmat4 Aug 11, 2023
770db14
ethdb/leveldb: support more than 7 levels in metrics (#27904)
jsvisa Aug 11, 2023
811a674
all: update golang/x/ext and fix slice sorting fallout (#27909)
karalabe Aug 11, 2023
f298ec4
go.mod, build: upgrade c-kzg-4844 (#27907)
fjl Aug 11, 2023
a867039
internal/build: apply -ubuntu to env (#27910)
fjl Aug 12, 2023
bed8460
params: release go-ethereum v1.12.2
fjl Aug 12, 2023
a113e8e
Merge tag 'v1.12.2' into etc-lite-patch
meowsbits Aug 30, 2023
bbd5d2d
consensus/misc: re-add file, etc likes verifying block hashes occassi…
meowsbits Aug 30, 2023
3f9edeb
go.mod,go.sum: go mod tidy
meowsbits Aug 30, 2023
a96e4df
cmd/utils,eth/ethconfig: re-install Ethash config stuff
meowsbits Aug 30, 2023
fe89341
consensus/ethash: whitespace
meowsbits Aug 30, 2023
00365aa
Revert "miner: suspend miner if node is syncing (#27218)"
meowsbits Aug 30, 2023
134e808
Revert "les: remove obsolete code related to PoW header syncing (#277…
meowsbits Aug 30, 2023
9993df3
consensus/beacon,consensus/clique,consensus,consensus/ethash,eth/ethc…
meowsbits Aug 30, 2023
093a029
core/forkid: "sort" imported and not used) (typecheck)
meowsbits Aug 30, 2023
00eb799
consensus/misc: undefined: misc.VerifyForkHashes
meowsbits Aug 30, 2023
9cd69b1
core: not enough arguments in call to bc.engine.VerifyHeader
meowsbits Aug 30, 2023
59873b1
core: not enough arguments in call to hc.engine.VerifyHeaders
meowsbits Aug 30, 2023
652eced
miner: cannot use &txpool.LazyTransaction{…} (value of type *txpool.L…
meowsbits Aug 30, 2023
7fd5efb
internal/ethapi: undefined: ethash
meowsbits Aug 30, 2023
37587a0
eth: re-install ethashConfig defaults
meowsbits Aug 30, 2023
a00d975
eth: remove checkpoint config; go-ethereum no longer has checkpoints
meowsbits Aug 30, 2023
257eb88
eth: not enough arguments in call to h.chain.Engine().VerifyHeader
meowsbits Aug 30, 2023
5ee1965
les: not enough arguments in call to ethconfig.CreateConsensusEngine
meowsbits Aug 30, 2023
db91aa2
les: config.Checkpoint undefined
meowsbits Aug 30, 2023
d75c046
les: not enough arguments in call to engine.VerifyHeader
meowsbits Aug 30, 2023
0c94902
cmd/geth: s/SetGasPrice/SetGasTip/
meowsbits Aug 30, 2023
246c838
eth: threaded mining
meowsbits Aug 30, 2023
5aab0f9
eth: not enough arguments in call to api.e.StartMining
meowsbits Aug 30, 2023
0e89406
miner/stress/clique: not enough arguments in call to node.StartMining
meowsbits Aug 30, 2023
a881c69
les/catalyst: not enough arguments in call to engine.ExecutableDataTo…
meowsbits Aug 30, 2023
077e8a1
cmd/utils,miner: cfg.Notify undefined
meowsbits Aug 30, 2023
4f3806f
cmd/utils: not enough arguments in call to ethconfig.CreateConsensusE…
meowsbits Aug 30, 2023
1169bd1
cmd/geth: undefined: utils.MinerNoVerifyFlag
meowsbits Aug 30, 2023
f18951e
core: not enough arguments in call to engine.VerifyHeaders
meowsbits Aug 30, 2023
8f15666
core: not enough arguments in call to blockchain.engine.VerifyHeader
meowsbits Aug 30, 2023
315463c
light: not enough arguments in call to lightchain.engine.VerifyHeader
meowsbits Aug 30, 2023
853a6f3
params: File is not goimports-ed (goimports)
meowsbits Aug 30, 2023
00765ee
core/txpool,miner: b.txPool.AddLocals undefined (type *txpool.TxPool …
meowsbits Aug 30, 2023
3f44042
core/txpool,core/types: git checkout v1.12.2 -- core/txpool core/types
meowsbits Aug 31, 2023
4b88a44
miner: cannot use pendingTxs (variable of type []*github.com/ethereum…
meowsbits Aug 31, 2023
38f0af1
consensus/ethash: re-implement seal verification in verifyHeader
meowsbits Aug 31, 2023
552fc77
ethclient/gethclient: re-install Ethash config = ModeFake for test
meowsbits Aug 31, 2023
2f2c616
ethclient: re-install ethash config pow mode = Fake
meowsbits Aug 31, 2023
016247a
graphql: re-install ethash pow mode = fake
meowsbits Aug 31, 2023
7a7be77
les/catalyst: re-install ethash fake mode for tests
meowsbits Aug 31, 2023
23ef9d6
miner: re-add chain side event handling
meowsbits Aug 31, 2023
5c7cea5
miner: delete failing Regenerate tests
meowsbits Aug 31, 2023
a080218
cmd/geth: remove spurious duplicate lines
meowsbits Sep 1, 2023
2ddfa04
cmd/geth,cmd/utils,miner: re-install miner flag configs
meowsbits Sep 1, 2023
fe4472f
Merge branch 'release/1.13' into etc-lite-patch
meowsbits Oct 25, 2023
f8e7ae4
eth/ethconfig: undefined: errors
meowsbits Oct 25, 2023
8893823
internal/flags: undefined: flags.EthashCategory
meowsbits Oct 25, 2023
a1a9559
cmd/utils: "github.com/ethereum/go-ethereum/common/hexutil" imported …
meowsbits Oct 25, 2023
1e3bbb7
go.mod,go.sum: undefined: mmap
meowsbits Oct 25, 2023
01ce151
consensus/ethash: undefined: metrics.NewMeterForced, ethash.hashrate.…
meowsbits Oct 25, 2023
827f211
les,les/catalyst,les,les/downloader,les,les/fetcher,les: tons of les/…
meowsbits Oct 25, 2023
4b7f788
cmd/utils,eth,eth/ethconfig,les: not enough arguments in call to ethc…
meowsbits Oct 25, 2023
bce4fae
tests: assignment mismatch: 3 variables but test.Run returns 1 value
meowsbits Oct 25, 2023
4ffac43
cmd/utils: no export data for "github.com/ethereum/go-ethereum/les/ca…
meowsbits Oct 25, 2023
bf516d2
eth/ethconfig: guard chain id nil; classic cases
meowsbits Oct 25, 2023
f7a0dda
Merge branch 'master' into etc-lite-patch
meowsbits Oct 30, 2023
292ddf5
go.mod: go mod tidy
meowsbits Oct 30, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
[submodule "tests"]
[submodule "testdata"]
path = tests/testdata
url = https://github.com/ethereum/tests
shallow = true
[submodule "evm-benchmarks"]
path = tests/evm-benchmarks
url = https://github.com/ipsilon/evm-benchmarks
shallow = true
[submodule "testdata-etc"]
path = tests/testdata-etc
url = https://github.com/etclabscore/tests-etc.git
shallow = true
[submodule "tests-etc"]
path = tests/testdata-etcversion
url = https://github.com/etclabscore/tests.git
branch = etcversion_filled
shallow = true
4 changes: 4 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,7 @@ issues:
- 'SA1019: strings.Title is deprecated'
- 'SA1019: strings.Title has been deprecated since Go 1.18 and an alternative has been available since Go 1.0: The rule Title uses for word boundaries does not handle Unicode punctuation properly. Use golang.org/x/text/cases instead.'
- 'SA1029: should not use built-in type string as key for value'
- 'SA1019: rand.Read has been deprecated since Go 1.20'
- 'SA1019: rand.Seed has been deprecated since Go 1.20'
- 'SA1019: mrand.Read has been deprecated since Go 1.20'
- 'SA1019: mrand.Seed has been deprecated since Go 1.20'
24 changes: 23 additions & 1 deletion cmd/geth/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,14 @@ var (
utils.OverrideCancun,
utils.OverrideVerkle,
utils.EnablePersonal,
utils.EthashCacheDirFlag,
utils.EthashCachesInMemoryFlag,
utils.EthashCachesOnDiskFlag,
utils.EthashCachesLockMmapFlag,
utils.EthashDatasetDirFlag,
utils.EthashDatasetsInMemoryFlag,
utils.EthashDatasetsOnDiskFlag,
utils.EthashDatasetsLockMmapFlag,
utils.TxPoolLocalsFlag,
utils.TxPoolNoLocalsFlag,
utils.TxPoolJournalFlag,
Expand Down Expand Up @@ -96,6 +104,9 @@ var (
utils.LightMaxPeersFlag,
utils.LightNoPruneFlag,
utils.LightKDFFlag,
utils.UltraLightServersFlag,
utils.UltraLightFractionFlag,
utils.UltraLightOnlyAnnounceFlag,
utils.LightNoSyncServeFlag,
utils.EthRequiredBlocksFlag,
utils.LegacyWhitelistFlag,
Expand All @@ -117,11 +128,14 @@ var (
utils.MaxPeersFlag,
utils.MaxPendingPeersFlag,
utils.MiningEnabledFlag,
utils.MinerThreadsFlag,
utils.MinerNotifyFlag,
utils.MinerGasLimitFlag,
utils.MinerGasPriceFlag,
utils.MinerEtherbaseFlag,
utils.MinerExtraDataFlag,
utils.MinerRecommitIntervalFlag,
utils.MinerNoVerifyFlag,
utils.MinerNewPayloadTimeout,
utils.NATFlag,
utils.NoDiscoverFlag,
Expand All @@ -138,11 +152,13 @@ var (
utils.VMEnableDebugFlag,
utils.NetworkIdFlag,
utils.EthStatsURLFlag,
utils.FakePoWFlag,
utils.NoCompactionFlag,
utils.GpoBlocksFlag,
utils.GpoPercentileFlag,
utils.GpoMaxGasPriceFlag,
utils.GpoIgnoreGasPriceFlag,
utils.MinerNotifyFullFlag,
configFileFlag,
}, utils.NetworkFlags, utils.DatabaseFlags)

Expand Down Expand Up @@ -276,6 +292,9 @@ func main() {
func prepare(ctx *cli.Context) {
// If we're running a known preset, log it for convenience.
switch {
case ctx.IsSet(utils.ClassicFlag.Name):
log.Info("Starting Geth on Ethereum Classic (ETC) mainnet...")

case ctx.IsSet(utils.GoerliFlag.Name):
log.Info("Starting Geth on Görli testnet...")

Expand Down Expand Up @@ -438,7 +457,10 @@ func startNode(ctx *cli.Context, stack *node.Node, backend ethapi.Backend, isCon
// Set the gas price to the limits from the CLI and start mining
gasprice := flags.GlobalBig(ctx, utils.MinerGasPriceFlag.Name)
ethBackend.TxPool().SetGasTip(gasprice)
if err := ethBackend.StartMining(); err != nil {

// start mining
threads := ctx.Int(utils.MinerThreadsFlag.Name)
if err := ethBackend.StartMining(threads); err != nil {
utils.Fatalf("Failed to start mining: %v", err)
}
}
Expand Down
Loading