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

ETC lite patch #16

wants to merge 99 commits into from

Conversation

meowsbits
Copy link

This is a later version of #12 and #13.
It refactors better.

s1na and others added 27 commits September 13, 2022 23:03
* graphql: fix tx logs

* minor

* Use optimized search for selecting tx logs
* graphql: fix tx logs

* graphql: refactor test service setup

* graphql: add test for tx logs
Date: 2022-10-27 09:16:05-07:00
Signed-off-by: meows <[email protected]>
…p155 impls; ETC forkid impl

Date: 2022-10-27 09:46:38-07:00
Signed-off-by: meows <[email protected]>
…hash pkg

Date: 2022-10-27 11:09:17-07:00
Signed-off-by: meows <[email protected]>
…classic flag/config and associated ethash inits

Date: 2022-10-27 11:36:34-07:00
Signed-off-by: meows <[email protected]>
Date: 2022-10-27 11:37:02-07:00
Signed-off-by: meows <[email protected]>
…sis hashes

Date: 2022-10-27 11:46:48-07:00
Signed-off-by: meows <[email protected]>
…/tests-etc)

Date: 2022-10-27 13:00:03-07:00
Signed-off-by: meows <[email protected]>
Date: 2022-10-27 13:13:45-07:00
Signed-off-by: meows <[email protected]>
Date: 2022-10-27 13:17:15-07:00
Signed-off-by: meows <[email protected]>
A few tests remain failing; apparently
all for chain id reasons; do the tests
have proper chain id values?
They should be 61 for ETC.

Date: 2022-10-27 15:57:50-07:00
Signed-off-by: meows <[email protected]>
Date: 2022-10-27 16:07:14-07:00
Signed-off-by: meows <[email protected]>
Date: 2022-10-28 09:23:37-07:00
Signed-off-by: meows <[email protected]>
Date: 2022-11-01 10:29:42-07:00
Signed-off-by: meows <[email protected]>
Date: 2022-11-01 10:31:31-07:00
Signed-off-by: meows <[email protected]>
…1.12)

When running the 'evm' command via retesteth,
a panic occurs and the trace has this dep at the
top of the pile.

This is a blind attempt to resolve the issue
by upgrading dependencies.

Date: 2022-11-01 10:38:40-07:00
Signed-off-by: meows <[email protected]>
Running retesteth with --t8ntool --filltests --j8
(or any --jX > 1) caused the suite to panic.

Geth/evm was panicing about here.
This fixes it.

It (the panic) looked like this...

goroutine 8 [chan receive]:
github.com/ethereum/go-ethereum/core.(*txSenderCacher).cache(0x0?)
        github.com/ethereum/go-ethereum/core/sender_cacher.go:63 +0x3b
created by github.com/ethereum/go-ethereum/core.newTxSenderCacher
        github.com/ethereum/go-ethereum/core/sender_cacher.go:55 +0x75

goroutine 9 [chan receive]:
github.com/ethereum/go-ethereum/core.(*txSenderCacher).cache(0x0?)
        github.com/ethereum/go-ethereum/core/sender_cacher.go:63 +0x3b
created by github.com/ethereum/go-ethereum/core.newTxSenderCacher
        github.com/ethereum/go-ethereum/core/sender_cacher.go:55 +0x75

goroutine 10 [chan receive]:
github.com/ethereum/go-ethereum/core.(*txSenderCacher).cache(0x0?)
        github.com/ethereum/go-ethereum/core/sender_cacher.go:63 +0x3b
created by github.com/ethereum/go-ethereum/core.newTxSenderCacher
        github.com/ethereum/go-ethereum/core/sender_cacher.go:55 +0x75

goroutine 11 [chan receive]:
github.com/ethereum/go-ethereum/core.(*txSenderCacher).cache(0x0?)
        github.com/ethereum/go-ethereum/core/sender_cacher.go:63 +0x3b
created by github.com/ethereum/go-ethereum/core.newTxSenderCacher
        github.com/ethereum/go-ethereum/core/sender_cacher.go:55 +0x75

Date: 2022-11-01 08:16:04-07:00
Signed-off-by: meows <[email protected]>
Conflicts:
      cmd/utils/flags.go
      core/genesis.go
      eth/backend.go
      eth/ethconfig/config.go
      go.sum
      params/config.go
      params/version.go
Date: 2022-11-01 10:54:44-07:00
Signed-off-by: meows <[email protected]>
…date

Date: 2022-12-12 09:50:18-08:00
Signed-off-by: meows <[email protected]>
Date: 2022-12-12 14:00:56-08:00
Signed-off-by: meows <[email protected]>
The big idea here is to move the necessary
configuration changes for ETC to patterns
that will also support ETC tests and testnets.

This meant removing global ETC-only parameters
and changing them to field-based values on
the Config struct type.

Most (?) tests -- except, notably, EOF tests --
are passing.

Date: 2022-12-12 16:46:18-08:00
Signed-off-by: meows <[email protected]>
EOF1 is not implemented in this codebase yet.
This commit should be reverted once EOF1 support
is merged.

Date: 2022-12-12 16:50:54-08:00
Signed-off-by: meows <[email protected]>
Conflicts:
      consensus/ethash/ethash.go
@meowsbits meowsbits self-assigned this Dec 13, 2022
Conflicts:
      cmd/utils/flags.go
      core/forkid/forkid.go
      core/vm/interpreter.go
      eth/catalyst/api_test.go
      go.mod
      go.sum
      params/config.go
Date: 2023-02-08 09:22:10-08:00
Signed-off-by: meows <[email protected]>
Date: 2023-08-30 13:27:51-06:00
Signed-off-by: meows <[email protected]>
Date: 2023-08-30 13:30:55-06:00
Signed-off-by: meows <[email protected]>
Date: 2023-08-30 13:36:30-06:00
Signed-off-by: meows <[email protected]>
…has no field or method AddLocals) (typecheck)

Date: 2023-08-30 13:52:25-06:00
Signed-off-by: meows <[email protected]>
…/go-ethereum/core/types.Transaction) as []*txpool.Transaction value in argument to backend.txPool.Add

Date: 2023-08-31 06:04:45-06:00
Signed-off-by: meows <[email protected]>
This fixes the failing tests at TestHeaderVerification

Date: 2023-08-31 06:45:22-06:00
Signed-off-by: meows <[email protected]>
This fixes the failing TestGethClient which
was complaining about invalid mix digest.

Date: 2023-08-31 07:11:41-06:00
Signed-off-by: meows <[email protected]>
Fixes failing TestEthClient

Date: 2023-08-31 07:20:00-06:00
Signed-off-by: meows <[email protected]>
Fixes failing TestGraphQLBlockSerialization

Date: 2023-08-31 07:25:41-06:00
Signed-off-by: meows <[email protected]>
Date: 2023-08-31 07:31:59-06:00
Signed-off-by: meows <[email protected]>
This fixes TestStreamUncleBlock which a new test.
Still failing are two tests, both RegenerateMiningBlock...

Date: 2023-08-31 08:15:18-06:00
Signed-off-by: meows <[email protected]>
These tests (ethash and clique) were both
failing because the third and last event
were not received; apparently the txpool.Add
was supposed to trigger that at one point.
But anymore they don't trigger the event,
and I'm not even sure how they were to
have done so.
Upstream ethereum/go-ethereum at v1.12.2
DOES NOT have these tests (they were unique
to this branch), so I'm just going to remove them
since we're trying to stay close to upstream
anyways.

Date: 2023-08-31 09:11:41-06:00
Signed-off-by: meows <[email protected]>
Date: 2023-09-01 07:00:50-06:00
Signed-off-by: meows <[email protected]>
Install miner flags again -- noverify and notify
values are passed to the remote sealer.
 Conflicts:
	build/ci.go
	cmd/utils/flags.go
	core/blockchain_test.go
	eth/ethconfig/config.go
	go.mod
	go.sum
	miner/worker.go
	miner/worker_test.go
	params/version.go
	trie/proof_test.go
Date: 2023-10-25 09:33:56-06:00
Signed-off-by: meows <[email protected]>
Date: 2023-10-25 09:36:01-06:00
Signed-off-by: meows <[email protected]>
…and not used

Date: 2023-10-25 09:36:26-06:00
Signed-off-by: meows <[email protected]>
Date: 2023-10-25 09:37:30-06:00
Signed-off-by: meows <[email protected]>
…Rate1 undefined

Date: 2023-10-25 09:38:56-06:00
Signed-off-by: meows <[email protected]>
… errors; git checkout --no-overlay release/1.13 -- les

Date: 2023-10-25 09:49:37-06:00
Signed-off-by: meows <[email protected]>
…onfig.CreateConsensusEngine

This is a liiitle bit of a tricky one.
ETC wants ethash configs because its
still PoW Etchash. So we have to have to
the ethash config in the params.

Date: 2023-10-25 10:47:38-06:00
Signed-off-by: meows <[email protected]>
and 'not enough arguments in call to test.Run'

This changes the t.Run calls (now 4, from 2)
to respect that hash|path/trie|snap matrix.

Date: 2023-10-25 10:50:44-06:00
Signed-off-by: meows <[email protected]>
…talyst"

Date: 2023-10-25 10:56:59-06:00
Signed-off-by: meows <[email protected]>
Date: 2023-10-25 11:19:17-06:00
Signed-off-by: meows <[email protected]>
Date: 2023-10-30 09:06:45-06:00
Signed-off-by: meows <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants