Skip to content
This repository has been archived by the owner on Aug 13, 2019. It is now read-only.

changed import paths from ethereumproject to eth-classic #4

Merged
merged 5 commits into from
Apr 2, 2019

Conversation

noot
Copy link
Contributor

@noot noot commented Apr 1, 2019

changed import paths. can test with

cd $GOPATH/github.com/eth-classic
git clone git@github.com:eth-classic/ethash
git clone git@github.com:eth-classic/benchmark
git clone git@github.com:eth-classic/go-ethereum
cd go-ethereum
go get ./...
go test ./...

maybe eventually we can fork ethash and benchmark to this repo so everything will be eth-classic.

fixes #3

Copy link
Contributor

@soc1c soc1c left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❯ go test ./...
cmd/geth/main.go:30:2: cannot find package "github.com/eth-classic/benchmark/rtprof" in any of:
	/usr/lib/go/src/github.com/eth-classic/benchmark/rtprof (from $GOROOT)
	/home/user/go/src/github.com/eth-classic/benchmark/rtprof (from $GOPATH)
console/console.go:30:2: use of internal package github.com/eth-classic/go-ethereum/internal/jsre not allowed
console/console.go:31:2: use of internal package github.com/eth-classic/go-ethereum/internal/web3ext not allowed

@noot
Copy link
Contributor Author

noot commented Apr 1, 2019

@soc1c I have changed the import path in cmd/geth/main.go. however the other errors persist for some reason, but when I had cloned benchmark into github.com/eth-classic/benchmark those errors were not there. perhaps we can fork benchmark into this org?

@soc1c
Copy link
Contributor

soc1c commented Apr 1, 2019

What now?

~/.opt/getc elizabeth/import-paths
❯ go test ./...                                        
console/console.go:30:2: use of internal package github.com/eth-classic/go-ethereum/internal/jsre not allowed
console/console.go:31:2: use of internal package github.com/eth-classic/go-ethereum/internal/web3ext not allowed

@noot
Copy link
Contributor Author

noot commented Apr 1, 2019

@soc1c I have forked the two repos we need into this org and updated the import paths, please pull again then you can run

cd $GOPATH/github.com/eth-classic
git clone git@github.com:eth-classic/ethash
git clone git@github.com:eth-classic/benchmark

and then try running the tests in go-ethereum again

@soc1c
Copy link
Contributor

soc1c commented Apr 1, 2019

Same.

~/go/src/github.com/eth-classic
❯ git clone git@github.com:eth-classic/ethash
Cloning into 'ethash'...
Enter passphrase for key '/home/user/.ssh/id_ed25519': 
remote: Enumerating objects: 2730, done.
remote: Counting objects: 100% (2730/2730), done.
remote: Compressing objects: 100% (1013/1013), done.
remote: Total 2730 (delta 1664), reused 2730 (delta 1664), pack-reused 0
Receiving objects: 100% (2730/2730), 1.14 MiB | 1.45 MiB/s, done.
Resolving deltas: 100% (1664/1664), done.

~/go/src/github.com/eth-classic 9s
❯ git clone git@github.com:eth-classic/benchmark
Cloning into 'benchmark'...
Enter passphrase for key '/home/user/.ssh/id_ed25519': 
remote: Enumerating objects: 333, done.
remote: Counting objects: 100% (333/333), done.
remote: Compressing objects: 100% (197/197), done.
remote: Total 333 (delta 94), reused 333 (delta 94), pack-reused 0
Receiving objects: 100% (333/333), 1.12 MiB | 1.22 MiB/s, done.
Resolving deltas: 100% (94/94), done.

~/go/src/github.com/eth-classic 12s
❯ j getc

~/.opt/getc elizabeth/import-paths
❯ git pull
Enter passphrase for key '/home/user/.ssh/id_ed25519': 
remote: Enumerating objects: 45, done.
remote: Counting objects: 100% (45/45), done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 23 (delta 20), reused 23 (delta 20), pack-reused 0
Unpacking objects: 100% (23/23), done.
From github.com:eth-classic/go-ethereum
   6ef139e..af88c1d  elizabeth/import-paths -> origin/elizabeth/import-paths
Updating 6ef139e..af88c1d
Fast-forward
 cmd/geth/cmd.go                                    | 2 +-
 cmd/geth/flag.go                                   | 2 +-
 cmd/geth/main.go                                   | 2 +-
 core/block_validator_test.go                       | 2 +-
 core/blockchain_test.go                            | 2 +-
 eth/api.go                                         | 2 +-
 eth/backend.go                                     | 2 +-
 miner/remote_agent.go                              | 2 +-
 tests/block_test_util.go                           | 2 +-
 vendor/github.com/ethereumproject/ethash/README.md | 2 +-
 vendor/github.com/ethereumproject/ethash/setup.py  | 4 ++--
 11 files changed, 12 insertions(+), 12 deletions(-)

~/.opt/getc elizabeth/import-paths
❯ go test ./...
console/console.go:30:2: use of internal package github.com/eth-classic/go-ethereum/internal/jsre not allowed
console/console.go:31:2: use of internal package github.com/eth-classic/go-ethereum/internal/web3ext not allowed

"github.com/ethereumproject/go-ethereum/internal/web3ext"
"github.com/ethereumproject/go-ethereum/rpc"
"github.com/eth-classic/go-ethereum/internal/jsre"
"github.com/eth-classic/go-ethereum/internal/web3ext"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these 2 lines are failing 👆

Copy link
Contributor Author

@noot noot Apr 2, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, I'm not sure why they would fail if the project is in the directory $GOPATH/src/github.com/eth-classic/go-ethereum and the tests are being run in that directory, since internal packages should be able to be accessed from there.. any ideas @Aabell8 @dutterbutter

@noot noot merged commit 0ccb118 into development Apr 2, 2019
@noot noot deleted the elizabeth/import-paths branch April 2, 2019 20:46
noot pushed a commit that referenced this pull request Jun 6, 2019
* Removed research and moved to wiki (#2)

* changed import paths from ethereumproject to eth-classic (#4)

* changed import paths from ethereumproject to eth-classic

* add bn256 package; begin adding bn256add

* fix syntax errors; tests package passes

* fix import path

* change all import paths to eth-classic after forking needed repos

* go: initialized modules (#10)

* init gomodules

* remove vendor

* update modules

* Fixed dependency references to allow build to run without sputnikvm (#14)

* Testing framework (#12)

* Removed coverage file accidentally commited

* Set up testing framework for eth tests

* go: initialized modules (#10)

* init gomodules

* remove vendor

* update modules

* Updated struct formatting for unmarshalling

* Updated format of eth test struct and updated test files (were replaced with generated files)

* Using ethereum tests submodule and updated framework for testing

* Updated hashing of logs comparison and logging of tests

* Removed error checking on state execution because expected error in some tests

* Updated testing structure into subtests for better reporting and so that all test cases are tested even when one fails

* Changed subtest name from full filepath to just the json file

* Restructured and added light documentation

* Added homestead specific state test

* Updated framework to be able to delete empty objects in trie for tests>EIP158

* Changed conditional for when state objects are deleted and removed logging statement

* Changed folder back to intended from testing

* Changed conditional to not skip EIP158 fork tests

* Added functionality to skip tests

* Removed commented out code

* Create CODEOWNERS (#17)

* Config and refactor (#21)

* Refactor and add config for Atlantis chain config

* Typo fix

* Refactor jump table setup

* Changed fork config skipping functionality and removed unused configuration mappings

* Fixed null pointer error with test configs

* Added definitions of other blocks for correctly mapping gas table

* Implemented IsAtlantis interface for vm runtime

* Added fix for testing some fork subtests EIP150 and Frontier (#27)

* ci: create basic circle-ci config (#26)

* ci: create basic circle-ci config

* ci: lower parallelism

* ci: rename jobs

* ci: rename jobs

* EIP161, State Trie Clearing (#28)

* implemented EIP 161 logic

* implemented EIP 161 logic

* fixed bug

* no more segfaults

* Byzantium Tests Passing. Certain Homestead Failing

* Fixed implementation to pass (almost) all tests

* Updated testing framework to run all ETH directories

* Reimpl EIP161 SUICIDE and CALL edge cases

* Skip unimplemented functionality tests

* proper indentation

* Elizabeth/fix bindings test (#30)

* add go mods to bind package

* attempt to fix mods

* revert some dependencies

* fixed trimToImportPath for outside of go path (#33)

* fixed trimToImportPath for outside of go path

* is this how working_directory works?

* is this how working_directory works?

* is this how working_directory works?

* is THIS how working_directory works?

* is THIS how working_directory works?

* working_directory

* working_directory

* EIP 140 REVERT (#34)

* Implemented EIP 140 op code framework to be tested

* Added required parameters and moved protocol parameters into their own file

* Removed coverage file accidentally commited

* Set up testing framework for eth tests

* Updated struct formatting for unmarshalling

* Updated format of eth test struct and updated test files (were replaced with generated files)

* Using ethereum tests submodule and updated framework for testing

* Updated testing structure into subtests for better reporting and so that all test cases are tested even when one fails

* Fix merge error

* Removed indirect reference to ethereum/go-ethereum during rebase

* Implemented EIP 140 op code framework to be tested

* Added required parameters and moved protocol parameters into their own file

* Removed coverage file accidentally commited

* Set up testing framework for eth tests

* Updated struct formatting for unmarshalling

* Updated format of eth test struct and updated test files (were replaced with generated files)

* Using ethereum tests submodule and updated framework for testing

* Updated testing structure into subtests for better reporting and so that all test cases are tested even when one fails

* Fix merge error

* Removed indirect reference to ethereum/go-ethereum during rebase

* WIP fixed some implementations of REVERT

* Fixed more implementation details

* Skipped unrelated and unimplemented tests

* Implemented EIP 140 op code framework to be tested

* Added required parameters and moved protocol parameters into their own file

* Removed coverage file accidentally commited

* Set up testing framework for eth tests

* Updated struct formatting for unmarshalling

* Updated format of eth test struct and updated test files (were replaced with generated files)

* Using ethereum tests submodule and updated framework for testing

* Updated testing structure into subtests for better reporting and so that all test cases are tested even when one fails

* Fix merge error

* Removed indirect reference to ethereum/go-ethereum during rebase

* Implemented EIP 140 op code framework to be tested

* Added required parameters and moved protocol parameters into their own file

* Removed coverage file accidentally commited

* Set up testing framework for eth tests

* Updated struct formatting for unmarshalling

* Updated format of eth test struct and updated test files (were replaced with generated files)

* Using ethereum tests submodule and updated framework for testing

* Updated testing structure into subtests for better reporting and so that all test cases are tested even when one fails

* Fix merge error

* Removed indirect reference to ethereum/go-ethereum during rebase

* WIP fixed some implementations of REVERT

* Fixed more implementation details

* Skipped unrelated and unimplemented tests

* Revert modules changes from development

* Removed last gas cost variable used previously to save recalculation

* EIP 170, contract size limit (#23)

* added contract size limit

* added maxCodeSizeExceeded error

* fixed some tests failing due to not checking for creation of contract in the OR

* added IsAtlantis condition for max code size to apply. We now fail tests

* removed TestETHCodeSizeLimit

* EIP 100 Difficulty adjustment and testing (#36)

* Set up testing framework for difficulty

* Set up framework for testing difficulty

* Implemented EIP 100 and set up testing config

* Set up testing framework for difficulty

* Set up framework for testing difficulty

* Implemented EIP 100 and set up testing config

* Cleaned up and moved params to file

* Fixed usages of CalcDifficulty

* Moved parsing of hex or decimal strings functions to common package

* EIP 211 and refactor (#37)

* set up framework for returndata and refactor

* Refactored pc operation

* Refactored nil function jumptable lookups (why was it like that to begin with)

* Finished refactoring jump operations

* Implemented 211 functionality, but state tests not passing

* Fixed returndatasize

* Refactor memory and gas stack accesses

* Fixed a few small details for the implementation

* Fixed incorrect implementation of returndatacopy and revert edge case

* Removed unused instruction parameter since refactor

* Removed commented out printing from debugging

* EIP 196, 197, 198 (#24)

* implement bn256 precompiles

* implement bigModExp

* add comments and test

* run precompile tests

* skip failing tests for now

* add distinction between atlantis and pre-atlantis precompiles

* refactor precompiles to separate pre and post atlantis

* implement bn256 precompiles

* implement bigModExp

* add comments and test

* run precompile tests

* skip failing tests for now

* add distinction between atlantis and pre-atlantis precompiles

* refactor precompiles to separate pre and post atlantis

* fix ecrecover edge case

* implement bn256 precompiles

* implement bigModExp

* add comments and test

* run precompile tests

* skip failing tests for now

* add distinction between atlantis and pre-atlantis precompiles

* refactor precompiles to separate pre and post atlantis

* implement bn256 precompiles

* implement bigModExp

* add comments and test

* run precompile tests

* fix ecrecover edge case

* update go.mod

* remove skip for previously failing tests

* attempt to fix go.mod

* attempt to fix go.mod

* fix go.mod termiu version

* EIP 214 STATICCALL (#40)

* Cherry pick STATICALL commit

* Removed implemented skipped tests

* Removed implemented tests
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update filepath
2 participants