From de7ed6af40a9f90e19d2d691d40b07d5f356f81f Mon Sep 17 00:00:00 2001
From: Jules
Date: Fri, 24 Dec 2021 10:59:22 +0100
Subject: [PATCH] Update mod file and all imports to use scroll-tech URL (#15)
* Update mod file and all imports to use scroll-tech URL
Fixes #14
* Update Discord link
---
README.md | 8 +-
SECURITY.md | 14 +-
accounts/abi/abi.go | 4 +-
accounts/abi/abi_test.go | 6 +-
accounts/abi/bind/auth.go | 14 +-
accounts/abi/bind/backend.go | 6 +-
accounts/abi/bind/backends/simulated.go | 38 ++--
accounts/abi/bind/backends/simulated_test.go | 16 +-
accounts/abi/bind/base.go | 12 +-
accounts/abi/bind/base_test.go | 16 +-
accounts/abi/bind/bind.go | 6 +-
accounts/abi/bind/bind_test.go | 204 +++++++++---------
accounts/abi/bind/template.go | 14 +-
accounts/abi/bind/util.go | 6 +-
accounts/abi/bind/util_test.go | 12 +-
accounts/abi/error.go | 4 +-
accounts/abi/event.go | 4 +-
accounts/abi/event_test.go | 4 +-
accounts/abi/method.go | 2 +-
accounts/abi/pack.go | 4 +-
accounts/abi/pack_test.go | 2 +-
accounts/abi/packing_test.go | 2 +-
accounts/abi/topics.go | 4 +-
accounts/abi/topics_test.go | 4 +-
accounts/abi/type.go | 2 +-
accounts/abi/type_test.go | 2 +-
accounts/abi/unpack.go | 2 +-
accounts/abi/unpack_test.go | 2 +-
accounts/accounts.go | 8 +-
accounts/accounts_test.go | 2 +-
accounts/external/backend.go | 18 +-
accounts/keystore/account_cache.go | 6 +-
accounts/keystore/account_cache_test.go | 4 +-
accounts/keystore/file_cache.go | 2 +-
accounts/keystore/key.go | 6 +-
accounts/keystore/keystore.go | 10 +-
accounts/keystore/keystore_test.go | 8 +-
accounts/keystore/passphrase.go | 10 +-
accounts/keystore/passphrase_test.go | 2 +-
accounts/keystore/plain.go | 2 +-
accounts/keystore/plain_test.go | 4 +-
accounts/keystore/presale.go | 4 +-
accounts/keystore/wallet.go | 8 +-
accounts/keystore/watch.go | 2 +-
accounts/manager.go | 4 +-
accounts/scwallet/hub.go | 8 +-
accounts/scwallet/securechannel.go | 2 +-
accounts/scwallet/wallet.go | 12 +-
accounts/usbwallet/hub.go | 6 +-
accounts/usbwallet/ledger.go | 14 +-
accounts/usbwallet/trezor.go | 12 +-
accounts/usbwallet/wallet.go | 12 +-
build/ci.go | 10 +-
build/deb/ethereum/deb.control | 4 +-
build/mvn.pom | 6 +-
build/nsis.install.nsh | 6 +-
build/pod.podspec | 4 +-
build/update-license.go | 2 +-
cmd/abidump/main.go | 4 +-
cmd/abigen/main.go | 14 +-
cmd/bootnode/main.go | 14 +-
cmd/checkpoint-admin/README.md | 6 +-
cmd/checkpoint-admin/common.go | 18 +-
cmd/checkpoint-admin/exec.go | 22 +-
cmd/checkpoint-admin/main.go | 6 +-
cmd/checkpoint-admin/status.go | 4 +-
cmd/clef/main.go | 40 ++--
cmd/clef/tutorial.md | 6 +-
cmd/devp2p/crawl.go | 4 +-
cmd/devp2p/discv4cmd.go | 12 +-
cmd/devp2p/discv5cmd.go | 6 +-
cmd/devp2p/dns_cloudflare.go | 4 +-
cmd/devp2p/dns_route53.go | 4 +-
cmd/devp2p/dnscmd.go | 10 +-
cmd/devp2p/enrcmd.go | 6 +-
cmd/devp2p/internal/ethtest/chain.go | 10 +-
cmd/devp2p/internal/ethtest/chain_test.go | 4 +-
cmd/devp2p/internal/ethtest/helpers.go | 14 +-
cmd/devp2p/internal/ethtest/large.go | 6 +-
cmd/devp2p/internal/ethtest/suite.go | 8 +-
cmd/devp2p/internal/ethtest/suite_test.go | 10 +-
cmd/devp2p/internal/ethtest/transaction.go | 10 +-
cmd/devp2p/internal/ethtest/types.go | 8 +-
cmd/devp2p/internal/v4test/discv4tests.go | 6 +-
cmd/devp2p/internal/v4test/framework.go | 6 +-
cmd/devp2p/internal/v5test/discv5tests.go | 8 +-
cmd/devp2p/internal/v5test/framework.go | 10 +-
cmd/devp2p/keycmd.go | 4 +-
cmd/devp2p/main.go | 6 +-
cmd/devp2p/nodeset.go | 4 +-
cmd/devp2p/nodesetcmd.go | 8 +-
cmd/devp2p/rlpxcmd.go | 12 +-
cmd/devp2p/runtest.go | 6 +-
cmd/ethkey/changepassword.go | 4 +-
cmd/ethkey/generate.go | 6 +-
cmd/ethkey/inspect.go | 6 +-
cmd/ethkey/main.go | 2 +-
cmd/ethkey/message.go | 8 +-
cmd/ethkey/run_test.go | 2 +-
cmd/ethkey/utils.go | 4 +-
cmd/evm/compiler.go | 2 +-
cmd/evm/disasm.go | 2 +-
cmd/evm/internal/compiler/compiler.go | 2 +-
cmd/evm/internal/t8ntool/block.go | 18 +-
cmd/evm/internal/t8ntool/execution.go | 30 +--
cmd/evm/internal/t8ntool/flags.go | 4 +-
cmd/evm/internal/t8ntool/gen_header.go | 8 +-
cmd/evm/internal/t8ntool/gen_stenv.go | 4 +-
cmd/evm/internal/t8ntool/transaction.go | 16 +-
cmd/evm/internal/t8ntool/transition.go | 22 +-
cmd/evm/main.go | 6 +-
cmd/evm/runner.go | 20 +-
cmd/evm/staterunner.go | 8 +-
cmd/evm/t8n_test.go | 4 +-
cmd/faucet/faucet.go | 36 ++--
cmd/faucet/faucet_test.go | 2 +-
cmd/geth/accountcmd.go | 10 +-
cmd/geth/accountcmd_test.go | 2 +-
cmd/geth/chaincmd.go | 24 +--
cmd/geth/config.go | 24 +--
cmd/geth/consolecmd.go | 8 +-
cmd/geth/consolecmd_test.go | 2 +-
cmd/geth/dao_test.go | 6 +-
cmd/geth/dbcmd.go | 16 +-
cmd/geth/les_test.go | 4 +-
cmd/geth/main.go | 32 +--
cmd/geth/misccmd.go | 6 +-
cmd/geth/run_test.go | 4 +-
cmd/geth/snapshot.go | 22 +-
cmd/geth/testdata/vcheck/data.json | 4 +-
cmd/geth/testdata/vcheck/vulnerabilities.json | 24 +--
cmd/geth/usage.go | 6 +-
cmd/geth/version_check.go | 2 +-
cmd/p2psim/main.go | 12 +-
cmd/puppeth/genesis.go | 14 +-
cmd/puppeth/genesis_test.go | 2 +-
cmd/puppeth/module.go | 2 +-
cmd/puppeth/module_dashboard.go | 8 +-
cmd/puppeth/module_ethstats.go | 2 +-
cmd/puppeth/module_explorer.go | 2 +-
cmd/puppeth/module_faucet.go | 4 +-
cmd/puppeth/module_nginx.go | 2 +-
cmd/puppeth/module_node.go | 4 +-
cmd/puppeth/puppeth.go | 2 +-
cmd/puppeth/ssh.go | 2 +-
cmd/puppeth/wizard.go | 8 +-
cmd/puppeth/wizard_dashboard.go | 2 +-
cmd/puppeth/wizard_ethstats.go | 2 +-
cmd/puppeth/wizard_explorer.go | 2 +-
cmd/puppeth/wizard_faucet.go | 4 +-
cmd/puppeth/wizard_genesis.go | 8 +-
cmd/puppeth/wizard_intro.go | 2 +-
cmd/puppeth/wizard_netstats.go | 4 +-
cmd/puppeth/wizard_network.go | 2 +-
cmd/puppeth/wizard_nginx.go | 2 +-
cmd/puppeth/wizard_node.go | 6 +-
cmd/rlpdump/main.go | 4 +-
cmd/rlpdump/rlpdump_test.go | 4 +-
cmd/utils/cmd.go | 22 +-
cmd/utils/customflags.go | 2 +-
cmd/utils/export_test.go | 4 +-
cmd/utils/flags.go | 66 +++---
cmd/utils/flags_legacy.go | 2 +-
cmd/utils/prompt.go | 2 +-
common/bitutil/compress_test.go | 2 +-
common/debug.go | 2 +-
common/hexutil/json_example_test.go | 2 +-
common/math/big_test.go | 2 +-
common/prque/lazyqueue.go | 2 +-
common/prque/lazyqueue_test.go | 2 +-
common/types.go | 2 +-
consensus/clique/api.go | 12 +-
consensus/clique/clique.go | 28 +--
consensus/clique/clique_test.go | 14 +-
consensus/clique/snapshot.go | 10 +-
consensus/clique/snapshot_test.go | 16 +-
consensus/consensus.go | 10 +-
consensus/ethash/algorithm.go | 8 +-
consensus/ethash/algorithm_test.go | 6 +-
consensus/ethash/api.go | 6 +-
consensus/ethash/consensus.go | 18 +-
consensus/ethash/consensus_test.go | 8 +-
consensus/ethash/difficulty.go | 2 +-
consensus/ethash/ethash.go | 8 +-
consensus/ethash/ethash_test.go | 8 +-
consensus/ethash/sealer.go | 8 +-
consensus/ethash/sealer_test.go | 8 +-
consensus/misc/dao.go | 6 +-
consensus/misc/eip1559.go | 8 +-
consensus/misc/eip1559_test.go | 6 +-
consensus/misc/forks.go | 6 +-
consensus/misc/gaslimit.go | 2 +-
console/bridge.go | 12 +-
console/bridge_test.go | 2 +-
console/console.go | 10 +-
console/console_test.go | 18 +-
contracts/checkpointoracle/contract/oracle.go | 12 +-
contracts/checkpointoracle/oracle.go | 8 +-
contracts/checkpointoracle/oracle_test.go | 14 +-
core/asm/asm.go | 2 +-
core/asm/compiler.go | 4 +-
core/bench_test.go | 18 +-
core/block_validator.go | 10 +-
core/block_validator_test.go | 10 +-
core/blockchain.go | 32 +--
core/blockchain_insert.go | 8 +-
core/blockchain_reader.go | 20 +-
core/blockchain_repair_test.go | 14 +-
core/blockchain_sethead_test.go | 12 +-
core/blockchain_snapshot_test.go | 14 +-
core/blockchain_test.go | 28 +--
core/blocks.go | 2 +-
core/bloom_indexer.go | 12 +-
core/bloombits/generator.go | 2 +-
core/bloombits/generator_test.go | 2 +-
core/bloombits/matcher.go | 4 +-
core/bloombits/matcher_test.go | 4 +-
core/chain_indexer.go | 12 +-
core/chain_indexer_test.go | 6 +-
core/chain_makers.go | 16 +-
core/chain_makers_test.go | 12 +-
core/dao_test.go | 8 +-
core/error.go | 2 +-
core/events.go | 4 +-
core/evm.go | 8 +-
core/forkid/forkid.go | 8 +-
core/forkid/forkid_test.go | 6 +-
core/gen_genesis.go | 8 +-
core/gen_genesis_account.go | 6 +-
core/genesis.go | 24 +--
core/genesis_test.go | 12 +-
core/headerchain.go | 14 +-
core/headerchain_test.go | 12 +-
core/mkalloc.go | 4 +-
core/rawdb/accessors_chain.go | 14 +-
core/rawdb/accessors_chain_test.go | 10 +-
core/rawdb/accessors_indexes.go | 12 +-
core/rawdb/accessors_indexes_test.go | 10 +-
core/rawdb/accessors_metadata.go | 10 +-
core/rawdb/accessors_snapshot.go | 6 +-
core/rawdb/accessors_state.go | 6 +-
core/rawdb/chain_iterator.go | 12 +-
core/rawdb/chain_iterator_test.go | 4 +-
core/rawdb/database.go | 10 +-
core/rawdb/freezer.go | 10 +-
core/rawdb/freezer_batch.go | 4 +-
core/rawdb/freezer_table.go | 6 +-
core/rawdb/freezer_table_test.go | 2 +-
core/rawdb/freezer_test.go | 4 +-
core/rawdb/schema.go | 4 +-
core/rawdb/table.go | 2 +-
core/rawdb/table_test.go | 2 +-
core/rlp_test.go | 14 +-
core/state/access_list.go | 2 +-
core/state/database.go | 10 +-
core/state/dump.go | 12 +-
core/state/iterator.go | 8 +-
core/state/iterator_test.go | 4 +-
core/state/journal.go | 2 +-
core/state/metrics.go | 2 +-
core/state/pruner/bloom.go | 6 +-
core/state/pruner/pruner.go | 18 +-
core/state/snapshot/account.go | 4 +-
core/state/snapshot/conversion.go | 12 +-
core/state/snapshot/difflayer.go | 4 +-
core/state/snapshot/difflayer_test.go | 6 +-
core/state/snapshot/disklayer.go | 10 +-
core/state/snapshot/disklayer_test.go | 12 +-
core/state/snapshot/generate.go | 22 +-
core/state/snapshot/generate_test.go | 14 +-
core/state/snapshot/iterator.go | 6 +-
core/state/snapshot/iterator_binary.go | 2 +-
core/state/snapshot/iterator_fast.go | 2 +-
core/state/snapshot/iterator_test.go | 4 +-
core/state/snapshot/journal.go | 12 +-
core/state/snapshot/snapshot.go | 14 +-
core/state/snapshot/snapshot_test.go | 6 +-
core/state/snapshot/sort.go | 2 +-
core/state/snapshot/wipe.go | 10 +-
core/state/snapshot/wipe_test.go | 6 +-
core/state/state_object.go | 10 +-
core/state/state_object_test.go | 2 +-
core/state/state_test.go | 8 +-
core/state/statedb.go | 20 +-
core/state/statedb_test.go | 14 +-
core/state/sync.go | 10 +-
core/state/sync_test.go | 16 +-
core/state/trie_prefetcher.go | 6 +-
core/state/trie_prefetcher_test.go | 4 +-
core/state_prefetcher.go | 10 +-
core/state_processor.go | 16 +-
core/state_processor_test.go | 22 +-
core/state_transition.go | 12 +-
core/tx_cacher.go | 2 +-
core/tx_journal.go | 8 +-
core/tx_list.go | 4 +-
core/tx_list_test.go | 4 +-
core/tx_noncer.go | 4 +-
core/tx_pool.go | 18 +-
core/tx_pool_test.go | 16 +-
core/types.go | 6 +-
core/types/access_list_tx.go | 2 +-
core/types/block.go | 6 +-
core/types/block_test.go | 10 +-
core/types/bloom9.go | 4 +-
core/types/bloom9_test.go | 4 +-
core/types/dynamic_fee_tx.go | 2 +-
core/types/gen_access_tuple.go | 2 +-
core/types/gen_header_json.go | 4 +-
core/types/gen_log_json.go | 4 +-
core/types/gen_receipt_json.go | 4 +-
core/types/hashing.go | 6 +-
core/types/hashing_test.go | 12 +-
core/types/legacy_tx.go | 2 +-
core/types/log.go | 6 +-
core/types/log_test.go | 4 +-
core/types/receipt.go | 10 +-
core/types/receipt_test.go | 8 +-
core/types/state_account.go | 2 +-
core/types/transaction.go | 8 +-
core/types/transaction_marshalling.go | 4 +-
core/types/transaction_signing.go | 6 +-
core/types/transaction_signing_test.go | 6 +-
core/types/transaction_test.go | 6 +-
core/types/types_test.go | 6 +-
core/vm/access_list_tracer.go | 4 +-
core/vm/analysis_test.go | 2 +-
core/vm/common.go | 4 +-
core/vm/contract.go | 2 +-
core/vm/contracts.go | 14 +-
core/vm/contracts_test.go | 2 +-
core/vm/eips.go | 2 +-
core/vm/evm.go | 6 +-
core/vm/gas_table.go | 6 +-
core/vm/gas_table_test.go | 10 +-
core/vm/gen_structlog.go | 6 +-
core/vm/instructions.go | 6 +-
core/vm/instructions_test.go | 6 +-
core/vm/interface.go | 4 +-
core/vm/interpreter.go | 6 +-
core/vm/jump_table.go | 2 +-
core/vm/logger.go | 10 +-
core/vm/logger_json.go | 4 +-
core/vm/logger_test.go | 6 +-
core/vm/operations_acl.go | 6 +-
core/vm/runtime/env.go | 4 +-
core/vm/runtime/runtime.go | 12 +-
core/vm/runtime/runtime_example_test.go | 4 +-
core/vm/runtime/runtime_test.go | 26 +--
core/vm/stack_table.go | 2 +-
crypto/bls12381/g1_test.go | 2 +-
crypto/bls12381/g2_test.go | 2 +-
crypto/bls12381/pairing_test.go | 2 +-
crypto/bls12381/utils.go | 2 +-
crypto/bn256/bn256_fast.go | 2 +-
crypto/bn256/bn256_slow.go | 2 +-
crypto/crypto.go | 6 +-
crypto/crypto_test.go | 4 +-
crypto/ecies/ecies_test.go | 2 +-
crypto/ecies/params.go | 2 +-
crypto/secp256k1/dummy.go | 6 +-
crypto/signature_cgo.go | 4 +-
crypto/signature_test.go | 6 +-
.../2021-08-22-split-postmortem.md | 4 +-
eth/api.go | 22 +-
eth/api_backend.go | 32 +--
eth/api_test.go | 8 +-
eth/backend.go | 58 ++---
eth/bloombits.go | 4 +-
eth/catalyst/api.go | 22 +-
eth/catalyst/api_test.go | 18 +-
eth/catalyst/api_types.go | 4 +-
eth/catalyst/gen_blockparams.go | 4 +-
eth/catalyst/gen_ed.go | 4 +-
eth/discovery.go | 8 +-
eth/downloader/api.go | 6 +-
eth/downloader/downloader.go | 26 +--
eth/downloader/downloader_test.go | 18 +-
eth/downloader/events.go | 2 +-
eth/downloader/metrics.go | 2 +-
eth/downloader/peer.go | 10 +-
eth/downloader/queue.go | 12 +-
eth/downloader/queue_test.go | 14 +-
eth/downloader/resultstore.go | 2 +-
eth/downloader/statesync.go | 14 +-
eth/downloader/testchain_test.go | 14 +-
eth/downloader/types.go | 2 +-
eth/ethconfig/config.go | 24 +--
eth/ethconfig/gen_config.go | 14 +-
eth/fetcher/block_fetcher.go | 14 +-
eth/fetcher/block_fetcher_test.go | 16 +-
eth/fetcher/tx_fetcher.go | 12 +-
eth/fetcher/tx_fetcher_test.go | 8 +-
eth/filters/api.go | 14 +-
eth/filters/api_test.go | 4 +-
eth/filters/bench_test.go | 14 +-
eth/filters/filter.go | 14 +-
eth/filters/filter_system.go | 16 +-
eth/filters/filter_system_test.go | 22 +-
eth/filters/filter_test.go | 14 +-
eth/gasprice/feehistory.go | 10 +-
eth/gasprice/feehistory_test.go | 2 +-
eth/gasprice/gasprice.go | 14 +-
eth/gasprice/gasprice_test.go | 20 +-
eth/handler.go | 28 +--
eth/handler_eth.go | 14 +-
eth/handler_eth_test.go | 28 +--
eth/handler_snap.go | 6 +-
eth/handler_test.go | 22 +-
eth/peer.go | 4 +-
eth/peerset.go | 8 +-
eth/protocols/eth/broadcast.go | 4 +-
eth/protocols/eth/discovery.go | 8 +-
eth/protocols/eth/handler.go | 18 +-
eth/protocols/eth/handler_test.go | 26 +--
eth/protocols/eth/handlers.go | 10 +-
eth/protocols/eth/handshake.go | 6 +-
eth/protocols/eth/handshake_test.go | 8 +-
eth/protocols/eth/peer.go | 8 +-
eth/protocols/eth/peer_test.go | 6 +-
eth/protocols/eth/protocol.go | 8 +-
eth/protocols/eth/protocol_test.go | 6 +-
eth/protocols/eth/tracker.go | 2 +-
eth/protocols/snap/discovery.go | 2 +-
eth/protocols/snap/handler.go | 22 +-
eth/protocols/snap/peer.go | 6 +-
eth/protocols/snap/protocol.go | 6 +-
eth/protocols/snap/range.go | 2 +-
eth/protocols/snap/range_test.go | 2 +-
eth/protocols/snap/sync.go | 28 +--
eth/protocols/snap/sync_test.go | 18 +-
eth/protocols/snap/tracker.go | 2 +-
eth/state_accessor.go | 14 +-
eth/sync.go | 12 +-
eth/sync_test.go | 8 +-
eth/tracers/api.go | 28 +--
eth/tracers/api_test.go | 28 +--
.../internal/tracetest/calltrace_test.go | 28 +--
eth/tracers/js/tracer.go | 16 +-
eth/tracers/js/tracer_test.go | 10 +-
eth/tracers/native/4byte.go | 6 +-
eth/tracers/native/call.go | 6 +-
eth/tracers/native/noop.go | 6 +-
eth/tracers/native/tracer.go | 2 +-
eth/tracers/tracers.go | 4 +-
eth/tracers/tracers_test.go | 18 +-
ethclient/ethclient.go | 10 +-
ethclient/ethclient_test.go | 24 +--
ethclient/gethclient/gethclient.go | 12 +-
ethclient/gethclient/gethclient_test.go | 26 +--
ethclient/signer.go | 4 +-
ethdb/dbtest/testsuite.go | 2 +-
ethdb/leveldb/leveldb.go | 8 +-
ethdb/leveldb/leveldb_test.go | 4 +-
ethdb/memorydb/memorydb.go | 4 +-
ethdb/memorydb/memorydb_test.go | 4 +-
ethstats/ethstats.go | 28 +--
event/example_feed_test.go | 2 +-
event/example_scope_test.go | 2 +-
event/example_subscription_test.go | 2 +-
event/subscription.go | 2 +-
go.mod | 2 +-
graphql/graphql.go | 18 +-
graphql/graphql_test.go | 20 +-
graphql/service.go | 4 +-
interfaces.go | 4 +-
internal/build/env.go | 2 +-
internal/debug/api.go | 2 +-
internal/debug/flags.go | 6 +-
internal/debug/trace.go | 2 +-
internal/ethapi/addrlock.go | 2 +-
internal/ethapi/api.go | 44 ++--
internal/ethapi/backend.go | 26 +--
internal/ethapi/transaction_args.go | 14 +-
internal/flags/helpers.go | 2 +-
internal/guide/guide_test.go | 6 +-
internal/jsre/deps/web3.js | 2 +-
internal/jsre/jsre.go | 2 +-
internal/testlog/testlog.go | 2 +-
les/api.go | 8 +-
les/api_backend.go | 32 +--
les/api_test.go | 28 +--
les/benchmark.go | 22 +-
les/bloombits.go | 4 +-
les/checkpointoracle/oracle.go | 12 +-
les/client.go | 52 ++---
les/client_handler.go | 20 +-
les/commons.go | 28 +--
les/costtracker.go | 12 +-
les/distributor.go | 4 +-
les/distributor_test.go | 2 +-
les/downloader/api.go | 6 +-
les/downloader/downloader.go | 26 +--
les/downloader/downloader_test.go | 18 +-
les/downloader/events.go | 2 +-
les/downloader/metrics.go | 2 +-
les/downloader/peer.go | 10 +-
les/downloader/queue.go | 12 +-
les/downloader/queue_test.go | 14 +-
les/downloader/resultstore.go | 2 +-
les/downloader/statesync.go | 14 +-
les/downloader/testchain_test.go | 14 +-
les/downloader/types.go | 2 +-
les/enr_entry.go | 8 +-
les/fetcher.go | 20 +-
les/fetcher/block_fetcher.go | 14 +-
les/fetcher/block_fetcher_test.go | 16 +-
les/fetcher_test.go | 12 +-
les/flowcontrol/control.go | 4 +-
les/flowcontrol/logger.go | 2 +-
les/flowcontrol/manager.go | 4 +-
les/flowcontrol/manager_test.go | 2 +-
les/handler_test.go | 26 +--
les/metrics.go | 4 +-
les/odr.go | 8 +-
les/odr_requests.go | 18 +-
les/odr_test.go | 22 +-
les/peer.go | 28 +--
les/peer_test.go | 16 +-
les/protocol.go | 12 +-
les/pruner.go | 8 +-
les/pruner_test.go | 4 +-
les/request_test.go | 10 +-
les/retrieve.go | 2 +-
les/server.go | 28 +--
les/server_handler.go | 28 +--
les/server_requests.go | 18 +-
les/servingqueue.go | 4 +-
les/state_accessor.go | 10 +-
les/sync.go | 12 +-
les/sync_test.go | 14 +-
les/test_helper.go | 42 ++--
les/txrelay.go | 6 +-
les/ulc.go | 4 +-
les/ulc_test.go | 6 +-
les/utils/expiredvalue.go | 2 +-
les/utils/expiredvalue_test.go | 2 +-
les/utils/limiter.go | 2 +-
les/utils/limiter_test.go | 2 +-
les/utils/timeutils.go | 2 +-
les/utils/timeutils_test.go | 2 +-
les/utils/weighted_select.go | 2 +-
les/vflux/client/api.go | 6 +-
les/vflux/client/fillset.go | 4 +-
les/vflux/client/fillset_test.go | 8 +-
les/vflux/client/queueiterator.go | 4 +-
les/vflux/client/queueiterator_test.go | 8 +-
les/vflux/client/requestbasket.go | 4 +-
les/vflux/client/requestbasket_test.go | 2 +-
les/vflux/client/serverpool.go | 18 +-
les/vflux/client/serverpool_test.go | 10 +-
les/vflux/client/timestats.go | 4 +-
les/vflux/client/timestats_test.go | 2 +-
les/vflux/client/valuetracker.go | 12 +-
les/vflux/client/valuetracker_test.go | 8 +-
les/vflux/client/wrsiterator.go | 6 +-
les/vflux/client/wrsiterator_test.go | 4 +-
les/vflux/requests.go | 2 +-
les/vflux/server/balance.go | 8 +-
les/vflux/server/balance_test.go | 14 +-
les/vflux/server/balance_tracker.go | 12 +-
les/vflux/server/clientdb.go | 14 +-
les/vflux/server/clientdb_test.go | 8 +-
les/vflux/server/clientpool.go | 16 +-
les/vflux/server/clientpool_test.go | 10 +-
les/vflux/server/metrics.go | 2 +-
les/vflux/server/prioritypool.go | 10 +-
les/vflux/server/prioritypool_test.go | 8 +-
les/vflux/server/service.go | 10 +-
les/vflux/server/status.go | 2 +-
light/lightchain.go | 22 +-
light/lightchain_test.go | 14 +-
light/nodeset.go | 8 +-
light/odr.go | 10 +-
light/odr_test.go | 26 +--
light/odr_util.go | 10 +-
light/postprocess.go | 20 +-
light/trie.go | 16 +-
light/trie_test.go | 14 +-
light/txpool.go | 18 +-
light/txpool_test.go | 14 +-
log/format.go | 2 +-
metrics/cpu_enabled.go | 2 +-
metrics/cputime_unix.go | 2 +-
metrics/exp/exp.go | 6 +-
metrics/influxdb/influxdb.go | 4 +-
metrics/influxdb/influxdbv2.go | 4 +-
metrics/librato/librato.go | 2 +-
metrics/metrics.go | 2 +-
metrics/prometheus/collector.go | 2 +-
metrics/prometheus/collector_test.go | 2 +-
metrics/prometheus/prometheus.go | 4 +-
miner/miner.go | 20 +-
miner/miner_test.go | 22 +-
miner/stress/1559/main.go | 30 +--
miner/stress/clique/main.go | 30 +--
miner/stress/ethash/main.go | 30 +--
miner/unconfirmed.go | 6 +-
miner/unconfirmed_test.go | 2 +-
miner/worker.go | 20 +-
miner/worker_test.go | 26 +--
mobile/accounts.go | 8 +-
mobile/android_test.go | 2 +-
mobile/big.go | 2 +-
mobile/bind.go | 10 +-
mobile/common.go | 4 +-
mobile/discover.go | 2 +-
mobile/ethclient.go | 4 +-
mobile/ethereum.go | 4 +-
mobile/geth.go | 22 +-
mobile/init.go | 2 +-
mobile/interface.go | 2 +-
mobile/interface_test.go | 2 +-
mobile/logger.go | 2 +-
mobile/p2p.go | 2 +-
mobile/params.go | 6 +-
mobile/primitives.go | 2 +-
mobile/types.go | 6 +-
mobile/vm.go | 2 +-
node/api.go | 14 +-
node/api_test.go | 2 +-
node/config.go | 12 +-
node/config_test.go | 4 +-
node/defaults.go | 6 +-
node/endpoints.go | 4 +-
node/node.go | 14 +-
node/node_example_test.go | 2 +-
node/node_test.go | 8 +-
node/rpcstack.go | 4 +-
node/rpcstack_test.go | 6 +-
node/utils_test.go | 4 +-
oss-fuzz.sh | 4 +-
p2p/dial.go | 8 +-
p2p/dial_test.go | 10 +-
p2p/discover/common.go | 10 +-
p2p/discover/lookup.go | 2 +-
p2p/discover/node.go | 6 +-
p2p/discover/ntp.go | 2 +-
p2p/discover/table.go | 8 +-
p2p/discover/table_test.go | 8 +-
p2p/discover/table_util_test.go | 8 +-
p2p/discover/v4_lookup_test.go | 8 +-
p2p/discover/v4_udp.go | 10 +-
p2p/discover/v4_udp_test.go | 10 +-
p2p/discover/v4wire/v4wire.go | 10 +-
p2p/discover/v4wire/v4wire_test.go | 4 +-
p2p/discover/v5_udp.go | 12 +-
p2p/discover/v5_udp_test.go | 12 +-
p2p/discover/v5wire/crypto.go | 6 +-
p2p/discover/v5wire/crypto_test.go | 6 +-
p2p/discover/v5wire/encoding.go | 8 +-
p2p/discover/v5wire/encoding_test.go | 8 +-
p2p/discover/v5wire/msg.go | 8 +-
p2p/discover/v5wire/session.go | 6 +-
p2p/dnsdisc/client.go | 10 +-
p2p/dnsdisc/client_test.go | 12 +-
p2p/dnsdisc/sync.go | 4 +-
p2p/dnsdisc/tree.go | 8 +-
p2p/dnsdisc/tree_test.go | 4 +-
p2p/enode/idscheme.go | 8 +-
p2p/enode/idscheme_test.go | 6 +-
p2p/enode/iter_test.go | 2 +-
p2p/enode/localnode.go | 6 +-
p2p/enode/localnode_test.go | 4 +-
p2p/enode/node.go | 4 +-
p2p/enode/node_test.go | 4 +-
p2p/enode/nodedb.go | 2 +-
p2p/enode/urlv4.go | 6 +-
p2p/enode/urlv4_test.go | 4 +-
p2p/enr/enr.go | 2 +-
p2p/enr/enr_test.go | 2 +-
p2p/enr/entries.go | 2 +-
p2p/message.go | 6 +-
p2p/metrics.go | 2 +-
p2p/msgrate/msgrate.go | 2 +-
p2p/nat/nat.go | 2 +-
p2p/nat/natupnp_test.go | 2 +-
p2p/netutil/iptrack.go | 2 +-
p2p/netutil/iptrack_test.go | 2 +-
p2p/nodestate/nodestate.go | 14 +-
p2p/nodestate/nodestate_test.go | 10 +-
p2p/peer.go | 14 +-
p2p/peer_test.go | 6 +-
p2p/protocol.go | 4 +-
p2p/rlpx/buffer_test.go | 2 +-
p2p/rlpx/rlpx.go | 6 +-
p2p/rlpx/rlpx_test.go | 8 +-
p2p/server.go | 20 +-
p2p/server_test.go | 12 +-
p2p/simulations/adapters/exec.go | 10 +-
p2p/simulations/adapters/inproc.go | 14 +-
p2p/simulations/adapters/inproc_test.go | 2 +-
p2p/simulations/adapters/types.go | 14 +-
p2p/simulations/connect.go | 2 +-
p2p/simulations/connect_test.go | 6 +-
p2p/simulations/examples/ping-pong.go | 12 +-
p2p/simulations/http.go | 10 +-
p2p/simulations/http_test.go | 14 +-
p2p/simulations/mocker.go | 6 +-
p2p/simulations/mocker_test.go | 2 +-
p2p/simulations/network.go | 10 +-
p2p/simulations/network_test.go | 8 +-
p2p/simulations/simulation.go | 2 +-
p2p/simulations/test.go | 8 +-
p2p/tracker/tracker.go | 4 +-
p2p/transport.go | 10 +-
p2p/transport_test.go | 4 +-
p2p/util.go | 2 +-
p2p/util_test.go | 2 +-
params/bootnodes.go | 2 +-
params/config.go | 2 +-
params/dao.go | 2 +-
rlp/decode_test.go | 2 +-
rlp/encode_test.go | 2 +-
rlp/iterator_test.go | 2 +-
rpc/client.go | 2 +-
rpc/client_example_test.go | 4 +-
rpc/client_test.go | 6 +-
rpc/doc.go | 2 +-
rpc/endpoints.go | 2 +-
rpc/handler.go | 2 +-
rpc/ipc.go | 4 +-
rpc/ipc_unix.go | 2 +-
rpc/metrics.go | 2 +-
rpc/server.go | 2 +-
rpc/service.go | 2 +-
rpc/types.go | 4 +-
rpc/types_test.go | 4 +-
rpc/websocket.go | 2 +-
rpc/websocket_test.go | 2 +-
signer/core/api.go | 20 +-
signer/core/api_test.go | 22 +-
signer/core/apitypes/types.go | 8 +-
signer/core/auditlog.go | 10 +-
signer/core/cliui.go | 8 +-
signer/core/gnosis_safe.go | 8 +-
signer/core/signed_data.go | 20 +-
signer/core/signed_data_internal_test.go | 2 +-
signer/core/signed_data_test.go | 12 +-
signer/core/stdioui.go | 6 +-
signer/core/uiapi.go | 10 +-
signer/fourbyte/abi.go | 4 +-
signer/fourbyte/abi_test.go | 4 +-
signer/fourbyte/fourbyte_test.go | 4 +-
signer/fourbyte/validation.go | 6 +-
signer/fourbyte/validation_test.go | 6 +-
signer/rules/rules.go | 10 +-
signer/rules/rules_test.go | 16 +-
signer/storage/aes_gcm_storage.go | 2 +-
signer/storage/aes_gcm_storage_test.go | 4 +-
tests/block_test_util.go | 24 +--
tests/difficulty_test.go | 4 +-
tests/difficulty_test_util.go | 10 +-
tests/fuzzers/abi/abifuzzer.go | 2 +-
tests/fuzzers/bitutil/compress_fuzz.go | 2 +-
tests/fuzzers/bls12381/bls12381_fuzz.go | 2 +-
tests/fuzzers/bls12381/precompile_fuzzer.go | 4 +-
tests/fuzzers/bn256/bn256_fuzz.go | 4 +-
tests/fuzzers/difficulty/debug/main.go | 2 +-
tests/fuzzers/difficulty/difficulty-fuzz.go | 4 +-
tests/fuzzers/keystore/keystore-fuzzer.go | 2 +-
tests/fuzzers/les/debug/main.go | 2 +-
tests/fuzzers/les/les-fuzzer.go | 22 +-
tests/fuzzers/rangeproof/debug/main.go | 2 +-
tests/fuzzers/rangeproof/rangeproof-fuzzer.go | 6 +-
tests/fuzzers/rlp/rlp_fuzzer.go | 4 +-
tests/fuzzers/runtime/runtime_fuzz.go | 2 +-
tests/fuzzers/secp256k1/secp_fuzzer.go | 2 +-
tests/fuzzers/stacktrie/debug/main.go | 2 +-
tests/fuzzers/stacktrie/trie_fuzzer.go | 6 +-
tests/fuzzers/trie/trie-fuzzer.go | 6 +-
tests/fuzzers/txfetcher/txfetcher_fuzzer.go | 8 +-
tests/fuzzers/vflux/clientpool-fuzzer.go | 16 +-
tests/fuzzers/vflux/debug/main.go | 4 +-
tests/gen_btheader.go | 8 +-
tests/gen_difficultytest.go | 4 +-
tests/gen_stenv.go | 4 +-
tests/gen_sttransaction.go | 6 +-
tests/init.go | 2 +-
tests/init_test.go | 2 +-
tests/rlp_test_util.go | 2 +-
tests/state_test.go | 2 +-
tests/state_test_util.go | 26 +--
tests/transaction_test.go | 2 +-
tests/transaction_test_util.go | 12 +-
trie/committer.go | 4 +-
trie/database.go | 12 +-
trie/database_test.go | 4 +-
trie/errors.go | 2 +-
trie/hasher.go | 4 +-
trie/iterator.go | 6 +-
trie/iterator_test.go | 8 +-
trie/node.go | 4 +-
trie/node_test.go | 2 +-
trie/proof.go | 10 +-
trie/proof_test.go | 6 +-
trie/secure_trie.go | 8 +-
trie/secure_trie_test.go | 6 +-
trie/stacktrie.go | 8 +-
trie/stacktrie_test.go | 6 +-
trie/sync.go | 8 +-
trie/sync_bloom.go | 10 +-
trie/sync_test.go | 6 +-
trie/trie.go | 10 +-
trie/trie_test.go | 14 +-
805 files changed, 3533 insertions(+), 3533 deletions(-)
diff --git a/README.md b/README.md
index d45aa04b7b..848af9b568 100644
--- a/README.md
+++ b/README.md
@@ -4,10 +4,10 @@ Official Golang implementation of the Ethereum protocol.
[](https://pkg.go.dev/github.com/ethereum/go-ethereum?tab=doc)
-[](https://goreportcard.com/report/github.com/ethereum/go-ethereum)
-[](https://travis-ci.com/ethereum/go-ethereum)
-[](https://discord.gg/nthXNEv)
+)](https://pkg.go.dev/github.com/scroll-tech/go-ethereum?tab=doc)
+[](https://goreportcard.com/report/github.com/scroll-tech/go-ethereum)
+[](https://travis-ci.com/scroll-tech/go-ethereum)
+[](https://discord.gg/2stGbxwb)
## ZK-Rollup
diff --git a/SECURITY.md b/SECURITY.md
index 635c0869fc..2c565dbe33 100644
--- a/SECURITY.md
+++ b/SECURITY.md
@@ -2,24 +2,24 @@
## Supported Versions
-Please see [Releases](https://github.com/ethereum/go-ethereum/releases). We recommend using the [most recently released version](https://github.com/ethereum/go-ethereum/releases/latest).
+Please see [Releases](https://github.com/scroll-tech/go-ethereum/releases). We recommend using the [most recently released version](https://github.com/scroll-tech/go-ethereum/releases/latest).
## Audit reports
-Audit reports are published in the `docs` folder: https://github.com/ethereum/go-ethereum/tree/master/docs/audits
+Audit reports are published in the `docs` folder: https://github.com/scroll-tech/go-ethereum/tree/master/docs/audits
| Scope | Date | Report Link |
| ------- | ------- | ----------- |
-| `geth` | 20170425 | [pdf](https://github.com/ethereum/go-ethereum/blob/master/docs/audits/2017-04-25_Geth-audit_Truesec.pdf) |
-| `clef` | 20180914 | [pdf](https://github.com/ethereum/go-ethereum/blob/master/docs/audits/2018-09-14_Clef-audit_NCC.pdf) |
-| `Discv5` | 20191015 | [pdf](https://github.com/ethereum/go-ethereum/blob/master/docs/audits/2019-10-15_Discv5_audit_LeastAuthority.pdf) |
-| `Discv5` | 20200124 | [pdf](https://github.com/ethereum/go-ethereum/blob/master/docs/audits/2020-01-24_DiscV5_audit_Cure53.pdf) |
+| `geth` | 20170425 | [pdf](https://github.com/scroll-tech/go-ethereum/blob/master/docs/audits/2017-04-25_Geth-audit_Truesec.pdf) |
+| `clef` | 20180914 | [pdf](https://github.com/scroll-tech/go-ethereum/blob/master/docs/audits/2018-09-14_Clef-audit_NCC.pdf) |
+| `Discv5` | 20191015 | [pdf](https://github.com/scroll-tech/go-ethereum/blob/master/docs/audits/2019-10-15_Discv5_audit_LeastAuthority.pdf) |
+| `Discv5` | 20200124 | [pdf](https://github.com/scroll-tech/go-ethereum/blob/master/docs/audits/2020-01-24_DiscV5_audit_Cure53.pdf) |
## Reporting a Vulnerability
**Please do not file a public ticket** mentioning the vulnerability.
-To find out how to disclose a vulnerability in Ethereum visit [https://bounty.ethereum.org](https://bounty.ethereum.org) or email bounty@ethereum.org. Please read the [disclosure page](https://github.com/ethereum/go-ethereum/security/advisories?state=published) for more information about publically disclosed security vulnerabilities.
+To find out how to disclose a vulnerability in Ethereum visit [https://bounty.ethereum.org](https://bounty.ethereum.org) or email bounty@ethereum.org. Please read the [disclosure page](https://github.com/scroll-tech/go-ethereum/security/advisories?state=published) for more information about publically disclosed security vulnerabilities.
Use the built-in `geth version-check` feature to check whether the software is affected by any known vulnerability. This command will fetch the latest [`vulnerabilities.json`](https://geth.ethereum.org/docs/vulnerabilities/vulnerabilities.json) file which contains known security vulnerabilities concerning `geth`, and cross-check the data against its own version number.
diff --git a/accounts/abi/abi.go b/accounts/abi/abi.go
index cd2f4d7978..412190b38e 100644
--- a/accounts/abi/abi.go
+++ b/accounts/abi/abi.go
@@ -23,8 +23,8 @@ import (
"fmt"
"io"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/crypto"
)
// The ABI holds information about a contract's context and available
diff --git a/accounts/abi/abi_test.go b/accounts/abi/abi_test.go
index cc8dfc61c3..34e1b068d3 100644
--- a/accounts/abi/abi_test.go
+++ b/accounts/abi/abi_test.go
@@ -26,9 +26,9 @@ import (
"strings"
"testing"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/math"
- "github.com/ethereum/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/math"
+ "github.com/scroll-tech/go-ethereum/crypto"
)
const jsondata = `
diff --git a/accounts/abi/bind/auth.go b/accounts/abi/bind/auth.go
index a4307a9529..ae791f5d9d 100644
--- a/accounts/abi/bind/auth.go
+++ b/accounts/abi/bind/auth.go
@@ -24,13 +24,13 @@ import (
"io/ioutil"
"math/big"
- "github.com/ethereum/go-ethereum/accounts"
- "github.com/ethereum/go-ethereum/accounts/external"
- "github.com/ethereum/go-ethereum/accounts/keystore"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/accounts"
+ "github.com/scroll-tech/go-ethereum/accounts/external"
+ "github.com/scroll-tech/go-ethereum/accounts/keystore"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/log"
)
// ErrNoChainID is returned whenever the user failed to specify a chain id.
diff --git a/accounts/abi/bind/backend.go b/accounts/abi/bind/backend.go
index c16990f395..4fa8775260 100644
--- a/accounts/abi/bind/backend.go
+++ b/accounts/abi/bind/backend.go
@@ -21,9 +21,9 @@ import (
"errors"
"math/big"
- "github.com/ethereum/go-ethereum"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core/types"
)
var (
diff --git a/accounts/abi/bind/backends/simulated.go b/accounts/abi/bind/backends/simulated.go
index 27d40f1d66..d8b4dea4a6 100644
--- a/accounts/abi/bind/backends/simulated.go
+++ b/accounts/abi/bind/backends/simulated.go
@@ -24,25 +24,25 @@ import (
"sync"
"time"
- "github.com/ethereum/go-ethereum"
- "github.com/ethereum/go-ethereum/accounts/abi"
- "github.com/ethereum/go-ethereum/accounts/abi/bind"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/common/math"
- "github.com/ethereum/go-ethereum/consensus/ethash"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/bloombits"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/state"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/core/vm"
- "github.com/ethereum/go-ethereum/eth/filters"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/event"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/rpc"
+ "github.com/scroll-tech/go-ethereum"
+ "github.com/scroll-tech/go-ethereum/accounts/abi"
+ "github.com/scroll-tech/go-ethereum/accounts/abi/bind"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/hexutil"
+ "github.com/scroll-tech/go-ethereum/common/math"
+ "github.com/scroll-tech/go-ethereum/consensus/ethash"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/core/bloombits"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/core/state"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/core/vm"
+ "github.com/scroll-tech/go-ethereum/eth/filters"
+ "github.com/scroll-tech/go-ethereum/ethdb"
+ "github.com/scroll-tech/go-ethereum/event"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/rpc"
)
// This nil assignment ensures at compile time that SimulatedBackend implements bind.ContractBackend.
diff --git a/accounts/abi/bind/backends/simulated_test.go b/accounts/abi/bind/backends/simulated_test.go
index 4e63e3efff..aabb37743e 100644
--- a/accounts/abi/bind/backends/simulated_test.go
+++ b/accounts/abi/bind/backends/simulated_test.go
@@ -27,14 +27,14 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum"
- "github.com/ethereum/go-ethereum/accounts/abi"
- "github.com/ethereum/go-ethereum/accounts/abi/bind"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum"
+ "github.com/scroll-tech/go-ethereum/accounts/abi"
+ "github.com/scroll-tech/go-ethereum/accounts/abi/bind"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/params"
)
func TestSimulatedBackend(t *testing.T) {
diff --git a/accounts/abi/bind/base.go b/accounts/abi/bind/base.go
index f4e5a2a900..60933bc329 100644
--- a/accounts/abi/bind/base.go
+++ b/accounts/abi/bind/base.go
@@ -24,12 +24,12 @@ import (
"strings"
"sync"
- "github.com/ethereum/go-ethereum"
- "github.com/ethereum/go-ethereum/accounts/abi"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/event"
+ "github.com/scroll-tech/go-ethereum"
+ "github.com/scroll-tech/go-ethereum/accounts/abi"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/event"
)
// SignerFn is a signer function callback when a contract requires a method to
diff --git a/accounts/abi/bind/base_test.go b/accounts/abi/bind/base_test.go
index 08ba18f95e..d3aaa516c7 100644
--- a/accounts/abi/bind/base_test.go
+++ b/accounts/abi/bind/base_test.go
@@ -23,14 +23,14 @@ import (
"strings"
"testing"
- "github.com/ethereum/go-ethereum"
- "github.com/ethereum/go-ethereum/accounts/abi"
- "github.com/ethereum/go-ethereum/accounts/abi/bind"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum"
+ "github.com/scroll-tech/go-ethereum/accounts/abi"
+ "github.com/scroll-tech/go-ethereum/accounts/abi/bind"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/hexutil"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/rlp"
"github.com/stretchr/testify/assert"
)
diff --git a/accounts/abi/bind/bind.go b/accounts/abi/bind/bind.go
index 0e98709b14..9e936c886f 100644
--- a/accounts/abi/bind/bind.go
+++ b/accounts/abi/bind/bind.go
@@ -17,7 +17,7 @@
// Package bind generates Ethereum contract Go bindings.
//
// Detailed usage document and tutorial available on the go-ethereum Wiki page:
-// https://github.com/ethereum/go-ethereum/wiki/Native-DApps:-Go-bindings-to-Ethereum-contracts
+// https://github.com/scroll-tech/go-ethereum/wiki/Native-DApps:-Go-bindings-to-Ethereum-contracts
package bind
import (
@@ -30,8 +30,8 @@ import (
"text/template"
"unicode"
- "github.com/ethereum/go-ethereum/accounts/abi"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/accounts/abi"
+ "github.com/scroll-tech/go-ethereum/log"
)
// Lang is a target programming language selector to generate bindings for.
diff --git a/accounts/abi/bind/bind_test.go b/accounts/abi/bind/bind_test.go
index 5a436607ce..b6e1b5c3ef 100644
--- a/accounts/abi/bind/bind_test.go
+++ b/accounts/abi/bind/bind_test.go
@@ -26,7 +26,7 @@ import (
"strings"
"testing"
- "github.com/ethereum/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common"
)
var bindTests = []struct {
@@ -47,7 +47,7 @@ var bindTests = []struct {
`contract NilContract {}`,
[]string{`606060405260068060106000396000f3606060405200`},
[]string{`[]`},
- `"github.com/ethereum/go-ethereum/common"`,
+ `"github.com/scroll-tech/go-ethereum/common"`,
`
if b, err := NewEmpty(common.Address{}, nil); b == nil || err != nil {
t.Fatalf("combined binding (%v) nil or error (%v) not nil", b, nil)
@@ -70,7 +70,7 @@ var bindTests = []struct {
`https://ethereum.org/token`,
[]string{`60606040526040516107fd3803806107fd83398101604052805160805160a05160c051929391820192909101600160a060020a0333166000908152600360209081526040822086905581548551838052601f6002600019610100600186161502019093169290920482018390047f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e56390810193919290918801908390106100e857805160ff19168380011785555b506101189291505b8082111561017157600081556001016100b4565b50506002805460ff19168317905550505050610658806101a56000396000f35b828001600101855582156100ac579182015b828111156100ac5782518260005055916020019190600101906100fa565b50508060016000509080519060200190828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061017557805160ff19168380011785555b506100c89291506100b4565b5090565b82800160010185558215610165579182015b8281111561016557825182600050559160200191906001019061018756606060405236156100775760e060020a600035046306fdde03811461007f57806323b872dd146100dc578063313ce5671461010e57806370a082311461011a57806395d89b4114610132578063a9059cbb1461018e578063cae9ca51146101bd578063dc3080f21461031c578063dd62ed3e14610341575b610365610002565b61036760008054602060026001831615610100026000190190921691909104601f810182900490910260809081016040526060828152929190828280156104eb5780601f106104c0576101008083540402835291602001916104eb565b6103d5600435602435604435600160a060020a038316600090815260036020526040812054829010156104f357610002565b6103e760025460ff1681565b6103d560043560036020526000908152604090205481565b610367600180546020600282841615610100026000190190921691909104601f810182900490910260809081016040526060828152929190828280156104eb5780601f106104c0576101008083540402835291602001916104eb565b610365600435602435600160a060020a033316600090815260036020526040902054819010156103f157610002565b60806020604435600481810135601f8101849004909302840160405260608381526103d5948235946024803595606494939101919081908382808284375094965050505050505060006000836004600050600033600160a060020a03168152602001908152602001600020600050600087600160a060020a031681526020019081526020016000206000508190555084905080600160a060020a0316638f4ffcb1338630876040518560e060020a0281526004018085600160a060020a0316815260200184815260200183600160a060020a03168152602001806020018281038252838181518152602001915080519060200190808383829060006004602084601f0104600f02600301f150905090810190601f1680156102f25780820380516001836020036101000a031916815260200191505b50955050505050506000604051808303816000876161da5a03f11561000257505050509392505050565b6005602090815260043560009081526040808220909252602435815220546103d59081565b60046020818152903560009081526040808220909252602435815220546103d59081565b005b60405180806020018281038252838181518152602001915080519060200190808383829060006004602084601f0104600f02600301f150905090810190601f1680156103c75780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b60408051918252519081900360200190f35b6060908152602090f35b600160a060020a03821660009081526040902054808201101561041357610002565b806003600050600033600160a060020a03168152602001908152602001600020600082828250540392505081905550806003600050600084600160a060020a0316815260200190815260200160002060008282825054019250508190555081600160a060020a031633600160a060020a03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040518082815260200191505060405180910390a35050565b820191906000526020600020905b8154815290600101906020018083116104ce57829003601f168201915b505050505081565b600160a060020a03831681526040812054808301101561051257610002565b600160a060020a0380851680835260046020908152604080852033949094168086529382528085205492855260058252808520938552929052908220548301111561055c57610002565b816003600050600086600160a060020a03168152602001908152602001600020600082828250540392505081905550816003600050600085600160a060020a03168152602001908152602001600020600082828250540192505081905550816005600050600086600160a060020a03168152602001908152602001600020600050600033600160a060020a0316815260200190815260200160002060008282825054019250508190555082600160a060020a031633600160a060020a03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef846040518082815260200191505060405180910390a3939250505056`},
[]string{`[{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"success","type":"bool"}],"type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"balanceOf","outputs":[{"name":"","type":"uint256"}],"type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transfer","outputs":[],"type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"},{"name":"_extraData","type":"bytes"}],"name":"approveAndCall","outputs":[{"name":"success","type":"bool"}],"type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"},{"name":"","type":"address"}],"name":"spentAllowance","outputs":[{"name":"","type":"uint256"}],"type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"},{"name":"","type":"address"}],"name":"allowance","outputs":[{"name":"","type":"uint256"}],"type":"function"},{"inputs":[{"name":"initialSupply","type":"uint256"},{"name":"tokenName","type":"string"},{"name":"decimalUnits","type":"uint8"},{"name":"tokenSymbol","type":"string"}],"type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Transfer","type":"event"}]`},
- `"github.com/ethereum/go-ethereum/common"`,
+ `"github.com/scroll-tech/go-ethereum/common"`,
`
if b, err := NewToken(common.Address{}, nil); b == nil || err != nil {
t.Fatalf("binding (%v) nil or error (%v) not nil", b, nil)
@@ -86,7 +86,7 @@ var bindTests = []struct {
`https://ethereum.org/crowdsale`,
[]string{`606060408190526007805460ff1916905560a0806105a883396101006040529051608051915160c05160e05160008054600160a060020a03199081169095178155670de0b6b3a7640000958602600155603c9093024201600355930260045560058054909216909217905561052f90819061007990396000f36060604052361561006c5760e060020a600035046301cb3b20811461008257806329dcb0cf1461014457806338af3eed1461014d5780636e66f6e91461015f5780637a3a0e84146101715780637b3e5e7b1461017a578063a035b1fe14610183578063dc0d3dff1461018c575b61020060075460009060ff161561032357610002565b61020060035460009042106103205760025460015490106103cb576002548154600160a060020a0316908290606082818181858883f150915460025460408051600160a060020a039390931683526020830191909152818101869052517fe842aea7a5f1b01049d752008c53c52890b1a6daf660cf39e8eec506112bbdf6945090819003909201919050a15b60405160008054600160a060020a039081169230909116319082818181858883f150506007805460ff1916600117905550505050565b6103a160035481565b6103ab600054600160a060020a031681565b6103ab600554600160a060020a031681565b6103a160015481565b6103a160025481565b6103a160045481565b6103be60043560068054829081101561000257506000526002027ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f8101547ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d409190910154600160a060020a03919091169082565b005b505050815481101561000257906000526020600020906002020160005060008201518160000160006101000a815481600160a060020a030219169083021790555060208201518160010160005055905050806002600082828250540192505081905550600560009054906101000a9004600160a060020a0316600160a060020a031663a9059cbb3360046000505484046040518360e060020a0281526004018083600160a060020a03168152602001828152602001925050506000604051808303816000876161da5a03f11561000257505060408051600160a060020a03331681526020810184905260018183015290517fe842aea7a5f1b01049d752008c53c52890b1a6daf660cf39e8eec506112bbdf692509081900360600190a15b50565b5060a0604052336060908152346080819052600680546001810180835592939282908280158290116102025760020281600202836000526020600020918201910161020291905b8082111561039d57805473ffffffffffffffffffffffffffffffffffffffff19168155600060019190910190815561036a565b5090565b6060908152602090f35b600160a060020a03166060908152602090f35b6060918252608052604090f35b5b60065481101561010e576006805482908110156100025760009182526002027ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f0190600680549254600160a060020a0316928490811015610002576002027ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d40015460405190915082818181858883f19350505050507fe842aea7a5f1b01049d752008c53c52890b1a6daf660cf39e8eec506112bbdf660066000508281548110156100025760008290526002027ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f01548154600160a060020a039190911691908490811015610002576002027ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d40015460408051600160a060020a0394909416845260208401919091526000838201525191829003606001919050a16001016103cc56`},
[]string{`[{"constant":false,"inputs":[],"name":"checkGoalReached","outputs":[],"type":"function"},{"constant":true,"inputs":[],"name":"deadline","outputs":[{"name":"","type":"uint256"}],"type":"function"},{"constant":true,"inputs":[],"name":"beneficiary","outputs":[{"name":"","type":"address"}],"type":"function"},{"constant":true,"inputs":[],"name":"tokenReward","outputs":[{"name":"","type":"address"}],"type":"function"},{"constant":true,"inputs":[],"name":"fundingGoal","outputs":[{"name":"","type":"uint256"}],"type":"function"},{"constant":true,"inputs":[],"name":"amountRaised","outputs":[{"name":"","type":"uint256"}],"type":"function"},{"constant":true,"inputs":[],"name":"price","outputs":[{"name":"","type":"uint256"}],"type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"funders","outputs":[{"name":"addr","type":"address"},{"name":"amount","type":"uint256"}],"type":"function"},{"inputs":[{"name":"ifSuccessfulSendTo","type":"address"},{"name":"fundingGoalInEthers","type":"uint256"},{"name":"durationInMinutes","type":"uint256"},{"name":"etherCostOfEachToken","type":"uint256"},{"name":"addressOfTokenUsedAsReward","type":"address"}],"type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"name":"backer","type":"address"},{"indexed":false,"name":"amount","type":"uint256"},{"indexed":false,"name":"isContribution","type":"bool"}],"name":"FundTransfer","type":"event"}]`},
- `"github.com/ethereum/go-ethereum/common"`,
+ `"github.com/scroll-tech/go-ethereum/common"`,
`
if b, err := NewCrowdsale(common.Address{}, nil); b == nil || err != nil {
t.Fatalf("binding (%v) nil or error (%v) not nil", b, nil)
@@ -102,7 +102,7 @@ var bindTests = []struct {
`https://ethereum.org/dao`,
[]string{`606060405260405160808061145f833960e06040529051905160a05160c05160008054600160a060020a03191633179055600184815560028490556003839055600780549182018082558280158290116100b8576003028160030283600052602060002091820191016100b891906101c8565b50506060919091015160029190910155600160a060020a0381166000146100a65760008054600160a060020a031916821790555b505050506111f18061026e6000396000f35b505060408051608081018252600080825260208281018290528351908101845281815292820192909252426060820152600780549194509250811015610002579081527fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c6889050815181546020848101517401000000000000000000000000000000000000000002600160a060020a03199290921690921760a060020a60ff021916178255604083015180516001848101805460008281528690209195600293821615610100026000190190911692909204601f9081018390048201949192919091019083901061023e57805160ff19168380011785555b50610072929150610226565b5050600060028201556001015b8082111561023a578054600160a860020a031916815560018181018054600080835592600290821615610100026000190190911604601f81901061020c57506101bb565b601f0160209004906000526020600020908101906101bb91905b8082111561023a5760008155600101610226565b5090565b828001600101855582156101af579182015b828111156101af57825182600050559160200191906001019061025056606060405236156100b95760e060020a6000350463013cf08b81146100bb578063237e9492146101285780633910682114610281578063400e3949146102995780635daf08ca146102a257806369bd34361461032f5780638160f0b5146103385780638da5cb5b146103415780639644fcbd14610353578063aa02a90f146103be578063b1050da5146103c7578063bcca1fd3146104b5578063d3c0715b146104dc578063eceb29451461058d578063f2fde38b1461067b575b005b61069c6004356004805482908110156100025790600052602060002090600a02016000506005810154815460018301546003840154600485015460068601546007870154600160a060020a03959095169750929560020194919360ff828116946101009093041692919089565b60408051602060248035600481810135601f81018590048502860185019096528585526107759581359591946044949293909201918190840183828082843750949650505050505050600060006004600050848154811015610002575090527f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19e600a8402908101547f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b909101904210806101e65750600481015460ff165b8061026757508060000160009054906101000a9004600160a060020a03168160010160005054846040518084600160a060020a0316606060020a0281526014018381526020018280519060200190808383829060006004602084601f0104600f02600301f15090500193505050506040518091039020816007016000505414155b8061027757506001546005820154105b1561109257610002565b61077560043560066020526000908152604090205481565b61077560055481565b61078760043560078054829081101561000257506000526003026000805160206111d18339815191528101547fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c68a820154600160a060020a0382169260a060020a90920460ff16917fa66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c689019084565b61077560025481565b61077560015481565b610830600054600160a060020a031681565b604080516020604435600481810135601f81018490048402850184019095528484526100b9948135946024803595939460649492939101918190840183828082843750949650505050505050600080548190600160a060020a03908116339091161461084d57610002565b61077560035481565b604080516020604435600481810135601f8101849004840285018401909552848452610775948135946024803595939460649492939101918190840183828082843750506040805160209735808a0135601f81018a90048a0283018a019093528282529698976084979196506024909101945090925082915084018382808284375094965050505050505033600160a060020a031660009081526006602052604081205481908114806104ab5750604081205460078054909190811015610002579082526003026000805160206111d1833981519152015460a060020a900460ff16155b15610ce557610002565b6100b960043560243560443560005433600160a060020a03908116911614610b1857610002565b604080516020604435600481810135601f810184900484028501840190955284845261077594813594602480359593946064949293910191819084018382808284375094965050505050505033600160a060020a031660009081526006602052604081205481908114806105835750604081205460078054909190811015610002579082526003026000805160206111d18339815191520181505460a060020a900460ff16155b15610f1d57610002565b604080516020606435600481810135601f81018490048402850184019095528484526107759481359460248035956044359560849492019190819084018382808284375094965050505050505060006000600460005086815481101561000257908252600a027f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b01815090508484846040518084600160a060020a0316606060020a0281526014018381526020018280519060200190808383829060006004602084601f0104600f02600301f150905001935050505060405180910390208160070160005054149150610cdc565b6100b960043560005433600160a060020a03908116911614610f0857610002565b604051808a600160a060020a031681526020018981526020018060200188815260200187815260200186815260200185815260200184815260200183815260200182810382528981815460018160011615610100020316600290048152602001915080546001816001161561010002031660029004801561075e5780601f106107335761010080835404028352916020019161075e565b820191906000526020600020905b81548152906001019060200180831161074157829003601f168201915b50509a505050505050505050505060405180910390f35b60408051918252519081900360200190f35b60408051600160a060020a038616815260208101859052606081018390526080918101828152845460026001821615610100026000190190911604928201839052909160a08301908590801561081e5780601f106107f35761010080835404028352916020019161081e565b820191906000526020600020905b81548152906001019060200180831161080157829003601f168201915b50509550505050505060405180910390f35b60408051600160a060020a03929092168252519081900360200190f35b600160a060020a03851660009081526006602052604081205414156108a957604060002060078054918290556001820180825582801582901161095c5760030281600302836000526020600020918201910161095c9190610a4f565b600160a060020a03851660009081526006602052604090205460078054919350908390811015610002575060005250600381026000805160206111d183398151915201805474ff0000000000000000000000000000000000000000191660a060020a85021781555b60408051600160a060020a03871681526020810186905281517f27b022af4a8347100c7a041ce5ccf8e14d644ff05de696315196faae8cd50c9b929181900390910190a15050505050565b505050915081506080604051908101604052808681526020018581526020018481526020014281526020015060076000508381548110156100025790600052602060002090600302016000508151815460208481015160a060020a02600160a060020a03199290921690921774ff00000000000000000000000000000000000000001916178255604083015180516001848101805460008281528690209195600293821615610100026000190190911692909204601f90810183900482019491929190910190839010610ad357805160ff19168380011785555b50610b03929150610abb565b5050600060028201556001015b80821115610acf57805474ffffffffffffffffffffffffffffffffffffffffff1916815560018181018054600080835592600290821615610100026000190190911604601f819010610aa15750610a42565b601f016020900490600052602060002090810190610a4291905b80821115610acf5760008155600101610abb565b5090565b82800160010185558215610a36579182015b82811115610a36578251826000505591602001919060010190610ae5565b50506060919091015160029190910155610911565b600183905560028290556003819055604080518481526020810184905280820183905290517fa439d3fa452be5e0e1e24a8145e715f4fd8b9c08c96a42fd82a855a85e5d57de9181900360600190a1505050565b50508585846040518084600160a060020a0316606060020a0281526014018381526020018280519060200190808383829060006004602084601f0104600f02600301f150905001935050505060405180910390208160070160005081905550600260005054603c024201816003016000508190555060008160040160006101000a81548160ff0219169083021790555060008160040160016101000a81548160ff02191690830217905550600081600501600050819055507f646fec02522b41e7125cfc859a64fd4f4cefd5dc3b6237ca0abe251ded1fa881828787876040518085815260200184600160a060020a03168152602001838152602001806020018281038252838181518152602001915080519060200190808383829060006004602084601f0104600f02600301f150905090810190601f168015610cc45780820380516001836020036101000a031916815260200191505b509550505050505060405180910390a1600182016005555b50949350505050565b6004805460018101808355909190828015829011610d1c57600a0281600a028360005260206000209182019101610d1c9190610db8565b505060048054929450918491508110156100025790600052602060002090600a02016000508054600160a060020a031916871781556001818101879055855160028381018054600082815260209081902096975091959481161561010002600019011691909104601f90810182900484019391890190839010610ed857805160ff19168380011785555b50610b6c929150610abb565b50506001015b80821115610acf578054600160a060020a03191681556000600182810182905560028381018054848255909281161561010002600019011604601f819010610e9c57505b5060006003830181905560048301805461ffff191690556005830181905560068301819055600783018190556008830180548282559082526020909120610db2916002028101905b80821115610acf57805474ffffffffffffffffffffffffffffffffffffffffff1916815560018181018054600080835592600290821615610100026000190190911604601f819010610eba57505b5050600101610e44565b601f016020900490600052602060002090810190610dfc9190610abb565b601f016020900490600052602060002090810190610e929190610abb565b82800160010185558215610da6579182015b82811115610da6578251826000505591602001919060010190610eea565b60008054600160a060020a0319168217905550565b600480548690811015610002576000918252600a027f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b01905033600160a060020a0316600090815260098201602052604090205490915060ff1660011415610f8457610002565b33600160a060020a031660009081526009820160205260409020805460ff1916600190811790915560058201805490910190558315610fcd576006810180546001019055610fda565b6006810180546000190190555b7fc34f869b7ff431b034b7b9aea9822dac189a685e0b015c7d1be3add3f89128e8858533866040518085815260200184815260200183600160a060020a03168152602001806020018281038252838181518152602001915080519060200190808383829060006004602084601f0104600f02600301f150905090810190601f16801561107a5780820380516001836020036101000a031916815260200191505b509550505050505060405180910390a1509392505050565b6006810154600354901315611158578060000160009054906101000a9004600160a060020a0316600160a060020a03168160010160005054670de0b6b3a76400000284604051808280519060200190808383829060006004602084601f0104600f02600301f150905090810190601f1680156111225780820380516001836020036101000a031916815260200191505b5091505060006040518083038185876185025a03f15050505060048101805460ff191660011761ff00191661010017905561116d565b60048101805460ff191660011761ff00191690555b60068101546005820154600483015460408051888152602081019490945283810192909252610100900460ff166060830152517fd220b7272a8b6d0d7d6bcdace67b936a8f175e6d5c1b3ee438b72256b32ab3af9181900360800190a1509291505056a66cc928b5edb82af9bd49922954155ab7b0942694bea4ce44661d9a8736c688`},
[]string{`[{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"proposals","outputs":[{"name":"recipient","type":"address"},{"name":"amount","type":"uint256"},{"name":"description","type":"string"},{"name":"votingDeadline","type":"uint256"},{"name":"executed","type":"bool"},{"name":"proposalPassed","type":"bool"},{"name":"numberOfVotes","type":"uint256"},{"name":"currentResult","type":"int256"},{"name":"proposalHash","type":"bytes32"}],"type":"function"},{"constant":false,"inputs":[{"name":"proposalNumber","type":"uint256"},{"name":"transactionBytecode","type":"bytes"}],"name":"executeProposal","outputs":[{"name":"result","type":"int256"}],"type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"memberId","outputs":[{"name":"","type":"uint256"}],"type":"function"},{"constant":true,"inputs":[],"name":"numProposals","outputs":[{"name":"","type":"uint256"}],"type":"function"},{"constant":true,"inputs":[{"name":"","type":"uint256"}],"name":"members","outputs":[{"name":"member","type":"address"},{"name":"canVote","type":"bool"},{"name":"name","type":"string"},{"name":"memberSince","type":"uint256"}],"type":"function"},{"constant":true,"inputs":[],"name":"debatingPeriodInMinutes","outputs":[{"name":"","type":"uint256"}],"type":"function"},{"constant":true,"inputs":[],"name":"minimumQuorum","outputs":[{"name":"","type":"uint256"}],"type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"type":"function"},{"constant":false,"inputs":[{"name":"targetMember","type":"address"},{"name":"canVote","type":"bool"},{"name":"memberName","type":"string"}],"name":"changeMembership","outputs":[],"type":"function"},{"constant":true,"inputs":[],"name":"majorityMargin","outputs":[{"name":"","type":"int256"}],"type":"function"},{"constant":false,"inputs":[{"name":"beneficiary","type":"address"},{"name":"etherAmount","type":"uint256"},{"name":"JobDescription","type":"string"},{"name":"transactionBytecode","type":"bytes"}],"name":"newProposal","outputs":[{"name":"proposalID","type":"uint256"}],"type":"function"},{"constant":false,"inputs":[{"name":"minimumQuorumForProposals","type":"uint256"},{"name":"minutesForDebate","type":"uint256"},{"name":"marginOfVotesForMajority","type":"int256"}],"name":"changeVotingRules","outputs":[],"type":"function"},{"constant":false,"inputs":[{"name":"proposalNumber","type":"uint256"},{"name":"supportsProposal","type":"bool"},{"name":"justificationText","type":"string"}],"name":"vote","outputs":[{"name":"voteID","type":"uint256"}],"type":"function"},{"constant":true,"inputs":[{"name":"proposalNumber","type":"uint256"},{"name":"beneficiary","type":"address"},{"name":"etherAmount","type":"uint256"},{"name":"transactionBytecode","type":"bytes"}],"name":"checkProposalCode","outputs":[{"name":"codeChecksOut","type":"bool"}],"type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"type":"function"},{"inputs":[{"name":"minimumQuorumForProposals","type":"uint256"},{"name":"minutesForDebate","type":"uint256"},{"name":"marginOfVotesForMajority","type":"int256"},{"name":"congressLeader","type":"address"}],"type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"name":"proposalID","type":"uint256"},{"indexed":false,"name":"recipient","type":"address"},{"indexed":false,"name":"amount","type":"uint256"},{"indexed":false,"name":"description","type":"string"}],"name":"ProposalAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"proposalID","type":"uint256"},{"indexed":false,"name":"position","type":"bool"},{"indexed":false,"name":"voter","type":"address"},{"indexed":false,"name":"justification","type":"string"}],"name":"Voted","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"proposalID","type":"uint256"},{"indexed":false,"name":"result","type":"int256"},{"indexed":false,"name":"quorum","type":"uint256"},{"indexed":false,"name":"active","type":"bool"}],"name":"ProposalTallied","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"member","type":"address"},{"indexed":false,"name":"isMember","type":"bool"}],"name":"MembershipChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"minimumQuorum","type":"uint256"},{"indexed":false,"name":"debatingPeriodInMinutes","type":"uint256"},{"indexed":false,"name":"majorityMargin","type":"int256"}],"name":"ChangeOfRules","type":"event"}]`},
- `"github.com/ethereum/go-ethereum/common"`,
+ `"github.com/scroll-tech/go-ethereum/common"`,
`
if b, err := NewDAO(common.Address{}, nil); b == nil || err != nil {
t.Fatalf("binding (%v) nil or error (%v) not nil", b, nil)
@@ -129,7 +129,7 @@ var bindTests = []struct {
`
"fmt"
- "github.com/ethereum/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common"
`,
`if b, err := NewInputChecker(common.Address{}, nil); b == nil || err != nil {
t.Fatalf("binding (%v) nil or error (%v) not nil", b, nil)
@@ -167,7 +167,7 @@ var bindTests = []struct {
`
"fmt"
- "github.com/ethereum/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common"
`,
`if b, err := NewOutputChecker(common.Address{}, nil); b == nil || err != nil {
t.Fatalf("binding (%v) nil or error (%v) not nil", b, nil)
@@ -208,7 +208,7 @@ var bindTests = []struct {
"math/big"
"reflect"
- "github.com/ethereum/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common"
`,
`if e, err := NewEventChecker(common.Address{}, nil); e == nil || err != nil {
t.Fatalf("binding (%v) nil or error (%v) not nil", e, nil)
@@ -288,10 +288,10 @@ var bindTests = []struct {
`
"math/big"
- "github.com/ethereum/go-ethereum/accounts/abi/bind"
- "github.com/ethereum/go-ethereum/accounts/abi/bind/backends"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/accounts/abi/bind"
+ "github.com/scroll-tech/go-ethereum/accounts/abi/bind/backends"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/crypto"
`,
`
// Generate a new random account and a funded simulator
@@ -343,10 +343,10 @@ var bindTests = []struct {
`
"math/big"
- "github.com/ethereum/go-ethereum/accounts/abi/bind"
- "github.com/ethereum/go-ethereum/accounts/abi/bind/backends"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/accounts/abi/bind"
+ "github.com/scroll-tech/go-ethereum/accounts/abi/bind/backends"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/crypto"
`,
`
// Generate a new random account and a funded simulator
@@ -389,10 +389,10 @@ var bindTests = []struct {
`
"math/big"
- "github.com/ethereum/go-ethereum/accounts/abi/bind"
- "github.com/ethereum/go-ethereum/accounts/abi/bind/backends"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/accounts/abi/bind"
+ "github.com/scroll-tech/go-ethereum/accounts/abi/bind/backends"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/crypto"
`,
`
// Generate a new random account and a funded simulator
@@ -446,11 +446,11 @@ var bindTests = []struct {
"math/big"
"reflect"
- "github.com/ethereum/go-ethereum/accounts/abi/bind"
- "github.com/ethereum/go-ethereum/accounts/abi/bind/backends"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/accounts/abi/bind"
+ "github.com/scroll-tech/go-ethereum/accounts/abi/bind/backends"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/crypto"
`,
`
// Generate a new random account and a funded simulator
@@ -495,10 +495,10 @@ var bindTests = []struct {
`
"math/big"
- "github.com/ethereum/go-ethereum/accounts/abi/bind"
- "github.com/ethereum/go-ethereum/accounts/abi/bind/backends"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/accounts/abi/bind"
+ "github.com/scroll-tech/go-ethereum/accounts/abi/bind/backends"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/crypto"
`,
`
// Generate a new random account and a funded simulator
@@ -561,10 +561,10 @@ var bindTests = []struct {
`
"math/big"
- "github.com/ethereum/go-ethereum/accounts/abi/bind"
- "github.com/ethereum/go-ethereum/accounts/abi/bind/backends"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/accounts/abi/bind"
+ "github.com/scroll-tech/go-ethereum/accounts/abi/bind/backends"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/crypto"
`,
`
// Generate a new random account and a funded simulator
@@ -606,10 +606,10 @@ var bindTests = []struct {
[]string{`6060604052609f8060106000396000f3606060405260e060020a6000350463f97a60058114601a575b005b600060605260c0604052600d60809081527f4920646f6e27742065786973740000000000000000000000000000000000000060a052602060c0908152600d60e081905281906101009060a09080838184600060046012f15050815172ffffffffffffffffffffffffffffffffffffff1916909152505060405161012081900392509050f3`},
[]string{`[{"constant":true,"inputs":[],"name":"String","outputs":[{"name":"","type":"string"}],"type":"function"}]`},
`
- "github.com/ethereum/go-ethereum/accounts/abi/bind"
- "github.com/ethereum/go-ethereum/accounts/abi/bind/backends"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/accounts/abi/bind"
+ "github.com/scroll-tech/go-ethereum/accounts/abi/bind/backends"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core"
`,
`
// Create a simulator and wrap a non-deployed contract
@@ -645,10 +645,10 @@ var bindTests = []struct {
[]string{`6080604052348015600f57600080fd5b5060888061001e6000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c8063d5f6622514602d575b600080fd5b6033604c565b6040805192835260208301919091528051918290030190f35b600a809156fea264697066735822beefbeefbeefbeefbeefbeefbeefbeefbeefbeefbeefbeefbeefbeefbeefbeefbeef64736f6c6343decafe0033`},
[]string{`[{"inputs":[],"name":"Struct","outputs":[{"internalType":"uint256","name":"a","type":"uint256"},{"internalType":"uint256","name":"b","type":"uint256"}],"stateMutability":"pure","type":"function"}]`},
`
- "github.com/ethereum/go-ethereum/accounts/abi/bind"
- "github.com/ethereum/go-ethereum/accounts/abi/bind/backends"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/accounts/abi/bind"
+ "github.com/scroll-tech/go-ethereum/accounts/abi/bind/backends"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core"
`,
`
// Create a simulator and wrap a non-deployed contract
@@ -693,10 +693,10 @@ var bindTests = []struct {
`
"math/big"
- "github.com/ethereum/go-ethereum/accounts/abi/bind"
- "github.com/ethereum/go-ethereum/accounts/abi/bind/backends"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/accounts/abi/bind"
+ "github.com/scroll-tech/go-ethereum/accounts/abi/bind/backends"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/crypto"
`,
`
// Generate a new random account and a funded simulator
@@ -742,11 +742,11 @@ var bindTests = []struct {
`
"math/big"
- "github.com/ethereum/go-ethereum/accounts/abi/bind"
- "github.com/ethereum/go-ethereum/accounts/abi/bind/backends"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/accounts/abi/bind"
+ "github.com/scroll-tech/go-ethereum/accounts/abi/bind/backends"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/crypto"
`,
`
// Generate a new random account and a funded simulator
@@ -818,10 +818,10 @@ var bindTests = []struct {
"fmt"
"math/big"
- "github.com/ethereum/go-ethereum/accounts/abi/bind"
- "github.com/ethereum/go-ethereum/accounts/abi/bind/backends"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/accounts/abi/bind"
+ "github.com/scroll-tech/go-ethereum/accounts/abi/bind/backends"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/crypto"
`,
`
// Generate a new random account and a funded simulator
@@ -911,11 +911,11 @@ var bindTests = []struct {
"math/big"
"time"
- "github.com/ethereum/go-ethereum/accounts/abi/bind"
- "github.com/ethereum/go-ethereum/accounts/abi/bind/backends"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/accounts/abi/bind"
+ "github.com/scroll-tech/go-ethereum/accounts/abi/bind/backends"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/crypto"
`,
`
// Generate a new random account and a funded simulator
@@ -1102,10 +1102,10 @@ var bindTests = []struct {
`
"math/big"
- "github.com/ethereum/go-ethereum/accounts/abi/bind"
- "github.com/ethereum/go-ethereum/accounts/abi/bind/backends"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/accounts/abi/bind"
+ "github.com/scroll-tech/go-ethereum/accounts/abi/bind/backends"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/crypto"
`,
`
// Generate a new random account and a funded simulator
@@ -1237,10 +1237,10 @@ var bindTests = []struct {
"math/big"
"reflect"
- "github.com/ethereum/go-ethereum/accounts/abi/bind"
- "github.com/ethereum/go-ethereum/accounts/abi/bind/backends"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/accounts/abi/bind"
+ "github.com/scroll-tech/go-ethereum/accounts/abi/bind/backends"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/crypto"
`,
`
@@ -1379,10 +1379,10 @@ var bindTests = []struct {
`
"math/big"
- "github.com/ethereum/go-ethereum/accounts/abi/bind"
- "github.com/ethereum/go-ethereum/accounts/abi/bind/backends"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/accounts/abi/bind"
+ "github.com/scroll-tech/go-ethereum/accounts/abi/bind/backends"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/crypto"
`,
`
// Generate a new random account and a funded simulator
@@ -1445,10 +1445,10 @@ var bindTests = []struct {
"math/big"
"time"
- "github.com/ethereum/go-ethereum/accounts/abi/bind"
- "github.com/ethereum/go-ethereum/accounts/abi/bind/backends"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/accounts/abi/bind"
+ "github.com/scroll-tech/go-ethereum/accounts/abi/bind/backends"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/crypto"
`,
`
// Initialize test accounts
@@ -1533,10 +1533,10 @@ var bindTests = []struct {
`
"math/big"
- "github.com/ethereum/go-ethereum/accounts/abi/bind"
- "github.com/ethereum/go-ethereum/accounts/abi/bind/backends"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/accounts/abi/bind"
+ "github.com/scroll-tech/go-ethereum/accounts/abi/bind/backends"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/core"
`,
`
// Initialize test accounts
@@ -1596,10 +1596,10 @@ var bindTests = []struct {
`
"math/big"
- "github.com/ethereum/go-ethereum/accounts/abi/bind"
- "github.com/ethereum/go-ethereum/accounts/abi/bind/backends"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/accounts/abi/bind"
+ "github.com/scroll-tech/go-ethereum/accounts/abi/bind/backends"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/core"
`,
`
key, _ := crypto.GenerateKey()
@@ -1658,10 +1658,10 @@ var bindTests = []struct {
`
"math/big"
- "github.com/ethereum/go-ethereum/accounts/abi/bind"
- "github.com/ethereum/go-ethereum/accounts/abi/bind/backends"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/accounts/abi/bind"
+ "github.com/scroll-tech/go-ethereum/accounts/abi/bind/backends"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/crypto"
`,
`
// Generate a new random account and a funded simulator
@@ -1719,10 +1719,10 @@ var bindTests = []struct {
"bytes"
"math/big"
- "github.com/ethereum/go-ethereum/accounts/abi/bind"
- "github.com/ethereum/go-ethereum/accounts/abi/bind/backends"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/accounts/abi/bind"
+ "github.com/scroll-tech/go-ethereum/accounts/abi/bind/backends"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/crypto"
`,
`
key, _ := crypto.GenerateKey()
@@ -1807,11 +1807,11 @@ var bindTests = []struct {
`
"math/big"
- "github.com/ethereum/go-ethereum/accounts/abi/bind"
- "github.com/ethereum/go-ethereum/accounts/abi/bind/backends"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/eth/ethconfig"
+ "github.com/scroll-tech/go-ethereum/accounts/abi/bind"
+ "github.com/scroll-tech/go-ethereum/accounts/abi/bind/backends"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/eth/ethconfig"
`,
`
var (
@@ -1877,11 +1877,11 @@ var bindTests = []struct {
`
"math/big"
- "github.com/ethereum/go-ethereum/accounts/abi/bind"
- "github.com/ethereum/go-ethereum/accounts/abi/bind/backends"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/eth/ethconfig"
+ "github.com/scroll-tech/go-ethereum/accounts/abi/bind"
+ "github.com/scroll-tech/go-ethereum/accounts/abi/bind/backends"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/eth/ethconfig"
`,
`
var (
@@ -1972,7 +1972,7 @@ func TestGolangBindings(t *testing.T) {
t.Fatalf("failed to convert binding test to modules: %v\n%s", err, out)
}
pwd, _ := os.Getwd()
- replacer := exec.Command(gocmd, "mod", "edit", "-x", "-require", "github.com/ethereum/go-ethereum@v0.0.0", "-replace", "github.com/ethereum/go-ethereum="+filepath.Join(pwd, "..", "..", "..")) // Repo root
+ replacer := exec.Command(gocmd, "mod", "edit", "-x", "-require", "github.com/scroll-tech/go-ethereum@v0.0.0", "-replace", "github.com/scroll-tech/go-ethereum="+filepath.Join(pwd, "..", "..", "..")) // Repo root
replacer.Dir = pkg
if out, err := replacer.CombinedOutput(); err != nil {
t.Fatalf("failed to replace binding test dependency to current source tree: %v\n%s", err, out)
diff --git a/accounts/abi/bind/template.go b/accounts/abi/bind/template.go
index 492bad8c57..8828a55c70 100644
--- a/accounts/abi/bind/template.go
+++ b/accounts/abi/bind/template.go
@@ -16,7 +16,7 @@
package bind
-import "github.com/ethereum/go-ethereum/accounts/abi"
+import "github.com/scroll-tech/go-ethereum/accounts/abi"
// tmplData is the data structure required to fill the binding template.
type tmplData struct {
@@ -92,12 +92,12 @@ import (
"strings"
"errors"
- ethereum "github.com/ethereum/go-ethereum"
- "github.com/ethereum/go-ethereum/accounts/abi"
- "github.com/ethereum/go-ethereum/accounts/abi/bind"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/event"
+ ethereum "github.com/scroll-tech/go-ethereum"
+ "github.com/scroll-tech/go-ethereum/accounts/abi"
+ "github.com/scroll-tech/go-ethereum/accounts/abi/bind"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/event"
)
// Reference imports to suppress errors if they are not otherwise used.
diff --git a/accounts/abi/bind/util.go b/accounts/abi/bind/util.go
index 118abc59a7..5cc37a8bf9 100644
--- a/accounts/abi/bind/util.go
+++ b/accounts/abi/bind/util.go
@@ -21,9 +21,9 @@ import (
"errors"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/log"
)
// WaitMined waits for tx to be mined on the blockchain.
diff --git a/accounts/abi/bind/util_test.go b/accounts/abi/bind/util_test.go
index 75fbc91ceb..be3402b3ed 100644
--- a/accounts/abi/bind/util_test.go
+++ b/accounts/abi/bind/util_test.go
@@ -23,12 +23,12 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/accounts/abi/bind"
- "github.com/ethereum/go-ethereum/accounts/abi/bind/backends"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/accounts/abi/bind"
+ "github.com/scroll-tech/go-ethereum/accounts/abi/bind/backends"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/crypto"
)
var testKey, _ = crypto.HexToECDSA("b71c71a67e1177ad4e901695e1b4b9ee17ae16c6668d313eac2f96dbcda3f291")
diff --git a/accounts/abi/error.go b/accounts/abi/error.go
index 3d1a4877dd..89e1269eec 100644
--- a/accounts/abi/error.go
+++ b/accounts/abi/error.go
@@ -22,8 +22,8 @@ import (
"fmt"
"strings"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/crypto"
)
type Error struct {
diff --git a/accounts/abi/event.go b/accounts/abi/event.go
index b238a36d7c..64aca83880 100644
--- a/accounts/abi/event.go
+++ b/accounts/abi/event.go
@@ -20,8 +20,8 @@ import (
"fmt"
"strings"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/crypto"
)
// Event is an event potentially triggered by the EVM's LOG mechanism. The Event
diff --git a/accounts/abi/event_test.go b/accounts/abi/event_test.go
index 3332f8a072..81d25eb401 100644
--- a/accounts/abi/event_test.go
+++ b/accounts/abi/event_test.go
@@ -25,8 +25,8 @@ import (
"strings"
"testing"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/crypto"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
diff --git a/accounts/abi/method.go b/accounts/abi/method.go
index f69e3ee9b5..7c18be39ce 100644
--- a/accounts/abi/method.go
+++ b/accounts/abi/method.go
@@ -20,7 +20,7 @@ import (
"fmt"
"strings"
- "github.com/ethereum/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/crypto"
)
// FunctionType represents different types of functions a contract might have.
diff --git a/accounts/abi/pack.go b/accounts/abi/pack.go
index 0cd91cb4fa..6622ff07fc 100644
--- a/accounts/abi/pack.go
+++ b/accounts/abi/pack.go
@@ -22,8 +22,8 @@ import (
"math/big"
"reflect"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/math"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/math"
)
// packBytesSlice packs the given bytes as [L, V] as the canonical representation
diff --git a/accounts/abi/pack_test.go b/accounts/abi/pack_test.go
index 5c7cb1cc1a..5b8cc2166c 100644
--- a/accounts/abi/pack_test.go
+++ b/accounts/abi/pack_test.go
@@ -27,7 +27,7 @@ import (
"strings"
"testing"
- "github.com/ethereum/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common"
)
// TestPack tests the general pack/unpack tests in packing_test.go
diff --git a/accounts/abi/packing_test.go b/accounts/abi/packing_test.go
index eae3b0df20..9db44abc1f 100644
--- a/accounts/abi/packing_test.go
+++ b/accounts/abi/packing_test.go
@@ -19,7 +19,7 @@ package abi
import (
"math/big"
- "github.com/ethereum/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common"
)
type packUnpackTest struct {
diff --git a/accounts/abi/topics.go b/accounts/abi/topics.go
index 360df7d5e8..d905fc5927 100644
--- a/accounts/abi/topics.go
+++ b/accounts/abi/topics.go
@@ -23,8 +23,8 @@ import (
"math/big"
"reflect"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/crypto"
)
// MakeTopics converts a filter query argument list into a filter topic set.
diff --git a/accounts/abi/topics_test.go b/accounts/abi/topics_test.go
index 4a539a7116..210a75b6f6 100644
--- a/accounts/abi/topics_test.go
+++ b/accounts/abi/topics_test.go
@@ -21,8 +21,8 @@ import (
"reflect"
"testing"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/crypto"
)
func TestMakeTopics(t *testing.T) {
diff --git a/accounts/abi/type.go b/accounts/abi/type.go
index ffa3acafe9..e4ffa73366 100644
--- a/accounts/abi/type.go
+++ b/accounts/abi/type.go
@@ -24,7 +24,7 @@ import (
"strconv"
"strings"
- "github.com/ethereum/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common"
)
// Type enumerator
diff --git a/accounts/abi/type_test.go b/accounts/abi/type_test.go
index 8c3aedca6a..f20fd385f4 100644
--- a/accounts/abi/type_test.go
+++ b/accounts/abi/type_test.go
@@ -22,7 +22,7 @@ import (
"testing"
"github.com/davecgh/go-spew/spew"
- "github.com/ethereum/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common"
)
// typeWithoutStringer is a alias for the Type type which simply doesn't implement
diff --git a/accounts/abi/unpack.go b/accounts/abi/unpack.go
index ec06984936..ea90a7957a 100644
--- a/accounts/abi/unpack.go
+++ b/accounts/abi/unpack.go
@@ -22,7 +22,7 @@ import (
"math/big"
"reflect"
- "github.com/ethereum/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common"
)
var (
diff --git a/accounts/abi/unpack_test.go b/accounts/abi/unpack_test.go
index e617f8abc5..813af0f11e 100644
--- a/accounts/abi/unpack_test.go
+++ b/accounts/abi/unpack_test.go
@@ -26,7 +26,7 @@ import (
"strings"
"testing"
- "github.com/ethereum/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common"
"github.com/stretchr/testify/require"
)
diff --git a/accounts/accounts.go b/accounts/accounts.go
index 7178578091..46855487c5 100644
--- a/accounts/accounts.go
+++ b/accounts/accounts.go
@@ -21,10 +21,10 @@ import (
"fmt"
"math/big"
- "github.com/ethereum/go-ethereum"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/event"
+ "github.com/scroll-tech/go-ethereum"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/event"
"golang.org/x/crypto/sha3"
)
diff --git a/accounts/accounts_test.go b/accounts/accounts_test.go
index e8274f9f04..1ca45efd15 100644
--- a/accounts/accounts_test.go
+++ b/accounts/accounts_test.go
@@ -20,7 +20,7 @@ import (
"bytes"
"testing"
- "github.com/ethereum/go-ethereum/common/hexutil"
+ "github.com/scroll-tech/go-ethereum/common/hexutil"
)
func TestTextHash(t *testing.T) {
diff --git a/accounts/external/backend.go b/accounts/external/backend.go
index e3f754eafc..d594ece361 100644
--- a/accounts/external/backend.go
+++ b/accounts/external/backend.go
@@ -21,15 +21,15 @@ import (
"math/big"
"sync"
- "github.com/ethereum/go-ethereum"
- "github.com/ethereum/go-ethereum/accounts"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/event"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/rpc"
- "github.com/ethereum/go-ethereum/signer/core/apitypes"
+ "github.com/scroll-tech/go-ethereum"
+ "github.com/scroll-tech/go-ethereum/accounts"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/hexutil"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/event"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/rpc"
+ "github.com/scroll-tech/go-ethereum/signer/core/apitypes"
)
type ExternalBackend struct {
diff --git a/accounts/keystore/account_cache.go b/accounts/keystore/account_cache.go
index a3ec6e9c56..cf0c1faca2 100644
--- a/accounts/keystore/account_cache.go
+++ b/accounts/keystore/account_cache.go
@@ -28,9 +28,9 @@ import (
"time"
mapset "github.com/deckarep/golang-set"
- "github.com/ethereum/go-ethereum/accounts"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/accounts"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/log"
)
// Minimum amount of time between cache reloads. This limit applies if the platform does
diff --git a/accounts/keystore/account_cache_test.go b/accounts/keystore/account_cache_test.go
index a847545bc8..49d25a7efe 100644
--- a/accounts/keystore/account_cache_test.go
+++ b/accounts/keystore/account_cache_test.go
@@ -29,8 +29,8 @@ import (
"github.com/cespare/cp"
"github.com/davecgh/go-spew/spew"
- "github.com/ethereum/go-ethereum/accounts"
- "github.com/ethereum/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/accounts"
+ "github.com/scroll-tech/go-ethereum/common"
)
var (
diff --git a/accounts/keystore/file_cache.go b/accounts/keystore/file_cache.go
index 8b309321d3..b4da358fd4 100644
--- a/accounts/keystore/file_cache.go
+++ b/accounts/keystore/file_cache.go
@@ -25,7 +25,7 @@ import (
"time"
mapset "github.com/deckarep/golang-set"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/log"
)
// fileCache is a cache of files seen during scan of keystore.
diff --git a/accounts/keystore/key.go b/accounts/keystore/key.go
index 2b815ce0f9..ad287c3ff6 100644
--- a/accounts/keystore/key.go
+++ b/accounts/keystore/key.go
@@ -29,9 +29,9 @@ import (
"strings"
"time"
- "github.com/ethereum/go-ethereum/accounts"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/accounts"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/crypto"
"github.com/google/uuid"
)
diff --git a/accounts/keystore/keystore.go b/accounts/keystore/keystore.go
index 88dcfbeb69..555c55600d 100644
--- a/accounts/keystore/keystore.go
+++ b/accounts/keystore/keystore.go
@@ -32,11 +32,11 @@ import (
"sync"
"time"
- "github.com/ethereum/go-ethereum/accounts"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/event"
+ "github.com/scroll-tech/go-ethereum/accounts"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/event"
)
var (
diff --git a/accounts/keystore/keystore_test.go b/accounts/keystore/keystore_test.go
index cb5de11c0d..6b0e3fbdd8 100644
--- a/accounts/keystore/keystore_test.go
+++ b/accounts/keystore/keystore_test.go
@@ -28,10 +28,10 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/accounts"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/event"
+ "github.com/scroll-tech/go-ethereum/accounts"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/event"
)
var testSigData = make([]byte, 32)
diff --git a/accounts/keystore/passphrase.go b/accounts/keystore/passphrase.go
index 3b3e631888..17064a6475 100644
--- a/accounts/keystore/passphrase.go
+++ b/accounts/keystore/passphrase.go
@@ -38,10 +38,10 @@ import (
"os"
"path/filepath"
- "github.com/ethereum/go-ethereum/accounts"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/math"
- "github.com/ethereum/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/accounts"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/math"
+ "github.com/scroll-tech/go-ethereum/crypto"
"github.com/google/uuid"
"golang.org/x/crypto/pbkdf2"
"golang.org/x/crypto/scrypt"
@@ -121,7 +121,7 @@ func (ks keyStorePassphrase) StoreKey(filename string, key *Key, auth string) er
"This indicates that the keystore is corrupted. \n" +
"The corrupted file is stored at \n%v\n" +
"Please file a ticket at:\n\n" +
- "https://github.com/ethereum/go-ethereum/issues." +
+ "https://github.com/scroll-tech/go-ethereum/issues." +
"The error was : %s"
//lint:ignore ST1005 This is a message for the user
return fmt.Errorf(msg, tmpName, err)
diff --git a/accounts/keystore/passphrase_test.go b/accounts/keystore/passphrase_test.go
index 630682cebd..043f7d904b 100644
--- a/accounts/keystore/passphrase_test.go
+++ b/accounts/keystore/passphrase_test.go
@@ -20,7 +20,7 @@ import (
"io/ioutil"
"testing"
- "github.com/ethereum/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common"
)
const (
diff --git a/accounts/keystore/plain.go b/accounts/keystore/plain.go
index f62a133ce1..f96c09716f 100644
--- a/accounts/keystore/plain.go
+++ b/accounts/keystore/plain.go
@@ -22,7 +22,7 @@ import (
"os"
"path/filepath"
- "github.com/ethereum/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common"
)
type keyStorePlain struct {
diff --git a/accounts/keystore/plain_test.go b/accounts/keystore/plain_test.go
index b831925838..c33362f731 100644
--- a/accounts/keystore/plain_test.go
+++ b/accounts/keystore/plain_test.go
@@ -27,8 +27,8 @@ import (
"strings"
"testing"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/crypto"
)
func tmpKeyStoreIface(t *testing.T, encrypted bool) (dir string, ks keyStore) {
diff --git a/accounts/keystore/presale.go b/accounts/keystore/presale.go
index 0664dc2cdd..f823231c2c 100644
--- a/accounts/keystore/presale.go
+++ b/accounts/keystore/presale.go
@@ -25,8 +25,8 @@ import (
"errors"
"fmt"
- "github.com/ethereum/go-ethereum/accounts"
- "github.com/ethereum/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/accounts"
+ "github.com/scroll-tech/go-ethereum/crypto"
"github.com/google/uuid"
"golang.org/x/crypto/pbkdf2"
)
diff --git a/accounts/keystore/wallet.go b/accounts/keystore/wallet.go
index 1066095f6d..e38bc0e23f 100644
--- a/accounts/keystore/wallet.go
+++ b/accounts/keystore/wallet.go
@@ -19,10 +19,10 @@ package keystore
import (
"math/big"
- "github.com/ethereum/go-ethereum"
- "github.com/ethereum/go-ethereum/accounts"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum"
+ "github.com/scroll-tech/go-ethereum/accounts"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/crypto"
)
// keystoreWallet implements the accounts.Wallet interface for the original
diff --git a/accounts/keystore/watch.go b/accounts/keystore/watch.go
index ad176040d6..510d06f103 100644
--- a/accounts/keystore/watch.go
+++ b/accounts/keystore/watch.go
@@ -22,7 +22,7 @@ package keystore
import (
"time"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/log"
"github.com/rjeczalik/notify"
)
diff --git a/accounts/manager.go b/accounts/manager.go
index 1e111d1948..b2f6e5eda9 100644
--- a/accounts/manager.go
+++ b/accounts/manager.go
@@ -21,8 +21,8 @@ import (
"sort"
"sync"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/event"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/event"
)
// managerSubBufferSize determines how many incoming wallet events
diff --git a/accounts/scwallet/hub.go b/accounts/scwallet/hub.go
index 811f8c695e..f554ffeecf 100644
--- a/accounts/scwallet/hub.go
+++ b/accounts/scwallet/hub.go
@@ -41,10 +41,10 @@ import (
"sync"
"time"
- "github.com/ethereum/go-ethereum/accounts"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/event"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/accounts"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/event"
+ "github.com/scroll-tech/go-ethereum/log"
pcsc "github.com/gballet/go-libpcsclite"
)
diff --git a/accounts/scwallet/securechannel.go b/accounts/scwallet/securechannel.go
index 10887a8b43..cd3295429b 100644
--- a/accounts/scwallet/securechannel.go
+++ b/accounts/scwallet/securechannel.go
@@ -26,7 +26,7 @@ import (
"crypto/sha512"
"fmt"
- "github.com/ethereum/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/crypto"
pcsc "github.com/gballet/go-libpcsclite"
"golang.org/x/crypto/pbkdf2"
"golang.org/x/text/unicode/norm"
diff --git a/accounts/scwallet/wallet.go b/accounts/scwallet/wallet.go
index b4d229bc0b..b78d707599 100644
--- a/accounts/scwallet/wallet.go
+++ b/accounts/scwallet/wallet.go
@@ -33,12 +33,12 @@ import (
"sync"
"time"
- "github.com/ethereum/go-ethereum"
- "github.com/ethereum/go-ethereum/accounts"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum"
+ "github.com/scroll-tech/go-ethereum/accounts"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/log"
pcsc "github.com/gballet/go-libpcsclite"
"github.com/status-im/keycard-go/derivationpath"
)
diff --git a/accounts/usbwallet/hub.go b/accounts/usbwallet/hub.go
index 23be98a084..77e34e652f 100644
--- a/accounts/usbwallet/hub.go
+++ b/accounts/usbwallet/hub.go
@@ -23,9 +23,9 @@ import (
"sync/atomic"
"time"
- "github.com/ethereum/go-ethereum/accounts"
- "github.com/ethereum/go-ethereum/event"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/accounts"
+ "github.com/scroll-tech/go-ethereum/event"
+ "github.com/scroll-tech/go-ethereum/log"
"github.com/karalabe/usb"
)
diff --git a/accounts/usbwallet/ledger.go b/accounts/usbwallet/ledger.go
index 3de3b4091c..175c76ad3f 100644
--- a/accounts/usbwallet/ledger.go
+++ b/accounts/usbwallet/ledger.go
@@ -28,13 +28,13 @@ import (
"io"
"math/big"
- "github.com/ethereum/go-ethereum/accounts"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/accounts"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/hexutil"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/rlp"
)
// ledgerOpcode is an enumeration encoding the supported Ledger opcodes.
diff --git a/accounts/usbwallet/trezor.go b/accounts/usbwallet/trezor.go
index c2182b88d0..ff5ca10ec7 100644
--- a/accounts/usbwallet/trezor.go
+++ b/accounts/usbwallet/trezor.go
@@ -27,12 +27,12 @@ import (
"io"
"math/big"
- "github.com/ethereum/go-ethereum/accounts"
- "github.com/ethereum/go-ethereum/accounts/usbwallet/trezor"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/accounts"
+ "github.com/scroll-tech/go-ethereum/accounts/usbwallet/trezor"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/hexutil"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/log"
"github.com/golang/protobuf/proto"
)
diff --git a/accounts/usbwallet/wallet.go b/accounts/usbwallet/wallet.go
index b6f1814488..f69d3d18be 100644
--- a/accounts/usbwallet/wallet.go
+++ b/accounts/usbwallet/wallet.go
@@ -25,12 +25,12 @@ import (
"sync"
"time"
- "github.com/ethereum/go-ethereum"
- "github.com/ethereum/go-ethereum/accounts"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum"
+ "github.com/scroll-tech/go-ethereum/accounts"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/log"
"github.com/karalabe/usb"
)
diff --git a/build/ci.go b/build/ci.go
index 1e2547fbb0..cedfc50b40 100644
--- a/build/ci.go
+++ b/build/ci.go
@@ -59,9 +59,9 @@ import (
"time"
"github.com/cespare/cp"
- "github.com/ethereum/go-ethereum/crypto/signify"
- "github.com/ethereum/go-ethereum/internal/build"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/crypto/signify"
+ "github.com/scroll-tech/go-ethereum/internal/build"
+ "github.com/scroll-tech/go-ethereum/params"
)
var (
@@ -1001,7 +1001,7 @@ func doAndroidArchive(cmdline []string) {
build.MustRun(tc.Go("mod", "download"))
// Build the Android archive and Maven resources
- build.MustRun(gomobileTool("bind", "-ldflags", "-s -w", "--target", "android", "--javapkg", "org.ethereum", "-v", "github.com/ethereum/go-ethereum/mobile"))
+ build.MustRun(gomobileTool("bind", "-ldflags", "-s -w", "--target", "android", "--javapkg", "org.ethereum", "-v", "github.com/scroll-tech/go-ethereum/mobile"))
if *local {
// If we're building locally, copy bundle to build dir and skip Maven
@@ -1130,7 +1130,7 @@ func doXCodeFramework(cmdline []string) {
build.MustRun(tc.Go("mod", "download"))
// Build the iOS XCode framework
- bind := gomobileTool("bind", "-ldflags", "-s -w", "--target", "ios", "-v", "github.com/ethereum/go-ethereum/mobile")
+ bind := gomobileTool("bind", "-ldflags", "-s -w", "--target", "ios", "-v", "github.com/scroll-tech/go-ethereum/mobile")
if *local {
// If we're building locally, use the build folder and stop afterwards
diff --git a/build/deb/ethereum/deb.control b/build/deb/ethereum/deb.control
index 501a32cb45..71b263f9d0 100644
--- a/build/deb/ethereum/deb.control
+++ b/build/deb/ethereum/deb.control
@@ -5,8 +5,8 @@ Maintainer: {{.Author}}
Build-Depends: debhelper (>= 8.0.0), {{.GoBootPackage}}
Standards-Version: 3.9.5
Homepage: https://ethereum.org
-Vcs-Git: git://github.com/ethereum/go-ethereum.git
-Vcs-Browser: https://github.com/ethereum/go-ethereum
+Vcs-Git: git://github.com/scroll-tech/go-ethereum.git
+Vcs-Browser: https://github.com/scroll-tech/go-ethereum
Package: {{.Name}}
Architecture: any
diff --git a/build/mvn.pom b/build/mvn.pom
index 7670246ba9..5c5e291af7 100644
--- a/build/mvn.pom
+++ b/build/mvn.pom
@@ -11,7 +11,7 @@
Android Ethereum Client
Android port of the go-ethereum libraries and node
- https://github.com/ethereum/go-ethereum
+ https://github.com/scroll-tech/go-ethereum
2015
@@ -48,10 +48,10 @@
GitHub Issues
- https://github.com/ethereum/go-ethereum/issues/
+ https://github.com/scroll-tech/go-ethereum/issues/
- https://github.com/ethereum/go-ethereum
+ https://github.com/scroll-tech/go-ethereum
diff --git a/build/nsis.install.nsh b/build/nsis.install.nsh
index 9b73148a44..f47ca1064e 100644
--- a/build/nsis.install.nsh
+++ b/build/nsis.install.nsh
@@ -3,9 +3,9 @@ InstallDir "$InstDir"
OutFile "${OUTPUTFILE}" # set through command line arguments
# Links for "Add/Remove Programs"
-!define HELPURL "https://github.com/ethereum/go-ethereum/issues"
-!define UPDATEURL "https://github.com/ethereum/go-ethereum/releases"
-!define ABOUTURL "https://github.com/ethereum/go-ethereum#ethereum-go"
+!define HELPURL "https://github.com/scroll-tech/go-ethereum/issues"
+!define UPDATEURL "https://github.com/scroll-tech/go-ethereum/releases"
+!define ABOUTURL "https://github.com/scroll-tech/go-ethereum#ethereum-go"
!define /date NOW "%Y%m%d"
PageEx license
diff --git a/build/pod.podspec b/build/pod.podspec
index 2c14c280c7..08c119241e 100644
--- a/build/pod.podspec
+++ b/build/pod.podspec
@@ -2,12 +2,12 @@ Pod::Spec.new do |spec|
spec.name = 'Geth'
spec.version = '{{.Version}}'
spec.license = { :type => 'GNU Lesser General Public License, Version 3.0' }
- spec.homepage = 'https://github.com/ethereum/go-ethereum'
+ spec.homepage = 'https://github.com/scroll-tech/go-ethereum'
spec.authors = { {{range .Contributors}}
'{{.Name}}' => '{{.Email}}',{{end}}
}
spec.summary = 'iOS Ethereum Client'
- spec.source = { :git => 'https://github.com/ethereum/go-ethereum.git', :commit => '{{.Commit}}' }
+ spec.source = { :git => 'https://github.com/scroll-tech/go-ethereum.git', :commit => '{{.Commit}}' }
spec.platform = :ios
spec.ios.deployment_target = '9.0'
diff --git a/build/update-license.go b/build/update-license.go
index aa4d6100d7..49e40fd0bb 100644
--- a/build/update-license.go
+++ b/build/update-license.go
@@ -77,7 +77,7 @@ var (
"signer/rules/deps",
// skip special licenses
- "crypto/secp256k1", // Relicensed to BSD-3 via https://github.com/ethereum/go-ethereum/pull/17225
+ "crypto/secp256k1", // Relicensed to BSD-3 via https://github.com/scroll-tech/go-ethereum/pull/17225
}
// paths with this prefix are licensed as GPL. all other files are LGPL.
diff --git a/cmd/abidump/main.go b/cmd/abidump/main.go
index 4f942749df..e73cecfe32 100644
--- a/cmd/abidump/main.go
+++ b/cmd/abidump/main.go
@@ -23,8 +23,8 @@ import (
"os"
"strings"
- "github.com/ethereum/go-ethereum/signer/core/apitypes"
- "github.com/ethereum/go-ethereum/signer/fourbyte"
+ "github.com/scroll-tech/go-ethereum/signer/core/apitypes"
+ "github.com/scroll-tech/go-ethereum/signer/fourbyte"
)
func init() {
diff --git a/cmd/abigen/main.go b/cmd/abigen/main.go
index 7b3b35e4e5..890f1a6596 100644
--- a/cmd/abigen/main.go
+++ b/cmd/abigen/main.go
@@ -25,13 +25,13 @@ import (
"regexp"
"strings"
- "github.com/ethereum/go-ethereum/accounts/abi"
- "github.com/ethereum/go-ethereum/accounts/abi/bind"
- "github.com/ethereum/go-ethereum/cmd/utils"
- "github.com/ethereum/go-ethereum/common/compiler"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/internal/flags"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/accounts/abi"
+ "github.com/scroll-tech/go-ethereum/accounts/abi/bind"
+ "github.com/scroll-tech/go-ethereum/cmd/utils"
+ "github.com/scroll-tech/go-ethereum/common/compiler"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/internal/flags"
+ "github.com/scroll-tech/go-ethereum/log"
"gopkg.in/urfave/cli.v1"
)
diff --git a/cmd/bootnode/main.go b/cmd/bootnode/main.go
index 036b968ef8..5ba9dda582 100644
--- a/cmd/bootnode/main.go
+++ b/cmd/bootnode/main.go
@@ -24,13 +24,13 @@ import (
"net"
"os"
- "github.com/ethereum/go-ethereum/cmd/utils"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/p2p/discover"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/nat"
- "github.com/ethereum/go-ethereum/p2p/netutil"
+ "github.com/scroll-tech/go-ethereum/cmd/utils"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/p2p/discover"
+ "github.com/scroll-tech/go-ethereum/p2p/enode"
+ "github.com/scroll-tech/go-ethereum/p2p/nat"
+ "github.com/scroll-tech/go-ethereum/p2p/netutil"
)
func main() {
diff --git a/cmd/checkpoint-admin/README.md b/cmd/checkpoint-admin/README.md
index 43e3785ec2..2d1bec28c8 100644
--- a/cmd/checkpoint-admin/README.md
+++ b/cmd/checkpoint-admin/README.md
@@ -18,7 +18,7 @@ However, from a security perspective, the most critical step in a synchronizatio
#### Hardcoded checkpoint
-There are several hardcoded checkpoints in the [source code](https://github.com/ethereum/go-ethereum/blob/master/params/config.go#L38) of the go-ethereum project. These checkpoints are updated by go-ethereum developers when new versions of software are released. Because light client users trust Geth developers to some extent, hardcoded checkpoints in the code can also be considered correct.
+There are several hardcoded checkpoints in the [source code](https://github.com/scroll-tech/go-ethereum/blob/master/params/config.go#L38) of the go-ethereum project. These checkpoints are updated by go-ethereum developers when new versions of software are released. Because light client users trust Geth developers to some extent, hardcoded checkpoints in the code can also be considered correct.
#### Checkpoint oracle
@@ -35,7 +35,7 @@ Checkpoint-admin is a command line tool designed for checkpoint oracle. Users ca
#### Install
```shell
-go get github.com/ethereum/go-ethereum/cmd/checkpoint-admin
+go get github.com/scroll-tech/go-ethereum/cmd/checkpoint-admin
```
#### Deploy
@@ -66,7 +66,7 @@ checkpoint-admin sign --clef --signer --signer --index --hash --oracle
```
-*CHECKPOINT_HASH is obtained based on this [calculation method](https://github.com/ethereum/go-ethereum/blob/master/params/config.go#L251).*
+*CHECKPOINT_HASH is obtained based on this [calculation method](https://github.com/scroll-tech/go-ethereum/blob/master/params/config.go#L251).*
#### Publish
diff --git a/cmd/checkpoint-admin/common.go b/cmd/checkpoint-admin/common.go
index 05a45dfbf9..2ffe5ff963 100644
--- a/cmd/checkpoint-admin/common.go
+++ b/cmd/checkpoint-admin/common.go
@@ -19,15 +19,15 @@ package main
import (
"strconv"
- "github.com/ethereum/go-ethereum/accounts"
- "github.com/ethereum/go-ethereum/accounts/abi/bind"
- "github.com/ethereum/go-ethereum/accounts/external"
- "github.com/ethereum/go-ethereum/cmd/utils"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/contracts/checkpointoracle"
- "github.com/ethereum/go-ethereum/ethclient"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/rpc"
+ "github.com/scroll-tech/go-ethereum/accounts"
+ "github.com/scroll-tech/go-ethereum/accounts/abi/bind"
+ "github.com/scroll-tech/go-ethereum/accounts/external"
+ "github.com/scroll-tech/go-ethereum/cmd/utils"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/contracts/checkpointoracle"
+ "github.com/scroll-tech/go-ethereum/ethclient"
+ "github.com/scroll-tech/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/rpc"
"gopkg.in/urfave/cli.v1"
)
diff --git a/cmd/checkpoint-admin/exec.go b/cmd/checkpoint-admin/exec.go
index 352a96d9e6..01433eb360 100644
--- a/cmd/checkpoint-admin/exec.go
+++ b/cmd/checkpoint-admin/exec.go
@@ -25,17 +25,17 @@ import (
"strings"
"time"
- "github.com/ethereum/go-ethereum/accounts"
- "github.com/ethereum/go-ethereum/cmd/utils"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/contracts/checkpointoracle"
- "github.com/ethereum/go-ethereum/contracts/checkpointoracle/contract"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/ethclient"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/rpc"
+ "github.com/scroll-tech/go-ethereum/accounts"
+ "github.com/scroll-tech/go-ethereum/cmd/utils"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/hexutil"
+ "github.com/scroll-tech/go-ethereum/contracts/checkpointoracle"
+ "github.com/scroll-tech/go-ethereum/contracts/checkpointoracle/contract"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/ethclient"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/rpc"
"gopkg.in/urfave/cli.v1"
)
diff --git a/cmd/checkpoint-admin/main.go b/cmd/checkpoint-admin/main.go
index 0fb5532147..0a034b8933 100644
--- a/cmd/checkpoint-admin/main.go
+++ b/cmd/checkpoint-admin/main.go
@@ -22,9 +22,9 @@ import (
"fmt"
"os"
- "github.com/ethereum/go-ethereum/common/fdlimit"
- "github.com/ethereum/go-ethereum/internal/flags"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/common/fdlimit"
+ "github.com/scroll-tech/go-ethereum/internal/flags"
+ "github.com/scroll-tech/go-ethereum/log"
"gopkg.in/urfave/cli.v1"
)
diff --git a/cmd/checkpoint-admin/status.go b/cmd/checkpoint-admin/status.go
index f613501eb3..eb199fbc40 100644
--- a/cmd/checkpoint-admin/status.go
+++ b/cmd/checkpoint-admin/status.go
@@ -19,8 +19,8 @@ package main
import (
"fmt"
- "github.com/ethereum/go-ethereum/cmd/utils"
- "github.com/ethereum/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/cmd/utils"
+ "github.com/scroll-tech/go-ethereum/common"
"gopkg.in/urfave/cli.v1"
)
diff --git a/cmd/clef/main.go b/cmd/clef/main.go
index 61d2811f65..d1766ecca1 100644
--- a/cmd/clef/main.go
+++ b/cmd/clef/main.go
@@ -35,25 +35,25 @@ import (
"strings"
"time"
- "github.com/ethereum/go-ethereum/accounts"
- "github.com/ethereum/go-ethereum/accounts/keystore"
- "github.com/ethereum/go-ethereum/cmd/utils"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/internal/ethapi"
- "github.com/ethereum/go-ethereum/internal/flags"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/node"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/rlp"
- "github.com/ethereum/go-ethereum/rpc"
- "github.com/ethereum/go-ethereum/signer/core"
- "github.com/ethereum/go-ethereum/signer/core/apitypes"
- "github.com/ethereum/go-ethereum/signer/fourbyte"
- "github.com/ethereum/go-ethereum/signer/rules"
- "github.com/ethereum/go-ethereum/signer/storage"
+ "github.com/scroll-tech/go-ethereum/accounts"
+ "github.com/scroll-tech/go-ethereum/accounts/keystore"
+ "github.com/scroll-tech/go-ethereum/cmd/utils"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/hexutil"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/internal/ethapi"
+ "github.com/scroll-tech/go-ethereum/internal/flags"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/node"
+ "github.com/scroll-tech/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/rpc"
+ "github.com/scroll-tech/go-ethereum/signer/core"
+ "github.com/scroll-tech/go-ethereum/signer/core/apitypes"
+ "github.com/scroll-tech/go-ethereum/signer/fourbyte"
+ "github.com/scroll-tech/go-ethereum/signer/rules"
+ "github.com/scroll-tech/go-ethereum/signer/storage"
"github.com/mattn/go-colorable"
"github.com/mattn/go-isatty"
"gopkg.in/urfave/cli.v1"
@@ -795,7 +795,7 @@ func checkFile(filename string) error {
}
// Check the unix permission bits
// However, on windows, we cannot use the unix perm-bits, see
- // https://github.com/ethereum/go-ethereum/issues/20123
+ // https://github.com/scroll-tech/go-ethereum/issues/20123
if runtime.GOOS != "windows" && info.Mode().Perm()&0377 != 0 {
return fmt.Errorf("file (%v) has insecure file permissions (%v)", filename, info.Mode().String())
}
diff --git a/cmd/clef/tutorial.md b/cmd/clef/tutorial.md
index 3ea662b5d4..f864ed11e7 100644
--- a/cmd/clef/tutorial.md
+++ b/cmd/clef/tutorial.md
@@ -100,9 +100,9 @@ or
{"jsonrpc":"2.0","id":1,"error":{"code":-32000,"message":"Request denied"}}
```
-Apart from listing accounts, you can also *request* creating a new account; signing transactions and data; and recovering signatures. You can find the available methods in the Clef [External API Spec](https://github.com/ethereum/go-ethereum/tree/master/cmd/clef#external-api-1) and the [External API Changelog](https://github.com/ethereum/go-ethereum/blob/master/cmd/clef/extapi_changelog.md).
+Apart from listing accounts, you can also *request* creating a new account; signing transactions and data; and recovering signatures. You can find the available methods in the Clef [External API Spec](https://github.com/scroll-tech/go-ethereum/tree/master/cmd/clef#external-api-1) and the [External API Changelog](https://github.com/scroll-tech/go-ethereum/blob/master/cmd/clef/extapi_changelog.md).
-*Note, the number of things you can do from the External API is deliberately small, since we want to limit the power of remote calls by as much as possible! Clef has an [Internal API](https://github.com/ethereum/go-ethereum/tree/master/cmd/clef#ui-api-1) too for the UI (User Interface) which is much richer and can support custom interfaces on top. But that's out of scope here.*
+*Note, the number of things you can do from the External API is deliberately small, since we want to limit the power of remote calls by as much as possible! Clef has an [Internal API](https://github.com/scroll-tech/go-ethereum/tree/master/cmd/clef#ui-api-1) too for the UI (User Interface) which is much richer and can support custom interfaces on top. But that's out of scope here.*
## Automatic rules
@@ -288,7 +288,7 @@ t=2019-07-01T15:52:23+0300 lvl=info msg=SignData api=signer type=request meta
t=2019-07-01T15:52:23+0300 lvl=info msg=SignData api=signer type=response data= error="Request denied"
```
-For more details on writing automatic rules, please see the [rules spec](https://github.com/ethereum/go-ethereum/blob/master/cmd/clef/rules.md).
+For more details on writing automatic rules, please see the [rules spec](https://github.com/scroll-tech/go-ethereum/blob/master/cmd/clef/rules.md).
## Geth integration
diff --git a/cmd/devp2p/crawl.go b/cmd/devp2p/crawl.go
index 9259b4894c..10d76dd89c 100644
--- a/cmd/devp2p/crawl.go
+++ b/cmd/devp2p/crawl.go
@@ -19,8 +19,8 @@ package main
import (
"time"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/p2p/enode"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/p2p/enode"
)
type crawler struct {
diff --git a/cmd/devp2p/discv4cmd.go b/cmd/devp2p/discv4cmd.go
index 3b6dc09a1c..e4c922de7f 100644
--- a/cmd/devp2p/discv4cmd.go
+++ b/cmd/devp2p/discv4cmd.go
@@ -22,12 +22,12 @@ import (
"strings"
"time"
- "github.com/ethereum/go-ethereum/cmd/devp2p/internal/v4test"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/p2p/discover"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/cmd/devp2p/internal/v4test"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/p2p/discover"
+ "github.com/scroll-tech/go-ethereum/p2p/enode"
+ "github.com/scroll-tech/go-ethereum/params"
"gopkg.in/urfave/cli.v1"
)
diff --git a/cmd/devp2p/discv5cmd.go b/cmd/devp2p/discv5cmd.go
index e20d7c9cfa..48526ec358 100644
--- a/cmd/devp2p/discv5cmd.go
+++ b/cmd/devp2p/discv5cmd.go
@@ -20,9 +20,9 @@ import (
"fmt"
"time"
- "github.com/ethereum/go-ethereum/cmd/devp2p/internal/v5test"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/p2p/discover"
+ "github.com/scroll-tech/go-ethereum/cmd/devp2p/internal/v5test"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/p2p/discover"
"gopkg.in/urfave/cli.v1"
)
diff --git a/cmd/devp2p/dns_cloudflare.go b/cmd/devp2p/dns_cloudflare.go
index d67aaea1a7..915f207743 100644
--- a/cmd/devp2p/dns_cloudflare.go
+++ b/cmd/devp2p/dns_cloudflare.go
@@ -22,8 +22,8 @@ import (
"strings"
"github.com/cloudflare/cloudflare-go"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/p2p/dnsdisc"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/p2p/dnsdisc"
"gopkg.in/urfave/cli.v1"
)
diff --git a/cmd/devp2p/dns_route53.go b/cmd/devp2p/dns_route53.go
index 1d4f975dda..26f5078952 100644
--- a/cmd/devp2p/dns_route53.go
+++ b/cmd/devp2p/dns_route53.go
@@ -30,8 +30,8 @@ import (
"github.com/aws/aws-sdk-go-v2/credentials"
"github.com/aws/aws-sdk-go-v2/service/route53"
"github.com/aws/aws-sdk-go-v2/service/route53/types"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/p2p/dnsdisc"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/p2p/dnsdisc"
"gopkg.in/urfave/cli.v1"
)
diff --git a/cmd/devp2p/dnscmd.go b/cmd/devp2p/dnscmd.go
index 85f28b8cb1..de7aa924ce 100644
--- a/cmd/devp2p/dnscmd.go
+++ b/cmd/devp2p/dnscmd.go
@@ -25,11 +25,11 @@ import (
"path/filepath"
"time"
- "github.com/ethereum/go-ethereum/accounts/keystore"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/console/prompt"
- "github.com/ethereum/go-ethereum/p2p/dnsdisc"
- "github.com/ethereum/go-ethereum/p2p/enode"
+ "github.com/scroll-tech/go-ethereum/accounts/keystore"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/console/prompt"
+ "github.com/scroll-tech/go-ethereum/p2p/dnsdisc"
+ "github.com/scroll-tech/go-ethereum/p2p/enode"
"gopkg.in/urfave/cli.v1"
)
diff --git a/cmd/devp2p/enrcmd.go b/cmd/devp2p/enrcmd.go
index 48ede616ee..9f3bf2f3a8 100644
--- a/cmd/devp2p/enrcmd.go
+++ b/cmd/devp2p/enrcmd.go
@@ -28,9 +28,9 @@ import (
"strconv"
"strings"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/enr"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/p2p/enode"
+ "github.com/scroll-tech/go-ethereum/p2p/enr"
+ "github.com/scroll-tech/go-ethereum/rlp"
"gopkg.in/urfave/cli.v1"
)
diff --git a/cmd/devp2p/internal/ethtest/chain.go b/cmd/devp2p/internal/ethtest/chain.go
index 7dcb412b53..27ee9493b0 100644
--- a/cmd/devp2p/internal/ethtest/chain.go
+++ b/cmd/devp2p/internal/ethtest/chain.go
@@ -26,11 +26,11 @@ import (
"os"
"strings"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/forkid"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/core/forkid"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/rlp"
)
type Chain struct {
diff --git a/cmd/devp2p/internal/ethtest/chain_test.go b/cmd/devp2p/internal/ethtest/chain_test.go
index ec98833ab5..582da14d08 100644
--- a/cmd/devp2p/internal/ethtest/chain_test.go
+++ b/cmd/devp2p/internal/ethtest/chain_test.go
@@ -21,8 +21,8 @@ import (
"strconv"
"testing"
- "github.com/ethereum/go-ethereum/eth/protocols/eth"
- "github.com/ethereum/go-ethereum/p2p"
+ "github.com/scroll-tech/go-ethereum/eth/protocols/eth"
+ "github.com/scroll-tech/go-ethereum/p2p"
"github.com/stretchr/testify/assert"
)
diff --git a/cmd/devp2p/internal/ethtest/helpers.go b/cmd/devp2p/internal/ethtest/helpers.go
index e695cd42d6..e1c447111e 100644
--- a/cmd/devp2p/internal/ethtest/helpers.go
+++ b/cmd/devp2p/internal/ethtest/helpers.go
@@ -24,13 +24,13 @@ import (
"time"
"github.com/davecgh/go-spew/spew"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/eth/protocols/eth"
- "github.com/ethereum/go-ethereum/internal/utesting"
- "github.com/ethereum/go-ethereum/p2p"
- "github.com/ethereum/go-ethereum/p2p/rlpx"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/eth/protocols/eth"
+ "github.com/scroll-tech/go-ethereum/internal/utesting"
+ "github.com/scroll-tech/go-ethereum/p2p"
+ "github.com/scroll-tech/go-ethereum/p2p/rlpx"
)
var (
diff --git a/cmd/devp2p/internal/ethtest/large.go b/cmd/devp2p/internal/ethtest/large.go
index 22421355ab..f9ba51edc1 100644
--- a/cmd/devp2p/internal/ethtest/large.go
+++ b/cmd/devp2p/internal/ethtest/large.go
@@ -20,9 +20,9 @@ import (
"crypto/rand"
"math/big"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/hexutil"
+ "github.com/scroll-tech/go-ethereum/core/types"
)
// largeNumber returns a very large big.Int.
diff --git a/cmd/devp2p/internal/ethtest/suite.go b/cmd/devp2p/internal/ethtest/suite.go
index 28ba4aa767..0e555119ea 100644
--- a/cmd/devp2p/internal/ethtest/suite.go
+++ b/cmd/devp2p/internal/ethtest/suite.go
@@ -19,10 +19,10 @@ package ethtest
import (
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/eth/protocols/eth"
- "github.com/ethereum/go-ethereum/internal/utesting"
- "github.com/ethereum/go-ethereum/p2p/enode"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/eth/protocols/eth"
+ "github.com/scroll-tech/go-ethereum/internal/utesting"
+ "github.com/scroll-tech/go-ethereum/p2p/enode"
)
// Suite represents a structure used to test a node's conformance
diff --git a/cmd/devp2p/internal/ethtest/suite_test.go b/cmd/devp2p/internal/ethtest/suite_test.go
index 6d14404e66..42ebb3c691 100644
--- a/cmd/devp2p/internal/ethtest/suite_test.go
+++ b/cmd/devp2p/internal/ethtest/suite_test.go
@@ -21,11 +21,11 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/eth"
- "github.com/ethereum/go-ethereum/eth/ethconfig"
- "github.com/ethereum/go-ethereum/internal/utesting"
- "github.com/ethereum/go-ethereum/node"
- "github.com/ethereum/go-ethereum/p2p"
+ "github.com/scroll-tech/go-ethereum/eth"
+ "github.com/scroll-tech/go-ethereum/eth/ethconfig"
+ "github.com/scroll-tech/go-ethereum/internal/utesting"
+ "github.com/scroll-tech/go-ethereum/node"
+ "github.com/scroll-tech/go-ethereum/p2p"
)
var (
diff --git a/cmd/devp2p/internal/ethtest/transaction.go b/cmd/devp2p/internal/ethtest/transaction.go
index d2dbe0a7d6..128b272f08 100644
--- a/cmd/devp2p/internal/ethtest/transaction.go
+++ b/cmd/devp2p/internal/ethtest/transaction.go
@@ -22,11 +22,11 @@ import (
"strings"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/internal/utesting"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/internal/utesting"
+ "github.com/scroll-tech/go-ethereum/params"
)
//var faucetAddr = common.HexToAddress("0x71562b71999873DB5b286dF957af199Ec94617F7")
diff --git a/cmd/devp2p/internal/ethtest/types.go b/cmd/devp2p/internal/ethtest/types.go
index e49ea284e9..4aaa06b84a 100644
--- a/cmd/devp2p/internal/ethtest/types.go
+++ b/cmd/devp2p/internal/ethtest/types.go
@@ -20,10 +20,10 @@ import (
"crypto/ecdsa"
"fmt"
- "github.com/ethereum/go-ethereum/eth/protocols/eth"
- "github.com/ethereum/go-ethereum/p2p"
- "github.com/ethereum/go-ethereum/p2p/rlpx"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/eth/protocols/eth"
+ "github.com/scroll-tech/go-ethereum/p2p"
+ "github.com/scroll-tech/go-ethereum/p2p/rlpx"
+ "github.com/scroll-tech/go-ethereum/rlp"
)
type Message interface {
diff --git a/cmd/devp2p/internal/v4test/discv4tests.go b/cmd/devp2p/internal/v4test/discv4tests.go
index 04ad67637a..a1631794f5 100644
--- a/cmd/devp2p/internal/v4test/discv4tests.go
+++ b/cmd/devp2p/internal/v4test/discv4tests.go
@@ -23,9 +23,9 @@ import (
"net"
"time"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/internal/utesting"
- "github.com/ethereum/go-ethereum/p2p/discover/v4wire"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/internal/utesting"
+ "github.com/scroll-tech/go-ethereum/p2p/discover/v4wire"
)
const (
diff --git a/cmd/devp2p/internal/v4test/framework.go b/cmd/devp2p/internal/v4test/framework.go
index 9286594181..4056ebb372 100644
--- a/cmd/devp2p/internal/v4test/framework.go
+++ b/cmd/devp2p/internal/v4test/framework.go
@@ -22,9 +22,9 @@ import (
"net"
"time"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/p2p/discover/v4wire"
- "github.com/ethereum/go-ethereum/p2p/enode"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/p2p/discover/v4wire"
+ "github.com/scroll-tech/go-ethereum/p2p/enode"
)
const waitTime = 300 * time.Millisecond
diff --git a/cmd/devp2p/internal/v5test/discv5tests.go b/cmd/devp2p/internal/v5test/discv5tests.go
index 7866498f73..3cde44d79d 100644
--- a/cmd/devp2p/internal/v5test/discv5tests.go
+++ b/cmd/devp2p/internal/v5test/discv5tests.go
@@ -22,10 +22,10 @@ import (
"sync"
"time"
- "github.com/ethereum/go-ethereum/internal/utesting"
- "github.com/ethereum/go-ethereum/p2p/discover/v5wire"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/netutil"
+ "github.com/scroll-tech/go-ethereum/internal/utesting"
+ "github.com/scroll-tech/go-ethereum/p2p/discover/v5wire"
+ "github.com/scroll-tech/go-ethereum/p2p/enode"
+ "github.com/scroll-tech/go-ethereum/p2p/netutil"
)
// Suite is the discv5 test suite.
diff --git a/cmd/devp2p/internal/v5test/framework.go b/cmd/devp2p/internal/v5test/framework.go
index 9eac37520f..f388b803d9 100644
--- a/cmd/devp2p/internal/v5test/framework.go
+++ b/cmd/devp2p/internal/v5test/framework.go
@@ -24,11 +24,11 @@ import (
"net"
"time"
- "github.com/ethereum/go-ethereum/common/mclock"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/p2p/discover/v5wire"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/enr"
+ "github.com/scroll-tech/go-ethereum/common/mclock"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/p2p/discover/v5wire"
+ "github.com/scroll-tech/go-ethereum/p2p/enode"
+ "github.com/scroll-tech/go-ethereum/p2p/enr"
)
// readError represents an error during packet reading.
diff --git a/cmd/devp2p/keycmd.go b/cmd/devp2p/keycmd.go
index 869b8c2a44..fc36d5cd3b 100644
--- a/cmd/devp2p/keycmd.go
+++ b/cmd/devp2p/keycmd.go
@@ -20,8 +20,8 @@ import (
"fmt"
"net"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/p2p/enode"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/p2p/enode"
"gopkg.in/urfave/cli.v1"
)
diff --git a/cmd/devp2p/main.go b/cmd/devp2p/main.go
index 4a4e905a42..ed9bcccea8 100644
--- a/cmd/devp2p/main.go
+++ b/cmd/devp2p/main.go
@@ -22,9 +22,9 @@ import (
"path/filepath"
"sort"
- "github.com/ethereum/go-ethereum/internal/debug"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/internal/debug"
+ "github.com/scroll-tech/go-ethereum/p2p/enode"
+ "github.com/scroll-tech/go-ethereum/params"
"gopkg.in/urfave/cli.v1"
)
diff --git a/cmd/devp2p/nodeset.go b/cmd/devp2p/nodeset.go
index 1d78e34c73..596b8a25e7 100644
--- a/cmd/devp2p/nodeset.go
+++ b/cmd/devp2p/nodeset.go
@@ -25,8 +25,8 @@ import (
"sort"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/p2p/enode"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/p2p/enode"
)
const jsonIndent = " "
diff --git a/cmd/devp2p/nodesetcmd.go b/cmd/devp2p/nodesetcmd.go
index d65d6314c8..7e12150682 100644
--- a/cmd/devp2p/nodesetcmd.go
+++ b/cmd/devp2p/nodesetcmd.go
@@ -25,10 +25,10 @@ import (
"strings"
"time"
- "github.com/ethereum/go-ethereum/core/forkid"
- "github.com/ethereum/go-ethereum/p2p/enr"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/core/forkid"
+ "github.com/scroll-tech/go-ethereum/p2p/enr"
+ "github.com/scroll-tech/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/rlp"
"gopkg.in/urfave/cli.v1"
)
diff --git a/cmd/devp2p/rlpxcmd.go b/cmd/devp2p/rlpxcmd.go
index 24a16f0b3c..accdf7c547 100644
--- a/cmd/devp2p/rlpxcmd.go
+++ b/cmd/devp2p/rlpxcmd.go
@@ -20,12 +20,12 @@ import (
"fmt"
"net"
- "github.com/ethereum/go-ethereum/cmd/devp2p/internal/ethtest"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/internal/utesting"
- "github.com/ethereum/go-ethereum/p2p"
- "github.com/ethereum/go-ethereum/p2p/rlpx"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/cmd/devp2p/internal/ethtest"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/internal/utesting"
+ "github.com/scroll-tech/go-ethereum/p2p"
+ "github.com/scroll-tech/go-ethereum/p2p/rlpx"
+ "github.com/scroll-tech/go-ethereum/rlp"
"gopkg.in/urfave/cli.v1"
)
diff --git a/cmd/devp2p/runtest.go b/cmd/devp2p/runtest.go
index 4168f8555b..2da30e4b26 100644
--- a/cmd/devp2p/runtest.go
+++ b/cmd/devp2p/runtest.go
@@ -19,9 +19,9 @@ package main
import (
"os"
- "github.com/ethereum/go-ethereum/cmd/devp2p/internal/v4test"
- "github.com/ethereum/go-ethereum/internal/utesting"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/cmd/devp2p/internal/v4test"
+ "github.com/scroll-tech/go-ethereum/internal/utesting"
+ "github.com/scroll-tech/go-ethereum/log"
"gopkg.in/urfave/cli.v1"
)
diff --git a/cmd/ethkey/changepassword.go b/cmd/ethkey/changepassword.go
index b9402c2f96..d9403333e0 100644
--- a/cmd/ethkey/changepassword.go
+++ b/cmd/ethkey/changepassword.go
@@ -21,8 +21,8 @@ import (
"io/ioutil"
"strings"
- "github.com/ethereum/go-ethereum/accounts/keystore"
- "github.com/ethereum/go-ethereum/cmd/utils"
+ "github.com/scroll-tech/go-ethereum/accounts/keystore"
+ "github.com/scroll-tech/go-ethereum/cmd/utils"
"gopkg.in/urfave/cli.v1"
)
diff --git a/cmd/ethkey/generate.go b/cmd/ethkey/generate.go
index 629d23da5b..a5ad998b43 100644
--- a/cmd/ethkey/generate.go
+++ b/cmd/ethkey/generate.go
@@ -23,9 +23,9 @@ import (
"os"
"path/filepath"
- "github.com/ethereum/go-ethereum/accounts/keystore"
- "github.com/ethereum/go-ethereum/cmd/utils"
- "github.com/ethereum/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/accounts/keystore"
+ "github.com/scroll-tech/go-ethereum/cmd/utils"
+ "github.com/scroll-tech/go-ethereum/crypto"
"github.com/google/uuid"
"gopkg.in/urfave/cli.v1"
)
diff --git a/cmd/ethkey/inspect.go b/cmd/ethkey/inspect.go
index b646e43aa5..7c24d08f22 100644
--- a/cmd/ethkey/inspect.go
+++ b/cmd/ethkey/inspect.go
@@ -21,9 +21,9 @@ import (
"fmt"
"io/ioutil"
- "github.com/ethereum/go-ethereum/accounts/keystore"
- "github.com/ethereum/go-ethereum/cmd/utils"
- "github.com/ethereum/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/accounts/keystore"
+ "github.com/scroll-tech/go-ethereum/cmd/utils"
+ "github.com/scroll-tech/go-ethereum/crypto"
"gopkg.in/urfave/cli.v1"
)
diff --git a/cmd/ethkey/main.go b/cmd/ethkey/main.go
index 6db39174c4..b942971493 100644
--- a/cmd/ethkey/main.go
+++ b/cmd/ethkey/main.go
@@ -20,7 +20,7 @@ import (
"fmt"
"os"
- "github.com/ethereum/go-ethereum/internal/flags"
+ "github.com/scroll-tech/go-ethereum/internal/flags"
"gopkg.in/urfave/cli.v1"
)
diff --git a/cmd/ethkey/message.go b/cmd/ethkey/message.go
index 69c8cf0923..30ba99595f 100644
--- a/cmd/ethkey/message.go
+++ b/cmd/ethkey/message.go
@@ -21,10 +21,10 @@ import (
"fmt"
"io/ioutil"
- "github.com/ethereum/go-ethereum/accounts/keystore"
- "github.com/ethereum/go-ethereum/cmd/utils"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/accounts/keystore"
+ "github.com/scroll-tech/go-ethereum/cmd/utils"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/crypto"
"gopkg.in/urfave/cli.v1"
)
diff --git a/cmd/ethkey/run_test.go b/cmd/ethkey/run_test.go
index 6006f6b5bb..e00be7caae 100644
--- a/cmd/ethkey/run_test.go
+++ b/cmd/ethkey/run_test.go
@@ -22,7 +22,7 @@ import (
"testing"
"github.com/docker/docker/pkg/reexec"
- "github.com/ethereum/go-ethereum/internal/cmdtest"
+ "github.com/scroll-tech/go-ethereum/internal/cmdtest"
)
type testEthkey struct {
diff --git a/cmd/ethkey/utils.go b/cmd/ethkey/utils.go
index f2986e8ee9..a7d1cf5561 100644
--- a/cmd/ethkey/utils.go
+++ b/cmd/ethkey/utils.go
@@ -22,8 +22,8 @@ import (
"io/ioutil"
"strings"
- "github.com/ethereum/go-ethereum/cmd/utils"
- "github.com/ethereum/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/cmd/utils"
+ "github.com/scroll-tech/go-ethereum/crypto"
"gopkg.in/urfave/cli.v1"
)
diff --git a/cmd/evm/compiler.go b/cmd/evm/compiler.go
index 40ad9313c5..4512baa111 100644
--- a/cmd/evm/compiler.go
+++ b/cmd/evm/compiler.go
@@ -21,7 +21,7 @@ import (
"fmt"
"io/ioutil"
- "github.com/ethereum/go-ethereum/cmd/evm/internal/compiler"
+ "github.com/scroll-tech/go-ethereum/cmd/evm/internal/compiler"
"gopkg.in/urfave/cli.v1"
)
diff --git a/cmd/evm/disasm.go b/cmd/evm/disasm.go
index f9719497fe..076f55164e 100644
--- a/cmd/evm/disasm.go
+++ b/cmd/evm/disasm.go
@@ -22,7 +22,7 @@ import (
"io/ioutil"
"strings"
- "github.com/ethereum/go-ethereum/core/asm"
+ "github.com/scroll-tech/go-ethereum/core/asm"
"gopkg.in/urfave/cli.v1"
)
diff --git a/cmd/evm/internal/compiler/compiler.go b/cmd/evm/internal/compiler/compiler.go
index 54981b6697..8a4687bfa0 100644
--- a/cmd/evm/internal/compiler/compiler.go
+++ b/cmd/evm/internal/compiler/compiler.go
@@ -20,7 +20,7 @@ import (
"errors"
"fmt"
- "github.com/ethereum/go-ethereum/core/asm"
+ "github.com/scroll-tech/go-ethereum/core/asm"
)
func Compile(fn string, src []byte, debug bool) (string, error) {
diff --git a/cmd/evm/internal/t8ntool/block.go b/cmd/evm/internal/t8ntool/block.go
index d4edd33bde..6bddd730e6 100644
--- a/cmd/evm/internal/t8ntool/block.go
+++ b/cmd/evm/internal/t8ntool/block.go
@@ -24,15 +24,15 @@ import (
"math/big"
"os"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/common/math"
- "github.com/ethereum/go-ethereum/consensus/clique"
- "github.com/ethereum/go-ethereum/consensus/ethash"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/hexutil"
+ "github.com/scroll-tech/go-ethereum/common/math"
+ "github.com/scroll-tech/go-ethereum/consensus/clique"
+ "github.com/scroll-tech/go-ethereum/consensus/ethash"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/rlp"
"gopkg.in/urfave/cli.v1"
)
diff --git a/cmd/evm/internal/t8ntool/execution.go b/cmd/evm/internal/t8ntool/execution.go
index dfdde42173..705481143d 100644
--- a/cmd/evm/internal/t8ntool/execution.go
+++ b/cmd/evm/internal/t8ntool/execution.go
@@ -21,21 +21,21 @@ import (
"math/big"
"os"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/math"
- "github.com/ethereum/go-ethereum/consensus/ethash"
- "github.com/ethereum/go-ethereum/consensus/misc"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/state"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/core/vm"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/rlp"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/math"
+ "github.com/scroll-tech/go-ethereum/consensus/ethash"
+ "github.com/scroll-tech/go-ethereum/consensus/misc"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/core/state"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/core/vm"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/ethdb"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/trie"
"golang.org/x/crypto/sha3"
)
diff --git a/cmd/evm/internal/t8ntool/flags.go b/cmd/evm/internal/t8ntool/flags.go
index b6054ea562..65ae86cb45 100644
--- a/cmd/evm/internal/t8ntool/flags.go
+++ b/cmd/evm/internal/t8ntool/flags.go
@@ -20,8 +20,8 @@ import (
"fmt"
"strings"
- "github.com/ethereum/go-ethereum/core/vm"
- "github.com/ethereum/go-ethereum/tests"
+ "github.com/scroll-tech/go-ethereum/core/vm"
+ "github.com/scroll-tech/go-ethereum/tests"
"gopkg.in/urfave/cli.v1"
)
diff --git a/cmd/evm/internal/t8ntool/gen_header.go b/cmd/evm/internal/t8ntool/gen_header.go
index 196e49dd71..86aee62fb7 100644
--- a/cmd/evm/internal/t8ntool/gen_header.go
+++ b/cmd/evm/internal/t8ntool/gen_header.go
@@ -7,10 +7,10 @@ import (
"errors"
"math/big"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/common/math"
- "github.com/ethereum/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/hexutil"
+ "github.com/scroll-tech/go-ethereum/common/math"
+ "github.com/scroll-tech/go-ethereum/core/types"
)
var _ = (*headerMarshaling)(nil)
diff --git a/cmd/evm/internal/t8ntool/gen_stenv.go b/cmd/evm/internal/t8ntool/gen_stenv.go
index 1bb3c6a46b..48d9f0eabf 100644
--- a/cmd/evm/internal/t8ntool/gen_stenv.go
+++ b/cmd/evm/internal/t8ntool/gen_stenv.go
@@ -7,8 +7,8 @@ import (
"errors"
"math/big"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/math"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/math"
)
var _ = (*stEnvMarshaling)(nil)
diff --git a/cmd/evm/internal/t8ntool/transaction.go b/cmd/evm/internal/t8ntool/transaction.go
index 6f1c964ada..053614e33f 100644
--- a/cmd/evm/internal/t8ntool/transaction.go
+++ b/cmd/evm/internal/t8ntool/transaction.go
@@ -24,14 +24,14 @@ import (
"os"
"strings"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/rlp"
- "github.com/ethereum/go-ethereum/tests"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/hexutil"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/tests"
"gopkg.in/urfave/cli.v1"
)
diff --git a/cmd/evm/internal/t8ntool/transition.go b/cmd/evm/internal/t8ntool/transition.go
index edb439425e..99e8ade398 100644
--- a/cmd/evm/internal/t8ntool/transition.go
+++ b/cmd/evm/internal/t8ntool/transition.go
@@ -27,17 +27,17 @@ import (
"path"
"strings"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/state"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/core/vm"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/rlp"
- "github.com/ethereum/go-ethereum/tests"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/hexutil"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/core/state"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/core/vm"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/tests"
"gopkg.in/urfave/cli.v1"
)
diff --git a/cmd/evm/main.go b/cmd/evm/main.go
index 2f404d48e9..7d615f8d44 100644
--- a/cmd/evm/main.go
+++ b/cmd/evm/main.go
@@ -22,9 +22,9 @@ import (
"math/big"
"os"
- "github.com/ethereum/go-ethereum/cmd/evm/internal/t8ntool"
- "github.com/ethereum/go-ethereum/cmd/utils"
- "github.com/ethereum/go-ethereum/internal/flags"
+ "github.com/scroll-tech/go-ethereum/cmd/evm/internal/t8ntool"
+ "github.com/scroll-tech/go-ethereum/cmd/utils"
+ "github.com/scroll-tech/go-ethereum/internal/flags"
"gopkg.in/urfave/cli.v1"
)
diff --git a/cmd/evm/runner.go b/cmd/evm/runner.go
index 447bb2c2e6..043d86fde1 100644
--- a/cmd/evm/runner.go
+++ b/cmd/evm/runner.go
@@ -28,16 +28,16 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/cmd/evm/internal/compiler"
- "github.com/ethereum/go-ethereum/cmd/utils"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/state"
- "github.com/ethereum/go-ethereum/core/vm"
- "github.com/ethereum/go-ethereum/core/vm/runtime"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/cmd/evm/internal/compiler"
+ "github.com/scroll-tech/go-ethereum/cmd/utils"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/core/state"
+ "github.com/scroll-tech/go-ethereum/core/vm"
+ "github.com/scroll-tech/go-ethereum/core/vm/runtime"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/params"
"gopkg.in/urfave/cli.v1"
)
diff --git a/cmd/evm/staterunner.go b/cmd/evm/staterunner.go
index 5e9bf696b6..010c297010 100644
--- a/cmd/evm/staterunner.go
+++ b/cmd/evm/staterunner.go
@@ -23,10 +23,10 @@ import (
"io/ioutil"
"os"
- "github.com/ethereum/go-ethereum/core/state"
- "github.com/ethereum/go-ethereum/core/vm"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/tests"
+ "github.com/scroll-tech/go-ethereum/core/state"
+ "github.com/scroll-tech/go-ethereum/core/vm"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/tests"
"gopkg.in/urfave/cli.v1"
)
diff --git a/cmd/evm/t8n_test.go b/cmd/evm/t8n_test.go
index 3f0bd3185f..39db083dff 100644
--- a/cmd/evm/t8n_test.go
+++ b/cmd/evm/t8n_test.go
@@ -9,8 +9,8 @@ import (
"testing"
"github.com/docker/docker/pkg/reexec"
- "github.com/ethereum/go-ethereum/cmd/evm/internal/t8ntool"
- "github.com/ethereum/go-ethereum/internal/cmdtest"
+ "github.com/scroll-tech/go-ethereum/cmd/evm/internal/t8ntool"
+ "github.com/scroll-tech/go-ethereum/internal/cmdtest"
)
func TestMain(m *testing.M) {
diff --git a/cmd/faucet/faucet.go b/cmd/faucet/faucet.go
index 2d9d7a1e99..5b731a2cdc 100644
--- a/cmd/faucet/faucet.go
+++ b/cmd/faucet/faucet.go
@@ -41,23 +41,23 @@ import (
"sync"
"time"
- "github.com/ethereum/go-ethereum/accounts"
- "github.com/ethereum/go-ethereum/accounts/keystore"
- "github.com/ethereum/go-ethereum/cmd/utils"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/eth/downloader"
- "github.com/ethereum/go-ethereum/eth/ethconfig"
- "github.com/ethereum/go-ethereum/ethclient"
- "github.com/ethereum/go-ethereum/ethstats"
- "github.com/ethereum/go-ethereum/les"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/node"
- "github.com/ethereum/go-ethereum/p2p"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/nat"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/accounts"
+ "github.com/scroll-tech/go-ethereum/accounts/keystore"
+ "github.com/scroll-tech/go-ethereum/cmd/utils"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/eth/downloader"
+ "github.com/scroll-tech/go-ethereum/eth/ethconfig"
+ "github.com/scroll-tech/go-ethereum/ethclient"
+ "github.com/scroll-tech/go-ethereum/ethstats"
+ "github.com/scroll-tech/go-ethereum/les"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/node"
+ "github.com/scroll-tech/go-ethereum/p2p"
+ "github.com/scroll-tech/go-ethereum/p2p/enode"
+ "github.com/scroll-tech/go-ethereum/p2p/nat"
+ "github.com/scroll-tech/go-ethereum/params"
"github.com/gorilla/websocket"
)
@@ -469,7 +469,7 @@ func (f *faucet) apiHandler(w http.ResponseWriter, r *http.Request) {
id = username
default:
//lint:ignore ST1005 This error is to be displayed in the browser
- err = errors.New("Something funky happened, please open an issue at https://github.com/ethereum/go-ethereum/issues")
+ err = errors.New("Something funky happened, please open an issue at https://github.com/scroll-tech/go-ethereum/issues")
}
if err != nil {
if err = sendError(wsconn, err); err != nil {
diff --git a/cmd/faucet/faucet_test.go b/cmd/faucet/faucet_test.go
index 58a1f22b54..87aee33b21 100644
--- a/cmd/faucet/faucet_test.go
+++ b/cmd/faucet/faucet_test.go
@@ -19,7 +19,7 @@ package main
import (
"testing"
- "github.com/ethereum/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common"
)
func TestFacebook(t *testing.T) {
diff --git a/cmd/geth/accountcmd.go b/cmd/geth/accountcmd.go
index e33b9eb0fb..9a2104655a 100644
--- a/cmd/geth/accountcmd.go
+++ b/cmd/geth/accountcmd.go
@@ -20,11 +20,11 @@ import (
"fmt"
"io/ioutil"
- "github.com/ethereum/go-ethereum/accounts"
- "github.com/ethereum/go-ethereum/accounts/keystore"
- "github.com/ethereum/go-ethereum/cmd/utils"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/accounts"
+ "github.com/scroll-tech/go-ethereum/accounts/keystore"
+ "github.com/scroll-tech/go-ethereum/cmd/utils"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/log"
"gopkg.in/urfave/cli.v1"
)
diff --git a/cmd/geth/accountcmd_test.go b/cmd/geth/accountcmd_test.go
index 9455eeda36..0b247747a4 100644
--- a/cmd/geth/accountcmd_test.go
+++ b/cmd/geth/accountcmd_test.go
@@ -216,7 +216,7 @@ Fatal: Failed to unlock account f466859ead1932d743d622cb74fc058882e8648a (could
`)
}
-// https://github.com/ethereum/go-ethereum/issues/1785
+// https://github.com/scroll-tech/go-ethereum/issues/1785
func TestUnlockFlagMultiIndex(t *testing.T) {
geth := runMinimalGeth(t, "--port", "0", "--ipcdisable", "--datadir", tmpDatadirWithKeystore(t),
"--unlock", "f466859ead1932d743d622cb74fc058882e8648a", "--unlock", "0,2", "js", "testdata/empty.js")
diff --git a/cmd/geth/chaincmd.go b/cmd/geth/chaincmd.go
index 6077c43cc0..31201c319d 100644
--- a/cmd/geth/chaincmd.go
+++ b/cmd/geth/chaincmd.go
@@ -26,18 +26,18 @@ import (
"sync/atomic"
"time"
- "github.com/ethereum/go-ethereum/cmd/utils"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/state"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/metrics"
- "github.com/ethereum/go-ethereum/node"
+ "github.com/scroll-tech/go-ethereum/cmd/utils"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/hexutil"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/core/state"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/ethdb"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/metrics"
+ "github.com/scroll-tech/go-ethereum/node"
"gopkg.in/urfave/cli.v1"
)
diff --git a/cmd/geth/config.go b/cmd/geth/config.go
index 08b9a1154f..9ef93fa9fa 100644
--- a/cmd/geth/config.go
+++ b/cmd/geth/config.go
@@ -27,18 +27,18 @@ import (
"gopkg.in/urfave/cli.v1"
- "github.com/ethereum/go-ethereum/accounts/external"
- "github.com/ethereum/go-ethereum/accounts/keystore"
- "github.com/ethereum/go-ethereum/accounts/scwallet"
- "github.com/ethereum/go-ethereum/accounts/usbwallet"
- "github.com/ethereum/go-ethereum/cmd/utils"
- "github.com/ethereum/go-ethereum/eth/catalyst"
- "github.com/ethereum/go-ethereum/eth/ethconfig"
- "github.com/ethereum/go-ethereum/internal/ethapi"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/metrics"
- "github.com/ethereum/go-ethereum/node"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/accounts/external"
+ "github.com/scroll-tech/go-ethereum/accounts/keystore"
+ "github.com/scroll-tech/go-ethereum/accounts/scwallet"
+ "github.com/scroll-tech/go-ethereum/accounts/usbwallet"
+ "github.com/scroll-tech/go-ethereum/cmd/utils"
+ "github.com/scroll-tech/go-ethereum/eth/catalyst"
+ "github.com/scroll-tech/go-ethereum/eth/ethconfig"
+ "github.com/scroll-tech/go-ethereum/internal/ethapi"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/metrics"
+ "github.com/scroll-tech/go-ethereum/node"
+ "github.com/scroll-tech/go-ethereum/params"
"github.com/naoina/toml"
)
diff --git a/cmd/geth/consolecmd.go b/cmd/geth/consolecmd.go
index 8a767241e9..ad1e10496a 100644
--- a/cmd/geth/consolecmd.go
+++ b/cmd/geth/consolecmd.go
@@ -22,10 +22,10 @@ import (
"path/filepath"
"strings"
- "github.com/ethereum/go-ethereum/cmd/utils"
- "github.com/ethereum/go-ethereum/console"
- "github.com/ethereum/go-ethereum/node"
- "github.com/ethereum/go-ethereum/rpc"
+ "github.com/scroll-tech/go-ethereum/cmd/utils"
+ "github.com/scroll-tech/go-ethereum/console"
+ "github.com/scroll-tech/go-ethereum/node"
+ "github.com/scroll-tech/go-ethereum/rpc"
"gopkg.in/urfave/cli.v1"
)
diff --git a/cmd/geth/consolecmd_test.go b/cmd/geth/consolecmd_test.go
index 845ede2f9c..96777711cc 100644
--- a/cmd/geth/consolecmd_test.go
+++ b/cmd/geth/consolecmd_test.go
@@ -27,7 +27,7 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/params"
)
const (
diff --git a/cmd/geth/dao_test.go b/cmd/geth/dao_test.go
index b7f26b3652..851acb0eac 100644
--- a/cmd/geth/dao_test.go
+++ b/cmd/geth/dao_test.go
@@ -23,9 +23,9 @@ import (
"path/filepath"
"testing"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/params"
)
// Genesis block for nodes which don't care about the DAO fork (i.e. not configured)
diff --git a/cmd/geth/dbcmd.go b/cmd/geth/dbcmd.go
index c2c42276b5..542d57cd37 100644
--- a/cmd/geth/dbcmd.go
+++ b/cmd/geth/dbcmd.go
@@ -29,14 +29,14 @@ import (
"syscall"
"time"
- "github.com/ethereum/go-ethereum/cmd/utils"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/console/prompt"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/scroll-tech/go-ethereum/cmd/utils"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/hexutil"
+ "github.com/scroll-tech/go-ethereum/console/prompt"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/ethdb"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/trie"
"gopkg.in/urfave/cli.v1"
)
diff --git a/cmd/geth/les_test.go b/cmd/geth/les_test.go
index 151c12c68c..c28b3e2344 100644
--- a/cmd/geth/les_test.go
+++ b/cmd/geth/les_test.go
@@ -11,8 +11,8 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/p2p"
- "github.com/ethereum/go-ethereum/rpc"
+ "github.com/scroll-tech/go-ethereum/p2p"
+ "github.com/scroll-tech/go-ethereum/rpc"
)
type gethrpc struct {
diff --git a/cmd/geth/main.go b/cmd/geth/main.go
index 8584238f5a..6a823b01ee 100644
--- a/cmd/geth/main.go
+++ b/cmd/geth/main.go
@@ -25,24 +25,24 @@ import (
"strings"
"time"
- "github.com/ethereum/go-ethereum/accounts"
- "github.com/ethereum/go-ethereum/accounts/keystore"
- "github.com/ethereum/go-ethereum/cmd/utils"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/console/prompt"
- "github.com/ethereum/go-ethereum/eth"
- "github.com/ethereum/go-ethereum/eth/downloader"
- "github.com/ethereum/go-ethereum/ethclient"
- "github.com/ethereum/go-ethereum/internal/debug"
- "github.com/ethereum/go-ethereum/internal/ethapi"
- "github.com/ethereum/go-ethereum/internal/flags"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/metrics"
- "github.com/ethereum/go-ethereum/node"
+ "github.com/scroll-tech/go-ethereum/accounts"
+ "github.com/scroll-tech/go-ethereum/accounts/keystore"
+ "github.com/scroll-tech/go-ethereum/cmd/utils"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/console/prompt"
+ "github.com/scroll-tech/go-ethereum/eth"
+ "github.com/scroll-tech/go-ethereum/eth/downloader"
+ "github.com/scroll-tech/go-ethereum/ethclient"
+ "github.com/scroll-tech/go-ethereum/internal/debug"
+ "github.com/scroll-tech/go-ethereum/internal/ethapi"
+ "github.com/scroll-tech/go-ethereum/internal/flags"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/metrics"
+ "github.com/scroll-tech/go-ethereum/node"
// Force-load the tracer engines to trigger registration
- _ "github.com/ethereum/go-ethereum/eth/tracers/js"
- _ "github.com/ethereum/go-ethereum/eth/tracers/native"
+ _ "github.com/scroll-tech/go-ethereum/eth/tracers/js"
+ _ "github.com/scroll-tech/go-ethereum/eth/tracers/native"
"gopkg.in/urfave/cli.v1"
)
diff --git a/cmd/geth/misccmd.go b/cmd/geth/misccmd.go
index b347d31d97..2a8b65d081 100644
--- a/cmd/geth/misccmd.go
+++ b/cmd/geth/misccmd.go
@@ -23,9 +23,9 @@ import (
"strconv"
"strings"
- "github.com/ethereum/go-ethereum/cmd/utils"
- "github.com/ethereum/go-ethereum/consensus/ethash"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/cmd/utils"
+ "github.com/scroll-tech/go-ethereum/consensus/ethash"
+ "github.com/scroll-tech/go-ethereum/params"
"gopkg.in/urfave/cli.v1"
)
diff --git a/cmd/geth/run_test.go b/cmd/geth/run_test.go
index 527c38a657..99ac2fee06 100644
--- a/cmd/geth/run_test.go
+++ b/cmd/geth/run_test.go
@@ -25,8 +25,8 @@ import (
"time"
"github.com/docker/docker/pkg/reexec"
- "github.com/ethereum/go-ethereum/internal/cmdtest"
- "github.com/ethereum/go-ethereum/rpc"
+ "github.com/scroll-tech/go-ethereum/internal/cmdtest"
+ "github.com/scroll-tech/go-ethereum/rpc"
)
func tmpdir(t *testing.T) string {
diff --git a/cmd/geth/snapshot.go b/cmd/geth/snapshot.go
index bd2c2443a6..9b76661133 100644
--- a/cmd/geth/snapshot.go
+++ b/cmd/geth/snapshot.go
@@ -23,17 +23,17 @@ import (
"os"
"time"
- "github.com/ethereum/go-ethereum/cmd/utils"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/state"
- "github.com/ethereum/go-ethereum/core/state/pruner"
- "github.com/ethereum/go-ethereum/core/state/snapshot"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/rlp"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/scroll-tech/go-ethereum/cmd/utils"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/core/state"
+ "github.com/scroll-tech/go-ethereum/core/state/pruner"
+ "github.com/scroll-tech/go-ethereum/core/state/snapshot"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/trie"
cli "gopkg.in/urfave/cli.v1"
)
diff --git a/cmd/geth/testdata/vcheck/data.json b/cmd/geth/testdata/vcheck/data.json
index e7ee2bf7e4..9ab4ce2d7a 100644
--- a/cmd/geth/testdata/vcheck/data.json
+++ b/cmd/geth/testdata/vcheck/data.json
@@ -5,9 +5,9 @@
"summary": "Mining nodes will generate erroneous PoW on epochs > `385`.",
"description": "A mining flaw could cause miners to erroneously calculate PoW, due to an index overflow, if DAG size is exceeding the maximum 32 bit unsigned value.\n\nThis occurred on the ETC chain on 2020-11-06. This is likely to trigger for ETH mainnet around block `11550000`/epoch `385`, slated to occur early January 2021.\n\nThis issue is relevant only for miners, non-mining nodes are unaffected, since non-mining nodes use a smaller verification cache instead of a full DAG.",
"links": [
- "https://github.com/ethereum/go-ethereum/pull/21793",
+ "https://github.com/scroll-tech/go-ethereum/pull/21793",
"https://blog.ethereum.org/2020/11/12/geth_security_release/",
- "https://github.com/ethereum/go-ethereum/commit/567d41d9363706b4b13ce0903804e8acf214af49"
+ "https://github.com/scroll-tech/go-ethereum/commit/567d41d9363706b4b13ce0903804e8acf214af49"
],
"introduced": "v1.6.0",
"fixed": "v1.9.24",
diff --git a/cmd/geth/testdata/vcheck/vulnerabilities.json b/cmd/geth/testdata/vcheck/vulnerabilities.json
index 92de0c9ccc..ee00a7baf4 100644
--- a/cmd/geth/testdata/vcheck/vulnerabilities.json
+++ b/cmd/geth/testdata/vcheck/vulnerabilities.json
@@ -5,10 +5,10 @@
"summary": "Mining nodes will generate erroneous PoW on epochs > `385`.",
"description": "A mining flaw could cause miners to erroneously calculate PoW, due to an index overflow, if DAG size is exceeding the maximum 32 bit unsigned value.\n\nThis occurred on the ETC chain on 2020-11-06. This is likely to trigger for ETH mainnet around block `11550000`/epoch `385`, slated to occur early January 2021.\n\nThis issue is relevant only for miners, non-mining nodes are unaffected, since non-mining nodes use a smaller verification cache instead of a full DAG.",
"links": [
- "https://github.com/ethereum/go-ethereum/pull/21793",
+ "https://github.com/scroll-tech/go-ethereum/pull/21793",
"https://blog.ethereum.org/2020/11/12/geth_security_release/",
- "https://github.com/ethereum/go-ethereum/commit/567d41d9363706b4b13ce0903804e8acf214af49",
- "https://github.com/ethereum/go-ethereum/security/advisories/GHSA-v592-xf75-856p"
+ "https://github.com/scroll-tech/go-ethereum/commit/567d41d9363706b4b13ce0903804e8acf214af49",
+ "https://github.com/scroll-tech/go-ethereum/security/advisories/GHSA-v592-xf75-856p"
],
"introduced": "v1.6.0",
"fixed": "v1.9.24",
@@ -26,7 +26,7 @@
"https://blog.ethereum.org/2020/11/12/geth_security_release/",
"https://groups.google.com/g/golang-announce/c/NpBGTTmKzpM",
"https://github.com/golang/go/issues/42552",
- "https://github.com/ethereum/go-ethereum/security/advisories/GHSA-m6gx-rhvj-fh52"
+ "https://github.com/scroll-tech/go-ethereum/security/advisories/GHSA-m6gx-rhvj-fh52"
],
"introduced": "v0.0.0",
"fixed": "v1.9.24",
@@ -42,7 +42,7 @@
"description": "Geth erroneously performed a 'shallow' copy when the precompiled `datacopy` (at `0x00...04`) was invoked. An attacker could deploy a contract that uses the shallow copy to corrupt the contents of the `RETURNDATA`, thus causing a consensus failure.",
"links": [
"https://blog.ethereum.org/2020/11/12/geth_security_release/",
- "https://github.com/ethereum/go-ethereum/security/advisories/GHSA-69v6-xc2j-r2jf"
+ "https://github.com/scroll-tech/go-ethereum/security/advisories/GHSA-69v6-xc2j-r2jf"
],
"introduced": "v1.9.7",
"fixed": "v1.9.17",
@@ -55,13 +55,13 @@
"name": "Geth DoS via MULMOD",
"uid": "GETH-2020-04",
"summary": "A denial-of-service issue can be used to crash Geth nodes during block processing",
- "description": "Affected versions suffer from a vulnerability which can be exploited through the `MULMOD` operation, by specifying a modulo of `0`: `mulmod(a,b,0)`, causing a `panic` in the underlying library. \nThe crash was in the `uint256` library, where a buffer [underflowed](https://github.com/holiman/uint256/blob/4ce82e695c10ddad57215bdbeafb68b8c5df2c30/uint256.go#L442).\n\n\tif `d == 0`, `dLen` remains `0`\n\nand https://github.com/holiman/uint256/blob/4ce82e695c10ddad57215bdbeafb68b8c5df2c30/uint256.go#L451 will try to access index `[-1]`.\n\nThe `uint256` library was first merged in this [commit](https://github.com/ethereum/go-ethereum/commit/cf6674539c589f80031f3371a71c6a80addbe454), on 2020-06-08. \nExploiting this vulnerabilty would cause all vulnerable nodes to drop off the network. \n\nThe issue was brought to our attention through a [bug report](https://github.com/ethereum/go-ethereum/issues/21367), showing a `panic` occurring on sync from genesis on the Ropsten network.\n \nIt was estimated that the least obvious way to fix this would be to merge the fix into `uint256`, make a new release of that library and then update the geth-dependency.\n",
+ "description": "Affected versions suffer from a vulnerability which can be exploited through the `MULMOD` operation, by specifying a modulo of `0`: `mulmod(a,b,0)`, causing a `panic` in the underlying library. \nThe crash was in the `uint256` library, where a buffer [underflowed](https://github.com/holiman/uint256/blob/4ce82e695c10ddad57215bdbeafb68b8c5df2c30/uint256.go#L442).\n\n\tif `d == 0`, `dLen` remains `0`\n\nand https://github.com/holiman/uint256/blob/4ce82e695c10ddad57215bdbeafb68b8c5df2c30/uint256.go#L451 will try to access index `[-1]`.\n\nThe `uint256` library was first merged in this [commit](https://github.com/scroll-tech/go-ethereum/commit/cf6674539c589f80031f3371a71c6a80addbe454), on 2020-06-08. \nExploiting this vulnerabilty would cause all vulnerable nodes to drop off the network. \n\nThe issue was brought to our attention through a [bug report](https://github.com/scroll-tech/go-ethereum/issues/21367), showing a `panic` occurring on sync from genesis on the Ropsten network.\n \nIt was estimated that the least obvious way to fix this would be to merge the fix into `uint256`, make a new release of that library and then update the geth-dependency.\n",
"links": [
"https://blog.ethereum.org/2020/11/12/geth_security_release/",
- "https://github.com/ethereum/go-ethereum/security/advisories/GHSA-jm5c-rv3w-w83m",
+ "https://github.com/scroll-tech/go-ethereum/security/advisories/GHSA-jm5c-rv3w-w83m",
"https://github.com/holiman/uint256/releases/tag/v1.1.1",
"https://github.com/holiman/uint256/pull/80",
- "https://github.com/ethereum/go-ethereum/pull/21368"
+ "https://github.com/scroll-tech/go-ethereum/pull/21368"
],
"introduced": "v1.9.16",
"fixed": "v1.9.18",
@@ -76,8 +76,8 @@
"summary": "A DoS vulnerability can make a LES server crash.",
"description": "A DoS vulnerability can make a LES server crash via malicious GetProofsV2 request from a connected LES client.\n\nThe vulnerability was patched in #21896.\n\nThis vulnerability only concern users explicitly running geth as a light server",
"links": [
- "https://github.com/ethereum/go-ethereum/security/advisories/GHSA-r33q-22hv-j29q",
- "https://github.com/ethereum/go-ethereum/pull/21896"
+ "https://github.com/scroll-tech/go-ethereum/security/advisories/GHSA-r33q-22hv-j29q",
+ "https://github.com/scroll-tech/go-ethereum/pull/21896"
],
"introduced": "v1.8.0",
"fixed": "v1.9.25",
@@ -92,9 +92,9 @@
"introduced": "v1.9.4",
"fixed": "v1.9.20",
"summary": "A consensus-vulnerability in Geth could cause a chain split, where vulnerable versions refuse to accept the canonical chain.",
- "description": "A flaw was repoted at 2020-08-11 by John Youngseok Yang (Software Platform Lab), where a particular sequence of transactions could cause a consensus failure.\n\n- Tx 1:\n - `sender` invokes `caller`.\n - `caller` invokes `0xaa`. `0xaa` has 3 wei, does a self-destruct-to-self\n - `caller` does a `1 wei` -call to `0xaa`, who thereby has 1 wei (the code in `0xaa` still executed, since the tx is still ongoing, but doesn't redo the selfdestruct, it takes a different path if callvalue is non-zero)\n\n-Tx 2:\n - `sender` does a 5-wei call to 0xaa. No exec (since no code). \n\nIn geth, the result would be that `0xaa` had `6 wei`, whereas OE reported (correctly) `5` wei. Furthermore, in geth, if the second tx was not executed, the `0xaa` would be destructed, resulting in `0 wei`. Thus obviously wrong. \n\nIt was determined that the root cause was this [commit](https://github.com/ethereum/go-ethereum/commit/223b950944f494a5b4e0957fd9f92c48b09037ad) from [this PR](https://github.com/ethereum/go-ethereum/pull/19953). The semantics of `createObject` was subtly changd, into returning a non-nil object (with `deleted=true`) where it previously did not if the account had been destructed. This return value caused the new object to inherit the old `balance`.\n",
+ "description": "A flaw was repoted at 2020-08-11 by John Youngseok Yang (Software Platform Lab), where a particular sequence of transactions could cause a consensus failure.\n\n- Tx 1:\n - `sender` invokes `caller`.\n - `caller` invokes `0xaa`. `0xaa` has 3 wei, does a self-destruct-to-self\n - `caller` does a `1 wei` -call to `0xaa`, who thereby has 1 wei (the code in `0xaa` still executed, since the tx is still ongoing, but doesn't redo the selfdestruct, it takes a different path if callvalue is non-zero)\n\n-Tx 2:\n - `sender` does a 5-wei call to 0xaa. No exec (since no code). \n\nIn geth, the result would be that `0xaa` had `6 wei`, whereas OE reported (correctly) `5` wei. Furthermore, in geth, if the second tx was not executed, the `0xaa` would be destructed, resulting in `0 wei`. Thus obviously wrong. \n\nIt was determined that the root cause was this [commit](https://github.com/scroll-tech/go-ethereum/commit/223b950944f494a5b4e0957fd9f92c48b09037ad) from [this PR](https://github.com/scroll-tech/go-ethereum/pull/19953). The semantics of `createObject` was subtly changd, into returning a non-nil object (with `deleted=true`) where it previously did not if the account had been destructed. This return value caused the new object to inherit the old `balance`.\n",
"links": [
- "https://github.com/ethereum/go-ethereum/security/advisories/GHSA-xw37-57qp-9mm4"
+ "https://github.com/scroll-tech/go-ethereum/security/advisories/GHSA-xw37-57qp-9mm4"
],
"published": "2020-12-10",
"severity": "High",
diff --git a/cmd/geth/usage.go b/cmd/geth/usage.go
index c63c62fd38..c8e69032d0 100644
--- a/cmd/geth/usage.go
+++ b/cmd/geth/usage.go
@@ -22,9 +22,9 @@ import (
"io"
"sort"
- "github.com/ethereum/go-ethereum/cmd/utils"
- "github.com/ethereum/go-ethereum/internal/debug"
- "github.com/ethereum/go-ethereum/internal/flags"
+ "github.com/scroll-tech/go-ethereum/cmd/utils"
+ "github.com/scroll-tech/go-ethereum/internal/debug"
+ "github.com/scroll-tech/go-ethereum/internal/flags"
"gopkg.in/urfave/cli.v1"
)
diff --git a/cmd/geth/version_check.go b/cmd/geth/version_check.go
index 2101a69e98..6783839e1d 100644
--- a/cmd/geth/version_check.go
+++ b/cmd/geth/version_check.go
@@ -25,7 +25,7 @@ import (
"regexp"
"strings"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/log"
"github.com/jedisct1/go-minisign"
"gopkg.in/urfave/cli.v1"
)
diff --git a/cmd/p2psim/main.go b/cmd/p2psim/main.go
index 812954a680..7643567008 100644
--- a/cmd/p2psim/main.go
+++ b/cmd/p2psim/main.go
@@ -45,12 +45,12 @@ import (
"strings"
"text/tabwriter"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/p2p"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/simulations"
- "github.com/ethereum/go-ethereum/p2p/simulations/adapters"
- "github.com/ethereum/go-ethereum/rpc"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/p2p"
+ "github.com/scroll-tech/go-ethereum/p2p/enode"
+ "github.com/scroll-tech/go-ethereum/p2p/simulations"
+ "github.com/scroll-tech/go-ethereum/p2p/simulations/adapters"
+ "github.com/scroll-tech/go-ethereum/rpc"
"gopkg.in/urfave/cli.v1"
)
diff --git a/cmd/puppeth/genesis.go b/cmd/puppeth/genesis.go
index ef1f977bf0..ef46da2919 100644
--- a/cmd/puppeth/genesis.go
+++ b/cmd/puppeth/genesis.go
@@ -22,13 +22,13 @@ import (
"math/big"
"strings"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
- math2 "github.com/ethereum/go-ethereum/common/math"
- "github.com/ethereum/go-ethereum/consensus/ethash"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/hexutil"
+ math2 "github.com/scroll-tech/go-ethereum/common/math"
+ "github.com/scroll-tech/go-ethereum/consensus/ethash"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/params"
)
// alethGenesisSpec represents the genesis specification format used by the
diff --git a/cmd/puppeth/genesis_test.go b/cmd/puppeth/genesis_test.go
index aaa72d73cb..15c9c2e3eb 100644
--- a/cmd/puppeth/genesis_test.go
+++ b/cmd/puppeth/genesis_test.go
@@ -25,7 +25,7 @@ import (
"testing"
"github.com/davecgh/go-spew/spew"
- "github.com/ethereum/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/core"
)
// Tests the go-ethereum to Aleth chainspec conversion for the Stureby testnet.
diff --git a/cmd/puppeth/module.go b/cmd/puppeth/module.go
index b6a029a01a..d43e61c311 100644
--- a/cmd/puppeth/module.go
+++ b/cmd/puppeth/module.go
@@ -25,7 +25,7 @@ import (
"strings"
"time"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/log"
)
var (
diff --git a/cmd/puppeth/module_dashboard.go b/cmd/puppeth/module_dashboard.go
index 35cfada66f..7885dfe564 100644
--- a/cmd/puppeth/module_dashboard.go
+++ b/cmd/puppeth/module_dashboard.go
@@ -26,7 +26,7 @@ import (
"strconv"
"strings"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/log"
)
// dashboardContent is the actual dashboard HTML content to serve up when users
@@ -202,7 +202,7 @@ var dashboardContent = `
Starting with the 1.5 release of go-ethereum, we've transitioned away from shipping only full blown Ethereum clients and started focusing on releasing the code as reusable packages initially for Go projects, then later for Java based Android projects too. Mobile support is still evolving, hence is bound to change often and hard, but the Ethereum network can nonetheless be accessed from Android too.
Under the hood the Android library is backed by a go-ethereum light node, meaning that given a not-too-old Android device, you should be able to join the network without significant issues. Certain functionality is not yet available and rough edges are bound to appear here and there, please report issues if you find any.
- The stable Android archives are distributed via Maven Central, and the develop snapshots via the Sonatype repositories. Before proceeding, please ensure you have a recent version configured in your Android project. You can find details in Mobile: Introduction – Android archive.
+
The stable Android archives are distributed via Maven Central, and the develop snapshots via the Sonatype repositories. Before proceeding, please ensure you have a recent version configured in your Android project. You can find details in Mobile: Introduction – Android archive.
Before connecting to the Ethereum network, download the {{.GethGenesis}} genesis json file and either store it in your Android project as a resource file you can access, or save it as a string in a variable. You're going to need to initialize your client.
Inside your Java code you can now import the geth archive and connect to Ethereum:
import org.ethereum.geth.*;
@@ -233,7 +233,7 @@ node.start();
Starting with the 1.5 release of go-ethereum, we've transitioned away from shipping only full blown Ethereum clients and started focusing on releasing the code as reusable packages initially for Go projects, then later for ObjC/Swift based iOS projects too. Mobile support is still evolving, hence is bound to change often and hard, but the Ethereum network can nonetheless be accessed from iOS too.
Under the hood the iOS library is backed by a go-ethereum light node, meaning that given a not-too-old Apple device, you should be able to join the network without significant issues. Certain functionality is not yet available and rough edges are bound to appear here and there, please report issues if you find any.
- Both stable and develop builds of the iOS framework are available via CocoaPods. Before proceeding, please ensure you have a recent version configured in your iOS project. You can find details in Mobile: Introduction – iOS framework.
+
Both stable and develop builds of the iOS framework are available via CocoaPods. Before proceeding, please ensure you have a recent version configured in your iOS project. You can find details in Mobile: Introduction – iOS framework.
Before connecting to the Ethereum network, download the {{.GethGenesis}} genesis json file and either store it in your iOS project as a resource file you can access, or save it as a string in a variable. You're going to need to initialize your client.
Inside your Swift code you can now import the geth framework and connect to Ethereum (ObjC should be analogous):
import Geth
@@ -365,7 +365,7 @@ try! node?.start();
Puppeth is a tool to aid you in creating a new Ethereum network down to the genesis block, bootnodes, signers, ethstats server, crypto faucet, block explorer, dashboard and more; without the hassle that it would normally entail to manually configure all these services one by one.
Puppeth uses ssh to dial in to remote servers, and builds its network components out of docker containers using docker-compose. The user is guided through the process via a command line wizard that does the heavy lifting and topology configuration automatically behind the scenes.
- Puppeth is distributed as part of the Geth & Tools bundles, but can also be installed separately via:
go get github.com/ethereum/go-ethereum/cmd/puppeth
+ Puppeth is distributed as part of the Geth & Tools bundles, but can also be installed separately via:
go get github.com/scroll-tech/go-ethereum/cmd/puppeth
Copyright 2017. The go-ethereum Authors.
diff --git a/cmd/puppeth/module_ethstats.go b/cmd/puppeth/module_ethstats.go
index abed4db5fc..c97df17924 100644
--- a/cmd/puppeth/module_ethstats.go
+++ b/cmd/puppeth/module_ethstats.go
@@ -25,7 +25,7 @@ import (
"strings"
"text/template"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/log"
)
// ethstatsDockerfile is the Dockerfile required to build an ethstats backend
diff --git a/cmd/puppeth/module_explorer.go b/cmd/puppeth/module_explorer.go
index 1165f70fcf..b5693648c1 100644
--- a/cmd/puppeth/module_explorer.go
+++ b/cmd/puppeth/module_explorer.go
@@ -25,7 +25,7 @@ import (
"strconv"
"strings"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/log"
)
// explorerDockerfile is the Dockerfile required to run a block explorer.
diff --git a/cmd/puppeth/module_faucet.go b/cmd/puppeth/module_faucet.go
index 88cb80ae4c..a136fd6869 100644
--- a/cmd/puppeth/module_faucet.go
+++ b/cmd/puppeth/module_faucet.go
@@ -26,8 +26,8 @@ import (
"strconv"
"strings"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/log"
)
// faucetDockerfile is the Dockerfile required to build a faucet container to
diff --git a/cmd/puppeth/module_nginx.go b/cmd/puppeth/module_nginx.go
index 1b1ae61ff5..0fa48cbe36 100644
--- a/cmd/puppeth/module_nginx.go
+++ b/cmd/puppeth/module_nginx.go
@@ -24,7 +24,7 @@ import (
"path/filepath"
"strconv"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/log"
)
// nginxDockerfile is theis the Dockerfile required to build an nginx reverse-
diff --git a/cmd/puppeth/module_node.go b/cmd/puppeth/module_node.go
index 3ea96870d4..a43bb91370 100644
--- a/cmd/puppeth/module_node.go
+++ b/cmd/puppeth/module_node.go
@@ -26,8 +26,8 @@ import (
"strings"
"text/template"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/log"
)
// nodeDockerfile is the Dockerfile required to run an Ethereum node.
diff --git a/cmd/puppeth/puppeth.go b/cmd/puppeth/puppeth.go
index c3de5f9360..77bf060c13 100644
--- a/cmd/puppeth/puppeth.go
+++ b/cmd/puppeth/puppeth.go
@@ -23,7 +23,7 @@ import (
"strings"
"time"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/log"
"gopkg.in/urfave/cli.v1"
)
diff --git a/cmd/puppeth/ssh.go b/cmd/puppeth/ssh.go
index 039cb6cb45..fd66f6ddc1 100644
--- a/cmd/puppeth/ssh.go
+++ b/cmd/puppeth/ssh.go
@@ -28,7 +28,7 @@ import (
"path/filepath"
"strings"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/log"
"golang.org/x/crypto/ssh"
"golang.org/x/crypto/ssh/agent"
"golang.org/x/crypto/ssh/terminal"
diff --git a/cmd/puppeth/wizard.go b/cmd/puppeth/wizard.go
index c0edc54019..dea42a7375 100644
--- a/cmd/puppeth/wizard.go
+++ b/cmd/puppeth/wizard.go
@@ -30,10 +30,10 @@ import (
"strings"
"sync"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/console/prompt"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/console/prompt"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/log"
"github.com/peterh/liner"
"golang.org/x/crypto/ssh/terminal"
)
diff --git a/cmd/puppeth/wizard_dashboard.go b/cmd/puppeth/wizard_dashboard.go
index b64bdca0b9..e04059ef0d 100644
--- a/cmd/puppeth/wizard_dashboard.go
+++ b/cmd/puppeth/wizard_dashboard.go
@@ -19,7 +19,7 @@ package main
import (
"fmt"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/log"
)
// deployDashboard queries the user for various input on deploying a web-service
diff --git a/cmd/puppeth/wizard_ethstats.go b/cmd/puppeth/wizard_ethstats.go
index 95cab9da46..be0b7a28ba 100644
--- a/cmd/puppeth/wizard_ethstats.go
+++ b/cmd/puppeth/wizard_ethstats.go
@@ -20,7 +20,7 @@ import (
"fmt"
"sort"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/log"
)
// deployEthstats queries the user for various input on deploying an ethstats
diff --git a/cmd/puppeth/wizard_explorer.go b/cmd/puppeth/wizard_explorer.go
index 1df9cbc0f3..bb404565f6 100644
--- a/cmd/puppeth/wizard_explorer.go
+++ b/cmd/puppeth/wizard_explorer.go
@@ -21,7 +21,7 @@ import (
"fmt"
"time"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/log"
)
// deployExplorer creates a new block explorer based on some user input.
diff --git a/cmd/puppeth/wizard_faucet.go b/cmd/puppeth/wizard_faucet.go
index 65d4e8b8ed..0c791b0fcc 100644
--- a/cmd/puppeth/wizard_faucet.go
+++ b/cmd/puppeth/wizard_faucet.go
@@ -20,8 +20,8 @@ import (
"encoding/json"
"fmt"
- "github.com/ethereum/go-ethereum/accounts/keystore"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/accounts/keystore"
+ "github.com/scroll-tech/go-ethereum/log"
)
// deployFaucet queries the user for various input on deploying a faucet, after
diff --git a/cmd/puppeth/wizard_genesis.go b/cmd/puppeth/wizard_genesis.go
index ae5977b372..e6407481df 100644
--- a/cmd/puppeth/wizard_genesis.go
+++ b/cmd/puppeth/wizard_genesis.go
@@ -29,10 +29,10 @@ import (
"path/filepath"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/params"
)
// makeGenesis creates a new genesis struct based on some user input.
diff --git a/cmd/puppeth/wizard_intro.go b/cmd/puppeth/wizard_intro.go
index dd4b606c4a..e5a6af64e6 100644
--- a/cmd/puppeth/wizard_intro.go
+++ b/cmd/puppeth/wizard_intro.go
@@ -24,7 +24,7 @@ import (
"path/filepath"
"strings"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/log"
)
// makeWizard creates and returns a new puppeth wizard.
diff --git a/cmd/puppeth/wizard_netstats.go b/cmd/puppeth/wizard_netstats.go
index 7b5671e6df..0037c252ab 100644
--- a/cmd/puppeth/wizard_netstats.go
+++ b/cmd/puppeth/wizard_netstats.go
@@ -23,8 +23,8 @@ import (
"strings"
"sync"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/log"
"github.com/olekukonko/tablewriter"
)
diff --git a/cmd/puppeth/wizard_network.go b/cmd/puppeth/wizard_network.go
index d015e06ebb..41af7e5957 100644
--- a/cmd/puppeth/wizard_network.go
+++ b/cmd/puppeth/wizard_network.go
@@ -20,7 +20,7 @@ import (
"fmt"
"strings"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/log"
)
// manageServers displays a list of servers the user can disconnect from, and an
diff --git a/cmd/puppeth/wizard_nginx.go b/cmd/puppeth/wizard_nginx.go
index 8397b7fd57..8e376ec513 100644
--- a/cmd/puppeth/wizard_nginx.go
+++ b/cmd/puppeth/wizard_nginx.go
@@ -19,7 +19,7 @@ package main
import (
"fmt"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/log"
)
// ensureVirtualHost checks whether a reverse-proxy is running on the specified
diff --git a/cmd/puppeth/wizard_node.go b/cmd/puppeth/wizard_node.go
index 2bae332142..b5c152384e 100644
--- a/cmd/puppeth/wizard_node.go
+++ b/cmd/puppeth/wizard_node.go
@@ -21,9 +21,9 @@ import (
"fmt"
"time"
- "github.com/ethereum/go-ethereum/accounts/keystore"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/accounts/keystore"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/log"
)
// deployNode creates a new node configuration based on some user input.
diff --git a/cmd/rlpdump/main.go b/cmd/rlpdump/main.go
index 9c0af01248..40ac9096ef 100644
--- a/cmd/rlpdump/main.go
+++ b/cmd/rlpdump/main.go
@@ -28,8 +28,8 @@ import (
"os"
"strings"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/rlp"
)
var (
diff --git a/cmd/rlpdump/rlpdump_test.go b/cmd/rlpdump/rlpdump_test.go
index ea607e3808..2022de5c66 100644
--- a/cmd/rlpdump/rlpdump_test.go
+++ b/cmd/rlpdump/rlpdump_test.go
@@ -6,8 +6,8 @@ import (
"strings"
"testing"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/hexutil"
)
func TestRoundtrip(t *testing.T) {
diff --git a/cmd/utils/cmd.go b/cmd/utils/cmd.go
index ddd8d822b3..8a3df2793a 100644
--- a/cmd/utils/cmd.go
+++ b/cmd/utils/cmd.go
@@ -30,17 +30,17 @@ import (
"syscall"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/eth/ethconfig"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/internal/debug"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/node"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/eth/ethconfig"
+ "github.com/scroll-tech/go-ethereum/ethdb"
+ "github.com/scroll-tech/go-ethereum/internal/debug"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/node"
+ "github.com/scroll-tech/go-ethereum/rlp"
"gopkg.in/urfave/cli.v1"
)
diff --git a/cmd/utils/customflags.go b/cmd/utils/customflags.go
index 0a72e80349..8266fa5371 100644
--- a/cmd/utils/customflags.go
+++ b/cmd/utils/customflags.go
@@ -26,7 +26,7 @@ import (
"path"
"strings"
- "github.com/ethereum/go-ethereum/common/math"
+ "github.com/scroll-tech/go-ethereum/common/math"
"gopkg.in/urfave/cli.v1"
)
diff --git a/cmd/utils/export_test.go b/cmd/utils/export_test.go
index a05121d28c..fe1d0c5f33 100644
--- a/cmd/utils/export_test.go
+++ b/cmd/utils/export_test.go
@@ -23,8 +23,8 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/rlp"
)
// TestExport does basic sanity checks on the export/import functionality
diff --git a/cmd/utils/flags.go b/cmd/utils/flags.go
index 25453148c0..53bb05c3ed 100644
--- a/cmd/utils/flags.go
+++ b/cmd/utils/flags.go
@@ -33,39 +33,39 @@ import (
"text/template"
"time"
- "github.com/ethereum/go-ethereum/accounts"
- "github.com/ethereum/go-ethereum/accounts/keystore"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/fdlimit"
- "github.com/ethereum/go-ethereum/consensus"
- "github.com/ethereum/go-ethereum/consensus/clique"
- "github.com/ethereum/go-ethereum/consensus/ethash"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/vm"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/eth"
- "github.com/ethereum/go-ethereum/eth/downloader"
- "github.com/ethereum/go-ethereum/eth/ethconfig"
- "github.com/ethereum/go-ethereum/eth/gasprice"
- "github.com/ethereum/go-ethereum/eth/tracers"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/ethstats"
- "github.com/ethereum/go-ethereum/graphql"
- "github.com/ethereum/go-ethereum/internal/ethapi"
- "github.com/ethereum/go-ethereum/internal/flags"
- "github.com/ethereum/go-ethereum/les"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/metrics"
- "github.com/ethereum/go-ethereum/metrics/exp"
- "github.com/ethereum/go-ethereum/metrics/influxdb"
- "github.com/ethereum/go-ethereum/miner"
- "github.com/ethereum/go-ethereum/node"
- "github.com/ethereum/go-ethereum/p2p"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/nat"
- "github.com/ethereum/go-ethereum/p2p/netutil"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/accounts"
+ "github.com/scroll-tech/go-ethereum/accounts/keystore"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/fdlimit"
+ "github.com/scroll-tech/go-ethereum/consensus"
+ "github.com/scroll-tech/go-ethereum/consensus/clique"
+ "github.com/scroll-tech/go-ethereum/consensus/ethash"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/core/vm"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/eth"
+ "github.com/scroll-tech/go-ethereum/eth/downloader"
+ "github.com/scroll-tech/go-ethereum/eth/ethconfig"
+ "github.com/scroll-tech/go-ethereum/eth/gasprice"
+ "github.com/scroll-tech/go-ethereum/eth/tracers"
+ "github.com/scroll-tech/go-ethereum/ethdb"
+ "github.com/scroll-tech/go-ethereum/ethstats"
+ "github.com/scroll-tech/go-ethereum/graphql"
+ "github.com/scroll-tech/go-ethereum/internal/ethapi"
+ "github.com/scroll-tech/go-ethereum/internal/flags"
+ "github.com/scroll-tech/go-ethereum/les"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/metrics"
+ "github.com/scroll-tech/go-ethereum/metrics/exp"
+ "github.com/scroll-tech/go-ethereum/metrics/influxdb"
+ "github.com/scroll-tech/go-ethereum/miner"
+ "github.com/scroll-tech/go-ethereum/node"
+ "github.com/scroll-tech/go-ethereum/p2p"
+ "github.com/scroll-tech/go-ethereum/p2p/enode"
+ "github.com/scroll-tech/go-ethereum/p2p/nat"
+ "github.com/scroll-tech/go-ethereum/p2p/netutil"
+ "github.com/scroll-tech/go-ethereum/params"
pcsclite "github.com/gballet/go-libpcsclite"
gopsutil "github.com/shirou/gopsutil/mem"
"gopkg.in/urfave/cli.v1"
diff --git a/cmd/utils/flags_legacy.go b/cmd/utils/flags_legacy.go
index a0f64f609b..170b3922fa 100644
--- a/cmd/utils/flags_legacy.go
+++ b/cmd/utils/flags_legacy.go
@@ -19,7 +19,7 @@ package utils
import (
"fmt"
- "github.com/ethereum/go-ethereum/eth/ethconfig"
+ "github.com/scroll-tech/go-ethereum/eth/ethconfig"
"gopkg.in/urfave/cli.v1"
)
diff --git a/cmd/utils/prompt.go b/cmd/utils/prompt.go
index 5c7cbabcb0..928227cf9e 100644
--- a/cmd/utils/prompt.go
+++ b/cmd/utils/prompt.go
@@ -20,7 +20,7 @@ package utils
import (
"fmt"
- "github.com/ethereum/go-ethereum/console/prompt"
+ "github.com/scroll-tech/go-ethereum/console/prompt"
)
// GetPassPhrase displays the given text(prompt) to the user and requests some textual
diff --git a/common/bitutil/compress_test.go b/common/bitutil/compress_test.go
index 13a13011dc..549566ae91 100644
--- a/common/bitutil/compress_test.go
+++ b/common/bitutil/compress_test.go
@@ -21,7 +21,7 @@ import (
"math/rand"
"testing"
- "github.com/ethereum/go-ethereum/common/hexutil"
+ "github.com/scroll-tech/go-ethereum/common/hexutil"
)
// Tests that data bitset encoding and decoding works and is bijective.
diff --git a/common/debug.go b/common/debug.go
index 28c52b4a9c..ddb855d60e 100644
--- a/common/debug.go
+++ b/common/debug.go
@@ -26,7 +26,7 @@ import (
// Report gives off a warning requesting the user to submit an issue to the github tracker.
func Report(extra ...interface{}) {
- fmt.Fprintln(os.Stderr, "You've encountered a sought after, hard to reproduce bug. Please report this to the developers <3 https://github.com/ethereum/go-ethereum/issues")
+ fmt.Fprintln(os.Stderr, "You've encountered a sought after, hard to reproduce bug. Please report this to the developers <3 https://github.com/scroll-tech/go-ethereum/issues")
fmt.Fprintln(os.Stderr, extra...)
_, file, line, _ := runtime.Caller(1)
diff --git a/common/hexutil/json_example_test.go b/common/hexutil/json_example_test.go
index 80180d9186..380a57382e 100644
--- a/common/hexutil/json_example_test.go
+++ b/common/hexutil/json_example_test.go
@@ -20,7 +20,7 @@ import (
"encoding/json"
"fmt"
- "github.com/ethereum/go-ethereum/common/hexutil"
+ "github.com/scroll-tech/go-ethereum/common/hexutil"
)
type MyType [5]byte
diff --git a/common/math/big_test.go b/common/math/big_test.go
index f896ec65be..820d83095d 100644
--- a/common/math/big_test.go
+++ b/common/math/big_test.go
@@ -22,7 +22,7 @@ import (
"math/big"
"testing"
- "github.com/ethereum/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common"
)
func TestHexOrDecimal256(t *testing.T) {
diff --git a/common/prque/lazyqueue.go b/common/prque/lazyqueue.go
index 37c2f3bd42..90dabe5323 100644
--- a/common/prque/lazyqueue.go
+++ b/common/prque/lazyqueue.go
@@ -20,7 +20,7 @@ import (
"container/heap"
"time"
- "github.com/ethereum/go-ethereum/common/mclock"
+ "github.com/scroll-tech/go-ethereum/common/mclock"
)
// LazyQueue is a priority queue data structure where priorities can change over
diff --git a/common/prque/lazyqueue_test.go b/common/prque/lazyqueue_test.go
index 9a831d628b..a2421678ea 100644
--- a/common/prque/lazyqueue_test.go
+++ b/common/prque/lazyqueue_test.go
@@ -22,7 +22,7 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/common/mclock"
+ "github.com/scroll-tech/go-ethereum/common/mclock"
)
const (
diff --git a/common/types.go b/common/types.go
index 2205835cb5..5a784c1bc5 100644
--- a/common/types.go
+++ b/common/types.go
@@ -28,7 +28,7 @@ import (
"reflect"
"strings"
- "github.com/ethereum/go-ethereum/common/hexutil"
+ "github.com/scroll-tech/go-ethereum/common/hexutil"
"golang.org/x/crypto/sha3"
)
diff --git a/consensus/clique/api.go b/consensus/clique/api.go
index 03f2daffa0..28b7e82987 100644
--- a/consensus/clique/api.go
+++ b/consensus/clique/api.go
@@ -20,12 +20,12 @@ import (
"encoding/json"
"fmt"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/consensus"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/rlp"
- "github.com/ethereum/go-ethereum/rpc"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/hexutil"
+ "github.com/scroll-tech/go-ethereum/consensus"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/rpc"
)
// API is a user facing RPC API to allow controlling the signer and voting
diff --git a/consensus/clique/clique.go b/consensus/clique/clique.go
index f25e0cf3c9..19928bd5ee 100644
--- a/consensus/clique/clique.go
+++ b/consensus/clique/clique.go
@@ -27,20 +27,20 @@ import (
"sync"
"time"
- "github.com/ethereum/go-ethereum/accounts"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/consensus"
- "github.com/ethereum/go-ethereum/consensus/misc"
- "github.com/ethereum/go-ethereum/core/state"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/rlp"
- "github.com/ethereum/go-ethereum/rpc"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/scroll-tech/go-ethereum/accounts"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/hexutil"
+ "github.com/scroll-tech/go-ethereum/consensus"
+ "github.com/scroll-tech/go-ethereum/consensus/misc"
+ "github.com/scroll-tech/go-ethereum/core/state"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/ethdb"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/rpc"
+ "github.com/scroll-tech/go-ethereum/trie"
lru "github.com/hashicorp/golang-lru"
"golang.org/x/crypto/sha3"
)
diff --git a/consensus/clique/clique_test.go b/consensus/clique/clique_test.go
index 1bd32acd37..4faa936501 100644
--- a/consensus/clique/clique_test.go
+++ b/consensus/clique/clique_test.go
@@ -20,13 +20,13 @@ import (
"math/big"
"testing"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/core/vm"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/core/vm"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/params"
)
// This test case is a repro of an annoying bug that took us forever to catch.
diff --git a/consensus/clique/snapshot.go b/consensus/clique/snapshot.go
index 4ee731a908..8e83dd8a73 100644
--- a/consensus/clique/snapshot.go
+++ b/consensus/clique/snapshot.go
@@ -22,11 +22,11 @@ import (
"sort"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/ethdb"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/params"
lru "github.com/hashicorp/golang-lru"
)
diff --git a/consensus/clique/snapshot_test.go b/consensus/clique/snapshot_test.go
index 094868ca74..790f381031 100644
--- a/consensus/clique/snapshot_test.go
+++ b/consensus/clique/snapshot_test.go
@@ -23,13 +23,13 @@ import (
"sort"
"testing"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/core/vm"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/core/vm"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/params"
)
// testerAccountPool is a pool to maintain currently active tester accounts,
@@ -364,7 +364,7 @@ func TestClique(t *testing.T) {
failure: errRecentlySigned,
}, {
// Recent signatures should not reset on checkpoint blocks imported in a new
- // batch (https://github.com/ethereum/go-ethereum/issues/17593). Whilst this
+ // batch (https://github.com/scroll-tech/go-ethereum/issues/17593). Whilst this
// seems overly specific and weird, it was a Rinkeby consensus split.
epoch: 3,
signers: []string{"A", "B", "C"},
diff --git a/consensus/consensus.go b/consensus/consensus.go
index 2a5aac945d..d4c71b6fa7 100644
--- a/consensus/consensus.go
+++ b/consensus/consensus.go
@@ -20,11 +20,11 @@ package consensus
import (
"math/big"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/state"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/rpc"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core/state"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/rpc"
)
// ChainHeaderReader defines a small collection of methods needed to access the local
diff --git a/consensus/ethash/algorithm.go b/consensus/ethash/algorithm.go
index 065e60b90b..676d587f25 100644
--- a/consensus/ethash/algorithm.go
+++ b/consensus/ethash/algorithm.go
@@ -27,10 +27,10 @@ import (
"time"
"unsafe"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/bitutil"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/bitutil"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/log"
"golang.org/x/crypto/sha3"
)
diff --git a/consensus/ethash/algorithm_test.go b/consensus/ethash/algorithm_test.go
index 9cc9d535d4..358b1103da 100644
--- a/consensus/ethash/algorithm_test.go
+++ b/consensus/ethash/algorithm_test.go
@@ -26,9 +26,9 @@ import (
"sync"
"testing"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/hexutil"
+ "github.com/scroll-tech/go-ethereum/core/types"
)
// prepare converts an ethash cache or dataset from a byte stream into the internal
diff --git a/consensus/ethash/api.go b/consensus/ethash/api.go
index f4d3802e0b..240b077f67 100644
--- a/consensus/ethash/api.go
+++ b/consensus/ethash/api.go
@@ -19,9 +19,9 @@ package ethash
import (
"errors"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/hexutil"
+ "github.com/scroll-tech/go-ethereum/core/types"
)
var errEthashStopped = errors.New("ethash stopped")
diff --git a/consensus/ethash/consensus.go b/consensus/ethash/consensus.go
index 7fa427f68b..721ece6a39 100644
--- a/consensus/ethash/consensus.go
+++ b/consensus/ethash/consensus.go
@@ -25,15 +25,15 @@ import (
"time"
mapset "github.com/deckarep/golang-set"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/math"
- "github.com/ethereum/go-ethereum/consensus"
- "github.com/ethereum/go-ethereum/consensus/misc"
- "github.com/ethereum/go-ethereum/core/state"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/rlp"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/math"
+ "github.com/scroll-tech/go-ethereum/consensus"
+ "github.com/scroll-tech/go-ethereum/consensus/misc"
+ "github.com/scroll-tech/go-ethereum/core/state"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/trie"
"golang.org/x/crypto/sha3"
)
diff --git a/consensus/ethash/consensus_test.go b/consensus/ethash/consensus_test.go
index 6f6dc79fd8..16ebf02374 100644
--- a/consensus/ethash/consensus_test.go
+++ b/consensus/ethash/consensus_test.go
@@ -25,10 +25,10 @@ import (
"path/filepath"
"testing"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/math"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/math"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/params"
)
type diffTest struct {
diff --git a/consensus/ethash/difficulty.go b/consensus/ethash/difficulty.go
index 66a18059c6..4ea4bd5c0b 100644
--- a/consensus/ethash/difficulty.go
+++ b/consensus/ethash/difficulty.go
@@ -19,7 +19,7 @@ package ethash
import (
"math/big"
- "github.com/ethereum/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/core/types"
"github.com/holiman/uint256"
)
diff --git a/consensus/ethash/ethash.go b/consensus/ethash/ethash.go
index 4e33d99c8d..eedfa02867 100644
--- a/consensus/ethash/ethash.go
+++ b/consensus/ethash/ethash.go
@@ -34,10 +34,10 @@ import (
"unsafe"
"github.com/edsrzf/mmap-go"
- "github.com/ethereum/go-ethereum/consensus"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/metrics"
- "github.com/ethereum/go-ethereum/rpc"
+ "github.com/scroll-tech/go-ethereum/consensus"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/metrics"
+ "github.com/scroll-tech/go-ethereum/rpc"
"github.com/hashicorp/golang-lru/simplelru"
)
diff --git a/consensus/ethash/ethash_test.go b/consensus/ethash/ethash_test.go
index 382eefeecf..0fe01484ee 100644
--- a/consensus/ethash/ethash_test.go
+++ b/consensus/ethash/ethash_test.go
@@ -25,9 +25,9 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/hexutil"
+ "github.com/scroll-tech/go-ethereum/core/types"
)
// Tests that ethash works correctly in test mode.
@@ -55,7 +55,7 @@ func TestTestMode(t *testing.T) {
}
// This test checks that cache lru logic doesn't crash under load.
-// It reproduces https://github.com/ethereum/go-ethereum/issues/14943
+// It reproduces https://github.com/scroll-tech/go-ethereum/issues/14943
func TestCacheFileEvict(t *testing.T) {
tmpdir, err := ioutil.TempDir("", "ethash-test")
if err != nil {
diff --git a/consensus/ethash/sealer.go b/consensus/ethash/sealer.go
index 6fa60ef6a8..a658880311 100644
--- a/consensus/ethash/sealer.go
+++ b/consensus/ethash/sealer.go
@@ -30,10 +30,10 @@ import (
"sync"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/consensus"
- "github.com/ethereum/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/hexutil"
+ "github.com/scroll-tech/go-ethereum/consensus"
+ "github.com/scroll-tech/go-ethereum/core/types"
)
const (
diff --git a/consensus/ethash/sealer_test.go b/consensus/ethash/sealer_test.go
index c34e76aec2..73b9c70770 100644
--- a/consensus/ethash/sealer_test.go
+++ b/consensus/ethash/sealer_test.go
@@ -26,10 +26,10 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/internal/testlog"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/internal/testlog"
+ "github.com/scroll-tech/go-ethereum/log"
)
// Tests whether remote HTTP servers are correctly notified of new work.
diff --git a/consensus/misc/dao.go b/consensus/misc/dao.go
index 36df036f27..3824b3bad2 100644
--- a/consensus/misc/dao.go
+++ b/consensus/misc/dao.go
@@ -21,9 +21,9 @@ import (
"errors"
"math/big"
- "github.com/ethereum/go-ethereum/core/state"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/core/state"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/params"
)
var (
diff --git a/consensus/misc/eip1559.go b/consensus/misc/eip1559.go
index 8fca0fdc70..0d7020dbfe 100644
--- a/consensus/misc/eip1559.go
+++ b/consensus/misc/eip1559.go
@@ -20,10 +20,10 @@ import (
"fmt"
"math/big"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/math"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/math"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/params"
)
// VerifyEip1559Header verifies some header attributes which were changed in EIP-1559,
diff --git a/consensus/misc/eip1559_test.go b/consensus/misc/eip1559_test.go
index 23cd9023de..611576bdff 100644
--- a/consensus/misc/eip1559_test.go
+++ b/consensus/misc/eip1559_test.go
@@ -20,9 +20,9 @@ import (
"math/big"
"testing"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/params"
)
// copyConfig does a _shallow_ copy of a given config. Safe to set new values, but
diff --git a/consensus/misc/forks.go b/consensus/misc/forks.go
index 4a5e7c37e0..090165e988 100644
--- a/consensus/misc/forks.go
+++ b/consensus/misc/forks.go
@@ -19,9 +19,9 @@ package misc
import (
"fmt"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/params"
)
// VerifyForkHashes verifies that blocks conforming to network hard-forks do have
diff --git a/consensus/misc/gaslimit.go b/consensus/misc/gaslimit.go
index 25f35300b9..31c614b773 100644
--- a/consensus/misc/gaslimit.go
+++ b/consensus/misc/gaslimit.go
@@ -20,7 +20,7 @@ import (
"errors"
"fmt"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/params"
)
// VerifyGaslimit verifies the header gas limit according increase/decrease
diff --git a/console/bridge.go b/console/bridge.go
index 21ef0e8e7b..619634e835 100644
--- a/console/bridge.go
+++ b/console/bridge.go
@@ -25,12 +25,12 @@ import (
"time"
"github.com/dop251/goja"
- "github.com/ethereum/go-ethereum/accounts/scwallet"
- "github.com/ethereum/go-ethereum/accounts/usbwallet"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/console/prompt"
- "github.com/ethereum/go-ethereum/internal/jsre"
- "github.com/ethereum/go-ethereum/rpc"
+ "github.com/scroll-tech/go-ethereum/accounts/scwallet"
+ "github.com/scroll-tech/go-ethereum/accounts/usbwallet"
+ "github.com/scroll-tech/go-ethereum/common/hexutil"
+ "github.com/scroll-tech/go-ethereum/console/prompt"
+ "github.com/scroll-tech/go-ethereum/internal/jsre"
+ "github.com/scroll-tech/go-ethereum/rpc"
)
// bridge is a collection of JavaScript utility methods to bride the .js runtime
diff --git a/console/bridge_test.go b/console/bridge_test.go
index e57e294fc5..c2d86ce955 100644
--- a/console/bridge_test.go
+++ b/console/bridge_test.go
@@ -20,7 +20,7 @@ import (
"testing"
"github.com/dop251/goja"
- "github.com/ethereum/go-ethereum/internal/jsre"
+ "github.com/scroll-tech/go-ethereum/internal/jsre"
)
// TestUndefinedAsParam ensures that personal functions can receive
diff --git a/console/console.go b/console/console.go
index dd39300d0a..78f19a52ec 100644
--- a/console/console.go
+++ b/console/console.go
@@ -29,11 +29,11 @@ import (
"syscall"
"github.com/dop251/goja"
- "github.com/ethereum/go-ethereum/console/prompt"
- "github.com/ethereum/go-ethereum/internal/jsre"
- "github.com/ethereum/go-ethereum/internal/jsre/deps"
- "github.com/ethereum/go-ethereum/internal/web3ext"
- "github.com/ethereum/go-ethereum/rpc"
+ "github.com/scroll-tech/go-ethereum/console/prompt"
+ "github.com/scroll-tech/go-ethereum/internal/jsre"
+ "github.com/scroll-tech/go-ethereum/internal/jsre/deps"
+ "github.com/scroll-tech/go-ethereum/internal/web3ext"
+ "github.com/scroll-tech/go-ethereum/rpc"
"github.com/mattn/go-colorable"
"github.com/peterh/liner"
)
diff --git a/console/console_test.go b/console/console_test.go
index 71c80c20fa..772bf877e0 100644
--- a/console/console_test.go
+++ b/console/console_test.go
@@ -26,15 +26,15 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/consensus/ethash"
- "github.com/ethereum/go-ethereum/console/prompt"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/eth"
- "github.com/ethereum/go-ethereum/eth/ethconfig"
- "github.com/ethereum/go-ethereum/internal/jsre"
- "github.com/ethereum/go-ethereum/miner"
- "github.com/ethereum/go-ethereum/node"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/consensus/ethash"
+ "github.com/scroll-tech/go-ethereum/console/prompt"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/eth"
+ "github.com/scroll-tech/go-ethereum/eth/ethconfig"
+ "github.com/scroll-tech/go-ethereum/internal/jsre"
+ "github.com/scroll-tech/go-ethereum/miner"
+ "github.com/scroll-tech/go-ethereum/node"
)
const (
diff --git a/contracts/checkpointoracle/contract/oracle.go b/contracts/checkpointoracle/contract/oracle.go
index a4a308f5c5..b97171f2e1 100644
--- a/contracts/checkpointoracle/contract/oracle.go
+++ b/contracts/checkpointoracle/contract/oracle.go
@@ -7,12 +7,12 @@ import (
"math/big"
"strings"
- ethereum "github.com/ethereum/go-ethereum"
- "github.com/ethereum/go-ethereum/accounts/abi"
- "github.com/ethereum/go-ethereum/accounts/abi/bind"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/event"
+ ethereum "github.com/scroll-tech/go-ethereum"
+ "github.com/scroll-tech/go-ethereum/accounts/abi"
+ "github.com/scroll-tech/go-ethereum/accounts/abi/bind"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/event"
)
// Reference imports to suppress errors if they are not otherwise used.
diff --git a/contracts/checkpointoracle/oracle.go b/contracts/checkpointoracle/oracle.go
index 7f3127d0b8..97fbc7648b 100644
--- a/contracts/checkpointoracle/oracle.go
+++ b/contracts/checkpointoracle/oracle.go
@@ -23,10 +23,10 @@ import (
"errors"
"math/big"
- "github.com/ethereum/go-ethereum/accounts/abi/bind"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/contracts/checkpointoracle/contract"
- "github.com/ethereum/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/accounts/abi/bind"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/contracts/checkpointoracle/contract"
+ "github.com/scroll-tech/go-ethereum/core/types"
)
// CheckpointOracle is a Go wrapper around an on-chain checkpoint oracle contract.
diff --git a/contracts/checkpointoracle/oracle_test.go b/contracts/checkpointoracle/oracle_test.go
index 61dd8aec79..6ffcc615ee 100644
--- a/contracts/checkpointoracle/oracle_test.go
+++ b/contracts/checkpointoracle/oracle_test.go
@@ -27,13 +27,13 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/accounts/abi/bind"
- "github.com/ethereum/go-ethereum/accounts/abi/bind/backends"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/contracts/checkpointoracle/contract"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/accounts/abi/bind"
+ "github.com/scroll-tech/go-ethereum/accounts/abi/bind/backends"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/contracts/checkpointoracle/contract"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/params"
)
var (
diff --git a/core/asm/asm.go b/core/asm/asm.go
index 4257198cc7..d79db66633 100644
--- a/core/asm/asm.go
+++ b/core/asm/asm.go
@@ -21,7 +21,7 @@ import (
"encoding/hex"
"fmt"
- "github.com/ethereum/go-ethereum/core/vm"
+ "github.com/scroll-tech/go-ethereum/core/vm"
)
// Iterator for disassembled EVM instructions
diff --git a/core/asm/compiler.go b/core/asm/compiler.go
index 7997099298..9e82c9acf4 100644
--- a/core/asm/compiler.go
+++ b/core/asm/compiler.go
@@ -22,8 +22,8 @@ import (
"os"
"strings"
- "github.com/ethereum/go-ethereum/common/math"
- "github.com/ethereum/go-ethereum/core/vm"
+ "github.com/scroll-tech/go-ethereum/common/math"
+ "github.com/scroll-tech/go-ethereum/core/vm"
)
// Compiler contains information about the parsed source
diff --git a/core/bench_test.go b/core/bench_test.go
index 959979763d..c0a907dfb3 100644
--- a/core/bench_test.go
+++ b/core/bench_test.go
@@ -23,15 +23,15 @@ import (
"os"
"testing"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/math"
- "github.com/ethereum/go-ethereum/consensus/ethash"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/core/vm"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/math"
+ "github.com/scroll-tech/go-ethereum/consensus/ethash"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/core/vm"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/ethdb"
+ "github.com/scroll-tech/go-ethereum/params"
)
func BenchmarkInsertChain_empty_memdb(b *testing.B) {
diff --git a/core/block_validator.go b/core/block_validator.go
index 3763be0be0..856abe1cf9 100644
--- a/core/block_validator.go
+++ b/core/block_validator.go
@@ -19,11 +19,11 @@ package core
import (
"fmt"
- "github.com/ethereum/go-ethereum/consensus"
- "github.com/ethereum/go-ethereum/core/state"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/scroll-tech/go-ethereum/consensus"
+ "github.com/scroll-tech/go-ethereum/core/state"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/trie"
)
// BlockValidator is responsible for validating block headers, uncles and
diff --git a/core/block_validator_test.go b/core/block_validator_test.go
index 86f9835a01..c94132d001 100644
--- a/core/block_validator_test.go
+++ b/core/block_validator_test.go
@@ -21,11 +21,11 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/consensus/ethash"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/core/vm"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/consensus/ethash"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/core/vm"
+ "github.com/scroll-tech/go-ethereum/params"
)
// Tests that simple header verification works, for both good and bad blocks.
diff --git a/core/blockchain.go b/core/blockchain.go
index 6ee58ef4f3..ba4a26e2cc 100644
--- a/core/blockchain.go
+++ b/core/blockchain.go
@@ -28,22 +28,22 @@ import (
"sync/atomic"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/mclock"
- "github.com/ethereum/go-ethereum/common/prque"
- "github.com/ethereum/go-ethereum/consensus"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/state"
- "github.com/ethereum/go-ethereum/core/state/snapshot"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/core/vm"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/event"
- "github.com/ethereum/go-ethereum/internal/syncx"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/metrics"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/mclock"
+ "github.com/scroll-tech/go-ethereum/common/prque"
+ "github.com/scroll-tech/go-ethereum/consensus"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/core/state"
+ "github.com/scroll-tech/go-ethereum/core/state/snapshot"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/core/vm"
+ "github.com/scroll-tech/go-ethereum/ethdb"
+ "github.com/scroll-tech/go-ethereum/event"
+ "github.com/scroll-tech/go-ethereum/internal/syncx"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/metrics"
+ "github.com/scroll-tech/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/trie"
lru "github.com/hashicorp/golang-lru"
)
diff --git a/core/blockchain_insert.go b/core/blockchain_insert.go
index 4464870279..63844ff176 100644
--- a/core/blockchain_insert.go
+++ b/core/blockchain_insert.go
@@ -19,10 +19,10 @@ package core
import (
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/mclock"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/mclock"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/log"
)
// insertStats tracks and reports on block insertion.
diff --git a/core/blockchain_reader.go b/core/blockchain_reader.go
index beaa57b0c1..fb75e75a73 100644
--- a/core/blockchain_reader.go
+++ b/core/blockchain_reader.go
@@ -19,16 +19,16 @@ package core
import (
"math/big"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/consensus"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/state"
- "github.com/ethereum/go-ethereum/core/state/snapshot"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/core/vm"
- "github.com/ethereum/go-ethereum/event"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/consensus"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/core/state"
+ "github.com/scroll-tech/go-ethereum/core/state/snapshot"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/core/vm"
+ "github.com/scroll-tech/go-ethereum/event"
+ "github.com/scroll-tech/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/rlp"
)
// CurrentHeader retrieves the current head header of the canonical chain. The
diff --git a/core/blockchain_repair_test.go b/core/blockchain_repair_test.go
index f4f7620787..8e846cf007 100644
--- a/core/blockchain_repair_test.go
+++ b/core/blockchain_repair_test.go
@@ -27,12 +27,12 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/consensus/ethash"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/core/vm"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/consensus/ethash"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/core/vm"
+ "github.com/scroll-tech/go-ethereum/params"
)
// Tests a recovery for a short canonical chain where a recent block was already
@@ -1864,7 +1864,7 @@ func testRepair(t *testing.T, tt *rewindTest, snapshots bool) {
}
}
-// TestIssue23496 tests scenario described in https://github.com/ethereum/go-ethereum/pull/23496#issuecomment-926393893
+// TestIssue23496 tests scenario described in https://github.com/scroll-tech/go-ethereum/pull/23496#issuecomment-926393893
// Credits to @zzyalbert for finding the issue.
//
// Local chain owns these blocks:
diff --git a/core/blockchain_sethead_test.go b/core/blockchain_sethead_test.go
index 27b6be6e13..986ddd7c39 100644
--- a/core/blockchain_sethead_test.go
+++ b/core/blockchain_sethead_test.go
@@ -28,12 +28,12 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/consensus/ethash"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/core/vm"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/consensus/ethash"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/core/vm"
+ "github.com/scroll-tech/go-ethereum/params"
)
// rewindTest is a test case for chain rollback upon user request.
diff --git a/core/blockchain_snapshot_test.go b/core/blockchain_snapshot_test.go
index a8044ecb4d..4becdf9f4e 100644
--- a/core/blockchain_snapshot_test.go
+++ b/core/blockchain_snapshot_test.go
@@ -29,13 +29,13 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/consensus"
- "github.com/ethereum/go-ethereum/consensus/ethash"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/core/vm"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/consensus"
+ "github.com/scroll-tech/go-ethereum/consensus/ethash"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/core/vm"
+ "github.com/scroll-tech/go-ethereum/ethdb"
+ "github.com/scroll-tech/go-ethereum/params"
)
// snapshotTestBasic wraps the common testing fields in the snapshot tests.
diff --git a/core/blockchain_test.go b/core/blockchain_test.go
index 80d07eb30a..4aca8e4bca 100644
--- a/core/blockchain_test.go
+++ b/core/blockchain_test.go
@@ -27,17 +27,17 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/consensus"
- "github.com/ethereum/go-ethereum/consensus/ethash"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/state"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/core/vm"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/consensus"
+ "github.com/scroll-tech/go-ethereum/consensus/ethash"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/core/state"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/core/vm"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/ethdb"
+ "github.com/scroll-tech/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/trie"
)
// So we can deterministically seed different blockchains
@@ -1463,7 +1463,7 @@ func TestEIP161AccountRemoval(t *testing.T) {
// tests that under weird reorg conditions the blockchain and its internal header-
// chain return the same latest block/header.
//
-// https://github.com/ethereum/go-ethereum/pull/15941
+// https://github.com/scroll-tech/go-ethereum/pull/15941
func TestBlockchainHeaderchainReorgConsistency(t *testing.T) {
// Generate a canonical chain to act as the main dataset
engine := ethash.NewFaker()
@@ -1745,8 +1745,8 @@ func TestInsertReceiptChainRollback(t *testing.T) {
// overtake the 'canon' chain until after it's passed canon by about 200 blocks.
//
// Details at:
-// - https://github.com/ethereum/go-ethereum/issues/18977
-// - https://github.com/ethereum/go-ethereum/pull/18988
+// - https://github.com/scroll-tech/go-ethereum/issues/18977
+// - https://github.com/scroll-tech/go-ethereum/pull/18988
func TestLowDiffLongChain(t *testing.T) {
// Generate a canonical chain to act as the main dataset
engine := ethash.NewFaker()
diff --git a/core/blocks.go b/core/blocks.go
index f20ba4aaf2..61955cb2f7 100644
--- a/core/blocks.go
+++ b/core/blocks.go
@@ -16,7 +16,7 @@
package core
-import "github.com/ethereum/go-ethereum/common"
+import "github.com/scroll-tech/go-ethereum/common"
// BadHashes represent a set of manually tracked bad hashes (usually hard forks)
var BadHashes = map[common.Hash]bool{
diff --git a/core/bloom_indexer.go b/core/bloom_indexer.go
index 856746a1c0..56e49b6c33 100644
--- a/core/bloom_indexer.go
+++ b/core/bloom_indexer.go
@@ -20,12 +20,12 @@ import (
"context"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/bitutil"
- "github.com/ethereum/go-ethereum/core/bloombits"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/ethdb"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/bitutil"
+ "github.com/scroll-tech/go-ethereum/core/bloombits"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/ethdb"
)
const (
diff --git a/core/bloombits/generator.go b/core/bloombits/generator.go
index 646151db0b..4fd66dd8df 100644
--- a/core/bloombits/generator.go
+++ b/core/bloombits/generator.go
@@ -19,7 +19,7 @@ package bloombits
import (
"errors"
- "github.com/ethereum/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/core/types"
)
var (
diff --git a/core/bloombits/generator_test.go b/core/bloombits/generator_test.go
index 883948d12b..9c1987d16d 100644
--- a/core/bloombits/generator_test.go
+++ b/core/bloombits/generator_test.go
@@ -21,7 +21,7 @@ import (
"math/rand"
"testing"
- "github.com/ethereum/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/core/types"
)
// Tests that batched bloom bits are correctly rotated from the input bloom
diff --git a/core/bloombits/matcher.go b/core/bloombits/matcher.go
index f2a8bda17c..743a682829 100644
--- a/core/bloombits/matcher.go
+++ b/core/bloombits/matcher.go
@@ -26,8 +26,8 @@ import (
"sync/atomic"
"time"
- "github.com/ethereum/go-ethereum/common/bitutil"
- "github.com/ethereum/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/common/bitutil"
+ "github.com/scroll-tech/go-ethereum/crypto"
)
// bloomIndexes represents the bit indexes inside the bloom filter that belong
diff --git a/core/bloombits/matcher_test.go b/core/bloombits/matcher_test.go
index 923579221f..9f99d8fb5d 100644
--- a/core/bloombits/matcher_test.go
+++ b/core/bloombits/matcher_test.go
@@ -23,7 +23,7 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common"
)
const testSectionSize = 4096
@@ -86,7 +86,7 @@ func TestMatcherRandom(t *testing.T) {
// Tests that the matcher can properly find matches if the starting block is
// shifter from a multiple of 8. This is needed to cover an optimisation with
-// bitset matching https://github.com/ethereum/go-ethereum/issues/15309.
+// bitset matching https://github.com/scroll-tech/go-ethereum/issues/15309.
func TestMatcherShifted(t *testing.T) {
t.Parallel()
// Block 0 always matches in the tests, skip ahead of first 8 blocks with the
diff --git a/core/chain_indexer.go b/core/chain_indexer.go
index 95901a0eaa..c95ddf93a7 100644
--- a/core/chain_indexer.go
+++ b/core/chain_indexer.go
@@ -24,12 +24,12 @@ import (
"sync/atomic"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/event"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/ethdb"
+ "github.com/scroll-tech/go-ethereum/event"
+ "github.com/scroll-tech/go-ethereum/log"
)
// ChainIndexerBackend defines the methods needed to process chain segments in
diff --git a/core/chain_indexer_test.go b/core/chain_indexer_test.go
index f099609015..5611f450e5 100644
--- a/core/chain_indexer_test.go
+++ b/core/chain_indexer_test.go
@@ -25,9 +25,9 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/core/types"
)
// Runs multiple tests with randomized parameters.
diff --git a/core/chain_makers.go b/core/chain_makers.go
index b113c0d1be..aeda1f4602 100644
--- a/core/chain_makers.go
+++ b/core/chain_makers.go
@@ -20,14 +20,14 @@ import (
"fmt"
"math/big"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/consensus"
- "github.com/ethereum/go-ethereum/consensus/misc"
- "github.com/ethereum/go-ethereum/core/state"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/core/vm"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/consensus"
+ "github.com/scroll-tech/go-ethereum/consensus/misc"
+ "github.com/scroll-tech/go-ethereum/core/state"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/core/vm"
+ "github.com/scroll-tech/go-ethereum/ethdb"
+ "github.com/scroll-tech/go-ethereum/params"
)
// BlockGen creates blocks for testing.
diff --git a/core/chain_makers_test.go b/core/chain_makers_test.go
index 85a029f7c7..78fcdae5c7 100644
--- a/core/chain_makers_test.go
+++ b/core/chain_makers_test.go
@@ -20,12 +20,12 @@ import (
"fmt"
"math/big"
- "github.com/ethereum/go-ethereum/consensus/ethash"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/core/vm"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/consensus/ethash"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/core/vm"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/params"
)
func ExampleGenerateChain() {
diff --git a/core/dao_test.go b/core/dao_test.go
index c9c765a383..6f221973b8 100644
--- a/core/dao_test.go
+++ b/core/dao_test.go
@@ -20,10 +20,10 @@ import (
"math/big"
"testing"
- "github.com/ethereum/go-ethereum/consensus/ethash"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/vm"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/consensus/ethash"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/core/vm"
+ "github.com/scroll-tech/go-ethereum/params"
)
// Tests that DAO-fork enabled clients can properly filter out fork-commencing
diff --git a/core/error.go b/core/error.go
index 51ebefc137..d745c58999 100644
--- a/core/error.go
+++ b/core/error.go
@@ -19,7 +19,7 @@ package core
import (
"errors"
- "github.com/ethereum/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/core/types"
)
var (
diff --git a/core/events.go b/core/events.go
index ac935a137f..398bac1ba0 100644
--- a/core/events.go
+++ b/core/events.go
@@ -17,8 +17,8 @@
package core
import (
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core/types"
)
// NewTxsEvent is posted when a batch of transactions enter the transaction pool.
diff --git a/core/evm.go b/core/evm.go
index 6c67fc4376..3820323869 100644
--- a/core/evm.go
+++ b/core/evm.go
@@ -19,10 +19,10 @@ package core
import (
"math/big"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/consensus"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/core/vm"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/consensus"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/core/vm"
)
// ChainContext supports retrieving headers and consensus parameters from the
diff --git a/core/forkid/forkid.go b/core/forkid/forkid.go
index f56ce85fee..6894bf87f5 100644
--- a/core/forkid/forkid.go
+++ b/core/forkid/forkid.go
@@ -26,10 +26,10 @@ import (
"reflect"
"strings"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/params"
)
var (
diff --git a/core/forkid/forkid_test.go b/core/forkid/forkid_test.go
index 84c34561d1..410ab2a17f 100644
--- a/core/forkid/forkid_test.go
+++ b/core/forkid/forkid_test.go
@@ -21,9 +21,9 @@ import (
"math"
"testing"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/rlp"
)
// TestCreation tests that different genesis and fork rule combinations result in
diff --git a/core/gen_genesis.go b/core/gen_genesis.go
index 4e0844e889..7a33566b83 100644
--- a/core/gen_genesis.go
+++ b/core/gen_genesis.go
@@ -7,10 +7,10 @@ import (
"errors"
"math/big"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/common/math"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/hexutil"
+ "github.com/scroll-tech/go-ethereum/common/math"
+ "github.com/scroll-tech/go-ethereum/params"
)
var _ = (*genesisSpecMarshaling)(nil)
diff --git a/core/gen_genesis_account.go b/core/gen_genesis_account.go
index a9d47e6ba3..df32b2fb21 100644
--- a/core/gen_genesis_account.go
+++ b/core/gen_genesis_account.go
@@ -7,9 +7,9 @@ import (
"errors"
"math/big"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/common/math"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/hexutil"
+ "github.com/scroll-tech/go-ethereum/common/math"
)
var _ = (*genesisAccountMarshaling)(nil)
diff --git a/core/genesis.go b/core/genesis.go
index 85d01ec873..ffc4d6c33f 100644
--- a/core/genesis.go
+++ b/core/genesis.go
@@ -25,18 +25,18 @@ import (
"math/big"
"strings"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/common/math"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/state"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/rlp"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/hexutil"
+ "github.com/scroll-tech/go-ethereum/common/math"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/core/state"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/ethdb"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/trie"
)
//go:generate gencodec -type Genesis -field-override genesisSpecMarshaling -out gen_genesis.go
diff --git a/core/genesis_test.go b/core/genesis_test.go
index f3d6b23e5f..b95208a4f5 100644
--- a/core/genesis_test.go
+++ b/core/genesis_test.go
@@ -22,12 +22,12 @@ import (
"testing"
"github.com/davecgh/go-spew/spew"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/consensus/ethash"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/vm"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/consensus/ethash"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/core/vm"
+ "github.com/scroll-tech/go-ethereum/ethdb"
+ "github.com/scroll-tech/go-ethereum/params"
)
func TestInvalidCliqueConfig(t *testing.T) {
diff --git a/core/headerchain.go b/core/headerchain.go
index 9f2b708d0a..50dc9f3abd 100644
--- a/core/headerchain.go
+++ b/core/headerchain.go
@@ -26,13 +26,13 @@ import (
"sync/atomic"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/consensus"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/consensus"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/ethdb"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/params"
lru "github.com/hashicorp/golang-lru"
)
diff --git a/core/headerchain_test.go b/core/headerchain_test.go
index f3e40b6213..6a461205ca 100644
--- a/core/headerchain_test.go
+++ b/core/headerchain_test.go
@@ -23,12 +23,12 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/consensus"
- "github.com/ethereum/go-ethereum/consensus/ethash"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/consensus"
+ "github.com/scroll-tech/go-ethereum/consensus/ethash"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/params"
)
func verifyUnbrokenCanonchain(hc *HeaderChain) error {
diff --git a/core/mkalloc.go b/core/mkalloc.go
index df167d7082..7287a06492 100644
--- a/core/mkalloc.go
+++ b/core/mkalloc.go
@@ -35,8 +35,8 @@ import (
"sort"
"strconv"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/rlp"
)
type allocItem struct{ Addr, Balance *big.Int }
diff --git a/core/rawdb/accessors_chain.go b/core/rawdb/accessors_chain.go
index 4028191b76..678df62743 100644
--- a/core/rawdb/accessors_chain.go
+++ b/core/rawdb/accessors_chain.go
@@ -24,13 +24,13 @@ import (
"math/big"
"sort"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/ethdb"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/rlp"
)
// ReadCanonicalHash retrieves the hash assigned to a canonical block number.
diff --git a/core/rawdb/accessors_chain_test.go b/core/rawdb/accessors_chain_test.go
index 50b0d53902..6fefd65e9a 100644
--- a/core/rawdb/accessors_chain_test.go
+++ b/core/rawdb/accessors_chain_test.go
@@ -27,11 +27,11 @@ import (
"reflect"
"testing"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/rlp"
"golang.org/x/crypto/sha3"
)
diff --git a/core/rawdb/accessors_indexes.go b/core/rawdb/accessors_indexes.go
index 25a44354bf..53b78310b1 100644
--- a/core/rawdb/accessors_indexes.go
+++ b/core/rawdb/accessors_indexes.go
@@ -20,12 +20,12 @@ import (
"bytes"
"math/big"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/ethdb"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/rlp"
)
// ReadTxLookupEntry retrieves the positional metadata associated with a transaction
diff --git a/core/rawdb/accessors_indexes_test.go b/core/rawdb/accessors_indexes_test.go
index 4734e986e2..8f1fedd54d 100644
--- a/core/rawdb/accessors_indexes_test.go
+++ b/core/rawdb/accessors_indexes_test.go
@@ -22,11 +22,11 @@ import (
"math/big"
"testing"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/ethdb"
+ "github.com/scroll-tech/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/rlp"
"golang.org/x/crypto/sha3"
)
diff --git a/core/rawdb/accessors_metadata.go b/core/rawdb/accessors_metadata.go
index 079e335fa6..9c17b878da 100644
--- a/core/rawdb/accessors_metadata.go
+++ b/core/rawdb/accessors_metadata.go
@@ -20,11 +20,11 @@ import (
"encoding/json"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/ethdb"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/rlp"
)
// ReadDatabaseVersion retrieves the version number of the database.
diff --git a/core/rawdb/accessors_snapshot.go b/core/rawdb/accessors_snapshot.go
index df140de0cf..a573583ecf 100644
--- a/core/rawdb/accessors_snapshot.go
+++ b/core/rawdb/accessors_snapshot.go
@@ -19,9 +19,9 @@ package rawdb
import (
"encoding/binary"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/ethdb"
+ "github.com/scroll-tech/go-ethereum/log"
)
// ReadSnapshotDisabled retrieves if the snapshot maintenance is disabled.
diff --git a/core/rawdb/accessors_state.go b/core/rawdb/accessors_state.go
index 6112de03ad..f153af69f9 100644
--- a/core/rawdb/accessors_state.go
+++ b/core/rawdb/accessors_state.go
@@ -17,9 +17,9 @@
package rawdb
import (
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/ethdb"
+ "github.com/scroll-tech/go-ethereum/log"
)
// ReadPreimage retrieves a single preimage of the provided hash.
diff --git a/core/rawdb/chain_iterator.go b/core/rawdb/chain_iterator.go
index daee721594..bc5a29e944 100644
--- a/core/rawdb/chain_iterator.go
+++ b/core/rawdb/chain_iterator.go
@@ -21,12 +21,12 @@ import (
"sync/atomic"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/prque"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/prque"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/ethdb"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/rlp"
)
// InitDatabaseFromFreezer reinitializes an empty database from a previous batch
diff --git a/core/rawdb/chain_iterator_test.go b/core/rawdb/chain_iterator_test.go
index 45cc6323e0..52eee8ce35 100644
--- a/core/rawdb/chain_iterator_test.go
+++ b/core/rawdb/chain_iterator_test.go
@@ -23,8 +23,8 @@ import (
"sync"
"testing"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core/types"
)
func TestChainIterator(t *testing.T) {
diff --git a/core/rawdb/database.go b/core/rawdb/database.go
index c5af776672..4a359e6acb 100644
--- a/core/rawdb/database.go
+++ b/core/rawdb/database.go
@@ -24,11 +24,11 @@ import (
"sync/atomic"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/ethdb/leveldb"
- "github.com/ethereum/go-ethereum/ethdb/memorydb"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/ethdb"
+ "github.com/scroll-tech/go-ethereum/ethdb/leveldb"
+ "github.com/scroll-tech/go-ethereum/ethdb/memorydb"
+ "github.com/scroll-tech/go-ethereum/log"
"github.com/olekukonko/tablewriter"
)
diff --git a/core/rawdb/freezer.go b/core/rawdb/freezer.go
index e19c202adc..617f87ca03 100644
--- a/core/rawdb/freezer.go
+++ b/core/rawdb/freezer.go
@@ -26,11 +26,11 @@ import (
"sync/atomic"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/metrics"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/ethdb"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/metrics"
+ "github.com/scroll-tech/go-ethereum/params"
"github.com/prometheus/tsdb/fileutil"
)
diff --git a/core/rawdb/freezer_batch.go b/core/rawdb/freezer_batch.go
index 762fa8f25f..21279a0278 100644
--- a/core/rawdb/freezer_batch.go
+++ b/core/rawdb/freezer_batch.go
@@ -20,8 +20,8 @@ import (
"fmt"
"sync/atomic"
- "github.com/ethereum/go-ethereum/common/math"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/common/math"
+ "github.com/scroll-tech/go-ethereum/rlp"
"github.com/golang/snappy"
)
diff --git a/core/rawdb/freezer_table.go b/core/rawdb/freezer_table.go
index 22405cf9b4..3f0136b1ce 100644
--- a/core/rawdb/freezer_table.go
+++ b/core/rawdb/freezer_table.go
@@ -27,9 +27,9 @@ import (
"sync"
"sync/atomic"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/metrics"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/metrics"
"github.com/golang/snappy"
)
diff --git a/core/rawdb/freezer_table_test.go b/core/rawdb/freezer_table_test.go
index 803809b520..8fbcf75549 100644
--- a/core/rawdb/freezer_table_test.go
+++ b/core/rawdb/freezer_table_test.go
@@ -25,7 +25,7 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/metrics"
+ "github.com/scroll-tech/go-ethereum/metrics"
"github.com/stretchr/testify/require"
)
diff --git a/core/rawdb/freezer_test.go b/core/rawdb/freezer_test.go
index fa84f80306..30fab07547 100644
--- a/core/rawdb/freezer_test.go
+++ b/core/rawdb/freezer_test.go
@@ -27,8 +27,8 @@ import (
"sync"
"testing"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/ethdb"
+ "github.com/scroll-tech/go-ethereum/rlp"
"github.com/stretchr/testify/require"
)
diff --git a/core/rawdb/schema.go b/core/rawdb/schema.go
index d432db2ab7..73dc69ea31 100644
--- a/core/rawdb/schema.go
+++ b/core/rawdb/schema.go
@@ -21,8 +21,8 @@ import (
"bytes"
"encoding/binary"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/metrics"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/metrics"
)
// The fields below define the low level database schema prefixing.
diff --git a/core/rawdb/table.go b/core/rawdb/table.go
index 91fc31b660..893de34a83 100644
--- a/core/rawdb/table.go
+++ b/core/rawdb/table.go
@@ -17,7 +17,7 @@
package rawdb
import (
- "github.com/ethereum/go-ethereum/ethdb"
+ "github.com/scroll-tech/go-ethereum/ethdb"
)
// table is a wrapper around a database that prefixes each key access with a pre-
diff --git a/core/rawdb/table_test.go b/core/rawdb/table_test.go
index aa6adf3e72..f2cd4b31f3 100644
--- a/core/rawdb/table_test.go
+++ b/core/rawdb/table_test.go
@@ -20,7 +20,7 @@ import (
"bytes"
"testing"
- "github.com/ethereum/go-ethereum/ethdb"
+ "github.com/scroll-tech/go-ethereum/ethdb"
)
func TestTableDatabase(t *testing.T) { testTableDatabase(t, "prefix") }
diff --git a/core/rlp_test.go b/core/rlp_test.go
index 40bcef5e55..c89e773fe2 100644
--- a/core/rlp_test.go
+++ b/core/rlp_test.go
@@ -21,13 +21,13 @@ import (
"math/big"
"testing"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/consensus/ethash"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/consensus/ethash"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/rlp"
"golang.org/x/crypto/sha3"
)
diff --git a/core/state/access_list.go b/core/state/access_list.go
index 4194691345..46c5701cfa 100644
--- a/core/state/access_list.go
+++ b/core/state/access_list.go
@@ -17,7 +17,7 @@
package state
import (
- "github.com/ethereum/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common"
)
type accessList struct {
diff --git a/core/state/database.go b/core/state/database.go
index bbcd2358e5..82cf45de8f 100644
--- a/core/state/database.go
+++ b/core/state/database.go
@@ -21,11 +21,11 @@ import (
"fmt"
"github.com/VictoriaMetrics/fastcache"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/ethdb"
+ "github.com/scroll-tech/go-ethereum/trie"
lru "github.com/hashicorp/golang-lru"
)
diff --git a/core/state/dump.go b/core/state/dump.go
index bfcc035435..030f22da33 100644
--- a/core/state/dump.go
+++ b/core/state/dump.go
@@ -21,12 +21,12 @@ import (
"fmt"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/rlp"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/hexutil"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/trie"
)
// DumpConfig is a set of options to control what portions of the statewill be
diff --git a/core/state/iterator.go b/core/state/iterator.go
index 611df52431..a26fbf5ec1 100644
--- a/core/state/iterator.go
+++ b/core/state/iterator.go
@@ -20,10 +20,10 @@ import (
"bytes"
"fmt"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/rlp"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/trie"
)
// NodeIterator is an iterator to traverse the entire state trie post-order,
diff --git a/core/state/iterator_test.go b/core/state/iterator_test.go
index d1afe9ca3e..851cdcc1de 100644
--- a/core/state/iterator_test.go
+++ b/core/state/iterator_test.go
@@ -20,8 +20,8 @@ import (
"bytes"
"testing"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/ethdb"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/ethdb"
)
// Tests that the node iterator indeed walks over the entire database contents.
diff --git a/core/state/journal.go b/core/state/journal.go
index 57a692dc7f..2e280622d1 100644
--- a/core/state/journal.go
+++ b/core/state/journal.go
@@ -19,7 +19,7 @@ package state
import (
"math/big"
- "github.com/ethereum/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common"
)
// journalEntry is a modification entry in the state change journal that can be
diff --git a/core/state/metrics.go b/core/state/metrics.go
index 7b40ff37af..fb5f2f9de4 100644
--- a/core/state/metrics.go
+++ b/core/state/metrics.go
@@ -16,7 +16,7 @@
package state
-import "github.com/ethereum/go-ethereum/metrics"
+import "github.com/scroll-tech/go-ethereum/metrics"
var (
accountUpdatedMeter = metrics.NewRegisteredMeter("state/update/account", nil)
diff --git a/core/state/pruner/bloom.go b/core/state/pruner/bloom.go
index 1cd03cf536..d76458eaad 100644
--- a/core/state/pruner/bloom.go
+++ b/core/state/pruner/bloom.go
@@ -21,9 +21,9 @@ import (
"errors"
"os"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/log"
bloomfilter "github.com/holiman/bloomfilter/v2"
)
diff --git a/core/state/pruner/pruner.go b/core/state/pruner/pruner.go
index 37772ca35c..4ffd76aab8 100644
--- a/core/state/pruner/pruner.go
+++ b/core/state/pruner/pruner.go
@@ -27,15 +27,15 @@ import (
"strings"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/state/snapshot"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/rlp"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/core/state/snapshot"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/ethdb"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/trie"
)
const (
diff --git a/core/state/snapshot/account.go b/core/state/snapshot/account.go
index b92e942950..111ea3a023 100644
--- a/core/state/snapshot/account.go
+++ b/core/state/snapshot/account.go
@@ -20,8 +20,8 @@ import (
"bytes"
"math/big"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/rlp"
)
// Account is a modified version of a state.Account, where the root is replaced
diff --git a/core/state/snapshot/conversion.go b/core/state/snapshot/conversion.go
index f70cbf1e68..29024bf0f8 100644
--- a/core/state/snapshot/conversion.go
+++ b/core/state/snapshot/conversion.go
@@ -26,12 +26,12 @@ import (
"sync"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/rlp"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/ethdb"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/trie"
)
// trieKV represents a trie key-value pair
diff --git a/core/state/snapshot/difflayer.go b/core/state/snapshot/difflayer.go
index ee88938b77..7ce3cbd9c7 100644
--- a/core/state/snapshot/difflayer.go
+++ b/core/state/snapshot/difflayer.go
@@ -26,8 +26,8 @@ import (
"sync/atomic"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/rlp"
bloomfilter "github.com/holiman/bloomfilter/v2"
)
diff --git a/core/state/snapshot/difflayer_test.go b/core/state/snapshot/difflayer_test.go
index e15c1d5049..c0e1be6d96 100644
--- a/core/state/snapshot/difflayer_test.go
+++ b/core/state/snapshot/difflayer_test.go
@@ -22,9 +22,9 @@ import (
"testing"
"github.com/VictoriaMetrics/fastcache"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/ethdb/memorydb"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/ethdb/memorydb"
)
func copyDestructs(destructs map[common.Hash]struct{}) map[common.Hash]struct{} {
diff --git a/core/state/snapshot/disklayer.go b/core/state/snapshot/disklayer.go
index 7cbf6e293d..854b542cae 100644
--- a/core/state/snapshot/disklayer.go
+++ b/core/state/snapshot/disklayer.go
@@ -21,11 +21,11 @@ import (
"sync"
"github.com/VictoriaMetrics/fastcache"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/rlp"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/ethdb"
+ "github.com/scroll-tech/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/trie"
)
// diskLayer is a low level persistent snapshot built on top of a key-value store.
diff --git a/core/state/snapshot/disklayer_test.go b/core/state/snapshot/disklayer_test.go
index ccde2fc094..adce242933 100644
--- a/core/state/snapshot/disklayer_test.go
+++ b/core/state/snapshot/disklayer_test.go
@@ -23,12 +23,12 @@ import (
"testing"
"github.com/VictoriaMetrics/fastcache"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/ethdb/leveldb"
- "github.com/ethereum/go-ethereum/ethdb/memorydb"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/ethdb"
+ "github.com/scroll-tech/go-ethereum/ethdb/leveldb"
+ "github.com/scroll-tech/go-ethereum/ethdb/memorydb"
+ "github.com/scroll-tech/go-ethereum/rlp"
)
// reverse reverses the contents of a byte slice. It's used to update random accs
diff --git a/core/state/snapshot/generate.go b/core/state/snapshot/generate.go
index a4373d8bcd..5bebfc8d46 100644
--- a/core/state/snapshot/generate.go
+++ b/core/state/snapshot/generate.go
@@ -25,17 +25,17 @@ import (
"time"
"github.com/VictoriaMetrics/fastcache"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/common/math"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/ethdb/memorydb"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/metrics"
- "github.com/ethereum/go-ethereum/rlp"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/hexutil"
+ "github.com/scroll-tech/go-ethereum/common/math"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/ethdb"
+ "github.com/scroll-tech/go-ethereum/ethdb/memorydb"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/metrics"
+ "github.com/scroll-tech/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/trie"
)
var (
diff --git a/core/state/snapshot/generate_test.go b/core/state/snapshot/generate_test.go
index 582da6a2e7..ef239917c4 100644
--- a/core/state/snapshot/generate_test.go
+++ b/core/state/snapshot/generate_test.go
@@ -23,13 +23,13 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/ethdb/memorydb"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/rlp"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/ethdb"
+ "github.com/scroll-tech/go-ethereum/ethdb/memorydb"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/trie"
"golang.org/x/crypto/sha3"
)
diff --git a/core/state/snapshot/iterator.go b/core/state/snapshot/iterator.go
index c1a196c7ff..3374229177 100644
--- a/core/state/snapshot/iterator.go
+++ b/core/state/snapshot/iterator.go
@@ -21,9 +21,9 @@ import (
"fmt"
"sort"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/ethdb"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/ethdb"
)
// Iterator is an iterator to step over all the accounts or the specific
diff --git a/core/state/snapshot/iterator_binary.go b/core/state/snapshot/iterator_binary.go
index 22184b2545..83c6438115 100644
--- a/core/state/snapshot/iterator_binary.go
+++ b/core/state/snapshot/iterator_binary.go
@@ -19,7 +19,7 @@ package snapshot
import (
"bytes"
- "github.com/ethereum/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common"
)
// binaryIterator is a simplistic iterator to step over the accounts or storage
diff --git a/core/state/snapshot/iterator_fast.go b/core/state/snapshot/iterator_fast.go
index 48069b8fcf..f10bb114e5 100644
--- a/core/state/snapshot/iterator_fast.go
+++ b/core/state/snapshot/iterator_fast.go
@@ -21,7 +21,7 @@ import (
"fmt"
"sort"
- "github.com/ethereum/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common"
)
// weightedIterator is a iterator with an assigned weight. It is used to prioritise
diff --git a/core/state/snapshot/iterator_test.go b/core/state/snapshot/iterator_test.go
index 2c7e876e08..8f3bd384e0 100644
--- a/core/state/snapshot/iterator_test.go
+++ b/core/state/snapshot/iterator_test.go
@@ -24,8 +24,8 @@ import (
"testing"
"github.com/VictoriaMetrics/fastcache"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
)
// TestAccountIteratorBasics tests some simple single-layer(diff and disk) iteration
diff --git a/core/state/snapshot/journal.go b/core/state/snapshot/journal.go
index 5cfb9a9f2a..779460ad21 100644
--- a/core/state/snapshot/journal.go
+++ b/core/state/snapshot/journal.go
@@ -25,12 +25,12 @@ import (
"time"
"github.com/VictoriaMetrics/fastcache"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/rlp"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/ethdb"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/trie"
)
const journalVersion uint64 = 0
diff --git a/core/state/snapshot/snapshot.go b/core/state/snapshot/snapshot.go
index 6ee6b06bb5..e6b004a133 100644
--- a/core/state/snapshot/snapshot.go
+++ b/core/state/snapshot/snapshot.go
@@ -24,13 +24,13 @@ import (
"sync"
"sync/atomic"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/metrics"
- "github.com/ethereum/go-ethereum/rlp"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/ethdb"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/metrics"
+ "github.com/scroll-tech/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/trie"
)
var (
diff --git a/core/state/snapshot/snapshot_test.go b/core/state/snapshot/snapshot_test.go
index 12f2765b3b..13f1385ac4 100644
--- a/core/state/snapshot/snapshot_test.go
+++ b/core/state/snapshot/snapshot_test.go
@@ -25,9 +25,9 @@ import (
"time"
"github.com/VictoriaMetrics/fastcache"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/rlp"
)
// randomHash generates a random blob of data and returns it as a hash.
diff --git a/core/state/snapshot/sort.go b/core/state/snapshot/sort.go
index 88841231d9..74e99cc9e7 100644
--- a/core/state/snapshot/sort.go
+++ b/core/state/snapshot/sort.go
@@ -19,7 +19,7 @@ package snapshot
import (
"bytes"
- "github.com/ethereum/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common"
)
// hashes is a helper to implement sort.Interface.
diff --git a/core/state/snapshot/wipe.go b/core/state/snapshot/wipe.go
index 2cab57393b..e8c677ce10 100644
--- a/core/state/snapshot/wipe.go
+++ b/core/state/snapshot/wipe.go
@@ -20,11 +20,11 @@ import (
"bytes"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/metrics"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/ethdb"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/metrics"
)
// wipeSnapshot starts a goroutine to iterate over the entire key-value database
diff --git a/core/state/snapshot/wipe_test.go b/core/state/snapshot/wipe_test.go
index 2c45652a96..1ae7f26be9 100644
--- a/core/state/snapshot/wipe_test.go
+++ b/core/state/snapshot/wipe_test.go
@@ -20,9 +20,9 @@ import (
"math/rand"
"testing"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/ethdb/memorydb"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/ethdb/memorydb"
)
// Tests that given a database with random data content, all parts of a snapshot
diff --git a/core/state/state_object.go b/core/state/state_object.go
index 138fcbdecd..ad4e197b79 100644
--- a/core/state/state_object.go
+++ b/core/state/state_object.go
@@ -23,11 +23,11 @@ import (
"math/big"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/metrics"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/metrics"
+ "github.com/scroll-tech/go-ethereum/rlp"
)
var emptyCodeHash = crypto.Keccak256(nil)
diff --git a/core/state/state_object_test.go b/core/state/state_object_test.go
index 42fd778025..c5331bc28b 100644
--- a/core/state/state_object_test.go
+++ b/core/state/state_object_test.go
@@ -20,7 +20,7 @@ import (
"bytes"
"testing"
- "github.com/ethereum/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common"
)
func BenchmarkCutOriginal(b *testing.B) {
diff --git a/core/state/state_test.go b/core/state/state_test.go
index 0a55d7781f..55351f8cf6 100644
--- a/core/state/state_test.go
+++ b/core/state/state_test.go
@@ -21,10 +21,10 @@ import (
"math/big"
"testing"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/ethdb"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/ethdb"
)
type stateTest struct {
diff --git a/core/state/statedb.go b/core/state/statedb.go
index e3541339ea..ed0d5bff06 100644
--- a/core/state/statedb.go
+++ b/core/state/statedb.go
@@ -24,15 +24,15 @@ import (
"sort"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/state/snapshot"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/metrics"
- "github.com/ethereum/go-ethereum/rlp"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/core/state/snapshot"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/metrics"
+ "github.com/scroll-tech/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/trie"
)
type revision struct {
@@ -661,7 +661,7 @@ func (s *StateDB) Copy() *StateDB {
}
// Copy the dirty states, logs, and preimages
for addr := range s.journal.dirties {
- // As documented [here](https://github.com/ethereum/go-ethereum/pull/16485#issuecomment-380438527),
+ // As documented [here](https://github.com/scroll-tech/go-ethereum/pull/16485#issuecomment-380438527),
// and in the Finalise-method, there is a case where an object is in the journal but not
// in the stateObjects: OOG after touch on ripeMD prior to Byzantium. Thus, we need to check for
// nil
diff --git a/core/state/statedb_test.go b/core/state/statedb_test.go
index e9576d4dc4..a5a3cafebd 100644
--- a/core/state/statedb_test.go
+++ b/core/state/statedb_test.go
@@ -29,9 +29,9 @@ import (
"testing"
"testing/quick"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/core/types"
)
// Tests that updating a state trie does not leak any database writes prior to
@@ -146,7 +146,7 @@ func TestIntermediateLeaks(t *testing.T) {
// TestCopy tests that copying a StateDB object indeed makes the original and
// the copy independent of each other. This test is a regression test against
-// https://github.com/ethereum/go-ethereum/pull/15549.
+// https://github.com/scroll-tech/go-ethereum/pull/15549.
func TestCopy(t *testing.T) {
// Create a random state test to copy and modify "independently"
orig, _ := New(common.Hash{}, NewDatabase(rawdb.NewMemoryDatabase()), nil)
@@ -489,7 +489,7 @@ func TestTouchDelete(t *testing.T) {
}
// TestCopyOfCopy tests that modified objects are carried over to the copy, and the copy of the copy.
-// See https://github.com/ethereum/go-ethereum/pull/15225#issuecomment-380191512
+// See https://github.com/scroll-tech/go-ethereum/pull/15225#issuecomment-380191512
func TestCopyOfCopy(t *testing.T) {
state, _ := New(common.Hash{}, NewDatabase(rawdb.NewMemoryDatabase()), nil)
addr := common.HexToAddress("aaaa")
@@ -506,7 +506,7 @@ func TestCopyOfCopy(t *testing.T) {
// Tests a regression where committing a copy lost some internal meta information,
// leading to corrupted subsequent copies.
//
-// See https://github.com/ethereum/go-ethereum/issues/20106.
+// See https://github.com/scroll-tech/go-ethereum/issues/20106.
func TestCopyCommitCopy(t *testing.T) {
state, _ := New(common.Hash{}, NewDatabase(rawdb.NewMemoryDatabase()), nil)
@@ -578,7 +578,7 @@ func TestCopyCommitCopy(t *testing.T) {
// Tests a regression where committing a copy lost some internal meta information,
// leading to corrupted subsequent copies.
//
-// See https://github.com/ethereum/go-ethereum/issues/20106.
+// See https://github.com/scroll-tech/go-ethereum/issues/20106.
func TestCopyCopyCommitCopy(t *testing.T) {
state, _ := New(common.Hash{}, NewDatabase(rawdb.NewMemoryDatabase()), nil)
diff --git a/core/state/sync.go b/core/state/sync.go
index 734961d9c5..b48908d3b6 100644
--- a/core/state/sync.go
+++ b/core/state/sync.go
@@ -19,11 +19,11 @@ package state
import (
"bytes"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/rlp"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/ethdb"
+ "github.com/scroll-tech/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/trie"
)
// NewStateSync create a new state trie download scheduler.
diff --git a/core/state/sync_test.go b/core/state/sync_test.go
index beb8fcfd9c..c83c599302 100644
--- a/core/state/sync_test.go
+++ b/core/state/sync_test.go
@@ -21,14 +21,14 @@ import (
"math/big"
"testing"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/ethdb/memorydb"
- "github.com/ethereum/go-ethereum/rlp"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/ethdb"
+ "github.com/scroll-tech/go-ethereum/ethdb/memorydb"
+ "github.com/scroll-tech/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/trie"
)
// testAccount is the data associated with an account used by the state tests.
diff --git a/core/state/trie_prefetcher.go b/core/state/trie_prefetcher.go
index 25c3730e3f..798f573bbf 100644
--- a/core/state/trie_prefetcher.go
+++ b/core/state/trie_prefetcher.go
@@ -19,9 +19,9 @@ package state
import (
"sync"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/metrics"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/metrics"
)
var (
diff --git a/core/state/trie_prefetcher_test.go b/core/state/trie_prefetcher_test.go
index 35dc7a2c0d..65cca30420 100644
--- a/core/state/trie_prefetcher_test.go
+++ b/core/state/trie_prefetcher_test.go
@@ -21,8 +21,8 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
)
func filledStateDB() *StateDB {
diff --git a/core/state_prefetcher.go b/core/state_prefetcher.go
index 10a1722940..8ba89a9535 100644
--- a/core/state_prefetcher.go
+++ b/core/state_prefetcher.go
@@ -19,11 +19,11 @@ package core
import (
"sync/atomic"
- "github.com/ethereum/go-ethereum/consensus"
- "github.com/ethereum/go-ethereum/core/state"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/core/vm"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/consensus"
+ "github.com/scroll-tech/go-ethereum/core/state"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/core/vm"
+ "github.com/scroll-tech/go-ethereum/params"
)
// statePrefetcher is a basic Prefetcher, which blindly executes a block on top
diff --git a/core/state_processor.go b/core/state_processor.go
index d4c77ae410..f5898cbf81 100644
--- a/core/state_processor.go
+++ b/core/state_processor.go
@@ -20,14 +20,14 @@ import (
"fmt"
"math/big"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/consensus"
- "github.com/ethereum/go-ethereum/consensus/misc"
- "github.com/ethereum/go-ethereum/core/state"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/core/vm"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/consensus"
+ "github.com/scroll-tech/go-ethereum/consensus/misc"
+ "github.com/scroll-tech/go-ethereum/core/state"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/core/vm"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/params"
)
// StateProcessor is a basic Processor, which takes care of transitioning
diff --git a/core/state_processor_test.go b/core/state_processor_test.go
index aa8e4bebf9..8cae034d42 100644
--- a/core/state_processor_test.go
+++ b/core/state_processor_test.go
@@ -21,17 +21,17 @@ import (
"math/big"
"testing"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/math"
- "github.com/ethereum/go-ethereum/consensus"
- "github.com/ethereum/go-ethereum/consensus/ethash"
- "github.com/ethereum/go-ethereum/consensus/misc"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/core/vm"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/math"
+ "github.com/scroll-tech/go-ethereum/consensus"
+ "github.com/scroll-tech/go-ethereum/consensus/ethash"
+ "github.com/scroll-tech/go-ethereum/consensus/misc"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/core/vm"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/trie"
"golang.org/x/crypto/sha3"
)
diff --git a/core/state_transition.go b/core/state_transition.go
index 135a9c6dbe..51e1052ea5 100644
--- a/core/state_transition.go
+++ b/core/state_transition.go
@@ -21,12 +21,12 @@ import (
"math"
"math/big"
- "github.com/ethereum/go-ethereum/common"
- cmath "github.com/ethereum/go-ethereum/common/math"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/core/vm"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/common"
+ cmath "github.com/scroll-tech/go-ethereum/common/math"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/core/vm"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/params"
)
var emptyCodeHash = crypto.Keccak256Hash(nil)
diff --git a/core/tx_cacher.go b/core/tx_cacher.go
index b1e5d676a2..78be021dcc 100644
--- a/core/tx_cacher.go
+++ b/core/tx_cacher.go
@@ -19,7 +19,7 @@ package core
import (
"runtime"
- "github.com/ethereum/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/core/types"
)
// senderCacher is a concurrent transaction sender recoverer and cacher.
diff --git a/core/tx_journal.go b/core/tx_journal.go
index d282126a08..19514724de 100644
--- a/core/tx_journal.go
+++ b/core/tx_journal.go
@@ -21,10 +21,10 @@ import (
"io"
"os"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/rlp"
)
// errNoActiveJournal is returned if a transaction is attempted to be inserted
diff --git a/core/tx_list.go b/core/tx_list.go
index f141a03bbd..36b48cf538 100644
--- a/core/tx_list.go
+++ b/core/tx_list.go
@@ -25,8 +25,8 @@ import (
"sync/atomic"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core/types"
)
// nonceHeap is a heap.Interface implementation over 64bit unsigned integers for
diff --git a/core/tx_list_test.go b/core/tx_list_test.go
index ef49cae1dd..fe401f2c36 100644
--- a/core/tx_list_test.go
+++ b/core/tx_list_test.go
@@ -21,8 +21,8 @@ import (
"math/rand"
"testing"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/crypto"
)
// Tests that transactions can be added to strict lists and list contents and
diff --git a/core/tx_noncer.go b/core/tx_noncer.go
index d6d2200775..0bb646c4ab 100644
--- a/core/tx_noncer.go
+++ b/core/tx_noncer.go
@@ -19,8 +19,8 @@ package core
import (
"sync"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/state"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core/state"
)
// txNoncer is a tiny virtual state database to manage the executable nonces of
diff --git a/core/tx_pool.go b/core/tx_pool.go
index 0e3844bcba..61576c20c6 100644
--- a/core/tx_pool.go
+++ b/core/tx_pool.go
@@ -25,15 +25,15 @@ import (
"sync/atomic"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/prque"
- "github.com/ethereum/go-ethereum/consensus/misc"
- "github.com/ethereum/go-ethereum/core/state"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/event"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/metrics"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/prque"
+ "github.com/scroll-tech/go-ethereum/consensus/misc"
+ "github.com/scroll-tech/go-ethereum/core/state"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/event"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/metrics"
+ "github.com/scroll-tech/go-ethereum/params"
)
const (
diff --git a/core/tx_pool_test.go b/core/tx_pool_test.go
index a7af275835..5b8978ed58 100644
--- a/core/tx_pool_test.go
+++ b/core/tx_pool_test.go
@@ -28,14 +28,14 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/state"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/event"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/core/state"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/event"
+ "github.com/scroll-tech/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/trie"
)
var (
diff --git a/core/types.go b/core/types.go
index 4c5b74a498..75c01e61c4 100644
--- a/core/types.go
+++ b/core/types.go
@@ -17,9 +17,9 @@
package core
import (
- "github.com/ethereum/go-ethereum/core/state"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/core/vm"
+ "github.com/scroll-tech/go-ethereum/core/state"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/core/vm"
)
// Validator is an interface which defines the standard for block validation. It
diff --git a/core/types/access_list_tx.go b/core/types/access_list_tx.go
index ee5f194b77..7627d22026 100644
--- a/core/types/access_list_tx.go
+++ b/core/types/access_list_tx.go
@@ -19,7 +19,7 @@ package types
import (
"math/big"
- "github.com/ethereum/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common"
)
//go:generate gencodec -type AccessTuple -out gen_access_tuple.go
diff --git a/core/types/block.go b/core/types/block.go
index 360f1eb47c..78f40bf0b4 100644
--- a/core/types/block.go
+++ b/core/types/block.go
@@ -26,9 +26,9 @@ import (
"sync/atomic"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/hexutil"
+ "github.com/scroll-tech/go-ethereum/rlp"
)
var (
diff --git a/core/types/block_test.go b/core/types/block_test.go
index 0b9a4def8d..05dc1ad67c 100644
--- a/core/types/block_test.go
+++ b/core/types/block_test.go
@@ -23,11 +23,11 @@ import (
"reflect"
"testing"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/math"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/math"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/rlp"
"golang.org/x/crypto/sha3"
)
diff --git a/core/types/bloom9.go b/core/types/bloom9.go
index 1793c2adc7..33d51dbbd8 100644
--- a/core/types/bloom9.go
+++ b/core/types/bloom9.go
@@ -21,8 +21,8 @@ import (
"fmt"
"math/big"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/common/hexutil"
+ "github.com/scroll-tech/go-ethereum/crypto"
)
type bytesBacked interface {
diff --git a/core/types/bloom9_test.go b/core/types/bloom9_test.go
index 893df486dd..b0911934b3 100644
--- a/core/types/bloom9_test.go
+++ b/core/types/bloom9_test.go
@@ -21,8 +21,8 @@ import (
"math/big"
"testing"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/crypto"
)
func TestBloom(t *testing.T) {
diff --git a/core/types/dynamic_fee_tx.go b/core/types/dynamic_fee_tx.go
index 585c029d89..f4b1755ef1 100644
--- a/core/types/dynamic_fee_tx.go
+++ b/core/types/dynamic_fee_tx.go
@@ -19,7 +19,7 @@ package types
import (
"math/big"
- "github.com/ethereum/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common"
)
type DynamicFeeTx struct {
diff --git a/core/types/gen_access_tuple.go b/core/types/gen_access_tuple.go
index fc48a84cc0..f3d51d3767 100644
--- a/core/types/gen_access_tuple.go
+++ b/core/types/gen_access_tuple.go
@@ -6,7 +6,7 @@ import (
"encoding/json"
"errors"
- "github.com/ethereum/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common"
)
// MarshalJSON marshals as JSON.
diff --git a/core/types/gen_header_json.go b/core/types/gen_header_json.go
index 75e24b34d6..01f812ddac 100644
--- a/core/types/gen_header_json.go
+++ b/core/types/gen_header_json.go
@@ -7,8 +7,8 @@ import (
"errors"
"math/big"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/hexutil"
)
var _ = (*headerMarshaling)(nil)
diff --git a/core/types/gen_log_json.go b/core/types/gen_log_json.go
index 90e1c14d90..f2677d17ef 100644
--- a/core/types/gen_log_json.go
+++ b/core/types/gen_log_json.go
@@ -6,8 +6,8 @@ import (
"encoding/json"
"errors"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/hexutil"
)
var _ = (*logMarshaling)(nil)
diff --git a/core/types/gen_receipt_json.go b/core/types/gen_receipt_json.go
index bb892f85be..f69fa2bf26 100644
--- a/core/types/gen_receipt_json.go
+++ b/core/types/gen_receipt_json.go
@@ -7,8 +7,8 @@ import (
"errors"
"math/big"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/hexutil"
)
var _ = (*receiptMarshaling)(nil)
diff --git a/core/types/hashing.go b/core/types/hashing.go
index 3227cf8a72..42b5673ad4 100644
--- a/core/types/hashing.go
+++ b/core/types/hashing.go
@@ -20,9 +20,9 @@ import (
"bytes"
"sync"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/rlp"
"golang.org/x/crypto/sha3"
)
diff --git a/core/types/hashing_test.go b/core/types/hashing_test.go
index 6d1ebf897c..730ae5efe8 100644
--- a/core/types/hashing_test.go
+++ b/core/types/hashing_test.go
@@ -24,12 +24,12 @@ import (
mrand "math/rand"
"testing"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/rlp"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/hexutil"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/trie"
)
func TestDeriveSha(t *testing.T) {
diff --git a/core/types/legacy_tx.go b/core/types/legacy_tx.go
index cb86bed772..dd6dedbbd1 100644
--- a/core/types/legacy_tx.go
+++ b/core/types/legacy_tx.go
@@ -19,7 +19,7 @@ package types
import (
"math/big"
- "github.com/ethereum/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common"
)
// LegacyTx is the transaction data of regular Ethereum transactions.
diff --git a/core/types/log.go b/core/types/log.go
index 88274e39da..7fc74a5c3a 100644
--- a/core/types/log.go
+++ b/core/types/log.go
@@ -19,9 +19,9 @@ package types
import (
"io"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/hexutil"
+ "github.com/scroll-tech/go-ethereum/rlp"
)
//go:generate gencodec -type Log -field-override logMarshaling -out gen_log_json.go
diff --git a/core/types/log_test.go b/core/types/log_test.go
index 0e56acfe4a..997e907fa3 100644
--- a/core/types/log_test.go
+++ b/core/types/log_test.go
@@ -23,8 +23,8 @@ import (
"testing"
"github.com/davecgh/go-spew/spew"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/hexutil"
)
var unmarshalLogTests = map[string]struct {
diff --git a/core/types/receipt.go b/core/types/receipt.go
index c3588990c0..28cab6db05 100644
--- a/core/types/receipt.go
+++ b/core/types/receipt.go
@@ -24,11 +24,11 @@ import (
"math/big"
"unsafe"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/hexutil"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/rlp"
)
//go:generate gencodec -type Receipt -field-override receiptMarshaling -out gen_receipt_json.go
diff --git a/core/types/receipt_test.go b/core/types/receipt_test.go
index 613559a658..f30e6ca2cd 100644
--- a/core/types/receipt_test.go
+++ b/core/types/receipt_test.go
@@ -23,10 +23,10 @@ import (
"reflect"
"testing"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/rlp"
)
var (
diff --git a/core/types/state_account.go b/core/types/state_account.go
index 68804bf311..ac67cfd67f 100644
--- a/core/types/state_account.go
+++ b/core/types/state_account.go
@@ -19,7 +19,7 @@ package types
import (
"math/big"
- "github.com/ethereum/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common"
)
// StateAccount is the Ethereum consensus representation of accounts.
diff --git a/core/types/transaction.go b/core/types/transaction.go
index 83f1766e67..40e80685c2 100644
--- a/core/types/transaction.go
+++ b/core/types/transaction.go
@@ -25,10 +25,10 @@ import (
"sync/atomic"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/math"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/math"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/rlp"
)
var (
diff --git a/core/types/transaction_marshalling.go b/core/types/transaction_marshalling.go
index aad31a5a97..4c62c1b88a 100644
--- a/core/types/transaction_marshalling.go
+++ b/core/types/transaction_marshalling.go
@@ -21,8 +21,8 @@ import (
"errors"
"math/big"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/hexutil"
)
// txJSON is the JSON representation of transactions.
diff --git a/core/types/transaction_signing.go b/core/types/transaction_signing.go
index 1d0d2a4c75..ff3c12ffaf 100644
--- a/core/types/transaction_signing.go
+++ b/core/types/transaction_signing.go
@@ -22,9 +22,9 @@ import (
"fmt"
"math/big"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/params"
)
var ErrInvalidChainId = errors.New("invalid chain id for signer")
diff --git a/core/types/transaction_signing_test.go b/core/types/transaction_signing_test.go
index 689fc38a9b..5b9fb26a1f 100644
--- a/core/types/transaction_signing_test.go
+++ b/core/types/transaction_signing_test.go
@@ -20,9 +20,9 @@ import (
"math/big"
"testing"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/rlp"
)
func TestEIP155Signing(t *testing.T) {
diff --git a/core/types/transaction_test.go b/core/types/transaction_test.go
index 58c95071b2..9fe007b48e 100644
--- a/core/types/transaction_test.go
+++ b/core/types/transaction_test.go
@@ -27,9 +27,9 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/rlp"
)
// The values in those tests are from the Transaction Tests
diff --git a/core/types/types_test.go b/core/types/types_test.go
index 1fb386d5de..7d4938ea58 100644
--- a/core/types/types_test.go
+++ b/core/types/types_test.go
@@ -20,9 +20,9 @@ import (
"math/big"
"testing"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/rlp"
)
type devnull struct{ len int }
diff --git a/core/vm/access_list_tracer.go b/core/vm/access_list_tracer.go
index 1368e4c99d..84a8c7f037 100644
--- a/core/vm/access_list_tracer.go
+++ b/core/vm/access_list_tracer.go
@@ -20,8 +20,8 @@ import (
"math/big"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core/types"
)
// accessList is an accumulator for the set of accounts and storage slots an EVM
diff --git a/core/vm/analysis_test.go b/core/vm/analysis_test.go
index d7f21e04aa..f63219f547 100644
--- a/core/vm/analysis_test.go
+++ b/core/vm/analysis_test.go
@@ -19,7 +19,7 @@ package vm
import (
"testing"
- "github.com/ethereum/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/crypto"
)
func TestJumpDestAnalysis(t *testing.T) {
diff --git a/core/vm/common.go b/core/vm/common.go
index 90ba4a4ad1..be40fa17d9 100644
--- a/core/vm/common.go
+++ b/core/vm/common.go
@@ -17,8 +17,8 @@
package vm
import (
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/math"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/math"
"github.com/holiman/uint256"
)
diff --git a/core/vm/contract.go b/core/vm/contract.go
index 61dbd5007a..42edd3a4d9 100644
--- a/core/vm/contract.go
+++ b/core/vm/contract.go
@@ -19,7 +19,7 @@ package vm
import (
"math/big"
- "github.com/ethereum/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common"
"github.com/holiman/uint256"
)
diff --git a/core/vm/contracts.go b/core/vm/contracts.go
index 9210f5486c..6fb771580f 100644
--- a/core/vm/contracts.go
+++ b/core/vm/contracts.go
@@ -22,13 +22,13 @@ import (
"errors"
"math/big"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/math"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/crypto/blake2b"
- "github.com/ethereum/go-ethereum/crypto/bls12381"
- "github.com/ethereum/go-ethereum/crypto/bn256"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/math"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/crypto/blake2b"
+ "github.com/scroll-tech/go-ethereum/crypto/bls12381"
+ "github.com/scroll-tech/go-ethereum/crypto/bn256"
+ "github.com/scroll-tech/go-ethereum/params"
//lint:ignore SA1019 Needed for precompile
"golang.org/x/crypto/ripemd160"
diff --git a/core/vm/contracts_test.go b/core/vm/contracts_test.go
index 30d9b49f71..8d7204fa98 100644
--- a/core/vm/contracts_test.go
+++ b/core/vm/contracts_test.go
@@ -24,7 +24,7 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common"
)
// precompiledTest defines the input/output pairs for precompiled contract tests.
diff --git a/core/vm/eips.go b/core/vm/eips.go
index 4070a2db53..c1f5c641e7 100644
--- a/core/vm/eips.go
+++ b/core/vm/eips.go
@@ -20,7 +20,7 @@ import (
"fmt"
"sort"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/params"
"github.com/holiman/uint256"
)
diff --git a/core/vm/evm.go b/core/vm/evm.go
index 618bbcf176..a61e7f7b64 100644
--- a/core/vm/evm.go
+++ b/core/vm/evm.go
@@ -21,9 +21,9 @@ import (
"sync/atomic"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/params"
"github.com/holiman/uint256"
)
diff --git a/core/vm/gas_table.go b/core/vm/gas_table.go
index 19d2198af6..6ebd8b2ec8 100644
--- a/core/vm/gas_table.go
+++ b/core/vm/gas_table.go
@@ -19,9 +19,9 @@ package vm
import (
"errors"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/math"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/math"
+ "github.com/scroll-tech/go-ethereum/params"
)
// memoryGasCost calculates the quadratic gas for memory expansion. It does so
diff --git a/core/vm/gas_table_test.go b/core/vm/gas_table_test.go
index 6cd126c9b4..3b767ba142 100644
--- a/core/vm/gas_table_test.go
+++ b/core/vm/gas_table_test.go
@@ -21,11 +21,11 @@ import (
"math/big"
"testing"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/state"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/hexutil"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/core/state"
+ "github.com/scroll-tech/go-ethereum/params"
)
func TestMemoryGasCost(t *testing.T) {
diff --git a/core/vm/gen_structlog.go b/core/vm/gen_structlog.go
index 365f3b7914..f5178f1c5a 100644
--- a/core/vm/gen_structlog.go
+++ b/core/vm/gen_structlog.go
@@ -5,9 +5,9 @@ package vm
import (
"encoding/json"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/common/math"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/hexutil"
+ "github.com/scroll-tech/go-ethereum/common/math"
"github.com/holiman/uint256"
)
diff --git a/core/vm/instructions.go b/core/vm/instructions.go
index bda480f083..baa42dc506 100644
--- a/core/vm/instructions.go
+++ b/core/vm/instructions.go
@@ -17,9 +17,9 @@
package vm
import (
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/params"
"github.com/holiman/uint256"
"golang.org/x/crypto/sha3"
)
diff --git a/core/vm/instructions_test.go b/core/vm/instructions_test.go
index 560d26a0b8..3d8c1fd5f2 100644
--- a/core/vm/instructions_test.go
+++ b/core/vm/instructions_test.go
@@ -23,9 +23,9 @@ import (
"io/ioutil"
"testing"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/params"
"github.com/holiman/uint256"
)
diff --git a/core/vm/interface.go b/core/vm/interface.go
index ad9b05d666..e028eabdae 100644
--- a/core/vm/interface.go
+++ b/core/vm/interface.go
@@ -19,8 +19,8 @@ package vm
import (
"math/big"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core/types"
)
// StateDB is an EVM database for full state querying.
diff --git a/core/vm/interpreter.go b/core/vm/interpreter.go
index 4315750baa..8562c5e7d4 100644
--- a/core/vm/interpreter.go
+++ b/core/vm/interpreter.go
@@ -20,9 +20,9 @@ import (
"hash"
"sync/atomic"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/math"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/math"
+ "github.com/scroll-tech/go-ethereum/log"
)
// Config are the configuration options for the Interpreter
diff --git a/core/vm/jump_table.go b/core/vm/jump_table.go
index 329ad77cbf..6933549f8b 100644
--- a/core/vm/jump_table.go
+++ b/core/vm/jump_table.go
@@ -17,7 +17,7 @@
package vm
import (
- "github.com/ethereum/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/params"
)
type (
diff --git a/core/vm/logger.go b/core/vm/logger.go
index 98ff967eed..7ddc220276 100644
--- a/core/vm/logger.go
+++ b/core/vm/logger.go
@@ -24,11 +24,11 @@ import (
"strings"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/common/math"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/hexutil"
+ "github.com/scroll-tech/go-ethereum/common/math"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/params"
"github.com/holiman/uint256"
)
diff --git a/core/vm/logger_json.go b/core/vm/logger_json.go
index 364ce738a0..1537880e2f 100644
--- a/core/vm/logger_json.go
+++ b/core/vm/logger_json.go
@@ -22,8 +22,8 @@ import (
"math/big"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/math"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/math"
)
type JSONLogger struct {
diff --git a/core/vm/logger_test.go b/core/vm/logger_test.go
index 7726c90bd5..af66424bcb 100644
--- a/core/vm/logger_test.go
+++ b/core/vm/logger_test.go
@@ -20,9 +20,9 @@ import (
"math/big"
"testing"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/state"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core/state"
+ "github.com/scroll-tech/go-ethereum/params"
"github.com/holiman/uint256"
)
diff --git a/core/vm/operations_acl.go b/core/vm/operations_acl.go
index 483226eefa..ae70d79243 100644
--- a/core/vm/operations_acl.go
+++ b/core/vm/operations_acl.go
@@ -19,9 +19,9 @@ package vm
import (
"errors"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/math"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/math"
+ "github.com/scroll-tech/go-ethereum/params"
)
func makeGasSStoreFunc(clearingRefund uint64) gasFunc {
diff --git a/core/vm/runtime/env.go b/core/vm/runtime/env.go
index dcb0974284..87c0ec2e8c 100644
--- a/core/vm/runtime/env.go
+++ b/core/vm/runtime/env.go
@@ -17,8 +17,8 @@
package runtime
import (
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/vm"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/core/vm"
)
func NewEnv(cfg *Config) *vm.EVM {
diff --git a/core/vm/runtime/runtime.go b/core/vm/runtime/runtime.go
index 103ce3e175..19d2804527 100644
--- a/core/vm/runtime/runtime.go
+++ b/core/vm/runtime/runtime.go
@@ -21,12 +21,12 @@ import (
"math/big"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/state"
- "github.com/ethereum/go-ethereum/core/vm"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/core/state"
+ "github.com/scroll-tech/go-ethereum/core/vm"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/params"
)
// Config is a basic type specifying certain configuration flags for running
diff --git a/core/vm/runtime/runtime_example_test.go b/core/vm/runtime/runtime_example_test.go
index b7d0ddc384..3eb5632eca 100644
--- a/core/vm/runtime/runtime_example_test.go
+++ b/core/vm/runtime/runtime_example_test.go
@@ -19,8 +19,8 @@ package runtime_test
import (
"fmt"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/vm/runtime"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core/vm/runtime"
)
func ExampleExecute() {
diff --git a/core/vm/runtime/runtime_test.go b/core/vm/runtime/runtime_test.go
index fea7817ff7..071458d06d 100644
--- a/core/vm/runtime/runtime_test.go
+++ b/core/vm/runtime/runtime_test.go
@@ -24,20 +24,20 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/accounts/abi"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/consensus"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/asm"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/state"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/core/vm"
- "github.com/ethereum/go-ethereum/eth/tracers"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/accounts/abi"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/consensus"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/core/asm"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/core/state"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/core/vm"
+ "github.com/scroll-tech/go-ethereum/eth/tracers"
+ "github.com/scroll-tech/go-ethereum/params"
// force-load js tracers to trigger registration
- _ "github.com/ethereum/go-ethereum/eth/tracers/js"
+ _ "github.com/scroll-tech/go-ethereum/eth/tracers/js"
)
func TestDefaults(t *testing.T) {
@@ -625,7 +625,7 @@ func TestEip2929Cases(t *testing.T) {
// TestColdAccountAccessCost test that the cold account access cost is reported
// correctly
-// see: https://github.com/ethereum/go-ethereum/issues/22649
+// see: https://github.com/scroll-tech/go-ethereum/issues/22649
func TestColdAccountAccessCost(t *testing.T) {
for i, tc := range []struct {
code []byte
diff --git a/core/vm/stack_table.go b/core/vm/stack_table.go
index 10c12901af..6ac2bbb938 100644
--- a/core/vm/stack_table.go
+++ b/core/vm/stack_table.go
@@ -17,7 +17,7 @@
package vm
import (
- "github.com/ethereum/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/params"
)
func minSwapStack(n int) int {
diff --git a/crypto/bls12381/g1_test.go b/crypto/bls12381/g1_test.go
index eef9f45055..010bb1cffe 100644
--- a/crypto/bls12381/g1_test.go
+++ b/crypto/bls12381/g1_test.go
@@ -6,7 +6,7 @@ import (
"math/big"
"testing"
- "github.com/ethereum/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common"
)
func (g *G1) one() *PointG1 {
diff --git a/crypto/bls12381/g2_test.go b/crypto/bls12381/g2_test.go
index f16f0e5eea..90189cac90 100644
--- a/crypto/bls12381/g2_test.go
+++ b/crypto/bls12381/g2_test.go
@@ -6,7 +6,7 @@ import (
"math/big"
"testing"
- "github.com/ethereum/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common"
)
func (g *G2) one() *PointG2 {
diff --git a/crypto/bls12381/pairing_test.go b/crypto/bls12381/pairing_test.go
index 77676fe9b1..9b5cd7eb24 100644
--- a/crypto/bls12381/pairing_test.go
+++ b/crypto/bls12381/pairing_test.go
@@ -4,7 +4,7 @@ import (
"math/big"
"testing"
- "github.com/ethereum/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common"
)
func TestPairingExpected(t *testing.T) {
diff --git a/crypto/bls12381/utils.go b/crypto/bls12381/utils.go
index de8bf495fe..2b541158df 100644
--- a/crypto/bls12381/utils.go
+++ b/crypto/bls12381/utils.go
@@ -20,7 +20,7 @@ import (
"errors"
"math/big"
- "github.com/ethereum/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common"
)
func bigFromHex(hex string) *big.Int {
diff --git a/crypto/bn256/bn256_fast.go b/crypto/bn256/bn256_fast.go
index e3c9b60518..b7eb725f3b 100644
--- a/crypto/bn256/bn256_fast.go
+++ b/crypto/bn256/bn256_fast.go
@@ -9,7 +9,7 @@
package bn256
import (
- bn256cf "github.com/ethereum/go-ethereum/crypto/bn256/cloudflare"
+ bn256cf "github.com/scroll-tech/go-ethereum/crypto/bn256/cloudflare"
)
// G1 is an abstract cyclic group. The zero value is suitable for use as the
diff --git a/crypto/bn256/bn256_slow.go b/crypto/bn256/bn256_slow.go
index 4c0c351e2d..b59b1d2a28 100644
--- a/crypto/bn256/bn256_slow.go
+++ b/crypto/bn256/bn256_slow.go
@@ -8,7 +8,7 @@
// Package bn256 implements the Optimal Ate pairing over a 256-bit Barreto-Naehrig curve.
package bn256
-import bn256 "github.com/ethereum/go-ethereum/crypto/bn256/google"
+import bn256 "github.com/scroll-tech/go-ethereum/crypto/bn256/google"
// G1 is an abstract cyclic group. The zero value is suitable for use as the
// output of an operation, but cannot be used as an input.
diff --git a/crypto/crypto.go b/crypto/crypto.go
index 40969a2895..07bced2846 100644
--- a/crypto/crypto.go
+++ b/crypto/crypto.go
@@ -30,9 +30,9 @@ import (
"math/big"
"os"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/math"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/math"
+ "github.com/scroll-tech/go-ethereum/rlp"
"golang.org/x/crypto/sha3"
)
diff --git a/crypto/crypto_test.go b/crypto/crypto_test.go
index f9b0d3e834..63602b5f8c 100644
--- a/crypto/crypto_test.go
+++ b/crypto/crypto_test.go
@@ -26,8 +26,8 @@ import (
"reflect"
"testing"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/hexutil"
)
var testAddrHex = "970e8128ab834e8eac17ab8e3812f010678cf791"
diff --git a/crypto/ecies/ecies_test.go b/crypto/ecies/ecies_test.go
index 0a6aeb2b51..8cf7e537e0 100644
--- a/crypto/ecies/ecies_test.go
+++ b/crypto/ecies/ecies_test.go
@@ -39,7 +39,7 @@ import (
"math/big"
"testing"
- "github.com/ethereum/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/crypto"
)
func TestKDF(t *testing.T) {
diff --git a/crypto/ecies/params.go b/crypto/ecies/params.go
index 0bd3877ddd..19b20a1f23 100644
--- a/crypto/ecies/params.go
+++ b/crypto/ecies/params.go
@@ -42,7 +42,7 @@ import (
"fmt"
"hash"
- ethcrypto "github.com/ethereum/go-ethereum/crypto"
+ ethcrypto "github.com/scroll-tech/go-ethereum/crypto"
)
var (
diff --git a/crypto/secp256k1/dummy.go b/crypto/secp256k1/dummy.go
index 65a75080f6..6b0bb04c68 100644
--- a/crypto/secp256k1/dummy.go
+++ b/crypto/secp256k1/dummy.go
@@ -15,7 +15,7 @@
package secp256k1
import (
- _ "github.com/ethereum/go-ethereum/crypto/secp256k1/libsecp256k1/include"
- _ "github.com/ethereum/go-ethereum/crypto/secp256k1/libsecp256k1/src"
- _ "github.com/ethereum/go-ethereum/crypto/secp256k1/libsecp256k1/src/modules/recovery"
+ _ "github.com/scroll-tech/go-ethereum/crypto/secp256k1/libsecp256k1/include"
+ _ "github.com/scroll-tech/go-ethereum/crypto/secp256k1/libsecp256k1/src"
+ _ "github.com/scroll-tech/go-ethereum/crypto/secp256k1/libsecp256k1/src/modules/recovery"
)
diff --git a/crypto/signature_cgo.go b/crypto/signature_cgo.go
index bd72d97d3b..a7f502c83f 100644
--- a/crypto/signature_cgo.go
+++ b/crypto/signature_cgo.go
@@ -24,8 +24,8 @@ import (
"crypto/elliptic"
"fmt"
- "github.com/ethereum/go-ethereum/common/math"
- "github.com/ethereum/go-ethereum/crypto/secp256k1"
+ "github.com/scroll-tech/go-ethereum/common/math"
+ "github.com/scroll-tech/go-ethereum/crypto/secp256k1"
)
// Ecrecover returns the uncompressed public key that created the given signature.
diff --git a/crypto/signature_test.go b/crypto/signature_test.go
index aecff76bfb..dd280b36b6 100644
--- a/crypto/signature_test.go
+++ b/crypto/signature_test.go
@@ -22,9 +22,9 @@ import (
"reflect"
"testing"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/common/math"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/hexutil"
+ "github.com/scroll-tech/go-ethereum/common/math"
)
var (
diff --git a/docs/postmortems/2021-08-22-split-postmortem.md b/docs/postmortems/2021-08-22-split-postmortem.md
index 429f22d70a..a5714f09b5 100644
--- a/docs/postmortems/2021-08-22-split-postmortem.md
+++ b/docs/postmortems/2021-08-22-split-postmortem.md
@@ -7,7 +7,7 @@ This is a post-mortem concerning the minority split that occurred on Ethereum ma
- 2021-08-17: Guido Vranken submitted bounty report. Investigation started, root cause identified, patch variations discussed.
- 2021-08-18: Made public announcement over twitter about upcoming security release upcoming Tuesday. Downstream projects were also notified about the upcoming patch-release.
-- 2021-08-24: Released [v1.10.8](https://github.com/ethereum/go-ethereum/releases/tag/v1.10.8) containing the fix on Tuesday morning (CET). Erigon released [v2021.08.04](https://github.com/ledgerwatch/erigon/releases/tag/v2021.08.04).
+- 2021-08-24: Released [v1.10.8](https://github.com/scroll-tech/go-ethereum/releases/tag/v1.10.8) containing the fix on Tuesday morning (CET). Erigon released [v2021.08.04](https://github.com/ledgerwatch/erigon/releases/tag/v2021.08.04).
- 2021-08-27: At 12:50:07 UTC, issue exploited. Analysis started roughly 30m later,
@@ -62,7 +62,7 @@ Since we had merged the removal of `ETH65`, if the entire network were to upgrad
- Announce an upcoming security release on Tuesday (August 24th), via Twitter and official channels, plus reach out to downstream projects.
- Temporarily revert the `ETH65`-removal.
-- Place the fix into the PR optimizing the jumpdest analysis [233381](https://github.com/ethereum/go-ethereum/pull/23381).
+- Place the fix into the PR optimizing the jumpdest analysis [233381](https://github.com/scroll-tech/go-ethereum/pull/23381).
- After 4-8 weeks, release details about the vulnerability.
diff --git a/eth/api.go b/eth/api.go
index f81dfa922b..2e9b912460 100644
--- a/eth/api.go
+++ b/eth/api.go
@@ -28,17 +28,17 @@ import (
"strings"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/state"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/internal/ethapi"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/rlp"
- "github.com/ethereum/go-ethereum/rpc"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/hexutil"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/core/state"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/internal/ethapi"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/rpc"
+ "github.com/scroll-tech/go-ethereum/trie"
)
// PublicEthereumAPI provides an API to access Ethereum full node-related
diff --git a/eth/api_backend.go b/eth/api_backend.go
index 6a19fb36ac..d6ea967f0b 100644
--- a/eth/api_backend.go
+++ b/eth/api_backend.go
@@ -22,22 +22,22 @@ import (
"math/big"
"time"
- "github.com/ethereum/go-ethereum"
- "github.com/ethereum/go-ethereum/accounts"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/consensus"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/bloombits"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/state"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/core/vm"
- "github.com/ethereum/go-ethereum/eth/gasprice"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/event"
- "github.com/ethereum/go-ethereum/miner"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/rpc"
+ "github.com/scroll-tech/go-ethereum"
+ "github.com/scroll-tech/go-ethereum/accounts"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/consensus"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/core/bloombits"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/core/state"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/core/vm"
+ "github.com/scroll-tech/go-ethereum/eth/gasprice"
+ "github.com/scroll-tech/go-ethereum/ethdb"
+ "github.com/scroll-tech/go-ethereum/event"
+ "github.com/scroll-tech/go-ethereum/miner"
+ "github.com/scroll-tech/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/rpc"
)
// EthAPIBackend implements ethapi.Backend for full nodes
diff --git a/eth/api_test.go b/eth/api_test.go
index 39a1d58460..f65ad39ea8 100644
--- a/eth/api_test.go
+++ b/eth/api_test.go
@@ -25,10 +25,10 @@ import (
"testing"
"github.com/davecgh/go-spew/spew"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/state"
- "github.com/ethereum/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/core/state"
+ "github.com/scroll-tech/go-ethereum/crypto"
)
var dumper = spew.ConfigState{Indent: " "}
diff --git a/eth/backend.go b/eth/backend.go
index be64c75541..2adee3f2cf 100644
--- a/eth/backend.go
+++ b/eth/backend.go
@@ -26,35 +26,35 @@ import (
"sync/atomic"
"time"
- "github.com/ethereum/go-ethereum/accounts"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/consensus"
- "github.com/ethereum/go-ethereum/consensus/clique"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/bloombits"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/state/pruner"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/core/vm"
- "github.com/ethereum/go-ethereum/eth/downloader"
- "github.com/ethereum/go-ethereum/eth/ethconfig"
- "github.com/ethereum/go-ethereum/eth/filters"
- "github.com/ethereum/go-ethereum/eth/gasprice"
- "github.com/ethereum/go-ethereum/eth/protocols/eth"
- "github.com/ethereum/go-ethereum/eth/protocols/snap"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/event"
- "github.com/ethereum/go-ethereum/internal/ethapi"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/miner"
- "github.com/ethereum/go-ethereum/node"
- "github.com/ethereum/go-ethereum/p2p"
- "github.com/ethereum/go-ethereum/p2p/dnsdisc"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/rlp"
- "github.com/ethereum/go-ethereum/rpc"
+ "github.com/scroll-tech/go-ethereum/accounts"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/hexutil"
+ "github.com/scroll-tech/go-ethereum/consensus"
+ "github.com/scroll-tech/go-ethereum/consensus/clique"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/core/bloombits"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/core/state/pruner"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/core/vm"
+ "github.com/scroll-tech/go-ethereum/eth/downloader"
+ "github.com/scroll-tech/go-ethereum/eth/ethconfig"
+ "github.com/scroll-tech/go-ethereum/eth/filters"
+ "github.com/scroll-tech/go-ethereum/eth/gasprice"
+ "github.com/scroll-tech/go-ethereum/eth/protocols/eth"
+ "github.com/scroll-tech/go-ethereum/eth/protocols/snap"
+ "github.com/scroll-tech/go-ethereum/ethdb"
+ "github.com/scroll-tech/go-ethereum/event"
+ "github.com/scroll-tech/go-ethereum/internal/ethapi"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/miner"
+ "github.com/scroll-tech/go-ethereum/node"
+ "github.com/scroll-tech/go-ethereum/p2p"
+ "github.com/scroll-tech/go-ethereum/p2p/dnsdisc"
+ "github.com/scroll-tech/go-ethereum/p2p/enode"
+ "github.com/scroll-tech/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/rpc"
)
// Config contains the configuration options of the ETH protocol.
diff --git a/eth/bloombits.go b/eth/bloombits.go
index 0cb7050d23..b99bfffe68 100644
--- a/eth/bloombits.go
+++ b/eth/bloombits.go
@@ -19,8 +19,8 @@ package eth
import (
"time"
- "github.com/ethereum/go-ethereum/common/bitutil"
- "github.com/ethereum/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/common/bitutil"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
)
const (
diff --git a/eth/catalyst/api.go b/eth/catalyst/api.go
index 3913da7572..0b3cdecde0 100644
--- a/eth/catalyst/api.go
+++ b/eth/catalyst/api.go
@@ -23,17 +23,17 @@ import (
"math/big"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/consensus/misc"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/state"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/eth"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/node"
- chainParams "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/rpc"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/consensus/misc"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/core/state"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/eth"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/node"
+ chainParams "github.com/scroll-tech/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/rpc"
+ "github.com/scroll-tech/go-ethereum/trie"
)
// Register adds catalyst APIs to the node.
diff --git a/eth/catalyst/api_test.go b/eth/catalyst/api_test.go
index 1104208630..d601333c97 100644
--- a/eth/catalyst/api_test.go
+++ b/eth/catalyst/api_test.go
@@ -20,15 +20,15 @@ import (
"math/big"
"testing"
- "github.com/ethereum/go-ethereum/consensus/ethash"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/eth"
- "github.com/ethereum/go-ethereum/eth/ethconfig"
- "github.com/ethereum/go-ethereum/node"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/consensus/ethash"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/eth"
+ "github.com/scroll-tech/go-ethereum/eth/ethconfig"
+ "github.com/scroll-tech/go-ethereum/node"
+ "github.com/scroll-tech/go-ethereum/params"
)
var (
diff --git a/eth/catalyst/api_types.go b/eth/catalyst/api_types.go
index d5d351a991..aaa2bf22c1 100644
--- a/eth/catalyst/api_types.go
+++ b/eth/catalyst/api_types.go
@@ -17,8 +17,8 @@
package catalyst
import (
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/hexutil"
)
//go:generate go run github.com/fjl/gencodec -type assembleBlockParams -field-override assembleBlockParamsMarshaling -out gen_blockparams.go
diff --git a/eth/catalyst/gen_blockparams.go b/eth/catalyst/gen_blockparams.go
index a9a08ec3a8..3cfd006cf5 100644
--- a/eth/catalyst/gen_blockparams.go
+++ b/eth/catalyst/gen_blockparams.go
@@ -6,8 +6,8 @@ import (
"encoding/json"
"errors"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/hexutil"
)
var _ = (*assembleBlockParamsMarshaling)(nil)
diff --git a/eth/catalyst/gen_ed.go b/eth/catalyst/gen_ed.go
index 4c2e4c8ead..8d38a9e74e 100644
--- a/eth/catalyst/gen_ed.go
+++ b/eth/catalyst/gen_ed.go
@@ -6,8 +6,8 @@ import (
"encoding/json"
"errors"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/hexutil"
)
var _ = (*executableDataMarshaling)(nil)
diff --git a/eth/discovery.go b/eth/discovery.go
index 70668b2b70..aba934e44e 100644
--- a/eth/discovery.go
+++ b/eth/discovery.go
@@ -17,10 +17,10 @@
package eth
import (
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/forkid"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/core/forkid"
+ "github.com/scroll-tech/go-ethereum/p2p/enode"
+ "github.com/scroll-tech/go-ethereum/rlp"
)
// ethEntry is the "eth" ENR entry which advertises eth protocol
diff --git a/eth/downloader/api.go b/eth/downloader/api.go
index 2024d23dea..1e09d1bd8d 100644
--- a/eth/downloader/api.go
+++ b/eth/downloader/api.go
@@ -20,9 +20,9 @@ import (
"context"
"sync"
- "github.com/ethereum/go-ethereum"
- "github.com/ethereum/go-ethereum/event"
- "github.com/ethereum/go-ethereum/rpc"
+ "github.com/scroll-tech/go-ethereum"
+ "github.com/scroll-tech/go-ethereum/event"
+ "github.com/scroll-tech/go-ethereum/rpc"
)
// PublicDownloaderAPI provides an API which gives information about the current synchronisation status.
diff --git a/eth/downloader/downloader.go b/eth/downloader/downloader.go
index 4ca1b55bbb..839ebe7338 100644
--- a/eth/downloader/downloader.go
+++ b/eth/downloader/downloader.go
@@ -25,19 +25,19 @@ import (
"sync/atomic"
"time"
- "github.com/ethereum/go-ethereum"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/state/snapshot"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/eth/protocols/eth"
- "github.com/ethereum/go-ethereum/eth/protocols/snap"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/event"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/metrics"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/scroll-tech/go-ethereum"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/core/state/snapshot"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/eth/protocols/eth"
+ "github.com/scroll-tech/go-ethereum/eth/protocols/snap"
+ "github.com/scroll-tech/go-ethereum/ethdb"
+ "github.com/scroll-tech/go-ethereum/event"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/metrics"
+ "github.com/scroll-tech/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/trie"
)
var (
diff --git a/eth/downloader/downloader_test.go b/eth/downloader/downloader_test.go
index 17cd3630c9..e96373548c 100644
--- a/eth/downloader/downloader_test.go
+++ b/eth/downloader/downloader_test.go
@@ -26,15 +26,15 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/state/snapshot"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/eth/protocols/eth"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/event"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/scroll-tech/go-ethereum"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/core/state/snapshot"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/eth/protocols/eth"
+ "github.com/scroll-tech/go-ethereum/ethdb"
+ "github.com/scroll-tech/go-ethereum/event"
+ "github.com/scroll-tech/go-ethereum/trie"
)
// Reduce some of the parameters to make the tester faster.
diff --git a/eth/downloader/events.go b/eth/downloader/events.go
index 25255a3a72..2a9043d599 100644
--- a/eth/downloader/events.go
+++ b/eth/downloader/events.go
@@ -16,7 +16,7 @@
package downloader
-import "github.com/ethereum/go-ethereum/core/types"
+import "github.com/scroll-tech/go-ethereum/core/types"
type DoneEvent struct {
Latest *types.Header
diff --git a/eth/downloader/metrics.go b/eth/downloader/metrics.go
index c38732043a..80f5701002 100644
--- a/eth/downloader/metrics.go
+++ b/eth/downloader/metrics.go
@@ -19,7 +19,7 @@
package downloader
import (
- "github.com/ethereum/go-ethereum/metrics"
+ "github.com/scroll-tech/go-ethereum/metrics"
)
var (
diff --git a/eth/downloader/peer.go b/eth/downloader/peer.go
index 8632948329..15091c444f 100644
--- a/eth/downloader/peer.go
+++ b/eth/downloader/peer.go
@@ -27,11 +27,11 @@ import (
"sync/atomic"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/eth/protocols/eth"
- "github.com/ethereum/go-ethereum/event"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/p2p/msgrate"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/eth/protocols/eth"
+ "github.com/scroll-tech/go-ethereum/event"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/p2p/msgrate"
)
const (
diff --git a/eth/downloader/queue.go b/eth/downloader/queue.go
index 04ec12cfa9..158608ccd7 100644
--- a/eth/downloader/queue.go
+++ b/eth/downloader/queue.go
@@ -26,12 +26,12 @@ import (
"sync/atomic"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/prque"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/metrics"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/prque"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/metrics"
+ "github.com/scroll-tech/go-ethereum/trie"
)
const (
diff --git a/eth/downloader/queue_test.go b/eth/downloader/queue_test.go
index cde5f306a2..07a05dc20e 100644
--- a/eth/downloader/queue_test.go
+++ b/eth/downloader/queue_test.go
@@ -24,13 +24,13 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/consensus/ethash"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/consensus/ethash"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/params"
)
var (
diff --git a/eth/downloader/resultstore.go b/eth/downloader/resultstore.go
index 21928c2a00..8075f507db 100644
--- a/eth/downloader/resultstore.go
+++ b/eth/downloader/resultstore.go
@@ -21,7 +21,7 @@ import (
"sync"
"sync/atomic"
- "github.com/ethereum/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/core/types"
)
// resultStore implements a structure for maintaining fetchResults, tracking their
diff --git a/eth/downloader/statesync.go b/eth/downloader/statesync.go
index 6c53e5577a..5c8b85c5a8 100644
--- a/eth/downloader/statesync.go
+++ b/eth/downloader/statesync.go
@@ -21,13 +21,13 @@ import (
"sync"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/state"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/core/state"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/ethdb"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/trie"
"golang.org/x/crypto/sha3"
)
diff --git a/eth/downloader/testchain_test.go b/eth/downloader/testchain_test.go
index b9865f7e03..8757755bab 100644
--- a/eth/downloader/testchain_test.go
+++ b/eth/downloader/testchain_test.go
@@ -21,13 +21,13 @@ import (
"math/big"
"sync"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/consensus/ethash"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/consensus/ethash"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/params"
)
// Test chain parameters.
diff --git a/eth/downloader/types.go b/eth/downloader/types.go
index ff70bfa0e3..388fa16b5c 100644
--- a/eth/downloader/types.go
+++ b/eth/downloader/types.go
@@ -19,7 +19,7 @@ package downloader
import (
"fmt"
- "github.com/ethereum/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/core/types"
)
// peerDropFn is a callback type for dropping a peer detected as malicious.
diff --git a/eth/ethconfig/config.go b/eth/ethconfig/config.go
index 29b47af259..b315843752 100644
--- a/eth/ethconfig/config.go
+++ b/eth/ethconfig/config.go
@@ -25,18 +25,18 @@ import (
"runtime"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/consensus"
- "github.com/ethereum/go-ethereum/consensus/clique"
- "github.com/ethereum/go-ethereum/consensus/ethash"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/eth/downloader"
- "github.com/ethereum/go-ethereum/eth/gasprice"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/miner"
- "github.com/ethereum/go-ethereum/node"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/consensus"
+ "github.com/scroll-tech/go-ethereum/consensus/clique"
+ "github.com/scroll-tech/go-ethereum/consensus/ethash"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/eth/downloader"
+ "github.com/scroll-tech/go-ethereum/eth/gasprice"
+ "github.com/scroll-tech/go-ethereum/ethdb"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/miner"
+ "github.com/scroll-tech/go-ethereum/node"
+ "github.com/scroll-tech/go-ethereum/params"
)
// FullNodeGPO contains default gasprice oracle settings for full node.
diff --git a/eth/ethconfig/gen_config.go b/eth/ethconfig/gen_config.go
index 1f1ee3aafb..b07f9c4f56 100644
--- a/eth/ethconfig/gen_config.go
+++ b/eth/ethconfig/gen_config.go
@@ -6,13 +6,13 @@ import (
"math/big"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/consensus/ethash"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/eth/downloader"
- "github.com/ethereum/go-ethereum/eth/gasprice"
- "github.com/ethereum/go-ethereum/miner"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/consensus/ethash"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/eth/downloader"
+ "github.com/scroll-tech/go-ethereum/eth/gasprice"
+ "github.com/scroll-tech/go-ethereum/miner"
+ "github.com/scroll-tech/go-ethereum/params"
)
// MarshalTOML marshals as TOML.
diff --git a/eth/fetcher/block_fetcher.go b/eth/fetcher/block_fetcher.go
index 7624268a7f..2ff66c0a62 100644
--- a/eth/fetcher/block_fetcher.go
+++ b/eth/fetcher/block_fetcher.go
@@ -22,13 +22,13 @@ import (
"math/rand"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/prque"
- "github.com/ethereum/go-ethereum/consensus"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/metrics"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/prque"
+ "github.com/scroll-tech/go-ethereum/consensus"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/metrics"
+ "github.com/scroll-tech/go-ethereum/trie"
)
const (
diff --git a/eth/fetcher/block_fetcher_test.go b/eth/fetcher/block_fetcher_test.go
index b6d1125b56..6553df3c2d 100644
--- a/eth/fetcher/block_fetcher_test.go
+++ b/eth/fetcher/block_fetcher_test.go
@@ -24,14 +24,14 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/consensus/ethash"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/consensus/ethash"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/trie"
)
var (
diff --git a/eth/fetcher/tx_fetcher.go b/eth/fetcher/tx_fetcher.go
index b10c0db9ee..5494ca6f31 100644
--- a/eth/fetcher/tx_fetcher.go
+++ b/eth/fetcher/tx_fetcher.go
@@ -25,12 +25,12 @@ import (
"time"
mapset "github.com/deckarep/golang-set"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/mclock"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/metrics"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/mclock"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/metrics"
)
const (
diff --git a/eth/fetcher/tx_fetcher_test.go b/eth/fetcher/tx_fetcher_test.go
index 796d4caf0f..232c8a97d3 100644
--- a/eth/fetcher/tx_fetcher_test.go
+++ b/eth/fetcher/tx_fetcher_test.go
@@ -23,10 +23,10 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/mclock"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/mclock"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/core/types"
)
var (
diff --git a/eth/filters/api.go b/eth/filters/api.go
index e0b07e318e..66d62a86de 100644
--- a/eth/filters/api.go
+++ b/eth/filters/api.go
@@ -25,13 +25,13 @@ import (
"sync"
"time"
- "github.com/ethereum/go-ethereum"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/event"
- "github.com/ethereum/go-ethereum/rpc"
+ "github.com/scroll-tech/go-ethereum"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/hexutil"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/ethdb"
+ "github.com/scroll-tech/go-ethereum/event"
+ "github.com/scroll-tech/go-ethereum/rpc"
)
// filter is a helper struct that holds meta information over the filter type
diff --git a/eth/filters/api_test.go b/eth/filters/api_test.go
index 02229a7549..f011934713 100644
--- a/eth/filters/api_test.go
+++ b/eth/filters/api_test.go
@@ -21,8 +21,8 @@ import (
"fmt"
"testing"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/rpc"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/rpc"
)
func TestUnmarshalJSONNewFilterArgs(t *testing.T) {
diff --git a/eth/filters/bench_test.go b/eth/filters/bench_test.go
index 9632f4195f..4f2225b1f9 100644
--- a/eth/filters/bench_test.go
+++ b/eth/filters/bench_test.go
@@ -22,13 +22,13 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/bitutil"
- "github.com/ethereum/go-ethereum/core/bloombits"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/node"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/bitutil"
+ "github.com/scroll-tech/go-ethereum/core/bloombits"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/ethdb"
+ "github.com/scroll-tech/go-ethereum/node"
)
func BenchmarkBloomBits512(b *testing.B) {
diff --git a/eth/filters/filter.go b/eth/filters/filter.go
index 17635837af..3574613b55 100644
--- a/eth/filters/filter.go
+++ b/eth/filters/filter.go
@@ -21,13 +21,13 @@ import (
"errors"
"math/big"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/bloombits"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/event"
- "github.com/ethereum/go-ethereum/rpc"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/core/bloombits"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/ethdb"
+ "github.com/scroll-tech/go-ethereum/event"
+ "github.com/scroll-tech/go-ethereum/rpc"
)
type Backend interface {
diff --git a/eth/filters/filter_system.go b/eth/filters/filter_system.go
index 12f037d0f9..6275a57bb8 100644
--- a/eth/filters/filter_system.go
+++ b/eth/filters/filter_system.go
@@ -24,14 +24,14 @@ import (
"sync"
"time"
- "github.com/ethereum/go-ethereum"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/event"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/rpc"
+ "github.com/scroll-tech/go-ethereum"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/event"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/rpc"
)
// Type determines the kind of filter and is used to put the filter in to
diff --git a/eth/filters/filter_system_test.go b/eth/filters/filter_system_test.go
index efeab58d7d..8e1a4bcaeb 100644
--- a/eth/filters/filter_system_test.go
+++ b/eth/filters/filter_system_test.go
@@ -26,17 +26,17 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/consensus/ethash"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/bloombits"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/event"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/rpc"
+ "github.com/scroll-tech/go-ethereum"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/consensus/ethash"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/core/bloombits"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/ethdb"
+ "github.com/scroll-tech/go-ethereum/event"
+ "github.com/scroll-tech/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/rpc"
)
var (
diff --git a/eth/filters/filter_test.go b/eth/filters/filter_test.go
index 63a48f762d..e5d03fe402 100644
--- a/eth/filters/filter_test.go
+++ b/eth/filters/filter_test.go
@@ -23,13 +23,13 @@ import (
"os"
"testing"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/consensus/ethash"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/consensus/ethash"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/params"
)
func makeReceipt(addr common.Address) *types.Receipt {
diff --git a/eth/gasprice/feehistory.go b/eth/gasprice/feehistory.go
index 970dfd4467..c99e69c1e8 100644
--- a/eth/gasprice/feehistory.go
+++ b/eth/gasprice/feehistory.go
@@ -26,11 +26,11 @@ import (
"sort"
"sync/atomic"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/consensus/misc"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/rpc"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/consensus/misc"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/rpc"
)
var (
diff --git a/eth/gasprice/feehistory_test.go b/eth/gasprice/feehistory_test.go
index c259eb0acf..14354a3d5c 100644
--- a/eth/gasprice/feehistory_test.go
+++ b/eth/gasprice/feehistory_test.go
@@ -22,7 +22,7 @@ import (
"math/big"
"testing"
- "github.com/ethereum/go-ethereum/rpc"
+ "github.com/scroll-tech/go-ethereum/rpc"
)
func TestFeeHistory(t *testing.T) {
diff --git a/eth/gasprice/gasprice.go b/eth/gasprice/gasprice.go
index 00128a5dc8..9fbfef0b5d 100644
--- a/eth/gasprice/gasprice.go
+++ b/eth/gasprice/gasprice.go
@@ -22,13 +22,13 @@ import (
"sort"
"sync"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/event"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/rpc"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/event"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/rpc"
lru "github.com/hashicorp/golang-lru"
)
diff --git a/eth/gasprice/gasprice_test.go b/eth/gasprice/gasprice_test.go
index 2d394200a0..5cb58687f4 100644
--- a/eth/gasprice/gasprice_test.go
+++ b/eth/gasprice/gasprice_test.go
@@ -22,16 +22,16 @@ import (
"math/big"
"testing"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/consensus/ethash"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/core/vm"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/event"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/rpc"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/consensus/ethash"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/core/vm"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/event"
+ "github.com/scroll-tech/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/rpc"
)
const testHead = 32
diff --git a/eth/handler.go b/eth/handler.go
index 41d89c5fb0..4215e483e4 100644
--- a/eth/handler.go
+++ b/eth/handler.go
@@ -24,20 +24,20 @@ import (
"sync/atomic"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/forkid"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/eth/downloader"
- "github.com/ethereum/go-ethereum/eth/fetcher"
- "github.com/ethereum/go-ethereum/eth/protocols/eth"
- "github.com/ethereum/go-ethereum/eth/protocols/snap"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/event"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/p2p"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/core/forkid"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/eth/downloader"
+ "github.com/scroll-tech/go-ethereum/eth/fetcher"
+ "github.com/scroll-tech/go-ethereum/eth/protocols/eth"
+ "github.com/scroll-tech/go-ethereum/eth/protocols/snap"
+ "github.com/scroll-tech/go-ethereum/ethdb"
+ "github.com/scroll-tech/go-ethereum/event"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/p2p"
+ "github.com/scroll-tech/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/trie"
)
const (
diff --git a/eth/handler_eth.go b/eth/handler_eth.go
index 3ff9f2245b..1a3aff8aa0 100644
--- a/eth/handler_eth.go
+++ b/eth/handler_eth.go
@@ -23,13 +23,13 @@ import (
"sync/atomic"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/eth/protocols/eth"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/eth/protocols/eth"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/p2p/enode"
+ "github.com/scroll-tech/go-ethereum/trie"
)
// ethHandler implements the eth.Backend interface to handle the various network
diff --git a/eth/handler_eth_test.go b/eth/handler_eth_test.go
index b8db5039c9..d24705cec0 100644
--- a/eth/handler_eth_test.go
+++ b/eth/handler_eth_test.go
@@ -24,20 +24,20 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/consensus/ethash"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/forkid"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/core/vm"
- "github.com/ethereum/go-ethereum/eth/downloader"
- "github.com/ethereum/go-ethereum/eth/protocols/eth"
- "github.com/ethereum/go-ethereum/event"
- "github.com/ethereum/go-ethereum/p2p"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/consensus/ethash"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/core/forkid"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/core/vm"
+ "github.com/scroll-tech/go-ethereum/eth/downloader"
+ "github.com/scroll-tech/go-ethereum/eth/protocols/eth"
+ "github.com/scroll-tech/go-ethereum/event"
+ "github.com/scroll-tech/go-ethereum/p2p"
+ "github.com/scroll-tech/go-ethereum/p2p/enode"
+ "github.com/scroll-tech/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/trie"
)
// testEthHandler is a mock event handler to listen for inbound network requests
diff --git a/eth/handler_snap.go b/eth/handler_snap.go
index 767416ffd6..60e5ab9766 100644
--- a/eth/handler_snap.go
+++ b/eth/handler_snap.go
@@ -17,9 +17,9 @@
package eth
import (
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/eth/protocols/snap"
- "github.com/ethereum/go-ethereum/p2p/enode"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/eth/protocols/snap"
+ "github.com/scroll-tech/go-ethereum/p2p/enode"
)
// snapHandler implements the snap.Backend interface to handle the various network
diff --git a/eth/handler_test.go b/eth/handler_test.go
index b2f00b7977..b9931a4b38 100644
--- a/eth/handler_test.go
+++ b/eth/handler_test.go
@@ -21,17 +21,17 @@ import (
"sort"
"sync"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/consensus/ethash"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/core/vm"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/eth/downloader"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/event"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/consensus/ethash"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/core/vm"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/eth/downloader"
+ "github.com/scroll-tech/go-ethereum/ethdb"
+ "github.com/scroll-tech/go-ethereum/event"
+ "github.com/scroll-tech/go-ethereum/params"
)
var (
diff --git a/eth/peer.go b/eth/peer.go
index 1cea9c640e..538d4cfcf4 100644
--- a/eth/peer.go
+++ b/eth/peer.go
@@ -21,8 +21,8 @@ import (
"sync"
"time"
- "github.com/ethereum/go-ethereum/eth/protocols/eth"
- "github.com/ethereum/go-ethereum/eth/protocols/snap"
+ "github.com/scroll-tech/go-ethereum/eth/protocols/eth"
+ "github.com/scroll-tech/go-ethereum/eth/protocols/snap"
)
// ethPeerInfo represents a short summary of the `eth` sub-protocol metadata known
diff --git a/eth/peerset.go b/eth/peerset.go
index 1e864a8e46..fae769c3af 100644
--- a/eth/peerset.go
+++ b/eth/peerset.go
@@ -21,10 +21,10 @@ import (
"math/big"
"sync"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/eth/protocols/eth"
- "github.com/ethereum/go-ethereum/eth/protocols/snap"
- "github.com/ethereum/go-ethereum/p2p"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/eth/protocols/eth"
+ "github.com/scroll-tech/go-ethereum/eth/protocols/snap"
+ "github.com/scroll-tech/go-ethereum/p2p"
)
var (
diff --git a/eth/protocols/eth/broadcast.go b/eth/protocols/eth/broadcast.go
index 614e6361c6..95bb05ac7a 100644
--- a/eth/protocols/eth/broadcast.go
+++ b/eth/protocols/eth/broadcast.go
@@ -19,8 +19,8 @@ package eth
import (
"math/big"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core/types"
)
const (
diff --git a/eth/protocols/eth/discovery.go b/eth/protocols/eth/discovery.go
index 025479b423..d2571d7983 100644
--- a/eth/protocols/eth/discovery.go
+++ b/eth/protocols/eth/discovery.go
@@ -17,10 +17,10 @@
package eth
import (
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/forkid"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/core/forkid"
+ "github.com/scroll-tech/go-ethereum/p2p/enode"
+ "github.com/scroll-tech/go-ethereum/rlp"
)
// enrEntry is the ENR entry which advertises `eth` protocol on the discovery.
diff --git a/eth/protocols/eth/handler.go b/eth/protocols/eth/handler.go
index 8289300141..427e63a135 100644
--- a/eth/protocols/eth/handler.go
+++ b/eth/protocols/eth/handler.go
@@ -21,15 +21,15 @@ import (
"math/big"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/metrics"
- "github.com/ethereum/go-ethereum/p2p"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/enr"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/metrics"
+ "github.com/scroll-tech/go-ethereum/p2p"
+ "github.com/scroll-tech/go-ethereum/p2p/enode"
+ "github.com/scroll-tech/go-ethereum/p2p/enr"
+ "github.com/scroll-tech/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/trie"
)
const (
diff --git a/eth/protocols/eth/handler_test.go b/eth/protocols/eth/handler_test.go
index 66f0134096..ec5a5e7648 100644
--- a/eth/protocols/eth/handler_test.go
+++ b/eth/protocols/eth/handler_test.go
@@ -22,19 +22,19 @@ import (
"math/rand"
"testing"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/consensus/ethash"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/state"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/core/vm"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/p2p"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/consensus/ethash"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/core/state"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/core/vm"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/ethdb"
+ "github.com/scroll-tech/go-ethereum/p2p"
+ "github.com/scroll-tech/go-ethereum/p2p/enode"
+ "github.com/scroll-tech/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/trie"
)
var (
diff --git a/eth/protocols/eth/handlers.go b/eth/protocols/eth/handlers.go
index e54838cbc5..ba091f9cee 100644
--- a/eth/protocols/eth/handlers.go
+++ b/eth/protocols/eth/handlers.go
@@ -20,11 +20,11 @@ import (
"encoding/json"
"fmt"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/rlp"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/trie"
)
// handleGetBlockHeaders66 is the eth/66 version of handleGetBlockHeaders
diff --git a/eth/protocols/eth/handshake.go b/eth/protocols/eth/handshake.go
index 57a4e0bc34..fe79073993 100644
--- a/eth/protocols/eth/handshake.go
+++ b/eth/protocols/eth/handshake.go
@@ -21,9 +21,9 @@ import (
"math/big"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/forkid"
- "github.com/ethereum/go-ethereum/p2p"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core/forkid"
+ "github.com/scroll-tech/go-ethereum/p2p"
)
const (
diff --git a/eth/protocols/eth/handshake_test.go b/eth/protocols/eth/handshake_test.go
index 05d473e057..1315a0c369 100644
--- a/eth/protocols/eth/handshake_test.go
+++ b/eth/protocols/eth/handshake_test.go
@@ -20,10 +20,10 @@ import (
"errors"
"testing"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/forkid"
- "github.com/ethereum/go-ethereum/p2p"
- "github.com/ethereum/go-ethereum/p2p/enode"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core/forkid"
+ "github.com/scroll-tech/go-ethereum/p2p"
+ "github.com/scroll-tech/go-ethereum/p2p/enode"
)
// Tests that handshake failures are detected and reported correctly.
diff --git a/eth/protocols/eth/peer.go b/eth/protocols/eth/peer.go
index 1b4cfeb3da..390eb43992 100644
--- a/eth/protocols/eth/peer.go
+++ b/eth/protocols/eth/peer.go
@@ -22,10 +22,10 @@ import (
"sync"
mapset "github.com/deckarep/golang-set"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/p2p"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/p2p"
+ "github.com/scroll-tech/go-ethereum/rlp"
)
const (
diff --git a/eth/protocols/eth/peer_test.go b/eth/protocols/eth/peer_test.go
index fc93443708..2a149de0a7 100644
--- a/eth/protocols/eth/peer_test.go
+++ b/eth/protocols/eth/peer_test.go
@@ -23,9 +23,9 @@ import (
"crypto/rand"
"testing"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/p2p"
- "github.com/ethereum/go-ethereum/p2p/enode"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/p2p"
+ "github.com/scroll-tech/go-ethereum/p2p/enode"
)
// testPeer is a simulated peer to allow testing direct network calls.
diff --git a/eth/protocols/eth/protocol.go b/eth/protocols/eth/protocol.go
index 3c3da30fa5..5681f74eac 100644
--- a/eth/protocols/eth/protocol.go
+++ b/eth/protocols/eth/protocol.go
@@ -22,10 +22,10 @@ import (
"io"
"math/big"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/forkid"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core/forkid"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/rlp"
)
// Constants to match up protocol versions and messages
diff --git a/eth/protocols/eth/protocol_test.go b/eth/protocols/eth/protocol_test.go
index 7910c9b735..a5634ced78 100644
--- a/eth/protocols/eth/protocol_test.go
+++ b/eth/protocols/eth/protocol_test.go
@@ -21,9 +21,9 @@ import (
"math/big"
"testing"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/rlp"
)
// Tests that the custom union field encoder and decoder works correctly.
diff --git a/eth/protocols/eth/tracker.go b/eth/protocols/eth/tracker.go
index 324fd22839..6c243bb9e9 100644
--- a/eth/protocols/eth/tracker.go
+++ b/eth/protocols/eth/tracker.go
@@ -19,7 +19,7 @@ package eth
import (
"time"
- "github.com/ethereum/go-ethereum/p2p/tracker"
+ "github.com/scroll-tech/go-ethereum/p2p/tracker"
)
// requestTracker is a singleton tracker for eth/66 and newer request times.
diff --git a/eth/protocols/snap/discovery.go b/eth/protocols/snap/discovery.go
index 684ec7e632..1abeea75f3 100644
--- a/eth/protocols/snap/discovery.go
+++ b/eth/protocols/snap/discovery.go
@@ -17,7 +17,7 @@
package snap
import (
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/rlp"
)
// enrEntry is the ENR entry which advertises `snap` protocol on the discovery.
diff --git a/eth/protocols/snap/handler.go b/eth/protocols/snap/handler.go
index c62f9cfca5..5c3adce05b 100644
--- a/eth/protocols/snap/handler.go
+++ b/eth/protocols/snap/handler.go
@@ -21,17 +21,17 @@ import (
"fmt"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/light"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/metrics"
- "github.com/ethereum/go-ethereum/p2p"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/enr"
- "github.com/ethereum/go-ethereum/rlp"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/light"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/metrics"
+ "github.com/scroll-tech/go-ethereum/p2p"
+ "github.com/scroll-tech/go-ethereum/p2p/enode"
+ "github.com/scroll-tech/go-ethereum/p2p/enr"
+ "github.com/scroll-tech/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/trie"
)
const (
diff --git a/eth/protocols/snap/peer.go b/eth/protocols/snap/peer.go
index cf0ce65bd7..14ee30111d 100644
--- a/eth/protocols/snap/peer.go
+++ b/eth/protocols/snap/peer.go
@@ -17,9 +17,9 @@
package snap
import (
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/p2p"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/p2p"
)
// Peer is a collection of relevant information we have about a `snap` peer.
diff --git a/eth/protocols/snap/protocol.go b/eth/protocols/snap/protocol.go
index 5528e9212e..ebe2c383f8 100644
--- a/eth/protocols/snap/protocol.go
+++ b/eth/protocols/snap/protocol.go
@@ -20,9 +20,9 @@ import (
"errors"
"fmt"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/state/snapshot"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core/state/snapshot"
+ "github.com/scroll-tech/go-ethereum/rlp"
)
// Constants to match up protocol versions and messages
diff --git a/eth/protocols/snap/range.go b/eth/protocols/snap/range.go
index 2627cb954b..815c2081d3 100644
--- a/eth/protocols/snap/range.go
+++ b/eth/protocols/snap/range.go
@@ -19,7 +19,7 @@ package snap
import (
"math/big"
- "github.com/ethereum/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common"
"github.com/holiman/uint256"
)
diff --git a/eth/protocols/snap/range_test.go b/eth/protocols/snap/range_test.go
index c6dc8fb718..8d826272c7 100644
--- a/eth/protocols/snap/range_test.go
+++ b/eth/protocols/snap/range_test.go
@@ -19,7 +19,7 @@ package snap
import (
"testing"
- "github.com/ethereum/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common"
)
// Tests that given a starting hash and a density, the hash ranger can correctly
diff --git a/eth/protocols/snap/sync.go b/eth/protocols/snap/sync.go
index 9ef9d75711..43fbba0761 100644
--- a/eth/protocols/snap/sync.go
+++ b/eth/protocols/snap/sync.go
@@ -27,20 +27,20 @@ import (
"sync"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/math"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/state"
- "github.com/ethereum/go-ethereum/core/state/snapshot"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/event"
- "github.com/ethereum/go-ethereum/light"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/p2p/msgrate"
- "github.com/ethereum/go-ethereum/rlp"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/math"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/core/state"
+ "github.com/scroll-tech/go-ethereum/core/state/snapshot"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/ethdb"
+ "github.com/scroll-tech/go-ethereum/event"
+ "github.com/scroll-tech/go-ethereum/light"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/p2p/msgrate"
+ "github.com/scroll-tech/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/trie"
"golang.org/x/crypto/sha3"
)
diff --git a/eth/protocols/snap/sync_test.go b/eth/protocols/snap/sync_test.go
index 47ab1f026d..7e252ae131 100644
--- a/eth/protocols/snap/sync_test.go
+++ b/eth/protocols/snap/sync_test.go
@@ -27,15 +27,15 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/light"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/rlp"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/ethdb"
+ "github.com/scroll-tech/go-ethereum/light"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/trie"
"golang.org/x/crypto/sha3"
)
diff --git a/eth/protocols/snap/tracker.go b/eth/protocols/snap/tracker.go
index 2cf59cc23a..56d8afbf52 100644
--- a/eth/protocols/snap/tracker.go
+++ b/eth/protocols/snap/tracker.go
@@ -19,7 +19,7 @@ package snap
import (
"time"
- "github.com/ethereum/go-ethereum/p2p/tracker"
+ "github.com/scroll-tech/go-ethereum/p2p/tracker"
)
// requestTracker is a singleton tracker for request times.
diff --git a/eth/state_accessor.go b/eth/state_accessor.go
index c855f01004..bac31fe7f2 100644
--- a/eth/state_accessor.go
+++ b/eth/state_accessor.go
@@ -21,13 +21,13 @@ import (
"fmt"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/state"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/core/vm"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/core/state"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/core/vm"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/trie"
)
// stateAtBlock retrieves the state database associated with a certain block.
diff --git a/eth/sync.go b/eth/sync.go
index aaac6bef90..5d5f0327d7 100644
--- a/eth/sync.go
+++ b/eth/sync.go
@@ -21,12 +21,12 @@ import (
"sync/atomic"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/eth/downloader"
- "github.com/ethereum/go-ethereum/eth/protocols/eth"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/eth/downloader"
+ "github.com/scroll-tech/go-ethereum/eth/protocols/eth"
+ "github.com/scroll-tech/go-ethereum/log"
)
const (
diff --git a/eth/sync_test.go b/eth/sync_test.go
index e96b9ee81f..105f76efe4 100644
--- a/eth/sync_test.go
+++ b/eth/sync_test.go
@@ -21,10 +21,10 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/eth/downloader"
- "github.com/ethereum/go-ethereum/eth/protocols/eth"
- "github.com/ethereum/go-ethereum/p2p"
- "github.com/ethereum/go-ethereum/p2p/enode"
+ "github.com/scroll-tech/go-ethereum/eth/downloader"
+ "github.com/scroll-tech/go-ethereum/eth/protocols/eth"
+ "github.com/scroll-tech/go-ethereum/p2p"
+ "github.com/scroll-tech/go-ethereum/p2p/enode"
)
// Tests that fast sync is disabled after a successful sync cycle.
diff --git a/eth/tracers/api.go b/eth/tracers/api.go
index f8d61fa063..fd6b622519 100644
--- a/eth/tracers/api.go
+++ b/eth/tracers/api.go
@@ -28,20 +28,20 @@ import (
"sync"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/consensus"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/state"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/core/vm"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/internal/ethapi"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/rlp"
- "github.com/ethereum/go-ethereum/rpc"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/hexutil"
+ "github.com/scroll-tech/go-ethereum/consensus"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/core/state"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/core/vm"
+ "github.com/scroll-tech/go-ethereum/ethdb"
+ "github.com/scroll-tech/go-ethereum/internal/ethapi"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/rpc"
)
const (
diff --git a/eth/tracers/api_test.go b/eth/tracers/api_test.go
index a3c0a72494..6a917e8fd7 100644
--- a/eth/tracers/api_test.go
+++ b/eth/tracers/api_test.go
@@ -29,20 +29,20 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/consensus"
- "github.com/ethereum/go-ethereum/consensus/ethash"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/state"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/core/vm"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/internal/ethapi"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/rpc"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/hexutil"
+ "github.com/scroll-tech/go-ethereum/consensus"
+ "github.com/scroll-tech/go-ethereum/consensus/ethash"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/core/state"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/core/vm"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/ethdb"
+ "github.com/scroll-tech/go-ethereum/internal/ethapi"
+ "github.com/scroll-tech/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/rpc"
)
var (
diff --git a/eth/tracers/internal/tracetest/calltrace_test.go b/eth/tracers/internal/tracetest/calltrace_test.go
index 7521a98f24..2be638874c 100644
--- a/eth/tracers/internal/tracetest/calltrace_test.go
+++ b/eth/tracers/internal/tracetest/calltrace_test.go
@@ -26,22 +26,22 @@ import (
"testing"
"unicode"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/common/math"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/core/vm"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/eth/tracers"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/rlp"
- "github.com/ethereum/go-ethereum/tests"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/hexutil"
+ "github.com/scroll-tech/go-ethereum/common/math"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/core/vm"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/eth/tracers"
+ "github.com/scroll-tech/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/tests"
// Force-load native and js pacakges, to trigger registration
- _ "github.com/ethereum/go-ethereum/eth/tracers/js"
- _ "github.com/ethereum/go-ethereum/eth/tracers/native"
+ _ "github.com/scroll-tech/go-ethereum/eth/tracers/js"
+ _ "github.com/scroll-tech/go-ethereum/eth/tracers/native"
)
// To generate a new callTracer test, copy paste the makeTest method below into
diff --git a/eth/tracers/js/tracer.go b/eth/tracers/js/tracer.go
index b8e035e6f3..6da0b02280 100644
--- a/eth/tracers/js/tracer.go
+++ b/eth/tracers/js/tracer.go
@@ -28,14 +28,14 @@ import (
"unicode"
"unsafe"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/vm"
- "github.com/ethereum/go-ethereum/crypto"
- tracers2 "github.com/ethereum/go-ethereum/eth/tracers"
- "github.com/ethereum/go-ethereum/eth/tracers/js/internal/tracers"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/hexutil"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/core/vm"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ tracers2 "github.com/scroll-tech/go-ethereum/eth/tracers"
+ "github.com/scroll-tech/go-ethereum/eth/tracers/js/internal/tracers"
+ "github.com/scroll-tech/go-ethereum/log"
"gopkg.in/olebedev/go-duktape.v3"
)
diff --git a/eth/tracers/js/tracer_test.go b/eth/tracers/js/tracer_test.go
index cf0a4aa828..6e57a328a1 100644
--- a/eth/tracers/js/tracer_test.go
+++ b/eth/tracers/js/tracer_test.go
@@ -23,11 +23,11 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/state"
- "github.com/ethereum/go-ethereum/core/vm"
- "github.com/ethereum/go-ethereum/eth/tracers"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core/state"
+ "github.com/scroll-tech/go-ethereum/core/vm"
+ "github.com/scroll-tech/go-ethereum/eth/tracers"
+ "github.com/scroll-tech/go-ethereum/params"
)
type account struct{}
diff --git a/eth/tracers/native/4byte.go b/eth/tracers/native/4byte.go
index e60e82de47..f332102e20 100644
--- a/eth/tracers/native/4byte.go
+++ b/eth/tracers/native/4byte.go
@@ -23,9 +23,9 @@ import (
"sync/atomic"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/vm"
- "github.com/ethereum/go-ethereum/eth/tracers"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core/vm"
+ "github.com/scroll-tech/go-ethereum/eth/tracers"
)
func init() {
diff --git a/eth/tracers/native/call.go b/eth/tracers/native/call.go
index 16ea75aa4a..abb391e077 100644
--- a/eth/tracers/native/call.go
+++ b/eth/tracers/native/call.go
@@ -25,9 +25,9 @@ import (
"sync/atomic"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/vm"
- "github.com/ethereum/go-ethereum/eth/tracers"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core/vm"
+ "github.com/scroll-tech/go-ethereum/eth/tracers"
)
func init() {
diff --git a/eth/tracers/native/noop.go b/eth/tracers/native/noop.go
index ee110ef7df..381e29efd4 100644
--- a/eth/tracers/native/noop.go
+++ b/eth/tracers/native/noop.go
@@ -21,9 +21,9 @@ import (
"math/big"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/vm"
- "github.com/ethereum/go-ethereum/eth/tracers"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core/vm"
+ "github.com/scroll-tech/go-ethereum/eth/tracers"
)
func init() {
diff --git a/eth/tracers/native/tracer.go b/eth/tracers/native/tracer.go
index 3158654f33..b1061d243a 100644
--- a/eth/tracers/native/tracer.go
+++ b/eth/tracers/native/tracer.go
@@ -37,7 +37,7 @@ package native
import (
"errors"
- "github.com/ethereum/go-ethereum/eth/tracers"
+ "github.com/scroll-tech/go-ethereum/eth/tracers"
)
// init registers itself this packages as a lookup for tracers.
diff --git a/eth/tracers/tracers.go b/eth/tracers/tracers.go
index e7073e7d2e..a07a2ba66c 100644
--- a/eth/tracers/tracers.go
+++ b/eth/tracers/tracers.go
@@ -21,8 +21,8 @@ import (
"encoding/json"
"errors"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/vm"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core/vm"
)
// Context contains some contextual infos for a transaction execution that is not
diff --git a/eth/tracers/tracers_test.go b/eth/tracers/tracers_test.go
index 915cab10d4..e8aece81c4 100644
--- a/eth/tracers/tracers_test.go
+++ b/eth/tracers/tracers_test.go
@@ -20,15 +20,15 @@ import (
"math/big"
"testing"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/core/vm"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/tests"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/hexutil"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/core/vm"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/tests"
)
// callTrace is the result of a callTracer run.
diff --git a/ethclient/ethclient.go b/ethclient/ethclient.go
index 37680807dd..0bad4aa44c 100644
--- a/ethclient/ethclient.go
+++ b/ethclient/ethclient.go
@@ -24,11 +24,11 @@ import (
"fmt"
"math/big"
- "github.com/ethereum/go-ethereum"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/rpc"
+ "github.com/scroll-tech/go-ethereum"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/hexutil"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/rpc"
)
// Client defines typed wrappers for the Ethereum RPC API.
diff --git a/ethclient/ethclient_test.go b/ethclient/ethclient_test.go
index d56febc91d..0631706d69 100644
--- a/ethclient/ethclient_test.go
+++ b/ethclient/ethclient_test.go
@@ -26,18 +26,18 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/consensus/ethash"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/eth"
- "github.com/ethereum/go-ethereum/eth/ethconfig"
- "github.com/ethereum/go-ethereum/node"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/rpc"
+ "github.com/scroll-tech/go-ethereum"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/consensus/ethash"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/eth"
+ "github.com/scroll-tech/go-ethereum/eth/ethconfig"
+ "github.com/scroll-tech/go-ethereum/node"
+ "github.com/scroll-tech/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/rpc"
)
// Verify that Client implements the ethereum interfaces.
diff --git a/ethclient/gethclient/gethclient.go b/ethclient/gethclient/gethclient.go
index 538e23727d..ea9eadc954 100644
--- a/ethclient/gethclient/gethclient.go
+++ b/ethclient/gethclient/gethclient.go
@@ -23,12 +23,12 @@ import (
"runtime"
"runtime/debug"
- "github.com/ethereum/go-ethereum"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/p2p"
- "github.com/ethereum/go-ethereum/rpc"
+ "github.com/scroll-tech/go-ethereum"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/hexutil"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/p2p"
+ "github.com/scroll-tech/go-ethereum/rpc"
)
// Client is a wrapper around rpc.Client that implements geth-specific functionality.
diff --git a/ethclient/gethclient/gethclient_test.go b/ethclient/gethclient/gethclient_test.go
index ca2cb1abda..fc7fc1e7da 100644
--- a/ethclient/gethclient/gethclient_test.go
+++ b/ethclient/gethclient/gethclient_test.go
@@ -22,19 +22,19 @@ import (
"math/big"
"testing"
- "github.com/ethereum/go-ethereum"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/consensus/ethash"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/eth"
- "github.com/ethereum/go-ethereum/eth/ethconfig"
- "github.com/ethereum/go-ethereum/ethclient"
- "github.com/ethereum/go-ethereum/node"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/rpc"
+ "github.com/scroll-tech/go-ethereum"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/consensus/ethash"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/eth"
+ "github.com/scroll-tech/go-ethereum/eth/ethconfig"
+ "github.com/scroll-tech/go-ethereum/ethclient"
+ "github.com/scroll-tech/go-ethereum/node"
+ "github.com/scroll-tech/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/rpc"
)
var (
diff --git a/ethclient/signer.go b/ethclient/signer.go
index f827d4eb56..e7865e2f4a 100644
--- a/ethclient/signer.go
+++ b/ethclient/signer.go
@@ -20,8 +20,8 @@ import (
"errors"
"math/big"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core/types"
)
// senderFromServer is a types.Signer that remembers the sender address returned by the RPC
diff --git a/ethdb/dbtest/testsuite.go b/ethdb/dbtest/testsuite.go
index 06ee2211e6..c49be9a996 100644
--- a/ethdb/dbtest/testsuite.go
+++ b/ethdb/dbtest/testsuite.go
@@ -22,7 +22,7 @@ import (
"sort"
"testing"
- "github.com/ethereum/go-ethereum/ethdb"
+ "github.com/scroll-tech/go-ethereum/ethdb"
)
// TestDatabaseSuite runs a suite of tests against a KeyValueStore database
diff --git a/ethdb/leveldb/leveldb.go b/ethdb/leveldb/leveldb.go
index 9a782dedbe..427330e04f 100644
--- a/ethdb/leveldb/leveldb.go
+++ b/ethdb/leveldb/leveldb.go
@@ -27,10 +27,10 @@ import (
"sync"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/metrics"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/ethdb"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/metrics"
"github.com/syndtr/goleveldb/leveldb"
"github.com/syndtr/goleveldb/leveldb/errors"
"github.com/syndtr/goleveldb/leveldb/filter"
diff --git a/ethdb/leveldb/leveldb_test.go b/ethdb/leveldb/leveldb_test.go
index 421d9b4693..acb351f706 100644
--- a/ethdb/leveldb/leveldb_test.go
+++ b/ethdb/leveldb/leveldb_test.go
@@ -19,8 +19,8 @@ package leveldb
import (
"testing"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/ethdb/dbtest"
+ "github.com/scroll-tech/go-ethereum/ethdb"
+ "github.com/scroll-tech/go-ethereum/ethdb/dbtest"
"github.com/syndtr/goleveldb/leveldb"
"github.com/syndtr/goleveldb/leveldb/storage"
)
diff --git a/ethdb/memorydb/memorydb.go b/ethdb/memorydb/memorydb.go
index 78181e860c..8406526e0d 100644
--- a/ethdb/memorydb/memorydb.go
+++ b/ethdb/memorydb/memorydb.go
@@ -23,8 +23,8 @@ import (
"strings"
"sync"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/ethdb"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/ethdb"
)
var (
diff --git a/ethdb/memorydb/memorydb_test.go b/ethdb/memorydb/memorydb_test.go
index dba18ad306..5219aaa5e7 100644
--- a/ethdb/memorydb/memorydb_test.go
+++ b/ethdb/memorydb/memorydb_test.go
@@ -19,8 +19,8 @@ package memorydb
import (
"testing"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/ethdb/dbtest"
+ "github.com/scroll-tech/go-ethereum/ethdb"
+ "github.com/scroll-tech/go-ethereum/ethdb/dbtest"
)
func TestMemoryDB(t *testing.T) {
diff --git a/ethstats/ethstats.go b/ethstats/ethstats.go
index 55c0c880f3..f8328f4aa4 100644
--- a/ethstats/ethstats.go
+++ b/ethstats/ethstats.go
@@ -30,20 +30,20 @@ import (
"sync"
"time"
- "github.com/ethereum/go-ethereum"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/mclock"
- "github.com/ethereum/go-ethereum/consensus"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/types"
- ethproto "github.com/ethereum/go-ethereum/eth/protocols/eth"
- "github.com/ethereum/go-ethereum/event"
- "github.com/ethereum/go-ethereum/les"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/miner"
- "github.com/ethereum/go-ethereum/node"
- "github.com/ethereum/go-ethereum/p2p"
- "github.com/ethereum/go-ethereum/rpc"
+ "github.com/scroll-tech/go-ethereum"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/mclock"
+ "github.com/scroll-tech/go-ethereum/consensus"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ ethproto "github.com/scroll-tech/go-ethereum/eth/protocols/eth"
+ "github.com/scroll-tech/go-ethereum/event"
+ "github.com/scroll-tech/go-ethereum/les"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/miner"
+ "github.com/scroll-tech/go-ethereum/node"
+ "github.com/scroll-tech/go-ethereum/p2p"
+ "github.com/scroll-tech/go-ethereum/rpc"
"github.com/gorilla/websocket"
)
diff --git a/event/example_feed_test.go b/event/example_feed_test.go
index 9b5ad50df5..85f0f6cc57 100644
--- a/event/example_feed_test.go
+++ b/event/example_feed_test.go
@@ -19,7 +19,7 @@ package event_test
import (
"fmt"
- "github.com/ethereum/go-ethereum/event"
+ "github.com/scroll-tech/go-ethereum/event"
)
func ExampleFeed_acknowledgedEvents() {
diff --git a/event/example_scope_test.go b/event/example_scope_test.go
index 825a8deeac..5418a58fc2 100644
--- a/event/example_scope_test.go
+++ b/event/example_scope_test.go
@@ -20,7 +20,7 @@ import (
"fmt"
"sync"
- "github.com/ethereum/go-ethereum/event"
+ "github.com/scroll-tech/go-ethereum/event"
)
// This example demonstrates how SubscriptionScope can be used to control the lifetime of
diff --git a/event/example_subscription_test.go b/event/example_subscription_test.go
index 5c76b55d98..955a9d97d1 100644
--- a/event/example_subscription_test.go
+++ b/event/example_subscription_test.go
@@ -19,7 +19,7 @@ package event_test
import (
"fmt"
- "github.com/ethereum/go-ethereum/event"
+ "github.com/scroll-tech/go-ethereum/event"
)
func ExampleNewSubscription() {
diff --git a/event/subscription.go b/event/subscription.go
index 6c62874719..25b52c3e92 100644
--- a/event/subscription.go
+++ b/event/subscription.go
@@ -21,7 +21,7 @@ import (
"sync"
"time"
- "github.com/ethereum/go-ethereum/common/mclock"
+ "github.com/scroll-tech/go-ethereum/common/mclock"
)
// Subscription represents a stream of events. The carrier of the events is typically a
diff --git a/go.mod b/go.mod
index ef6b365b2d..9d896b5279 100644
--- a/go.mod
+++ b/go.mod
@@ -1,4 +1,4 @@
-module github.com/ethereum/go-ethereum
+module github.com/scroll-tech/go-ethereum
go 1.15
diff --git a/graphql/graphql.go b/graphql/graphql.go
index af6b7dc317..ecc704af21 100644
--- a/graphql/graphql.go
+++ b/graphql/graphql.go
@@ -24,15 +24,15 @@ import (
"math/big"
"strconv"
- "github.com/ethereum/go-ethereum"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/common/math"
- "github.com/ethereum/go-ethereum/core/state"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/eth/filters"
- "github.com/ethereum/go-ethereum/internal/ethapi"
- "github.com/ethereum/go-ethereum/rpc"
+ "github.com/scroll-tech/go-ethereum"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/hexutil"
+ "github.com/scroll-tech/go-ethereum/common/math"
+ "github.com/scroll-tech/go-ethereum/core/state"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/eth/filters"
+ "github.com/scroll-tech/go-ethereum/internal/ethapi"
+ "github.com/scroll-tech/go-ethereum/rpc"
)
var (
diff --git a/graphql/graphql_test.go b/graphql/graphql_test.go
index 4e0f099e42..8f69c688ca 100644
--- a/graphql/graphql_test.go
+++ b/graphql/graphql_test.go
@@ -25,16 +25,16 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/consensus/ethash"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/core/vm"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/eth"
- "github.com/ethereum/go-ethereum/eth/ethconfig"
- "github.com/ethereum/go-ethereum/node"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/consensus/ethash"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/core/vm"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/eth"
+ "github.com/scroll-tech/go-ethereum/eth/ethconfig"
+ "github.com/scroll-tech/go-ethereum/node"
+ "github.com/scroll-tech/go-ethereum/params"
"github.com/stretchr/testify/assert"
)
diff --git a/graphql/service.go b/graphql/service.go
index bcb0a4990d..1a2dbcec4b 100644
--- a/graphql/service.go
+++ b/graphql/service.go
@@ -20,8 +20,8 @@ import (
"encoding/json"
"net/http"
- "github.com/ethereum/go-ethereum/internal/ethapi"
- "github.com/ethereum/go-ethereum/node"
+ "github.com/scroll-tech/go-ethereum/internal/ethapi"
+ "github.com/scroll-tech/go-ethereum/node"
"github.com/graph-gophers/graphql-go"
)
diff --git a/interfaces.go b/interfaces.go
index b9d0bb880e..4ccb2e9c7c 100644
--- a/interfaces.go
+++ b/interfaces.go
@@ -22,8 +22,8 @@ import (
"errors"
"math/big"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core/types"
)
// NotFound is returned by API methods if the requested item does not exist.
diff --git a/internal/build/env.go b/internal/build/env.go
index d70c0d50a4..9da1a6ee4f 100644
--- a/internal/build/env.go
+++ b/internal/build/env.go
@@ -97,7 +97,7 @@ func Env() Environment {
// LocalEnv returns build environment metadata gathered from git.
func LocalEnv() Environment {
- env := applyEnvFlags(Environment{Name: "local", Repo: "ethereum/go-ethereum"})
+ env := applyEnvFlags(Environment{Name: "local", Repo: "scroll-tech/go-ethereum"})
head := readGitFile("HEAD")
if fields := strings.Fields(head); len(fields) == 2 {
diff --git a/internal/debug/api.go b/internal/debug/api.go
index 1ea0c6377f..b315159ba6 100644
--- a/internal/debug/api.go
+++ b/internal/debug/api.go
@@ -35,7 +35,7 @@ import (
"sync"
"time"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/log"
"github.com/hashicorp/go-bexpr"
)
diff --git a/internal/debug/flags.go b/internal/debug/flags.go
index 3aa990adfb..04cb4cf118 100644
--- a/internal/debug/flags.go
+++ b/internal/debug/flags.go
@@ -24,9 +24,9 @@ import (
"os"
"runtime"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/metrics"
- "github.com/ethereum/go-ethereum/metrics/exp"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/metrics"
+ "github.com/scroll-tech/go-ethereum/metrics/exp"
"github.com/fjl/memsize/memsizeui"
"github.com/mattn/go-colorable"
"github.com/mattn/go-isatty"
diff --git a/internal/debug/trace.go b/internal/debug/trace.go
index a273e4a9db..2eb8c0a5dd 100644
--- a/internal/debug/trace.go
+++ b/internal/debug/trace.go
@@ -24,7 +24,7 @@ import (
"os"
"runtime/trace"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/log"
)
// StartGoTrace turns on tracing, writing to the given file.
diff --git a/internal/ethapi/addrlock.go b/internal/ethapi/addrlock.go
index 61ddff688c..3e1cf1df5e 100644
--- a/internal/ethapi/addrlock.go
+++ b/internal/ethapi/addrlock.go
@@ -19,7 +19,7 @@ package ethapi
import (
"sync"
- "github.com/ethereum/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common"
)
type AddrLocker struct {
diff --git a/internal/ethapi/api.go b/internal/ethapi/api.go
index aa8e8767c3..a998af86ea 100644
--- a/internal/ethapi/api.go
+++ b/internal/ethapi/api.go
@@ -25,26 +25,26 @@ import (
"time"
"github.com/davecgh/go-spew/spew"
- "github.com/ethereum/go-ethereum/accounts"
- "github.com/ethereum/go-ethereum/accounts/abi"
- "github.com/ethereum/go-ethereum/accounts/keystore"
- "github.com/ethereum/go-ethereum/accounts/scwallet"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/common/math"
- "github.com/ethereum/go-ethereum/consensus/clique"
- "github.com/ethereum/go-ethereum/consensus/ethash"
- "github.com/ethereum/go-ethereum/consensus/misc"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/state"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/core/vm"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/p2p"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/rlp"
- "github.com/ethereum/go-ethereum/rpc"
+ "github.com/scroll-tech/go-ethereum/accounts"
+ "github.com/scroll-tech/go-ethereum/accounts/abi"
+ "github.com/scroll-tech/go-ethereum/accounts/keystore"
+ "github.com/scroll-tech/go-ethereum/accounts/scwallet"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/hexutil"
+ "github.com/scroll-tech/go-ethereum/common/math"
+ "github.com/scroll-tech/go-ethereum/consensus/clique"
+ "github.com/scroll-tech/go-ethereum/consensus/ethash"
+ "github.com/scroll-tech/go-ethereum/consensus/misc"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/core/state"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/core/vm"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/p2p"
+ "github.com/scroll-tech/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/rpc"
"github.com/tyler-smith/go-bip39"
)
@@ -502,7 +502,7 @@ func (s *PrivateAccountAPI) SignTransaction(ctx context.Context, args Transactio
//
// The key used to calculate the signature is decrypted with the given password.
//
-// https://github.com/ethereum/go-ethereum/wiki/Management-APIs#personal_sign
+// https://github.com/scroll-tech/go-ethereum/wiki/Management-APIs#personal_sign
func (s *PrivateAccountAPI) Sign(ctx context.Context, data hexutil.Bytes, addr common.Address, passwd string) (hexutil.Bytes, error) {
// Look up the wallet containing the requested signer
account := accounts.Account{Address: addr}
@@ -530,7 +530,7 @@ func (s *PrivateAccountAPI) Sign(ctx context.Context, data hexutil.Bytes, addr c
// Note, the signature must conform to the secp256k1 curve R, S and V values, where
// the V value must be 27 or 28 for legacy reasons.
//
-// https://github.com/ethereum/go-ethereum/wiki/Management-APIs#personal_ecRecover
+// https://github.com/scroll-tech/go-ethereum/wiki/Management-APIs#personal_ecRecover
func (s *PrivateAccountAPI) EcRecover(ctx context.Context, data, sig hexutil.Bytes) (common.Address, error) {
if len(sig) != crypto.SignatureLength {
return common.Address{}, fmt.Errorf("signature must be %d bytes long", crypto.SignatureLength)
diff --git a/internal/ethapi/backend.go b/internal/ethapi/backend.go
index bc60fb2a64..c8764161f6 100644
--- a/internal/ethapi/backend.go
+++ b/internal/ethapi/backend.go
@@ -22,19 +22,19 @@ import (
"math/big"
"time"
- "github.com/ethereum/go-ethereum"
- "github.com/ethereum/go-ethereum/accounts"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/consensus"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/bloombits"
- "github.com/ethereum/go-ethereum/core/state"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/core/vm"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/event"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/rpc"
+ "github.com/scroll-tech/go-ethereum"
+ "github.com/scroll-tech/go-ethereum/accounts"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/consensus"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/core/bloombits"
+ "github.com/scroll-tech/go-ethereum/core/state"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/core/vm"
+ "github.com/scroll-tech/go-ethereum/ethdb"
+ "github.com/scroll-tech/go-ethereum/event"
+ "github.com/scroll-tech/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/rpc"
)
// Backend interface provides the common API services (that are provided by
diff --git a/internal/ethapi/transaction_args.go b/internal/ethapi/transaction_args.go
index 2d08d3008f..e5d4778c4a 100644
--- a/internal/ethapi/transaction_args.go
+++ b/internal/ethapi/transaction_args.go
@@ -23,12 +23,12 @@ import (
"fmt"
"math/big"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/common/math"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/rpc"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/hexutil"
+ "github.com/scroll-tech/go-ethereum/common/math"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/rpc"
)
// TransactionArgs represents the arguments to construct a new transaction
@@ -45,7 +45,7 @@ type TransactionArgs struct {
// We accept "data" and "input" for backwards-compatibility reasons.
// "input" is the newer name and should be preferred by clients.
- // Issue detail: https://github.com/ethereum/go-ethereum/issues/15628
+ // Issue detail: https://github.com/scroll-tech/go-ethereum/issues/15628
Data *hexutil.Bytes `json:"data"`
Input *hexutil.Bytes `json:"input"`
diff --git a/internal/flags/helpers.go b/internal/flags/helpers.go
index 43bbcf0201..766401e2bc 100644
--- a/internal/flags/helpers.go
+++ b/internal/flags/helpers.go
@@ -20,7 +20,7 @@ import (
"os"
"path/filepath"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/params"
"gopkg.in/urfave/cli.v1"
)
diff --git a/internal/guide/guide_test.go b/internal/guide/guide_test.go
index abc48e0e4b..37cd6b48ef 100644
--- a/internal/guide/guide_test.go
+++ b/internal/guide/guide_test.go
@@ -30,9 +30,9 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/accounts/keystore"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/accounts/keystore"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core/types"
)
// Tests that the account management snippets work correctly.
diff --git a/internal/jsre/deps/web3.js b/internal/jsre/deps/web3.js
index c130f80dea..cc10e20cd9 100644
--- a/internal/jsre/deps/web3.js
+++ b/internal/jsre/deps/web3.js
@@ -5872,7 +5872,7 @@ module.exports = Shh;
* @author Alex Beregszaszi
* @date 2016
*
- * Reference: https://github.com/ethereum/go-ethereum/blob/swarm/internal/web3ext/web3ext.go#L33
+ * Reference: https://github.com/scroll-tech/go-ethereum/blob/swarm/internal/web3ext/web3ext.go#L33
*/
"use strict";
diff --git a/internal/jsre/jsre.go b/internal/jsre/jsre.go
index bc8869b254..f36d01e759 100644
--- a/internal/jsre/jsre.go
+++ b/internal/jsre/jsre.go
@@ -27,7 +27,7 @@ import (
"time"
"github.com/dop251/goja"
- "github.com/ethereum/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common"
)
// JSRE is a JS runtime environment embedding the goja interpreter.
diff --git a/internal/testlog/testlog.go b/internal/testlog/testlog.go
index 684339f16d..f0bfda13fd 100644
--- a/internal/testlog/testlog.go
+++ b/internal/testlog/testlog.go
@@ -21,7 +21,7 @@ import (
"sync"
"testing"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/log"
)
// Handler returns a log handler which logs to the unit test log of t.
diff --git a/les/api.go b/les/api.go
index 782bb31ef2..45ff05b992 100644
--- a/les/api.go
+++ b/les/api.go
@@ -21,10 +21,10 @@ import (
"fmt"
"time"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/common/mclock"
- vfs "github.com/ethereum/go-ethereum/les/vflux/server"
- "github.com/ethereum/go-ethereum/p2p/enode"
+ "github.com/scroll-tech/go-ethereum/common/hexutil"
+ "github.com/scroll-tech/go-ethereum/common/mclock"
+ vfs "github.com/scroll-tech/go-ethereum/les/vflux/server"
+ "github.com/scroll-tech/go-ethereum/p2p/enode"
)
var (
diff --git a/les/api_backend.go b/les/api_backend.go
index 11a9ca128a..fa1d17f0f2 100644
--- a/les/api_backend.go
+++ b/les/api_backend.go
@@ -22,22 +22,22 @@ import (
"math/big"
"time"
- "github.com/ethereum/go-ethereum"
- "github.com/ethereum/go-ethereum/accounts"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/consensus"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/bloombits"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/state"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/core/vm"
- "github.com/ethereum/go-ethereum/eth/gasprice"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/event"
- "github.com/ethereum/go-ethereum/light"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/rpc"
+ "github.com/scroll-tech/go-ethereum"
+ "github.com/scroll-tech/go-ethereum/accounts"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/consensus"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/core/bloombits"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/core/state"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/core/vm"
+ "github.com/scroll-tech/go-ethereum/eth/gasprice"
+ "github.com/scroll-tech/go-ethereum/ethdb"
+ "github.com/scroll-tech/go-ethereum/event"
+ "github.com/scroll-tech/go-ethereum/light"
+ "github.com/scroll-tech/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/rpc"
)
type LesApiBackend struct {
diff --git a/les/api_test.go b/les/api_test.go
index 6a19b0fe4f..daa288b302 100644
--- a/les/api_test.go
+++ b/les/api_test.go
@@ -28,20 +28,20 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/consensus/ethash"
- "github.com/ethereum/go-ethereum/eth"
- ethdownloader "github.com/ethereum/go-ethereum/eth/downloader"
- "github.com/ethereum/go-ethereum/eth/ethconfig"
- "github.com/ethereum/go-ethereum/les/downloader"
- "github.com/ethereum/go-ethereum/les/flowcontrol"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/node"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/simulations"
- "github.com/ethereum/go-ethereum/p2p/simulations/adapters"
- "github.com/ethereum/go-ethereum/rpc"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/hexutil"
+ "github.com/scroll-tech/go-ethereum/consensus/ethash"
+ "github.com/scroll-tech/go-ethereum/eth"
+ ethdownloader "github.com/scroll-tech/go-ethereum/eth/downloader"
+ "github.com/scroll-tech/go-ethereum/eth/ethconfig"
+ "github.com/scroll-tech/go-ethereum/les/downloader"
+ "github.com/scroll-tech/go-ethereum/les/flowcontrol"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/node"
+ "github.com/scroll-tech/go-ethereum/p2p/enode"
+ "github.com/scroll-tech/go-ethereum/p2p/simulations"
+ "github.com/scroll-tech/go-ethereum/p2p/simulations/adapters"
+ "github.com/scroll-tech/go-ethereum/rpc"
"github.com/mattn/go-colorable"
)
diff --git a/les/benchmark.go b/les/benchmark.go
index 757822a6b3..b3903b8359 100644
--- a/les/benchmark.go
+++ b/les/benchmark.go
@@ -24,17 +24,17 @@ import (
"sync"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/mclock"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/les/flowcontrol"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/p2p"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/mclock"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/les/flowcontrol"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/p2p"
+ "github.com/scroll-tech/go-ethereum/p2p/enode"
+ "github.com/scroll-tech/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/rlp"
)
// requestBenchmark is an interface for different randomized request generators
diff --git a/les/bloombits.go b/les/bloombits.go
index a98524ce2e..8cde9036f3 100644
--- a/les/bloombits.go
+++ b/les/bloombits.go
@@ -19,8 +19,8 @@ package les
import (
"time"
- "github.com/ethereum/go-ethereum/common/bitutil"
- "github.com/ethereum/go-ethereum/light"
+ "github.com/scroll-tech/go-ethereum/common/bitutil"
+ "github.com/scroll-tech/go-ethereum/light"
)
const (
diff --git a/les/checkpointoracle/oracle.go b/les/checkpointoracle/oracle.go
index 003eb17df7..1aae0a1a07 100644
--- a/les/checkpointoracle/oracle.go
+++ b/les/checkpointoracle/oracle.go
@@ -25,12 +25,12 @@ import (
"sync/atomic"
"time"
- "github.com/ethereum/go-ethereum/accounts/abi/bind"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/contracts/checkpointoracle"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/accounts/abi/bind"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/contracts/checkpointoracle"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/params"
)
// CheckpointOracle is responsible for offering the latest stable checkpoint
diff --git a/les/client.go b/les/client.go
index 93319cb936..d9e20d7658 100644
--- a/les/client.go
+++ b/les/client.go
@@ -21,32 +21,32 @@ import (
"fmt"
"time"
- "github.com/ethereum/go-ethereum/accounts"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/common/mclock"
- "github.com/ethereum/go-ethereum/consensus"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/bloombits"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/eth/ethconfig"
- "github.com/ethereum/go-ethereum/eth/filters"
- "github.com/ethereum/go-ethereum/eth/gasprice"
- "github.com/ethereum/go-ethereum/event"
- "github.com/ethereum/go-ethereum/internal/ethapi"
- "github.com/ethereum/go-ethereum/les/downloader"
- "github.com/ethereum/go-ethereum/les/vflux"
- vfc "github.com/ethereum/go-ethereum/les/vflux/client"
- "github.com/ethereum/go-ethereum/light"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/node"
- "github.com/ethereum/go-ethereum/p2p"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/enr"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/rlp"
- "github.com/ethereum/go-ethereum/rpc"
+ "github.com/scroll-tech/go-ethereum/accounts"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/hexutil"
+ "github.com/scroll-tech/go-ethereum/common/mclock"
+ "github.com/scroll-tech/go-ethereum/consensus"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/core/bloombits"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/eth/ethconfig"
+ "github.com/scroll-tech/go-ethereum/eth/filters"
+ "github.com/scroll-tech/go-ethereum/eth/gasprice"
+ "github.com/scroll-tech/go-ethereum/event"
+ "github.com/scroll-tech/go-ethereum/internal/ethapi"
+ "github.com/scroll-tech/go-ethereum/les/downloader"
+ "github.com/scroll-tech/go-ethereum/les/vflux"
+ vfc "github.com/scroll-tech/go-ethereum/les/vflux/client"
+ "github.com/scroll-tech/go-ethereum/light"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/node"
+ "github.com/scroll-tech/go-ethereum/p2p"
+ "github.com/scroll-tech/go-ethereum/p2p/enode"
+ "github.com/scroll-tech/go-ethereum/p2p/enr"
+ "github.com/scroll-tech/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/rpc"
)
type LightEthereum struct {
diff --git a/les/client_handler.go b/les/client_handler.go
index 9583bd57ca..ee4dd9407b 100644
--- a/les/client_handler.go
+++ b/les/client_handler.go
@@ -24,16 +24,16 @@ import (
"sync/atomic"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/mclock"
- "github.com/ethereum/go-ethereum/core/forkid"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/eth/protocols/eth"
- "github.com/ethereum/go-ethereum/les/downloader"
- "github.com/ethereum/go-ethereum/light"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/p2p"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/mclock"
+ "github.com/scroll-tech/go-ethereum/core/forkid"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/eth/protocols/eth"
+ "github.com/scroll-tech/go-ethereum/les/downloader"
+ "github.com/scroll-tech/go-ethereum/light"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/p2p"
+ "github.com/scroll-tech/go-ethereum/params"
)
// clientHandler is responsible for receiving and processing all incoming server
diff --git a/les/commons.go b/les/commons.go
index d090fc21fc..802315b5b8 100644
--- a/les/commons.go
+++ b/les/commons.go
@@ -21,20 +21,20 @@ import (
"math/big"
"sync"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/eth/ethconfig"
- "github.com/ethereum/go-ethereum/ethclient"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/les/checkpointoracle"
- "github.com/ethereum/go-ethereum/light"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/node"
- "github.com/ethereum/go-ethereum/p2p"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/eth/ethconfig"
+ "github.com/scroll-tech/go-ethereum/ethclient"
+ "github.com/scroll-tech/go-ethereum/ethdb"
+ "github.com/scroll-tech/go-ethereum/les/checkpointoracle"
+ "github.com/scroll-tech/go-ethereum/light"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/node"
+ "github.com/scroll-tech/go-ethereum/p2p"
+ "github.com/scroll-tech/go-ethereum/p2p/enode"
+ "github.com/scroll-tech/go-ethereum/params"
)
func errResp(code errCode, format string, v ...interface{}) error {
diff --git a/les/costtracker.go b/les/costtracker.go
index 43e32a5b2d..3f9660b994 100644
--- a/les/costtracker.go
+++ b/les/costtracker.go
@@ -23,12 +23,12 @@ import (
"sync/atomic"
"time"
- "github.com/ethereum/go-ethereum/common/mclock"
- "github.com/ethereum/go-ethereum/eth/ethconfig"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/les/flowcontrol"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/metrics"
+ "github.com/scroll-tech/go-ethereum/common/mclock"
+ "github.com/scroll-tech/go-ethereum/eth/ethconfig"
+ "github.com/scroll-tech/go-ethereum/ethdb"
+ "github.com/scroll-tech/go-ethereum/les/flowcontrol"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/metrics"
)
const makeCostStats = false // make request cost statistics during operation
diff --git a/les/distributor.go b/les/distributor.go
index 31150e4d73..4567156c3a 100644
--- a/les/distributor.go
+++ b/les/distributor.go
@@ -21,8 +21,8 @@ import (
"sync"
"time"
- "github.com/ethereum/go-ethereum/common/mclock"
- "github.com/ethereum/go-ethereum/les/utils"
+ "github.com/scroll-tech/go-ethereum/common/mclock"
+ "github.com/scroll-tech/go-ethereum/les/utils"
)
// requestDistributor implements a mechanism that distributes requests to
diff --git a/les/distributor_test.go b/les/distributor_test.go
index 9a93dba145..17eed35d6f 100644
--- a/les/distributor_test.go
+++ b/les/distributor_test.go
@@ -22,7 +22,7 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/common/mclock"
+ "github.com/scroll-tech/go-ethereum/common/mclock"
)
type testDistReq struct {
diff --git a/les/downloader/api.go b/les/downloader/api.go
index 2024d23dea..1e09d1bd8d 100644
--- a/les/downloader/api.go
+++ b/les/downloader/api.go
@@ -20,9 +20,9 @@ import (
"context"
"sync"
- "github.com/ethereum/go-ethereum"
- "github.com/ethereum/go-ethereum/event"
- "github.com/ethereum/go-ethereum/rpc"
+ "github.com/scroll-tech/go-ethereum"
+ "github.com/scroll-tech/go-ethereum/event"
+ "github.com/scroll-tech/go-ethereum/rpc"
)
// PublicDownloaderAPI provides an API which gives information about the current synchronisation status.
diff --git a/les/downloader/downloader.go b/les/downloader/downloader.go
index e7dfc4158e..d02d91b2ae 100644
--- a/les/downloader/downloader.go
+++ b/les/downloader/downloader.go
@@ -28,19 +28,19 @@ import (
"sync/atomic"
"time"
- "github.com/ethereum/go-ethereum"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/state/snapshot"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/eth/protocols/eth"
- "github.com/ethereum/go-ethereum/eth/protocols/snap"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/event"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/metrics"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/scroll-tech/go-ethereum"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/core/state/snapshot"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/eth/protocols/eth"
+ "github.com/scroll-tech/go-ethereum/eth/protocols/snap"
+ "github.com/scroll-tech/go-ethereum/ethdb"
+ "github.com/scroll-tech/go-ethereum/event"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/metrics"
+ "github.com/scroll-tech/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/trie"
)
var (
diff --git a/les/downloader/downloader_test.go b/les/downloader/downloader_test.go
index 17cd3630c9..e96373548c 100644
--- a/les/downloader/downloader_test.go
+++ b/les/downloader/downloader_test.go
@@ -26,15 +26,15 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/state/snapshot"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/eth/protocols/eth"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/event"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/scroll-tech/go-ethereum"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/core/state/snapshot"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/eth/protocols/eth"
+ "github.com/scroll-tech/go-ethereum/ethdb"
+ "github.com/scroll-tech/go-ethereum/event"
+ "github.com/scroll-tech/go-ethereum/trie"
)
// Reduce some of the parameters to make the tester faster.
diff --git a/les/downloader/events.go b/les/downloader/events.go
index 25255a3a72..2a9043d599 100644
--- a/les/downloader/events.go
+++ b/les/downloader/events.go
@@ -16,7 +16,7 @@
package downloader
-import "github.com/ethereum/go-ethereum/core/types"
+import "github.com/scroll-tech/go-ethereum/core/types"
type DoneEvent struct {
Latest *types.Header
diff --git a/les/downloader/metrics.go b/les/downloader/metrics.go
index c38732043a..80f5701002 100644
--- a/les/downloader/metrics.go
+++ b/les/downloader/metrics.go
@@ -19,7 +19,7 @@
package downloader
import (
- "github.com/ethereum/go-ethereum/metrics"
+ "github.com/scroll-tech/go-ethereum/metrics"
)
var (
diff --git a/les/downloader/peer.go b/les/downloader/peer.go
index 8632948329..15091c444f 100644
--- a/les/downloader/peer.go
+++ b/les/downloader/peer.go
@@ -27,11 +27,11 @@ import (
"sync/atomic"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/eth/protocols/eth"
- "github.com/ethereum/go-ethereum/event"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/p2p/msgrate"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/eth/protocols/eth"
+ "github.com/scroll-tech/go-ethereum/event"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/p2p/msgrate"
)
const (
diff --git a/les/downloader/queue.go b/les/downloader/queue.go
index 04ec12cfa9..158608ccd7 100644
--- a/les/downloader/queue.go
+++ b/les/downloader/queue.go
@@ -26,12 +26,12 @@ import (
"sync/atomic"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/prque"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/metrics"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/prque"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/metrics"
+ "github.com/scroll-tech/go-ethereum/trie"
)
const (
diff --git a/les/downloader/queue_test.go b/les/downloader/queue_test.go
index cde5f306a2..07a05dc20e 100644
--- a/les/downloader/queue_test.go
+++ b/les/downloader/queue_test.go
@@ -24,13 +24,13 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/consensus/ethash"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/consensus/ethash"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/params"
)
var (
diff --git a/les/downloader/resultstore.go b/les/downloader/resultstore.go
index 21928c2a00..8075f507db 100644
--- a/les/downloader/resultstore.go
+++ b/les/downloader/resultstore.go
@@ -21,7 +21,7 @@ import (
"sync"
"sync/atomic"
- "github.com/ethereum/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/core/types"
)
// resultStore implements a structure for maintaining fetchResults, tracking their
diff --git a/les/downloader/statesync.go b/les/downloader/statesync.go
index 6c53e5577a..5c8b85c5a8 100644
--- a/les/downloader/statesync.go
+++ b/les/downloader/statesync.go
@@ -21,13 +21,13 @@ import (
"sync"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/state"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/core/state"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/ethdb"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/trie"
"golang.org/x/crypto/sha3"
)
diff --git a/les/downloader/testchain_test.go b/les/downloader/testchain_test.go
index b9865f7e03..8757755bab 100644
--- a/les/downloader/testchain_test.go
+++ b/les/downloader/testchain_test.go
@@ -21,13 +21,13 @@ import (
"math/big"
"sync"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/consensus/ethash"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/consensus/ethash"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/params"
)
// Test chain parameters.
diff --git a/les/downloader/types.go b/les/downloader/types.go
index ff70bfa0e3..388fa16b5c 100644
--- a/les/downloader/types.go
+++ b/les/downloader/types.go
@@ -19,7 +19,7 @@ package downloader
import (
"fmt"
- "github.com/ethereum/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/core/types"
)
// peerDropFn is a callback type for dropping a peer detected as malicious.
diff --git a/les/enr_entry.go b/les/enr_entry.go
index 307313fb10..407f5f6d6a 100644
--- a/les/enr_entry.go
+++ b/les/enr_entry.go
@@ -17,10 +17,10 @@
package les
import (
- "github.com/ethereum/go-ethereum/core/forkid"
- "github.com/ethereum/go-ethereum/p2p/dnsdisc"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/core/forkid"
+ "github.com/scroll-tech/go-ethereum/p2p/dnsdisc"
+ "github.com/scroll-tech/go-ethereum/p2p/enode"
+ "github.com/scroll-tech/go-ethereum/rlp"
)
// lesEntry is the "les" ENR entry. This is set for LES servers only.
diff --git a/les/fetcher.go b/les/fetcher.go
index d944d32858..0ba54e5d94 100644
--- a/les/fetcher.go
+++ b/les/fetcher.go
@@ -22,16 +22,16 @@ import (
"sync"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/consensus"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/les/fetcher"
- "github.com/ethereum/go-ethereum/light"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/p2p/enode"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/consensus"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/ethdb"
+ "github.com/scroll-tech/go-ethereum/les/fetcher"
+ "github.com/scroll-tech/go-ethereum/light"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/p2p/enode"
)
const (
diff --git a/les/fetcher/block_fetcher.go b/les/fetcher/block_fetcher.go
index 283008db0f..eb0284cbf9 100644
--- a/les/fetcher/block_fetcher.go
+++ b/les/fetcher/block_fetcher.go
@@ -25,13 +25,13 @@ import (
"math/rand"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/prque"
- "github.com/ethereum/go-ethereum/consensus"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/metrics"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/prque"
+ "github.com/scroll-tech/go-ethereum/consensus"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/metrics"
+ "github.com/scroll-tech/go-ethereum/trie"
)
const (
diff --git a/les/fetcher/block_fetcher_test.go b/les/fetcher/block_fetcher_test.go
index b6d1125b56..6553df3c2d 100644
--- a/les/fetcher/block_fetcher_test.go
+++ b/les/fetcher/block_fetcher_test.go
@@ -24,14 +24,14 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/consensus/ethash"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/consensus/ethash"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/trie"
)
var (
diff --git a/les/fetcher_test.go b/les/fetcher_test.go
index a922ab0f83..494d2089db 100644
--- a/les/fetcher_test.go
+++ b/les/fetcher_test.go
@@ -21,12 +21,12 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/consensus/ethash"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/consensus/ethash"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/p2p/enode"
+ "github.com/scroll-tech/go-ethereum/params"
)
// verifyImportEvent verifies that one single event arrive on an import channel.
diff --git a/les/flowcontrol/control.go b/les/flowcontrol/control.go
index 4f0de82318..23b12548cf 100644
--- a/les/flowcontrol/control.go
+++ b/les/flowcontrol/control.go
@@ -23,8 +23,8 @@ import (
"sync"
"time"
- "github.com/ethereum/go-ethereum/common/mclock"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/common/mclock"
+ "github.com/scroll-tech/go-ethereum/log"
)
const (
diff --git a/les/flowcontrol/logger.go b/les/flowcontrol/logger.go
index 428d7fbf22..8f1f0995fc 100644
--- a/les/flowcontrol/logger.go
+++ b/les/flowcontrol/logger.go
@@ -20,7 +20,7 @@ import (
"fmt"
"time"
- "github.com/ethereum/go-ethereum/common/mclock"
+ "github.com/scroll-tech/go-ethereum/common/mclock"
)
// logger collects events in string format and discards events older than the
diff --git a/les/flowcontrol/manager.go b/les/flowcontrol/manager.go
index c9e681c144..e70b34a297 100644
--- a/les/flowcontrol/manager.go
+++ b/les/flowcontrol/manager.go
@@ -22,8 +22,8 @@ import (
"sync"
"time"
- "github.com/ethereum/go-ethereum/common/mclock"
- "github.com/ethereum/go-ethereum/common/prque"
+ "github.com/scroll-tech/go-ethereum/common/mclock"
+ "github.com/scroll-tech/go-ethereum/common/prque"
)
// cmNodeFields are ClientNode fields used by the client manager
diff --git a/les/flowcontrol/manager_test.go b/les/flowcontrol/manager_test.go
index 9d2f887636..7546794517 100644
--- a/les/flowcontrol/manager_test.go
+++ b/les/flowcontrol/manager_test.go
@@ -21,7 +21,7 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/common/mclock"
+ "github.com/scroll-tech/go-ethereum/common/mclock"
)
type testNode struct {
diff --git a/les/handler_test.go b/les/handler_test.go
index aba45764b3..bb18acaed7 100644
--- a/les/handler_test.go
+++ b/les/handler_test.go
@@ -23,19 +23,19 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/mclock"
- "github.com/ethereum/go-ethereum/consensus/ethash"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/les/downloader"
- "github.com/ethereum/go-ethereum/light"
- "github.com/ethereum/go-ethereum/p2p"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/rlp"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/mclock"
+ "github.com/scroll-tech/go-ethereum/consensus/ethash"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/les/downloader"
+ "github.com/scroll-tech/go-ethereum/light"
+ "github.com/scroll-tech/go-ethereum/p2p"
+ "github.com/scroll-tech/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/trie"
)
func expectResponse(r p2p.MsgReader, msgcode, reqID, bv uint64, data interface{}) error {
diff --git a/les/metrics.go b/les/metrics.go
index 07d3133c95..6fcd3774d4 100644
--- a/les/metrics.go
+++ b/les/metrics.go
@@ -17,8 +17,8 @@
package les
import (
- "github.com/ethereum/go-ethereum/metrics"
- "github.com/ethereum/go-ethereum/p2p"
+ "github.com/scroll-tech/go-ethereum/metrics"
+ "github.com/scroll-tech/go-ethereum/p2p"
)
var (
diff --git a/les/odr.go b/les/odr.go
index 10ff0854d3..572060ca3d 100644
--- a/les/odr.go
+++ b/les/odr.go
@@ -22,10 +22,10 @@ import (
"sort"
"time"
- "github.com/ethereum/go-ethereum/common/mclock"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/light"
+ "github.com/scroll-tech/go-ethereum/common/mclock"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/ethdb"
+ "github.com/scroll-tech/go-ethereum/light"
)
// LesOdr implements light.OdrBackend
diff --git a/les/odr_requests.go b/les/odr_requests.go
index d548fb1ee0..edace80d18 100644
--- a/les/odr_requests.go
+++ b/les/odr_requests.go
@@ -21,15 +21,15 @@ import (
"errors"
"fmt"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/light"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/rlp"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/ethdb"
+ "github.com/scroll-tech/go-ethereum/light"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/trie"
)
var (
diff --git a/les/odr_test.go b/les/odr_test.go
index ad77abf5b9..dd749bac89 100644
--- a/les/odr_test.go
+++ b/les/odr_test.go
@@ -26,17 +26,17 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/math"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/state"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/core/vm"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/light"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/math"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/core/state"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/core/vm"
+ "github.com/scroll-tech/go-ethereum/ethdb"
+ "github.com/scroll-tech/go-ethereum/light"
+ "github.com/scroll-tech/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/rlp"
)
type odrTestFn func(ctx context.Context, db ethdb.Database, config *params.ChainConfig, bc *core.BlockChain, lc *light.LightChain, bhash common.Hash) []byte
diff --git a/les/peer.go b/les/peer.go
index c6c672942b..ae8cf55dd0 100644
--- a/les/peer.go
+++ b/les/peer.go
@@ -27,20 +27,20 @@ import (
"sync/atomic"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/mclock"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/forkid"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/les/flowcontrol"
- "github.com/ethereum/go-ethereum/les/utils"
- vfc "github.com/ethereum/go-ethereum/les/vflux/client"
- vfs "github.com/ethereum/go-ethereum/les/vflux/server"
- "github.com/ethereum/go-ethereum/light"
- "github.com/ethereum/go-ethereum/p2p"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/mclock"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/core/forkid"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/les/flowcontrol"
+ "github.com/scroll-tech/go-ethereum/les/utils"
+ vfc "github.com/scroll-tech/go-ethereum/les/vflux/client"
+ vfs "github.com/scroll-tech/go-ethereum/les/vflux/server"
+ "github.com/scroll-tech/go-ethereum/light"
+ "github.com/scroll-tech/go-ethereum/p2p"
+ "github.com/scroll-tech/go-ethereum/p2p/enode"
+ "github.com/scroll-tech/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/rlp"
)
var (
diff --git a/les/peer_test.go b/les/peer_test.go
index d6551ce6b6..c8db0a9031 100644
--- a/les/peer_test.go
+++ b/les/peer_test.go
@@ -25,14 +25,14 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/forkid"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/p2p"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/core/forkid"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/p2p"
+ "github.com/scroll-tech/go-ethereum/p2p/enode"
+ "github.com/scroll-tech/go-ethereum/params"
)
type testServerPeerSub struct {
diff --git a/les/protocol.go b/les/protocol.go
index 06db9024eb..4c32bde95d 100644
--- a/les/protocol.go
+++ b/les/protocol.go
@@ -23,12 +23,12 @@ import (
"io"
"math/big"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/crypto"
- vfc "github.com/ethereum/go-ethereum/les/vflux/client"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ vfc "github.com/scroll-tech/go-ethereum/les/vflux/client"
+ "github.com/scroll-tech/go-ethereum/p2p/enode"
+ "github.com/scroll-tech/go-ethereum/rlp"
)
// Constants to match up protocol versions and messages
diff --git a/les/pruner.go b/les/pruner.go
index a1bd51d86c..3ffed87fa3 100644
--- a/les/pruner.go
+++ b/les/pruner.go
@@ -20,10 +20,10 @@ import (
"sync"
"time"
- "github.com/ethereum/go-ethereum/common/math"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/common/math"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/ethdb"
+ "github.com/scroll-tech/go-ethereum/log"
)
// pruner is responsible for pruning historical light chain data.
diff --git a/les/pruner_test.go b/les/pruner_test.go
index c6f198c088..54cc7be376 100644
--- a/les/pruner_test.go
+++ b/les/pruner_test.go
@@ -23,8 +23,8 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/light"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/light"
)
func TestLightPruner(t *testing.T) {
diff --git a/les/request_test.go b/les/request_test.go
index c65405e375..0b3839a0f9 100644
--- a/les/request_test.go
+++ b/les/request_test.go
@@ -21,11 +21,11 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/light"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/ethdb"
+ "github.com/scroll-tech/go-ethereum/light"
)
var testBankSecureTrieKey = secAddr(bankAddr)
diff --git a/les/retrieve.go b/les/retrieve.go
index 307af04212..07527926c4 100644
--- a/les/retrieve.go
+++ b/les/retrieve.go
@@ -22,7 +22,7 @@ import (
"sync"
"time"
- "github.com/ethereum/go-ethereum/light"
+ "github.com/scroll-tech/go-ethereum/light"
)
var (
diff --git a/les/server.go b/les/server.go
index c135e65f2d..88730c23b8 100644
--- a/les/server.go
+++ b/les/server.go
@@ -20,20 +20,20 @@ import (
"crypto/ecdsa"
"time"
- "github.com/ethereum/go-ethereum/common/mclock"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/eth/ethconfig"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/les/flowcontrol"
- vfs "github.com/ethereum/go-ethereum/les/vflux/server"
- "github.com/ethereum/go-ethereum/light"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/node"
- "github.com/ethereum/go-ethereum/p2p"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/enr"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/rpc"
+ "github.com/scroll-tech/go-ethereum/common/mclock"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/eth/ethconfig"
+ "github.com/scroll-tech/go-ethereum/ethdb"
+ "github.com/scroll-tech/go-ethereum/les/flowcontrol"
+ vfs "github.com/scroll-tech/go-ethereum/les/vflux/server"
+ "github.com/scroll-tech/go-ethereum/light"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/node"
+ "github.com/scroll-tech/go-ethereum/p2p"
+ "github.com/scroll-tech/go-ethereum/p2p/enode"
+ "github.com/scroll-tech/go-ethereum/p2p/enr"
+ "github.com/scroll-tech/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/rpc"
)
var (
diff --git a/les/server_handler.go b/les/server_handler.go
index f36a87a513..2d94f683b8 100644
--- a/les/server_handler.go
+++ b/les/server_handler.go
@@ -22,20 +22,20 @@ import (
"sync/atomic"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/mclock"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/forkid"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/les/flowcontrol"
- "github.com/ethereum/go-ethereum/light"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/metrics"
- "github.com/ethereum/go-ethereum/p2p"
- "github.com/ethereum/go-ethereum/rlp"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/mclock"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/core/forkid"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/ethdb"
+ "github.com/scroll-tech/go-ethereum/les/flowcontrol"
+ "github.com/scroll-tech/go-ethereum/light"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/metrics"
+ "github.com/scroll-tech/go-ethereum/p2p"
+ "github.com/scroll-tech/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/trie"
)
const (
diff --git a/les/server_requests.go b/les/server_requests.go
index bab5f733d5..69f5dcef92 100644
--- a/les/server_requests.go
+++ b/les/server_requests.go
@@ -20,15 +20,15 @@ import (
"encoding/binary"
"encoding/json"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/state"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/light"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/metrics"
- "github.com/ethereum/go-ethereum/rlp"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/core/state"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/light"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/metrics"
+ "github.com/scroll-tech/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/trie"
)
// serverBackend defines the backend functions needed for serving LES requests
diff --git a/les/servingqueue.go b/les/servingqueue.go
index 10c7e6f48c..3db920ba06 100644
--- a/les/servingqueue.go
+++ b/les/servingqueue.go
@@ -21,8 +21,8 @@ import (
"sync"
"sync/atomic"
- "github.com/ethereum/go-ethereum/common/mclock"
- "github.com/ethereum/go-ethereum/common/prque"
+ "github.com/scroll-tech/go-ethereum/common/mclock"
+ "github.com/scroll-tech/go-ethereum/common/prque"
)
// servingQueue allows running tasks in a limited number of threads and puts the
diff --git a/les/state_accessor.go b/les/state_accessor.go
index 112e6fd44d..8b2319a11e 100644
--- a/les/state_accessor.go
+++ b/les/state_accessor.go
@@ -21,11 +21,11 @@ import (
"errors"
"fmt"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/state"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/core/vm"
- "github.com/ethereum/go-ethereum/light"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/core/state"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/core/vm"
+ "github.com/scroll-tech/go-ethereum/light"
)
// stateAtBlock retrieves the state database associated with a certain block.
diff --git a/les/sync.go b/les/sync.go
index 31cd06ca70..cddc0478a4 100644
--- a/les/sync.go
+++ b/les/sync.go
@@ -21,12 +21,12 @@ import (
"errors"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/les/downloader"
- "github.com/ethereum/go-ethereum/light"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/les/downloader"
+ "github.com/scroll-tech/go-ethereum/light"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/params"
)
var errInvalidCheckpoint = errors.New("invalid advertised checkpoint")
diff --git a/les/sync_test.go b/les/sync_test.go
index 3fc2a9c154..a4b8dd4253 100644
--- a/les/sync_test.go
+++ b/les/sync_test.go
@@ -22,12 +22,12 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/accounts/abi/bind"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/light"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/accounts/abi/bind"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/light"
+ "github.com/scroll-tech/go-ethereum/params"
)
// Test light syncing which will download all headers from genesis.
@@ -196,7 +196,7 @@ func testMissOracleBackend(t *testing.T, hasCheckpoint bool, protocol int) {
// that user wants to unlock something which blocks the oracle backend
// initialisation. But at the same time syncing starts.
//
- // See https://github.com/ethereum/go-ethereum/issues/20097 for more detail.
+ // See https://github.com/scroll-tech/go-ethereum/issues/20097 for more detail.
//
// In this case, client should run light sync or legacy checkpoint sync
// if hardcoded checkpoint is configured.
diff --git a/les/test_helper.go b/les/test_helper.go
index 21d0f191c9..384200ce01 100644
--- a/les/test_helper.go
+++ b/les/test_helper.go
@@ -29,27 +29,27 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/accounts/abi/bind"
- "github.com/ethereum/go-ethereum/accounts/abi/bind/backends"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/mclock"
- "github.com/ethereum/go-ethereum/consensus/ethash"
- "github.com/ethereum/go-ethereum/contracts/checkpointoracle/contract"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/forkid"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/eth/ethconfig"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/event"
- "github.com/ethereum/go-ethereum/les/checkpointoracle"
- "github.com/ethereum/go-ethereum/les/flowcontrol"
- vfs "github.com/ethereum/go-ethereum/les/vflux/server"
- "github.com/ethereum/go-ethereum/light"
- "github.com/ethereum/go-ethereum/p2p"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/accounts/abi/bind"
+ "github.com/scroll-tech/go-ethereum/accounts/abi/bind/backends"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/mclock"
+ "github.com/scroll-tech/go-ethereum/consensus/ethash"
+ "github.com/scroll-tech/go-ethereum/contracts/checkpointoracle/contract"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/core/forkid"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/eth/ethconfig"
+ "github.com/scroll-tech/go-ethereum/ethdb"
+ "github.com/scroll-tech/go-ethereum/event"
+ "github.com/scroll-tech/go-ethereum/les/checkpointoracle"
+ "github.com/scroll-tech/go-ethereum/les/flowcontrol"
+ vfs "github.com/scroll-tech/go-ethereum/les/vflux/server"
+ "github.com/scroll-tech/go-ethereum/light"
+ "github.com/scroll-tech/go-ethereum/p2p"
+ "github.com/scroll-tech/go-ethereum/p2p/enode"
+ "github.com/scroll-tech/go-ethereum/params"
)
var (
diff --git a/les/txrelay.go b/les/txrelay.go
index 40a51fb76f..14539a4753 100644
--- a/les/txrelay.go
+++ b/les/txrelay.go
@@ -21,9 +21,9 @@ import (
"math/rand"
"sync"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/rlp"
)
type lesTxRelay struct {
diff --git a/les/ulc.go b/les/ulc.go
index b97217e796..81de65ea36 100644
--- a/les/ulc.go
+++ b/les/ulc.go
@@ -19,8 +19,8 @@ package les
import (
"errors"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/p2p/enode"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/p2p/enode"
)
type ulc struct {
diff --git a/les/ulc_test.go b/les/ulc_test.go
index ecef58d979..5120371b3b 100644
--- a/les/ulc_test.go
+++ b/les/ulc_test.go
@@ -24,9 +24,9 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/p2p"
- "github.com/ethereum/go-ethereum/p2p/enode"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/p2p"
+ "github.com/scroll-tech/go-ethereum/p2p/enode"
)
func TestULCAnnounceThresholdLes2(t *testing.T) { testULCAnnounceThreshold(t, 2) }
diff --git a/les/utils/expiredvalue.go b/les/utils/expiredvalue.go
index 3fd52616fa..730d133968 100644
--- a/les/utils/expiredvalue.go
+++ b/les/utils/expiredvalue.go
@@ -20,7 +20,7 @@ import (
"math"
"sync"
- "github.com/ethereum/go-ethereum/common/mclock"
+ "github.com/scroll-tech/go-ethereum/common/mclock"
)
// ExpiredValue is a scalar value that is continuously expired (decreased
diff --git a/les/utils/expiredvalue_test.go b/les/utils/expiredvalue_test.go
index 1c751d8cc6..6c9ba7d192 100644
--- a/les/utils/expiredvalue_test.go
+++ b/les/utils/expiredvalue_test.go
@@ -19,7 +19,7 @@ package utils
import (
"testing"
- "github.com/ethereum/go-ethereum/common/mclock"
+ "github.com/scroll-tech/go-ethereum/common/mclock"
)
func TestValueExpiration(t *testing.T) {
diff --git a/les/utils/limiter.go b/les/utils/limiter.go
index 0cc2d7b262..51578763e8 100644
--- a/les/utils/limiter.go
+++ b/les/utils/limiter.go
@@ -20,7 +20,7 @@ import (
"sort"
"sync"
- "github.com/ethereum/go-ethereum/p2p/enode"
+ "github.com/scroll-tech/go-ethereum/p2p/enode"
)
const maxSelectionWeight = 1000000000 // maximum selection weight of each individual node/address group
diff --git a/les/utils/limiter_test.go b/les/utils/limiter_test.go
index 43af3309ab..2ef6196f7e 100644
--- a/les/utils/limiter_test.go
+++ b/les/utils/limiter_test.go
@@ -20,7 +20,7 @@ import (
"math/rand"
"testing"
- "github.com/ethereum/go-ethereum/p2p/enode"
+ "github.com/scroll-tech/go-ethereum/p2p/enode"
)
const (
diff --git a/les/utils/timeutils.go b/les/utils/timeutils.go
index 62a4285d15..35eb9e1dd4 100644
--- a/les/utils/timeutils.go
+++ b/les/utils/timeutils.go
@@ -20,7 +20,7 @@ import (
"sync"
"time"
- "github.com/ethereum/go-ethereum/common/mclock"
+ "github.com/scroll-tech/go-ethereum/common/mclock"
)
type UpdateTimer struct {
diff --git a/les/utils/timeutils_test.go b/les/utils/timeutils_test.go
index 9f9e1c2dc9..eb43318cb4 100644
--- a/les/utils/timeutils_test.go
+++ b/les/utils/timeutils_test.go
@@ -20,7 +20,7 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/common/mclock"
+ "github.com/scroll-tech/go-ethereum/common/mclock"
)
func TestUpdateTimer(t *testing.T) {
diff --git a/les/utils/weighted_select.go b/les/utils/weighted_select.go
index 486b00820a..a88809c76d 100644
--- a/les/utils/weighted_select.go
+++ b/les/utils/weighted_select.go
@@ -20,7 +20,7 @@ import (
"math"
"math/rand"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/log"
)
type (
diff --git a/les/vflux/client/api.go b/les/vflux/client/api.go
index 135273ef96..2d9a995a7a 100644
--- a/les/vflux/client/api.go
+++ b/les/vflux/client/api.go
@@ -19,9 +19,9 @@ package client
import (
"time"
- "github.com/ethereum/go-ethereum/common/mclock"
- "github.com/ethereum/go-ethereum/les/utils"
- "github.com/ethereum/go-ethereum/p2p/enode"
+ "github.com/scroll-tech/go-ethereum/common/mclock"
+ "github.com/scroll-tech/go-ethereum/les/utils"
+ "github.com/scroll-tech/go-ethereum/p2p/enode"
)
// PrivateClientAPI implements the vflux client side API
diff --git a/les/vflux/client/fillset.go b/les/vflux/client/fillset.go
index 0da850bcac..6538c84680 100644
--- a/les/vflux/client/fillset.go
+++ b/les/vflux/client/fillset.go
@@ -19,8 +19,8 @@ package client
import (
"sync"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/nodestate"
+ "github.com/scroll-tech/go-ethereum/p2p/enode"
+ "github.com/scroll-tech/go-ethereum/p2p/nodestate"
)
// FillSet tries to read nodes from an input iterator and add them to a node set by
diff --git a/les/vflux/client/fillset_test.go b/les/vflux/client/fillset_test.go
index 58240682c6..ecf9d4ac83 100644
--- a/les/vflux/client/fillset_test.go
+++ b/les/vflux/client/fillset_test.go
@@ -21,10 +21,10 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/common/mclock"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/enr"
- "github.com/ethereum/go-ethereum/p2p/nodestate"
+ "github.com/scroll-tech/go-ethereum/common/mclock"
+ "github.com/scroll-tech/go-ethereum/p2p/enode"
+ "github.com/scroll-tech/go-ethereum/p2p/enr"
+ "github.com/scroll-tech/go-ethereum/p2p/nodestate"
)
type testIter struct {
diff --git a/les/vflux/client/queueiterator.go b/les/vflux/client/queueiterator.go
index ad3f8df5bb..36ac9381de 100644
--- a/les/vflux/client/queueiterator.go
+++ b/les/vflux/client/queueiterator.go
@@ -19,8 +19,8 @@ package client
import (
"sync"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/nodestate"
+ "github.com/scroll-tech/go-ethereum/p2p/enode"
+ "github.com/scroll-tech/go-ethereum/p2p/nodestate"
)
// QueueIterator returns nodes from the specified selectable set in the same order as
diff --git a/les/vflux/client/queueiterator_test.go b/les/vflux/client/queueiterator_test.go
index 400d978e19..b905a8341f 100644
--- a/les/vflux/client/queueiterator_test.go
+++ b/les/vflux/client/queueiterator_test.go
@@ -20,10 +20,10 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/common/mclock"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/enr"
- "github.com/ethereum/go-ethereum/p2p/nodestate"
+ "github.com/scroll-tech/go-ethereum/common/mclock"
+ "github.com/scroll-tech/go-ethereum/p2p/enode"
+ "github.com/scroll-tech/go-ethereum/p2p/enr"
+ "github.com/scroll-tech/go-ethereum/p2p/nodestate"
)
func testNode(i int) *enode.Node {
diff --git a/les/vflux/client/requestbasket.go b/les/vflux/client/requestbasket.go
index 55d4b165df..63e57aeb1a 100644
--- a/les/vflux/client/requestbasket.go
+++ b/les/vflux/client/requestbasket.go
@@ -19,8 +19,8 @@ package client
import (
"io"
- "github.com/ethereum/go-ethereum/les/utils"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/les/utils"
+ "github.com/scroll-tech/go-ethereum/rlp"
)
const basketFactor = 1000000 // reference basket amount and value scale factor
diff --git a/les/vflux/client/requestbasket_test.go b/les/vflux/client/requestbasket_test.go
index 7c5f87c618..68933905f5 100644
--- a/les/vflux/client/requestbasket_test.go
+++ b/les/vflux/client/requestbasket_test.go
@@ -20,7 +20,7 @@ import (
"math/rand"
"testing"
- "github.com/ethereum/go-ethereum/les/utils"
+ "github.com/scroll-tech/go-ethereum/les/utils"
)
func checkU64(t *testing.T, name string, value, exp uint64) {
diff --git a/les/vflux/client/serverpool.go b/les/vflux/client/serverpool.go
index cc0254c127..3fd9bb2071 100644
--- a/les/vflux/client/serverpool.go
+++ b/les/vflux/client/serverpool.go
@@ -24,15 +24,15 @@ import (
"sync/atomic"
"time"
- "github.com/ethereum/go-ethereum/common/mclock"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/les/utils"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/metrics"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/enr"
- "github.com/ethereum/go-ethereum/p2p/nodestate"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/common/mclock"
+ "github.com/scroll-tech/go-ethereum/ethdb"
+ "github.com/scroll-tech/go-ethereum/les/utils"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/metrics"
+ "github.com/scroll-tech/go-ethereum/p2p/enode"
+ "github.com/scroll-tech/go-ethereum/p2p/enr"
+ "github.com/scroll-tech/go-ethereum/p2p/nodestate"
+ "github.com/scroll-tech/go-ethereum/rlp"
)
const (
diff --git a/les/vflux/client/serverpool_test.go b/les/vflux/client/serverpool_test.go
index 763f72f03a..54a0342d72 100644
--- a/les/vflux/client/serverpool_test.go
+++ b/les/vflux/client/serverpool_test.go
@@ -24,11 +24,11 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/common/mclock"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/ethdb/memorydb"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/enr"
+ "github.com/scroll-tech/go-ethereum/common/mclock"
+ "github.com/scroll-tech/go-ethereum/ethdb"
+ "github.com/scroll-tech/go-ethereum/ethdb/memorydb"
+ "github.com/scroll-tech/go-ethereum/p2p/enode"
+ "github.com/scroll-tech/go-ethereum/p2p/enr"
)
const (
diff --git a/les/vflux/client/timestats.go b/les/vflux/client/timestats.go
index 7f1ffdbe26..22f5e0c165 100644
--- a/les/vflux/client/timestats.go
+++ b/les/vflux/client/timestats.go
@@ -21,8 +21,8 @@ import (
"math"
"time"
- "github.com/ethereum/go-ethereum/les/utils"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/les/utils"
+ "github.com/scroll-tech/go-ethereum/rlp"
)
const (
diff --git a/les/vflux/client/timestats_test.go b/les/vflux/client/timestats_test.go
index a28460171e..52d8aa7423 100644
--- a/les/vflux/client/timestats_test.go
+++ b/les/vflux/client/timestats_test.go
@@ -22,7 +22,7 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/les/utils"
+ "github.com/scroll-tech/go-ethereum/les/utils"
)
func TestTransition(t *testing.T) {
diff --git a/les/vflux/client/valuetracker.go b/les/vflux/client/valuetracker.go
index dcd2fcdfd9..815e793b4d 100644
--- a/les/vflux/client/valuetracker.go
+++ b/les/vflux/client/valuetracker.go
@@ -23,12 +23,12 @@ import (
"sync"
"time"
- "github.com/ethereum/go-ethereum/common/mclock"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/les/utils"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/common/mclock"
+ "github.com/scroll-tech/go-ethereum/ethdb"
+ "github.com/scroll-tech/go-ethereum/les/utils"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/p2p/enode"
+ "github.com/scroll-tech/go-ethereum/rlp"
)
const (
diff --git a/les/vflux/client/valuetracker_test.go b/les/vflux/client/valuetracker_test.go
index 87a337be8d..e20237ce4c 100644
--- a/les/vflux/client/valuetracker_test.go
+++ b/les/vflux/client/valuetracker_test.go
@@ -23,11 +23,11 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/common/mclock"
- "github.com/ethereum/go-ethereum/ethdb/memorydb"
- "github.com/ethereum/go-ethereum/p2p/enode"
+ "github.com/scroll-tech/go-ethereum/common/mclock"
+ "github.com/scroll-tech/go-ethereum/ethdb/memorydb"
+ "github.com/scroll-tech/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/les/utils"
+ "github.com/scroll-tech/go-ethereum/les/utils"
)
const (
diff --git a/les/vflux/client/wrsiterator.go b/les/vflux/client/wrsiterator.go
index 8a2e39ad44..86bbaa7e51 100644
--- a/les/vflux/client/wrsiterator.go
+++ b/les/vflux/client/wrsiterator.go
@@ -19,9 +19,9 @@ package client
import (
"sync"
- "github.com/ethereum/go-ethereum/les/utils"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/nodestate"
+ "github.com/scroll-tech/go-ethereum/les/utils"
+ "github.com/scroll-tech/go-ethereum/p2p/enode"
+ "github.com/scroll-tech/go-ethereum/p2p/nodestate"
)
// WrsIterator returns nodes from the specified selectable set with a weighted random
diff --git a/les/vflux/client/wrsiterator_test.go b/les/vflux/client/wrsiterator_test.go
index 77bb5ee0ca..bbf705faa2 100644
--- a/les/vflux/client/wrsiterator_test.go
+++ b/les/vflux/client/wrsiterator_test.go
@@ -21,8 +21,8 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/common/mclock"
- "github.com/ethereum/go-ethereum/p2p/nodestate"
+ "github.com/scroll-tech/go-ethereum/common/mclock"
+ "github.com/scroll-tech/go-ethereum/p2p/nodestate"
)
var (
diff --git a/les/vflux/requests.go b/les/vflux/requests.go
index 11255607e8..897dc083c5 100644
--- a/les/vflux/requests.go
+++ b/les/vflux/requests.go
@@ -21,7 +21,7 @@ import (
"math"
"math/big"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/rlp"
)
var ErrNoReply = errors.New("no reply for given request")
diff --git a/les/vflux/server/balance.go b/les/vflux/server/balance.go
index 2bc1ddd189..d3cc73cbaa 100644
--- a/les/vflux/server/balance.go
+++ b/les/vflux/server/balance.go
@@ -22,10 +22,10 @@ import (
"sync"
"time"
- "github.com/ethereum/go-ethereum/common/mclock"
- "github.com/ethereum/go-ethereum/les/utils"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/nodestate"
+ "github.com/scroll-tech/go-ethereum/common/mclock"
+ "github.com/scroll-tech/go-ethereum/les/utils"
+ "github.com/scroll-tech/go-ethereum/p2p/enode"
+ "github.com/scroll-tech/go-ethereum/p2p/nodestate"
)
var errBalanceOverflow = errors.New("balance overflow")
diff --git a/les/vflux/server/balance_test.go b/les/vflux/server/balance_test.go
index 5af89c18ab..2dc20fba6e 100644
--- a/les/vflux/server/balance_test.go
+++ b/les/vflux/server/balance_test.go
@@ -23,13 +23,13 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/common/mclock"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/ethdb/memorydb"
- "github.com/ethereum/go-ethereum/les/utils"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/enr"
- "github.com/ethereum/go-ethereum/p2p/nodestate"
+ "github.com/scroll-tech/go-ethereum/common/mclock"
+ "github.com/scroll-tech/go-ethereum/ethdb"
+ "github.com/scroll-tech/go-ethereum/ethdb/memorydb"
+ "github.com/scroll-tech/go-ethereum/les/utils"
+ "github.com/scroll-tech/go-ethereum/p2p/enode"
+ "github.com/scroll-tech/go-ethereum/p2p/enr"
+ "github.com/scroll-tech/go-ethereum/p2p/nodestate"
)
type zeroExpirer struct{}
diff --git a/les/vflux/server/balance_tracker.go b/les/vflux/server/balance_tracker.go
index 9695e79638..e1fa48122a 100644
--- a/les/vflux/server/balance_tracker.go
+++ b/les/vflux/server/balance_tracker.go
@@ -20,12 +20,12 @@ import (
"sync"
"time"
- "github.com/ethereum/go-ethereum/common/mclock"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/les/utils"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/enr"
- "github.com/ethereum/go-ethereum/p2p/nodestate"
+ "github.com/scroll-tech/go-ethereum/common/mclock"
+ "github.com/scroll-tech/go-ethereum/ethdb"
+ "github.com/scroll-tech/go-ethereum/les/utils"
+ "github.com/scroll-tech/go-ethereum/p2p/enode"
+ "github.com/scroll-tech/go-ethereum/p2p/enr"
+ "github.com/scroll-tech/go-ethereum/p2p/nodestate"
)
const (
diff --git a/les/vflux/server/clientdb.go b/les/vflux/server/clientdb.go
index 30cd9a6528..b6ee61352b 100644
--- a/les/vflux/server/clientdb.go
+++ b/les/vflux/server/clientdb.go
@@ -21,13 +21,13 @@ import (
"encoding/binary"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/mclock"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/les/utils"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/mclock"
+ "github.com/scroll-tech/go-ethereum/ethdb"
+ "github.com/scroll-tech/go-ethereum/les/utils"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/p2p/enode"
+ "github.com/scroll-tech/go-ethereum/rlp"
lru "github.com/hashicorp/golang-lru"
)
diff --git a/les/vflux/server/clientdb_test.go b/les/vflux/server/clientdb_test.go
index 353d84aead..2da3b263bc 100644
--- a/les/vflux/server/clientdb_test.go
+++ b/les/vflux/server/clientdb_test.go
@@ -21,10 +21,10 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/common/mclock"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/les/utils"
- "github.com/ethereum/go-ethereum/p2p/enode"
+ "github.com/scroll-tech/go-ethereum/common/mclock"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/les/utils"
+ "github.com/scroll-tech/go-ethereum/p2p/enode"
)
func expval(v uint64) utils.ExpiredValue {
diff --git a/les/vflux/server/clientpool.go b/les/vflux/server/clientpool.go
index 87d783ebab..699092fb83 100644
--- a/les/vflux/server/clientpool.go
+++ b/les/vflux/server/clientpool.go
@@ -21,14 +21,14 @@ import (
"sync"
"time"
- "github.com/ethereum/go-ethereum/common/mclock"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/les/utils"
- "github.com/ethereum/go-ethereum/les/vflux"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/nodestate"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/common/mclock"
+ "github.com/scroll-tech/go-ethereum/ethdb"
+ "github.com/scroll-tech/go-ethereum/les/utils"
+ "github.com/scroll-tech/go-ethereum/les/vflux"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/p2p/enode"
+ "github.com/scroll-tech/go-ethereum/p2p/nodestate"
+ "github.com/scroll-tech/go-ethereum/rlp"
)
var (
diff --git a/les/vflux/server/clientpool_test.go b/les/vflux/server/clientpool_test.go
index 0953e9c800..78a7bbeaf8 100644
--- a/les/vflux/server/clientpool_test.go
+++ b/les/vflux/server/clientpool_test.go
@@ -22,11 +22,11 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/common/mclock"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/enr"
- "github.com/ethereum/go-ethereum/p2p/nodestate"
+ "github.com/scroll-tech/go-ethereum/common/mclock"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/p2p/enode"
+ "github.com/scroll-tech/go-ethereum/p2p/enr"
+ "github.com/scroll-tech/go-ethereum/p2p/nodestate"
)
const defaultConnectedBias = time.Minute * 3
diff --git a/les/vflux/server/metrics.go b/les/vflux/server/metrics.go
index 680aebe2ea..0f87e61a3f 100644
--- a/les/vflux/server/metrics.go
+++ b/les/vflux/server/metrics.go
@@ -17,7 +17,7 @@
package server
import (
- "github.com/ethereum/go-ethereum/metrics"
+ "github.com/scroll-tech/go-ethereum/metrics"
)
var (
diff --git a/les/vflux/server/prioritypool.go b/les/vflux/server/prioritypool.go
index 059dac0d46..862d09d675 100644
--- a/les/vflux/server/prioritypool.go
+++ b/les/vflux/server/prioritypool.go
@@ -21,11 +21,11 @@ import (
"sync"
"time"
- "github.com/ethereum/go-ethereum/common/mclock"
- "github.com/ethereum/go-ethereum/common/prque"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/nodestate"
+ "github.com/scroll-tech/go-ethereum/common/mclock"
+ "github.com/scroll-tech/go-ethereum/common/prque"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/p2p/enode"
+ "github.com/scroll-tech/go-ethereum/p2p/nodestate"
)
const (
diff --git a/les/vflux/server/prioritypool_test.go b/les/vflux/server/prioritypool_test.go
index 5152312116..96dd6aa6ea 100644
--- a/les/vflux/server/prioritypool_test.go
+++ b/les/vflux/server/prioritypool_test.go
@@ -22,10 +22,10 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/common/mclock"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/enr"
- "github.com/ethereum/go-ethereum/p2p/nodestate"
+ "github.com/scroll-tech/go-ethereum/common/mclock"
+ "github.com/scroll-tech/go-ethereum/p2p/enode"
+ "github.com/scroll-tech/go-ethereum/p2p/enr"
+ "github.com/scroll-tech/go-ethereum/p2p/nodestate"
)
const (
diff --git a/les/vflux/server/service.go b/les/vflux/server/service.go
index 80a0f47543..ab96500230 100644
--- a/les/vflux/server/service.go
+++ b/les/vflux/server/service.go
@@ -22,11 +22,11 @@ import (
"sync"
"time"
- "github.com/ethereum/go-ethereum/les/utils"
- "github.com/ethereum/go-ethereum/les/vflux"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/les/utils"
+ "github.com/scroll-tech/go-ethereum/les/vflux"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/p2p/enode"
+ "github.com/scroll-tech/go-ethereum/rlp"
)
type (
diff --git a/les/vflux/server/status.go b/les/vflux/server/status.go
index 469190777b..312b856ed3 100644
--- a/les/vflux/server/status.go
+++ b/les/vflux/server/status.go
@@ -19,7 +19,7 @@ package server
import (
"reflect"
- "github.com/ethereum/go-ethereum/p2p/nodestate"
+ "github.com/scroll-tech/go-ethereum/p2p/nodestate"
)
type peerWrapper struct{ clientPeer } // the NodeStateMachine type system needs this wrapper
diff --git a/light/lightchain.go b/light/lightchain.go
index c481734ffe..4041d59923 100644
--- a/light/lightchain.go
+++ b/light/lightchain.go
@@ -26,17 +26,17 @@ import (
"sync/atomic"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/consensus"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/state"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/event"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/consensus"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/core/state"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/ethdb"
+ "github.com/scroll-tech/go-ethereum/event"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/rlp"
lru "github.com/hashicorp/golang-lru"
)
diff --git a/light/lightchain_test.go b/light/lightchain_test.go
index 8600e56345..f30696bf73 100644
--- a/light/lightchain_test.go
+++ b/light/lightchain_test.go
@@ -22,13 +22,13 @@ import (
"math/big"
"testing"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/consensus/ethash"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/consensus/ethash"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/ethdb"
+ "github.com/scroll-tech/go-ethereum/params"
)
// So we can deterministically seed different blockchains
diff --git a/light/nodeset.go b/light/nodeset.go
index 3662596785..735c0ceb39 100644
--- a/light/nodeset.go
+++ b/light/nodeset.go
@@ -20,10 +20,10 @@ import (
"errors"
"sync"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/ethdb"
+ "github.com/scroll-tech/go-ethereum/rlp"
)
// NodeSet stores a set of trie nodes. It implements trie.Database and can also
diff --git a/light/odr.go b/light/odr.go
index 9521dd53e8..093133a90a 100644
--- a/light/odr.go
+++ b/light/odr.go
@@ -21,11 +21,11 @@ import (
"errors"
"math/big"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/ethdb"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/ethdb"
)
// NoOdr is the default context passed to an ODR capable function when the ODR
diff --git a/light/odr_test.go b/light/odr_test.go
index fdf657a82e..8145af607d 100644
--- a/light/odr_test.go
+++ b/light/odr_test.go
@@ -24,19 +24,19 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/math"
- "github.com/ethereum/go-ethereum/consensus/ethash"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/state"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/core/vm"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/rlp"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/math"
+ "github.com/scroll-tech/go-ethereum/consensus/ethash"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/core/state"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/core/vm"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/ethdb"
+ "github.com/scroll-tech/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/trie"
)
var (
diff --git a/light/odr_util.go b/light/odr_util.go
index bbbcdbce21..38af817b19 100644
--- a/light/odr_util.go
+++ b/light/odr_util.go
@@ -22,11 +22,11 @@ import (
"errors"
"math/big"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/rlp"
)
// errNonCanonicalHash is returned if the requested chain data doesn't belong
diff --git a/light/postprocess.go b/light/postprocess.go
index ce38d091e8..787660717a 100644
--- a/light/postprocess.go
+++ b/light/postprocess.go
@@ -26,16 +26,16 @@ import (
"time"
mapset "github.com/deckarep/golang-set"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/bitutil"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/rlp"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/bitutil"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/ethdb"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/trie"
)
// IndexerConfig includes a set of configs for chain indexers.
diff --git a/light/trie.go b/light/trie.go
index 4ab6f4ace0..ddd4d4b7c0 100644
--- a/light/trie.go
+++ b/light/trie.go
@@ -21,14 +21,14 @@ import (
"errors"
"fmt"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/state"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/rlp"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/core/state"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/ethdb"
+ "github.com/scroll-tech/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/trie"
)
var (
diff --git a/light/trie_test.go b/light/trie_test.go
index e8294cc2a2..39d86557e3 100644
--- a/light/trie_test.go
+++ b/light/trie_test.go
@@ -24,13 +24,13 @@ import (
"testing"
"github.com/davecgh/go-spew/spew"
- "github.com/ethereum/go-ethereum/consensus/ethash"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/state"
- "github.com/ethereum/go-ethereum/core/vm"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/scroll-tech/go-ethereum/consensus/ethash"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/core/state"
+ "github.com/scroll-tech/go-ethereum/core/vm"
+ "github.com/scroll-tech/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/trie"
)
func TestNodeIterator(t *testing.T) {
diff --git a/light/txpool.go b/light/txpool.go
index a7df4aeec3..aa2ca7a79b 100644
--- a/light/txpool.go
+++ b/light/txpool.go
@@ -23,15 +23,15 @@ import (
"sync"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/state"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/event"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/core/state"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/ethdb"
+ "github.com/scroll-tech/go-ethereum/event"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/params"
)
const (
diff --git a/light/txpool_test.go b/light/txpool_test.go
index cc2651d29a..5bd8281c7a 100644
--- a/light/txpool_test.go
+++ b/light/txpool_test.go
@@ -23,13 +23,13 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/consensus/ethash"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/core/vm"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/consensus/ethash"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/core/vm"
+ "github.com/scroll-tech/go-ethereum/params"
)
type testTxRelay struct {
diff --git a/log/format.go b/log/format.go
index baf8fddac0..9e2476f853 100644
--- a/log/format.go
+++ b/log/format.go
@@ -24,7 +24,7 @@ const (
// locationTrims are trimmed for display to avoid unwieldy log lines.
var locationTrims = []string{
- "github.com/ethereum/go-ethereum/",
+ "github.com/scroll-tech/go-ethereum/",
}
// PrintOrigins sets or unsets log location (file:line) printing for terminal
diff --git a/metrics/cpu_enabled.go b/metrics/cpu_enabled.go
index 533d40b85a..e74125f530 100644
--- a/metrics/cpu_enabled.go
+++ b/metrics/cpu_enabled.go
@@ -20,7 +20,7 @@
package metrics
import (
- "github.com/ethereum/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/log"
"github.com/shirou/gopsutil/cpu"
)
diff --git a/metrics/cputime_unix.go b/metrics/cputime_unix.go
index 3c56a75d00..ba47e299f0 100644
--- a/metrics/cputime_unix.go
+++ b/metrics/cputime_unix.go
@@ -22,7 +22,7 @@ package metrics
import (
syscall "golang.org/x/sys/unix"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/log"
)
// getProcessCPUTime retrieves the process' CPU time since program startup.
diff --git a/metrics/exp/exp.go b/metrics/exp/exp.go
index 3ebe8cc68a..c414f9698f 100644
--- a/metrics/exp/exp.go
+++ b/metrics/exp/exp.go
@@ -8,9 +8,9 @@ import (
"net/http"
"sync"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/metrics"
- "github.com/ethereum/go-ethereum/metrics/prometheus"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/metrics"
+ "github.com/scroll-tech/go-ethereum/metrics/prometheus"
)
type exp struct {
diff --git a/metrics/influxdb/influxdb.go b/metrics/influxdb/influxdb.go
index 52d0091034..66802fdc92 100644
--- a/metrics/influxdb/influxdb.go
+++ b/metrics/influxdb/influxdb.go
@@ -5,8 +5,8 @@ import (
uurl "net/url"
"time"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/metrics"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/metrics"
"github.com/influxdata/influxdb/client"
)
diff --git a/metrics/influxdb/influxdbv2.go b/metrics/influxdb/influxdbv2.go
index 00901f52c9..834ba7e8df 100644
--- a/metrics/influxdb/influxdbv2.go
+++ b/metrics/influxdb/influxdbv2.go
@@ -13,8 +13,8 @@ import (
"fmt"
"time"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/metrics"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/metrics"
influxdb2 "github.com/influxdata/influxdb-client-go/v2"
"github.com/influxdata/influxdb-client-go/v2/api"
)
diff --git a/metrics/librato/librato.go b/metrics/librato/librato.go
index b16493413e..176b3bee58 100644
--- a/metrics/librato/librato.go
+++ b/metrics/librato/librato.go
@@ -7,7 +7,7 @@ import (
"regexp"
"time"
- "github.com/ethereum/go-ethereum/metrics"
+ "github.com/scroll-tech/go-ethereum/metrics"
)
// a regexp for extracting the unit from time.Duration.String
diff --git a/metrics/metrics.go b/metrics/metrics.go
index 747d6471a7..36d806fb3e 100644
--- a/metrics/metrics.go
+++ b/metrics/metrics.go
@@ -11,7 +11,7 @@ import (
"strings"
"time"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/log"
)
// Enabled is checked by the constructor functions for all of the
diff --git a/metrics/prometheus/collector.go b/metrics/prometheus/collector.go
index 3959cbf5e1..78ed2ae283 100644
--- a/metrics/prometheus/collector.go
+++ b/metrics/prometheus/collector.go
@@ -22,7 +22,7 @@ import (
"strconv"
"strings"
- "github.com/ethereum/go-ethereum/metrics"
+ "github.com/scroll-tech/go-ethereum/metrics"
)
var (
diff --git a/metrics/prometheus/collector_test.go b/metrics/prometheus/collector_test.go
index 43f2f804d3..9e27311418 100644
--- a/metrics/prometheus/collector_test.go
+++ b/metrics/prometheus/collector_test.go
@@ -5,7 +5,7 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/metrics"
+ "github.com/scroll-tech/go-ethereum/metrics"
)
func TestMain(m *testing.M) {
diff --git a/metrics/prometheus/prometheus.go b/metrics/prometheus/prometheus.go
index 9ad5ec7e99..f4935a80ab 100644
--- a/metrics/prometheus/prometheus.go
+++ b/metrics/prometheus/prometheus.go
@@ -22,8 +22,8 @@ import (
"net/http"
"sort"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/metrics"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/metrics"
)
// Handler returns an HTTP handler which dump metrics in Prometheus format.
diff --git a/miner/miner.go b/miner/miner.go
index 1c33b3bd28..5edc72e1d3 100644
--- a/miner/miner.go
+++ b/miner/miner.go
@@ -23,16 +23,16 @@ import (
"sync"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/consensus"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/state"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/eth/downloader"
- "github.com/ethereum/go-ethereum/event"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/hexutil"
+ "github.com/scroll-tech/go-ethereum/consensus"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/core/state"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/eth/downloader"
+ "github.com/scroll-tech/go-ethereum/event"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/params"
)
// Backend wraps all methods required for mining.
diff --git a/miner/miner_test.go b/miner/miner_test.go
index 4b5bff1df8..56a3ec079f 100644
--- a/miner/miner_test.go
+++ b/miner/miner_test.go
@@ -21,17 +21,17 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/consensus/clique"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/state"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/core/vm"
- "github.com/ethereum/go-ethereum/eth/downloader"
- "github.com/ethereum/go-ethereum/ethdb/memorydb"
- "github.com/ethereum/go-ethereum/event"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/consensus/clique"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/core/state"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/core/vm"
+ "github.com/scroll-tech/go-ethereum/eth/downloader"
+ "github.com/scroll-tech/go-ethereum/ethdb/memorydb"
+ "github.com/scroll-tech/go-ethereum/event"
+ "github.com/scroll-tech/go-ethereum/trie"
)
type mockBackend struct {
diff --git a/miner/stress/1559/main.go b/miner/stress/1559/main.go
index 7c6134b3f9..b3772102d1 100644
--- a/miner/stress/1559/main.go
+++ b/miner/stress/1559/main.go
@@ -26,21 +26,21 @@ import (
"os/signal"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/fdlimit"
- "github.com/ethereum/go-ethereum/consensus/ethash"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/eth"
- "github.com/ethereum/go-ethereum/eth/downloader"
- "github.com/ethereum/go-ethereum/eth/ethconfig"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/miner"
- "github.com/ethereum/go-ethereum/node"
- "github.com/ethereum/go-ethereum/p2p"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/fdlimit"
+ "github.com/scroll-tech/go-ethereum/consensus/ethash"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/eth"
+ "github.com/scroll-tech/go-ethereum/eth/downloader"
+ "github.com/scroll-tech/go-ethereum/eth/ethconfig"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/miner"
+ "github.com/scroll-tech/go-ethereum/node"
+ "github.com/scroll-tech/go-ethereum/p2p"
+ "github.com/scroll-tech/go-ethereum/p2p/enode"
+ "github.com/scroll-tech/go-ethereum/params"
)
var (
diff --git a/miner/stress/clique/main.go b/miner/stress/clique/main.go
index f30da55dff..fd5b969628 100644
--- a/miner/stress/clique/main.go
+++ b/miner/stress/clique/main.go
@@ -27,21 +27,21 @@ import (
"os/signal"
"time"
- "github.com/ethereum/go-ethereum/accounts/keystore"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/fdlimit"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/eth"
- "github.com/ethereum/go-ethereum/eth/downloader"
- "github.com/ethereum/go-ethereum/eth/ethconfig"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/miner"
- "github.com/ethereum/go-ethereum/node"
- "github.com/ethereum/go-ethereum/p2p"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/accounts/keystore"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/fdlimit"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/eth"
+ "github.com/scroll-tech/go-ethereum/eth/downloader"
+ "github.com/scroll-tech/go-ethereum/eth/ethconfig"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/miner"
+ "github.com/scroll-tech/go-ethereum/node"
+ "github.com/scroll-tech/go-ethereum/p2p"
+ "github.com/scroll-tech/go-ethereum/p2p/enode"
+ "github.com/scroll-tech/go-ethereum/params"
)
func main() {
diff --git a/miner/stress/ethash/main.go b/miner/stress/ethash/main.go
index bd9111ee35..b8a9d4c062 100644
--- a/miner/stress/ethash/main.go
+++ b/miner/stress/ethash/main.go
@@ -26,21 +26,21 @@ import (
"os/signal"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/fdlimit"
- "github.com/ethereum/go-ethereum/consensus/ethash"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/eth"
- "github.com/ethereum/go-ethereum/eth/downloader"
- "github.com/ethereum/go-ethereum/eth/ethconfig"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/miner"
- "github.com/ethereum/go-ethereum/node"
- "github.com/ethereum/go-ethereum/p2p"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/fdlimit"
+ "github.com/scroll-tech/go-ethereum/consensus/ethash"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/eth"
+ "github.com/scroll-tech/go-ethereum/eth/downloader"
+ "github.com/scroll-tech/go-ethereum/eth/ethconfig"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/miner"
+ "github.com/scroll-tech/go-ethereum/node"
+ "github.com/scroll-tech/go-ethereum/p2p"
+ "github.com/scroll-tech/go-ethereum/p2p/enode"
+ "github.com/scroll-tech/go-ethereum/params"
)
func main() {
diff --git a/miner/unconfirmed.go b/miner/unconfirmed.go
index 0489f1ea4a..e1d9764fee 100644
--- a/miner/unconfirmed.go
+++ b/miner/unconfirmed.go
@@ -20,9 +20,9 @@ import (
"container/ring"
"sync"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/log"
)
// chainRetriever is used by the unconfirmed block set to verify whether a previously
diff --git a/miner/unconfirmed_test.go b/miner/unconfirmed_test.go
index dc83cb9265..1bdfe0cae4 100644
--- a/miner/unconfirmed_test.go
+++ b/miner/unconfirmed_test.go
@@ -19,7 +19,7 @@ package miner
import (
"testing"
- "github.com/ethereum/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/core/types"
)
// noopChainRetriever is an implementation of headerRetriever that always
diff --git a/miner/worker.go b/miner/worker.go
index bd4c88f418..611000e226 100644
--- a/miner/worker.go
+++ b/miner/worker.go
@@ -25,16 +25,16 @@ import (
"time"
mapset "github.com/deckarep/golang-set"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/consensus"
- "github.com/ethereum/go-ethereum/consensus/misc"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/state"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/event"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/consensus"
+ "github.com/scroll-tech/go-ethereum/consensus/misc"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/core/state"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/event"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/trie"
)
const (
diff --git a/miner/worker_test.go b/miner/worker_test.go
index 5b35c66dce..010eb6cd16 100644
--- a/miner/worker_test.go
+++ b/miner/worker_test.go
@@ -23,19 +23,19 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/accounts"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/consensus"
- "github.com/ethereum/go-ethereum/consensus/clique"
- "github.com/ethereum/go-ethereum/consensus/ethash"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/core/vm"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/event"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/accounts"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/consensus"
+ "github.com/scroll-tech/go-ethereum/consensus/clique"
+ "github.com/scroll-tech/go-ethereum/consensus/ethash"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/core/vm"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/ethdb"
+ "github.com/scroll-tech/go-ethereum/event"
+ "github.com/scroll-tech/go-ethereum/params"
)
const (
diff --git a/mobile/accounts.go b/mobile/accounts.go
index 4d979bffff..8de76bd0fa 100644
--- a/mobile/accounts.go
+++ b/mobile/accounts.go
@@ -23,10 +23,10 @@ import (
"errors"
"time"
- "github.com/ethereum/go-ethereum/accounts"
- "github.com/ethereum/go-ethereum/accounts/keystore"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/accounts"
+ "github.com/scroll-tech/go-ethereum/accounts/keystore"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/crypto"
)
const (
diff --git a/mobile/android_test.go b/mobile/android_test.go
index c85314c157..afe2c5e011 100644
--- a/mobile/android_test.go
+++ b/mobile/android_test.go
@@ -207,7 +207,7 @@ func TestAndroid(t *testing.T) {
}
}
// Generate the mobile bindings for Geth and add the tester class
- gobind := exec.Command("gomobile", "bind", "-javapkg", "org.ethereum", "github.com/ethereum/go-ethereum/mobile")
+ gobind := exec.Command("gomobile", "bind", "-javapkg", "org.ethereum", "github.com/scroll-tech/go-ethereum/mobile")
if output, err := gobind.CombinedOutput(); err != nil {
t.Logf("%s", output)
t.Fatalf("failed to run gomobile bind: %v", err)
diff --git a/mobile/big.go b/mobile/big.go
index c08bcf93f2..b8895c95cb 100644
--- a/mobile/big.go
+++ b/mobile/big.go
@@ -22,7 +22,7 @@ import (
"errors"
"math/big"
- "github.com/ethereum/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common"
)
// A BigInt represents a signed multi-precision integer.
diff --git a/mobile/bind.go b/mobile/bind.go
index e32d864aa5..0937e0f97f 100644
--- a/mobile/bind.go
+++ b/mobile/bind.go
@@ -22,11 +22,11 @@ import (
"math/big"
"strings"
- "github.com/ethereum/go-ethereum/accounts/abi"
- "github.com/ethereum/go-ethereum/accounts/abi/bind"
- "github.com/ethereum/go-ethereum/accounts/keystore"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/accounts/abi"
+ "github.com/scroll-tech/go-ethereum/accounts/abi/bind"
+ "github.com/scroll-tech/go-ethereum/accounts/keystore"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core/types"
)
// Signer is an interface defining the callback when a contract requires a
diff --git a/mobile/common.go b/mobile/common.go
index 124712b4b1..ff218c24d4 100644
--- a/mobile/common.go
+++ b/mobile/common.go
@@ -24,8 +24,8 @@ import (
"fmt"
"strings"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/hexutil"
)
// Hash represents the 32 byte Keccak256 hash of arbitrary data.
diff --git a/mobile/discover.go b/mobile/discover.go
index 2c699f08be..f9b31ad9b1 100644
--- a/mobile/discover.go
+++ b/mobile/discover.go
@@ -22,7 +22,7 @@ package geth
import (
"errors"
- "github.com/ethereum/go-ethereum/p2p/enode"
+ "github.com/scroll-tech/go-ethereum/p2p/enode"
)
// Enode represents a host on the network.
diff --git a/mobile/ethclient.go b/mobile/ethclient.go
index 662125c4ad..b3a283fc73 100644
--- a/mobile/ethclient.go
+++ b/mobile/ethclient.go
@@ -21,8 +21,8 @@ package geth
import (
"math/big"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/ethclient"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/ethclient"
)
// EthereumClient provides access to the Ethereum APIs.
diff --git a/mobile/ethereum.go b/mobile/ethereum.go
index 97c46ddca7..f5c1543370 100644
--- a/mobile/ethereum.go
+++ b/mobile/ethereum.go
@@ -21,8 +21,8 @@ package geth
import (
"errors"
- "github.com/ethereum/go-ethereum"
- "github.com/ethereum/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum"
+ "github.com/scroll-tech/go-ethereum/common"
)
// Subscription represents an event subscription where events are
diff --git a/mobile/geth.go b/mobile/geth.go
index bad9e0589f..6b1dfebb1b 100644
--- a/mobile/geth.go
+++ b/mobile/geth.go
@@ -24,17 +24,17 @@ import (
"fmt"
"path/filepath"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/eth/downloader"
- "github.com/ethereum/go-ethereum/eth/ethconfig"
- "github.com/ethereum/go-ethereum/ethclient"
- "github.com/ethereum/go-ethereum/ethstats"
- "github.com/ethereum/go-ethereum/internal/debug"
- "github.com/ethereum/go-ethereum/les"
- "github.com/ethereum/go-ethereum/node"
- "github.com/ethereum/go-ethereum/p2p"
- "github.com/ethereum/go-ethereum/p2p/nat"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/eth/downloader"
+ "github.com/scroll-tech/go-ethereum/eth/ethconfig"
+ "github.com/scroll-tech/go-ethereum/ethclient"
+ "github.com/scroll-tech/go-ethereum/ethstats"
+ "github.com/scroll-tech/go-ethereum/internal/debug"
+ "github.com/scroll-tech/go-ethereum/les"
+ "github.com/scroll-tech/go-ethereum/node"
+ "github.com/scroll-tech/go-ethereum/p2p"
+ "github.com/scroll-tech/go-ethereum/p2p/nat"
+ "github.com/scroll-tech/go-ethereum/params"
)
// NodeConfig represents the collection of configuration values to fine tune the Geth
diff --git a/mobile/init.go b/mobile/init.go
index 2025d85edc..5e92738e3f 100644
--- a/mobile/init.go
+++ b/mobile/init.go
@@ -22,7 +22,7 @@ import (
"os"
"runtime"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/log"
)
func init() {
diff --git a/mobile/interface.go b/mobile/interface.go
index d5200d5b1b..bd0e73beb6 100644
--- a/mobile/interface.go
+++ b/mobile/interface.go
@@ -22,7 +22,7 @@ import (
"errors"
"math/big"
- "github.com/ethereum/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common"
)
// Interface represents a wrapped version of Go's interface{}, with the capacity
diff --git a/mobile/interface_test.go b/mobile/interface_test.go
index 4bd1af47aa..83fccd6372 100644
--- a/mobile/interface_test.go
+++ b/mobile/interface_test.go
@@ -22,7 +22,7 @@ import (
"reflect"
"testing"
- "github.com/ethereum/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common"
)
func TestInterfaceGetSet(t *testing.T) {
diff --git a/mobile/logger.go b/mobile/logger.go
index 7078c4fd2c..d9b40a77e9 100644
--- a/mobile/logger.go
+++ b/mobile/logger.go
@@ -19,7 +19,7 @@ package geth
import (
"os"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/log"
)
// SetVerbosity sets the global verbosity level (between 0 and 6 - see logger/verbosity.go).
diff --git a/mobile/p2p.go b/mobile/p2p.go
index a80d9fff2e..14eaaa63bb 100644
--- a/mobile/p2p.go
+++ b/mobile/p2p.go
@@ -21,7 +21,7 @@ package geth
import (
"errors"
- "github.com/ethereum/go-ethereum/p2p"
+ "github.com/scroll-tech/go-ethereum/p2p"
)
// NodeInfo represents pi short summary of the information known about the host.
diff --git a/mobile/params.go b/mobile/params.go
index 2f4240b2e4..7b25ebbf72 100644
--- a/mobile/params.go
+++ b/mobile/params.go
@@ -21,9 +21,9 @@ package geth
import (
"encoding/json"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/p2p/enode"
+ "github.com/scroll-tech/go-ethereum/params"
)
// MainnetGenesis returns the JSON spec to use for the main Ethereum network. It
diff --git a/mobile/primitives.go b/mobile/primitives.go
index 7e1ab26ef0..62a21ff8ca 100644
--- a/mobile/primitives.go
+++ b/mobile/primitives.go
@@ -22,7 +22,7 @@ import (
"errors"
"fmt"
- "github.com/ethereum/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common"
)
// Strings represents s slice of strs.
diff --git a/mobile/types.go b/mobile/types.go
index d1427ac11d..a7fa8c0ebf 100644
--- a/mobile/types.go
+++ b/mobile/types.go
@@ -23,9 +23,9 @@ import (
"errors"
"fmt"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/rlp"
)
type jsonEncoder interface {
diff --git a/mobile/vm.go b/mobile/vm.go
index 72093e3d5b..6a4c7c2da2 100644
--- a/mobile/vm.go
+++ b/mobile/vm.go
@@ -21,7 +21,7 @@ package geth
import (
"errors"
- "github.com/ethereum/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/core/types"
)
// Log represents a contract log event. These events are generated by the LOG
diff --git a/node/api.go b/node/api.go
index a685ecd6b3..241de21b63 100644
--- a/node/api.go
+++ b/node/api.go
@@ -21,13 +21,13 @@ import (
"fmt"
"strings"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/internal/debug"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/p2p"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/rpc"
+ "github.com/scroll-tech/go-ethereum/common/hexutil"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/internal/debug"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/p2p"
+ "github.com/scroll-tech/go-ethereum/p2p/enode"
+ "github.com/scroll-tech/go-ethereum/rpc"
)
// apis returns the collection of built-in RPC APIs.
diff --git a/node/api_test.go b/node/api_test.go
index 9549adf9c2..9e14aa4114 100644
--- a/node/api_test.go
+++ b/node/api_test.go
@@ -25,7 +25,7 @@ import (
"strings"
"testing"
- "github.com/ethereum/go-ethereum/rpc"
+ "github.com/scroll-tech/go-ethereum/rpc"
"github.com/stretchr/testify/assert"
)
diff --git a/node/config.go b/node/config.go
index 26f00cd678..fad1ddcaf3 100644
--- a/node/config.go
+++ b/node/config.go
@@ -26,12 +26,12 @@ import (
"strings"
"sync"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/p2p"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/rpc"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/p2p"
+ "github.com/scroll-tech/go-ethereum/p2p/enode"
+ "github.com/scroll-tech/go-ethereum/rpc"
)
const (
diff --git a/node/config_test.go b/node/config_test.go
index 00c24a2391..9e1d988e3d 100644
--- a/node/config_test.go
+++ b/node/config_test.go
@@ -24,8 +24,8 @@ import (
"runtime"
"testing"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/p2p"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/p2p"
)
// Tests that datadirs can be successfully created, be them manually configured
diff --git a/node/defaults.go b/node/defaults.go
index c685dde5d1..b97b0f1cc2 100644
--- a/node/defaults.go
+++ b/node/defaults.go
@@ -22,9 +22,9 @@ import (
"path/filepath"
"runtime"
- "github.com/ethereum/go-ethereum/p2p"
- "github.com/ethereum/go-ethereum/p2p/nat"
- "github.com/ethereum/go-ethereum/rpc"
+ "github.com/scroll-tech/go-ethereum/p2p"
+ "github.com/scroll-tech/go-ethereum/p2p/nat"
+ "github.com/scroll-tech/go-ethereum/rpc"
)
const (
diff --git a/node/endpoints.go b/node/endpoints.go
index 1f85a52131..1d461b9c6e 100644
--- a/node/endpoints.go
+++ b/node/endpoints.go
@@ -21,8 +21,8 @@ import (
"net/http"
"time"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/rpc"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/rpc"
)
// StartHTTPEndpoint starts the HTTP RPC endpoint.
diff --git a/node/node.go b/node/node.go
index aa271e123b..3cad98fd53 100644
--- a/node/node.go
+++ b/node/node.go
@@ -26,13 +26,13 @@ import (
"strings"
"sync"
- "github.com/ethereum/go-ethereum/accounts"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/event"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/p2p"
- "github.com/ethereum/go-ethereum/rpc"
+ "github.com/scroll-tech/go-ethereum/accounts"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/ethdb"
+ "github.com/scroll-tech/go-ethereum/event"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/p2p"
+ "github.com/scroll-tech/go-ethereum/rpc"
"github.com/prometheus/tsdb/fileutil"
)
diff --git a/node/node_example_test.go b/node/node_example_test.go
index d54fe03067..ccf7b7eb60 100644
--- a/node/node_example_test.go
+++ b/node/node_example_test.go
@@ -20,7 +20,7 @@ import (
"fmt"
"log"
- "github.com/ethereum/go-ethereum/node"
+ "github.com/scroll-tech/go-ethereum/node"
)
// SampleLifecycle is a trivial network service that can be attached to a node for
diff --git a/node/node_test.go b/node/node_test.go
index e104630600..99dad2dd98 100644
--- a/node/node_test.go
+++ b/node/node_test.go
@@ -28,10 +28,10 @@ import (
"strings"
"testing"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/p2p"
- "github.com/ethereum/go-ethereum/rpc"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/ethdb"
+ "github.com/scroll-tech/go-ethereum/p2p"
+ "github.com/scroll-tech/go-ethereum/rpc"
"github.com/stretchr/testify/assert"
)
diff --git a/node/rpcstack.go b/node/rpcstack.go
index 2c55a070b2..3a1bfe549e 100644
--- a/node/rpcstack.go
+++ b/node/rpcstack.go
@@ -29,8 +29,8 @@ import (
"sync"
"sync/atomic"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/rpc"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/rpc"
"github.com/rs/cors"
)
diff --git a/node/rpcstack_test.go b/node/rpcstack_test.go
index f92f0ba396..8134b9bc17 100644
--- a/node/rpcstack_test.go
+++ b/node/rpcstack_test.go
@@ -25,9 +25,9 @@ import (
"strings"
"testing"
- "github.com/ethereum/go-ethereum/internal/testlog"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/rpc"
+ "github.com/scroll-tech/go-ethereum/internal/testlog"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/rpc"
"github.com/gorilla/websocket"
"github.com/stretchr/testify/assert"
)
diff --git a/node/utils_test.go b/node/utils_test.go
index b7474bb706..faafa9a550 100644
--- a/node/utils_test.go
+++ b/node/utils_test.go
@@ -20,8 +20,8 @@
package node
import (
- "github.com/ethereum/go-ethereum/p2p"
- "github.com/ethereum/go-ethereum/rpc"
+ "github.com/scroll-tech/go-ethereum/p2p"
+ "github.com/scroll-tech/go-ethereum/rpc"
)
// NoopLifecycle is a trivial implementation of the Service interface.
diff --git a/oss-fuzz.sh b/oss-fuzz.sh
index 9a24f6b175..3a103c6177 100644
--- a/oss-fuzz.sh
+++ b/oss-fuzz.sh
@@ -27,7 +27,7 @@
# $LIB_FUZZING_ENGINE C++ compiler argument to link fuzz target against the prebuilt engine library (e.g. libFuzzer).
# This sets the -coverpgk for the coverage report when the corpus is executed through go test
-coverpkg="github.com/ethereum/go-ethereum/..."
+coverpkg="github.com/scroll-tech/go-ethereum/..."
function coverbuild {
path=$1
@@ -65,7 +65,7 @@ function compile_fuzzer {
# $2: The name of the fuzzing function
# $3: The name to give to the final fuzzing-binary
- path=$GOPATH/src/github.com/ethereum/go-ethereum/$1
+ path=$GOPATH/src/github.com/scroll-tech/go-ethereum/$1
func=$2
fuzzer=$3
diff --git a/p2p/dial.go b/p2p/dial.go
index 0d70e6f4a3..1005e96877 100644
--- a/p2p/dial.go
+++ b/p2p/dial.go
@@ -27,10 +27,10 @@ import (
"sync"
"time"
- "github.com/ethereum/go-ethereum/common/mclock"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/netutil"
+ "github.com/scroll-tech/go-ethereum/common/mclock"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/p2p/enode"
+ "github.com/scroll-tech/go-ethereum/p2p/netutil"
)
const (
diff --git a/p2p/dial_test.go b/p2p/dial_test.go
index cd8dedff1c..649fb96566 100644
--- a/p2p/dial_test.go
+++ b/p2p/dial_test.go
@@ -27,11 +27,11 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/common/mclock"
- "github.com/ethereum/go-ethereum/internal/testlog"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/netutil"
+ "github.com/scroll-tech/go-ethereum/common/mclock"
+ "github.com/scroll-tech/go-ethereum/internal/testlog"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/p2p/enode"
+ "github.com/scroll-tech/go-ethereum/p2p/netutil"
)
// This test checks that dynamic dials are launched from discovery results.
diff --git a/p2p/discover/common.go b/p2p/discover/common.go
index e389821fda..458a553d40 100644
--- a/p2p/discover/common.go
+++ b/p2p/discover/common.go
@@ -20,11 +20,11 @@ import (
"crypto/ecdsa"
"net"
- "github.com/ethereum/go-ethereum/common/mclock"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/enr"
- "github.com/ethereum/go-ethereum/p2p/netutil"
+ "github.com/scroll-tech/go-ethereum/common/mclock"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/p2p/enode"
+ "github.com/scroll-tech/go-ethereum/p2p/enr"
+ "github.com/scroll-tech/go-ethereum/p2p/netutil"
)
// UDPConn is a network connection on which discovery can operate.
diff --git a/p2p/discover/lookup.go b/p2p/discover/lookup.go
index 9ab4a71ce7..d4fa791a62 100644
--- a/p2p/discover/lookup.go
+++ b/p2p/discover/lookup.go
@@ -20,7 +20,7 @@ import (
"context"
"time"
- "github.com/ethereum/go-ethereum/p2p/enode"
+ "github.com/scroll-tech/go-ethereum/p2p/enode"
)
// lookup performs a network search for nodes close to the given target. It approaches the
diff --git a/p2p/discover/node.go b/p2p/discover/node.go
index 9ffe101ccf..e4d586dd77 100644
--- a/p2p/discover/node.go
+++ b/p2p/discover/node.go
@@ -24,9 +24,9 @@ import (
"net"
"time"
- "github.com/ethereum/go-ethereum/common/math"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/p2p/enode"
+ "github.com/scroll-tech/go-ethereum/common/math"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/p2p/enode"
)
// node represents a host on the network.
diff --git a/p2p/discover/ntp.go b/p2p/discover/ntp.go
index 1bb52399fb..52276b2ca5 100644
--- a/p2p/discover/ntp.go
+++ b/p2p/discover/ntp.go
@@ -25,7 +25,7 @@ import (
"sort"
"time"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/log"
)
const (
diff --git a/p2p/discover/table.go b/p2p/discover/table.go
index d08f8a6c69..311cd32b09 100644
--- a/p2p/discover/table.go
+++ b/p2p/discover/table.go
@@ -32,10 +32,10 @@ import (
"sync"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/netutil"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/p2p/enode"
+ "github.com/scroll-tech/go-ethereum/p2p/netutil"
)
const (
diff --git a/p2p/discover/table_test.go b/p2p/discover/table_test.go
index 5f40c967fd..18aba654b6 100644
--- a/p2p/discover/table_test.go
+++ b/p2p/discover/table_test.go
@@ -27,10 +27,10 @@ import (
"testing/quick"
"time"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/enr"
- "github.com/ethereum/go-ethereum/p2p/netutil"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/p2p/enode"
+ "github.com/scroll-tech/go-ethereum/p2p/enr"
+ "github.com/scroll-tech/go-ethereum/p2p/netutil"
)
func TestTable_pingReplace(t *testing.T) {
diff --git a/p2p/discover/table_util_test.go b/p2p/discover/table_util_test.go
index 47a2e7ac3c..9cf10a2d34 100644
--- a/p2p/discover/table_util_test.go
+++ b/p2p/discover/table_util_test.go
@@ -27,10 +27,10 @@ import (
"sort"
"sync"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/enr"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/p2p/enode"
+ "github.com/scroll-tech/go-ethereum/p2p/enr"
)
var nullNode *enode.Node
diff --git a/p2p/discover/v4_lookup_test.go b/p2p/discover/v4_lookup_test.go
index a00de9ca18..d86f9f24aa 100644
--- a/p2p/discover/v4_lookup_test.go
+++ b/p2p/discover/v4_lookup_test.go
@@ -23,10 +23,10 @@ import (
"sort"
"testing"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/p2p/discover/v4wire"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/enr"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/p2p/discover/v4wire"
+ "github.com/scroll-tech/go-ethereum/p2p/enode"
+ "github.com/scroll-tech/go-ethereum/p2p/enr"
)
func TestUDPv4_Lookup(t *testing.T) {
diff --git a/p2p/discover/v4_udp.go b/p2p/discover/v4_udp.go
index 334716aebe..f4a302d570 100644
--- a/p2p/discover/v4_udp.go
+++ b/p2p/discover/v4_udp.go
@@ -29,11 +29,11 @@ import (
"sync"
"time"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/p2p/discover/v4wire"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/netutil"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/p2p/discover/v4wire"
+ "github.com/scroll-tech/go-ethereum/p2p/enode"
+ "github.com/scroll-tech/go-ethereum/p2p/netutil"
)
// Errors
diff --git a/p2p/discover/v4_udp_test.go b/p2p/discover/v4_udp_test.go
index e36912f010..5b83dd4743 100644
--- a/p2p/discover/v4_udp_test.go
+++ b/p2p/discover/v4_udp_test.go
@@ -31,11 +31,11 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/internal/testlog"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/p2p/discover/v4wire"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/enr"
+ "github.com/scroll-tech/go-ethereum/internal/testlog"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/p2p/discover/v4wire"
+ "github.com/scroll-tech/go-ethereum/p2p/enode"
+ "github.com/scroll-tech/go-ethereum/p2p/enr"
)
// shared test variables
diff --git a/p2p/discover/v4wire/v4wire.go b/p2p/discover/v4wire/v4wire.go
index bc537a4cf7..d088937d8c 100644
--- a/p2p/discover/v4wire/v4wire.go
+++ b/p2p/discover/v4wire/v4wire.go
@@ -27,11 +27,11 @@ import (
"net"
"time"
- "github.com/ethereum/go-ethereum/common/math"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/enr"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/common/math"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/p2p/enode"
+ "github.com/scroll-tech/go-ethereum/p2p/enr"
+ "github.com/scroll-tech/go-ethereum/rlp"
)
// RPC packet types
diff --git a/p2p/discover/v4wire/v4wire_test.go b/p2p/discover/v4wire/v4wire_test.go
index 3b4161998d..097b934610 100644
--- a/p2p/discover/v4wire/v4wire_test.go
+++ b/p2p/discover/v4wire/v4wire_test.go
@@ -23,8 +23,8 @@ import (
"testing"
"github.com/davecgh/go-spew/spew"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/rlp"
)
// EIP-8 test vectors.
diff --git a/p2p/discover/v5_udp.go b/p2p/discover/v5_udp.go
index 71a39ea5a5..5363b6c19a 100644
--- a/p2p/discover/v5_udp.go
+++ b/p2p/discover/v5_udp.go
@@ -29,12 +29,12 @@ import (
"sync"
"time"
- "github.com/ethereum/go-ethereum/common/mclock"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/p2p/discover/v5wire"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/enr"
- "github.com/ethereum/go-ethereum/p2p/netutil"
+ "github.com/scroll-tech/go-ethereum/common/mclock"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/p2p/discover/v5wire"
+ "github.com/scroll-tech/go-ethereum/p2p/enode"
+ "github.com/scroll-tech/go-ethereum/p2p/enr"
+ "github.com/scroll-tech/go-ethereum/p2p/netutil"
)
const (
diff --git a/p2p/discover/v5_udp_test.go b/p2p/discover/v5_udp_test.go
index f061f5ab41..ef04f8ad2f 100644
--- a/p2p/discover/v5_udp_test.go
+++ b/p2p/discover/v5_udp_test.go
@@ -28,12 +28,12 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/internal/testlog"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/p2p/discover/v5wire"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/enr"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/internal/testlog"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/p2p/discover/v5wire"
+ "github.com/scroll-tech/go-ethereum/p2p/enode"
+ "github.com/scroll-tech/go-ethereum/p2p/enr"
+ "github.com/scroll-tech/go-ethereum/rlp"
)
// Real sockets, real crypto: this test checks end-to-end connectivity for UDPv5.
diff --git a/p2p/discover/v5wire/crypto.go b/p2p/discover/v5wire/crypto.go
index fc0a0edef5..704875fd70 100644
--- a/p2p/discover/v5wire/crypto.go
+++ b/p2p/discover/v5wire/crypto.go
@@ -25,9 +25,9 @@ import (
"fmt"
"hash"
- "github.com/ethereum/go-ethereum/common/math"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/p2p/enode"
+ "github.com/scroll-tech/go-ethereum/common/math"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/p2p/enode"
"golang.org/x/crypto/hkdf"
)
diff --git a/p2p/discover/v5wire/crypto_test.go b/p2p/discover/v5wire/crypto_test.go
index 72169b4314..a28941f254 100644
--- a/p2p/discover/v5wire/crypto_test.go
+++ b/p2p/discover/v5wire/crypto_test.go
@@ -25,9 +25,9 @@ import (
"strings"
"testing"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/p2p/enode"
+ "github.com/scroll-tech/go-ethereum/common/hexutil"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/p2p/enode"
)
func TestVector_ECDH(t *testing.T) {
diff --git a/p2p/discover/v5wire/encoding.go b/p2p/discover/v5wire/encoding.go
index f502339e1e..e68dd45f90 100644
--- a/p2p/discover/v5wire/encoding.go
+++ b/p2p/discover/v5wire/encoding.go
@@ -28,10 +28,10 @@ import (
"fmt"
"hash"
- "github.com/ethereum/go-ethereum/common/mclock"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/enr"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/common/mclock"
+ "github.com/scroll-tech/go-ethereum/p2p/enode"
+ "github.com/scroll-tech/go-ethereum/p2p/enr"
+ "github.com/scroll-tech/go-ethereum/rlp"
)
// TODO concurrent WHOAREYOU tie-breaker
diff --git a/p2p/discover/v5wire/encoding_test.go b/p2p/discover/v5wire/encoding_test.go
index 355a8f6913..790a967596 100644
--- a/p2p/discover/v5wire/encoding_test.go
+++ b/p2p/discover/v5wire/encoding_test.go
@@ -31,10 +31,10 @@ import (
"testing"
"github.com/davecgh/go-spew/spew"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/common/mclock"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/p2p/enode"
+ "github.com/scroll-tech/go-ethereum/common/hexutil"
+ "github.com/scroll-tech/go-ethereum/common/mclock"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/p2p/enode"
)
// To regenerate discv5 test vectors, run
diff --git a/p2p/discover/v5wire/msg.go b/p2p/discover/v5wire/msg.go
index 7c3686111b..df249afd11 100644
--- a/p2p/discover/v5wire/msg.go
+++ b/p2p/discover/v5wire/msg.go
@@ -20,10 +20,10 @@ import (
"fmt"
"net"
- "github.com/ethereum/go-ethereum/common/mclock"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/enr"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/common/mclock"
+ "github.com/scroll-tech/go-ethereum/p2p/enode"
+ "github.com/scroll-tech/go-ethereum/p2p/enr"
+ "github.com/scroll-tech/go-ethereum/rlp"
)
// Packet is implemented by all message types.
diff --git a/p2p/discover/v5wire/session.go b/p2p/discover/v5wire/session.go
index d52b5c1181..37d666adde 100644
--- a/p2p/discover/v5wire/session.go
+++ b/p2p/discover/v5wire/session.go
@@ -22,9 +22,9 @@ import (
"encoding/binary"
"time"
- "github.com/ethereum/go-ethereum/common/mclock"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/p2p/enode"
+ "github.com/scroll-tech/go-ethereum/common/mclock"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/p2p/enode"
"github.com/hashicorp/golang-lru/simplelru"
)
diff --git a/p2p/dnsdisc/client.go b/p2p/dnsdisc/client.go
index 096df06a54..a95a6f7385 100644
--- a/p2p/dnsdisc/client.go
+++ b/p2p/dnsdisc/client.go
@@ -26,11 +26,11 @@ import (
"sync"
"time"
- "github.com/ethereum/go-ethereum/common/mclock"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/enr"
+ "github.com/scroll-tech/go-ethereum/common/mclock"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/p2p/enode"
+ "github.com/scroll-tech/go-ethereum/p2p/enr"
lru "github.com/hashicorp/golang-lru"
"golang.org/x/sync/singleflight"
"golang.org/x/time/rate"
diff --git a/p2p/dnsdisc/client_test.go b/p2p/dnsdisc/client_test.go
index 9320dd667a..d70827ef70 100644
--- a/p2p/dnsdisc/client_test.go
+++ b/p2p/dnsdisc/client_test.go
@@ -26,12 +26,12 @@ import (
"time"
"github.com/davecgh/go-spew/spew"
- "github.com/ethereum/go-ethereum/common/mclock"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/internal/testlog"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/enr"
+ "github.com/scroll-tech/go-ethereum/common/mclock"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/internal/testlog"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/p2p/enode"
+ "github.com/scroll-tech/go-ethereum/p2p/enr"
)
const (
diff --git a/p2p/dnsdisc/sync.go b/p2p/dnsdisc/sync.go
index 073547c90d..1caba1f877 100644
--- a/p2p/dnsdisc/sync.go
+++ b/p2p/dnsdisc/sync.go
@@ -21,8 +21,8 @@ import (
"math/rand"
"time"
- "github.com/ethereum/go-ethereum/common/mclock"
- "github.com/ethereum/go-ethereum/p2p/enode"
+ "github.com/scroll-tech/go-ethereum/common/mclock"
+ "github.com/scroll-tech/go-ethereum/p2p/enode"
)
// This is the number of consecutive leaf requests that may fail before
diff --git a/p2p/dnsdisc/tree.go b/p2p/dnsdisc/tree.go
index 410ec3b854..be86111afa 100644
--- a/p2p/dnsdisc/tree.go
+++ b/p2p/dnsdisc/tree.go
@@ -26,10 +26,10 @@ import (
"sort"
"strings"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/enr"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/p2p/enode"
+ "github.com/scroll-tech/go-ethereum/p2p/enr"
+ "github.com/scroll-tech/go-ethereum/rlp"
"golang.org/x/crypto/sha3"
)
diff --git a/p2p/dnsdisc/tree_test.go b/p2p/dnsdisc/tree_test.go
index 4048c35d63..2849435824 100644
--- a/p2p/dnsdisc/tree_test.go
+++ b/p2p/dnsdisc/tree_test.go
@@ -21,8 +21,8 @@ import (
"testing"
"github.com/davecgh/go-spew/spew"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/p2p/enode"
+ "github.com/scroll-tech/go-ethereum/common/hexutil"
+ "github.com/scroll-tech/go-ethereum/p2p/enode"
)
func TestParseRoot(t *testing.T) {
diff --git a/p2p/enode/idscheme.go b/p2p/enode/idscheme.go
index c1834f0699..974b7094be 100644
--- a/p2p/enode/idscheme.go
+++ b/p2p/enode/idscheme.go
@@ -21,10 +21,10 @@ import (
"fmt"
"io"
- "github.com/ethereum/go-ethereum/common/math"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/p2p/enr"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/common/math"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/p2p/enr"
+ "github.com/scroll-tech/go-ethereum/rlp"
"golang.org/x/crypto/sha3"
)
diff --git a/p2p/enode/idscheme_test.go b/p2p/enode/idscheme_test.go
index 0910e6e83f..71b7565885 100644
--- a/p2p/enode/idscheme_test.go
+++ b/p2p/enode/idscheme_test.go
@@ -23,9 +23,9 @@ import (
"math/big"
"testing"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/p2p/enr"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/p2p/enr"
+ "github.com/scroll-tech/go-ethereum/rlp"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
diff --git a/p2p/enode/iter_test.go b/p2p/enode/iter_test.go
index 5014346af4..8ac491daf1 100644
--- a/p2p/enode/iter_test.go
+++ b/p2p/enode/iter_test.go
@@ -23,7 +23,7 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/p2p/enr"
+ "github.com/scroll-tech/go-ethereum/p2p/enr"
)
func TestReadNodes(t *testing.T) {
diff --git a/p2p/enode/localnode.go b/p2p/enode/localnode.go
index a18204e752..34bc7e0aee 100644
--- a/p2p/enode/localnode.go
+++ b/p2p/enode/localnode.go
@@ -26,9 +26,9 @@ import (
"sync/atomic"
"time"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/p2p/enr"
- "github.com/ethereum/go-ethereum/p2p/netutil"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/p2p/enr"
+ "github.com/scroll-tech/go-ethereum/p2p/netutil"
)
const (
diff --git a/p2p/enode/localnode_test.go b/p2p/enode/localnode_test.go
index 312df813bb..221899ca81 100644
--- a/p2p/enode/localnode_test.go
+++ b/p2p/enode/localnode_test.go
@@ -21,8 +21,8 @@ import (
"net"
"testing"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/p2p/enr"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/p2p/enr"
"github.com/stretchr/testify/assert"
)
diff --git a/p2p/enode/node.go b/p2p/enode/node.go
index d747ca3313..d0cb3c1927 100644
--- a/p2p/enode/node.go
+++ b/p2p/enode/node.go
@@ -26,8 +26,8 @@ import (
"net"
"strings"
- "github.com/ethereum/go-ethereum/p2p/enr"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/p2p/enr"
+ "github.com/scroll-tech/go-ethereum/rlp"
)
var errMissingPrefix = errors.New("missing 'enr:' prefix for base64-encoded record")
diff --git a/p2p/enode/node_test.go b/p2p/enode/node_test.go
index d15859c477..eb8f67e93d 100644
--- a/p2p/enode/node_test.go
+++ b/p2p/enode/node_test.go
@@ -24,8 +24,8 @@ import (
"testing"
"testing/quick"
- "github.com/ethereum/go-ethereum/p2p/enr"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/p2p/enr"
+ "github.com/scroll-tech/go-ethereum/rlp"
"github.com/stretchr/testify/assert"
)
diff --git a/p2p/enode/nodedb.go b/p2p/enode/nodedb.go
index d1712f7597..7062ec5a58 100644
--- a/p2p/enode/nodedb.go
+++ b/p2p/enode/nodedb.go
@@ -26,7 +26,7 @@ import (
"sync"
"time"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/rlp"
"github.com/syndtr/goleveldb/leveldb"
"github.com/syndtr/goleveldb/leveldb/errors"
"github.com/syndtr/goleveldb/leveldb/iterator"
diff --git a/p2p/enode/urlv4.go b/p2p/enode/urlv4.go
index c445049102..6095fb94e2 100644
--- a/p2p/enode/urlv4.go
+++ b/p2p/enode/urlv4.go
@@ -26,9 +26,9 @@ import (
"regexp"
"strconv"
- "github.com/ethereum/go-ethereum/common/math"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/p2p/enr"
+ "github.com/scroll-tech/go-ethereum/common/math"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/p2p/enr"
)
var (
diff --git a/p2p/enode/urlv4_test.go b/p2p/enode/urlv4_test.go
index 33de96cc57..296dc14bc9 100644
--- a/p2p/enode/urlv4_test.go
+++ b/p2p/enode/urlv4_test.go
@@ -24,8 +24,8 @@ import (
"strings"
"testing"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/p2p/enr"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/p2p/enr"
)
func init() {
diff --git a/p2p/enr/enr.go b/p2p/enr/enr.go
index 05e43fd805..cb737e2709 100644
--- a/p2p/enr/enr.go
+++ b/p2p/enr/enr.go
@@ -40,7 +40,7 @@ import (
"io"
"sort"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/rlp"
)
const SizeLimit = 300 // maximum encoded size of a node record in bytes
diff --git a/p2p/enr/enr_test.go b/p2p/enr/enr_test.go
index bf3f104744..db96003305 100644
--- a/p2p/enr/enr_test.go
+++ b/p2p/enr/enr_test.go
@@ -24,7 +24,7 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/rlp"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
diff --git a/p2p/enr/entries.go b/p2p/enr/entries.go
index f2118401af..e0d246c397 100644
--- a/p2p/enr/entries.go
+++ b/p2p/enr/entries.go
@@ -21,7 +21,7 @@ import (
"io"
"net"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/rlp"
)
// Entry is implemented by known node record entry types.
diff --git a/p2p/message.go b/p2p/message.go
index bd048138c3..42fdd73e6f 100644
--- a/p2p/message.go
+++ b/p2p/message.go
@@ -25,9 +25,9 @@ import (
"sync/atomic"
"time"
- "github.com/ethereum/go-ethereum/event"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/event"
+ "github.com/scroll-tech/go-ethereum/p2p/enode"
+ "github.com/scroll-tech/go-ethereum/rlp"
)
// Msg defines the structure of a p2p message.
diff --git a/p2p/metrics.go b/p2p/metrics.go
index 1bb505cdfb..8021792e70 100644
--- a/p2p/metrics.go
+++ b/p2p/metrics.go
@@ -21,7 +21,7 @@ package p2p
import (
"net"
- "github.com/ethereum/go-ethereum/metrics"
+ "github.com/scroll-tech/go-ethereum/metrics"
)
const (
diff --git a/p2p/msgrate/msgrate.go b/p2p/msgrate/msgrate.go
index 5bfa27b433..595bfad70b 100644
--- a/p2p/msgrate/msgrate.go
+++ b/p2p/msgrate/msgrate.go
@@ -24,7 +24,7 @@ import (
"sync"
"time"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/log"
)
// measurementImpact is the impact a single measurement has on a peer's final
diff --git a/p2p/nat/nat.go b/p2p/nat/nat.go
index 9d5519b9c4..dd4a01657e 100644
--- a/p2p/nat/nat.go
+++ b/p2p/nat/nat.go
@@ -25,7 +25,7 @@ import (
"sync"
"time"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/log"
natpmp "github.com/jackpal/go-nat-pmp"
)
diff --git a/p2p/nat/natupnp_test.go b/p2p/nat/natupnp_test.go
index 17483a7036..7ef5aa0e8b 100644
--- a/p2p/nat/natupnp_test.go
+++ b/p2p/nat/natupnp_test.go
@@ -166,7 +166,7 @@ func TestUPNP_DDWRT(t *testing.T) {
if os.Getenv("CI") != "" {
t.Fatalf("not discovered")
} else {
- t.Skipf("UPnP not discovered (known issue, see https://github.com/ethereum/go-ethereum/issues/21476)")
+ t.Skipf("UPnP not discovered (known issue, see https://github.com/scroll-tech/go-ethereum/issues/21476)")
}
}
upnp, _ := discovered.(*upnp)
diff --git a/p2p/netutil/iptrack.go b/p2p/netutil/iptrack.go
index b9cbd5e1ca..2854816e95 100644
--- a/p2p/netutil/iptrack.go
+++ b/p2p/netutil/iptrack.go
@@ -19,7 +19,7 @@ package netutil
import (
"time"
- "github.com/ethereum/go-ethereum/common/mclock"
+ "github.com/scroll-tech/go-ethereum/common/mclock"
)
// IPTracker predicts the external endpoint, i.e. IP address and port, of the local host
diff --git a/p2p/netutil/iptrack_test.go b/p2p/netutil/iptrack_test.go
index a9a2998a65..65cb986dac 100644
--- a/p2p/netutil/iptrack_test.go
+++ b/p2p/netutil/iptrack_test.go
@@ -22,7 +22,7 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/common/mclock"
+ "github.com/scroll-tech/go-ethereum/common/mclock"
)
const (
diff --git a/p2p/nodestate/nodestate.go b/p2p/nodestate/nodestate.go
index 9323d53cbd..34932c5b5d 100644
--- a/p2p/nodestate/nodestate.go
+++ b/p2p/nodestate/nodestate.go
@@ -23,13 +23,13 @@ import (
"time"
"unsafe"
- "github.com/ethereum/go-ethereum/common/mclock"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/metrics"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/enr"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/common/mclock"
+ "github.com/scroll-tech/go-ethereum/ethdb"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/metrics"
+ "github.com/scroll-tech/go-ethereum/p2p/enode"
+ "github.com/scroll-tech/go-ethereum/p2p/enr"
+ "github.com/scroll-tech/go-ethereum/rlp"
)
var (
diff --git a/p2p/nodestate/nodestate_test.go b/p2p/nodestate/nodestate_test.go
index d06ad755e2..c483d77ba2 100644
--- a/p2p/nodestate/nodestate_test.go
+++ b/p2p/nodestate/nodestate_test.go
@@ -23,11 +23,11 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/common/mclock"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/enr"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/common/mclock"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/p2p/enode"
+ "github.com/scroll-tech/go-ethereum/p2p/enr"
+ "github.com/scroll-tech/go-ethereum/rlp"
)
func testSetup(flagPersist []bool, fieldType []reflect.Type) (*Setup, []Flags, []Field) {
diff --git a/p2p/peer.go b/p2p/peer.go
index b6d0dbd1ae..ad6aa54f10 100644
--- a/p2p/peer.go
+++ b/p2p/peer.go
@@ -25,13 +25,13 @@ import (
"sync"
"time"
- "github.com/ethereum/go-ethereum/common/mclock"
- "github.com/ethereum/go-ethereum/event"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/metrics"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/enr"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/common/mclock"
+ "github.com/scroll-tech/go-ethereum/event"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/metrics"
+ "github.com/scroll-tech/go-ethereum/p2p/enode"
+ "github.com/scroll-tech/go-ethereum/p2p/enr"
+ "github.com/scroll-tech/go-ethereum/rlp"
)
var (
diff --git a/p2p/peer_test.go b/p2p/peer_test.go
index 4308bbd2eb..b1b0f6df7e 100644
--- a/p2p/peer_test.go
+++ b/p2p/peer_test.go
@@ -28,9 +28,9 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/enr"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/p2p/enode"
+ "github.com/scroll-tech/go-ethereum/p2p/enr"
)
var discard = Protocol{
diff --git a/p2p/protocol.go b/p2p/protocol.go
index fa23a087c2..9d4d588a4b 100644
--- a/p2p/protocol.go
+++ b/p2p/protocol.go
@@ -19,8 +19,8 @@ package p2p
import (
"fmt"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/enr"
+ "github.com/scroll-tech/go-ethereum/p2p/enode"
+ "github.com/scroll-tech/go-ethereum/p2p/enr"
)
// Protocol represents a P2P subprotocol implementation.
diff --git a/p2p/rlpx/buffer_test.go b/p2p/rlpx/buffer_test.go
index 9fee4172bd..15f73d09a1 100644
--- a/p2p/rlpx/buffer_test.go
+++ b/p2p/rlpx/buffer_test.go
@@ -20,7 +20,7 @@ import (
"bytes"
"testing"
- "github.com/ethereum/go-ethereum/common/hexutil"
+ "github.com/scroll-tech/go-ethereum/common/hexutil"
"github.com/stretchr/testify/assert"
)
diff --git a/p2p/rlpx/rlpx.go b/p2p/rlpx/rlpx.go
index 326c7c4941..e2651b968b 100644
--- a/p2p/rlpx/rlpx.go
+++ b/p2p/rlpx/rlpx.go
@@ -34,9 +34,9 @@ import (
"net"
"time"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/crypto/ecies"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/crypto/ecies"
+ "github.com/scroll-tech/go-ethereum/rlp"
"github.com/golang/snappy"
"golang.org/x/crypto/sha3"
)
diff --git a/p2p/rlpx/rlpx_test.go b/p2p/rlpx/rlpx_test.go
index 28759f2b49..3db2ae7999 100644
--- a/p2p/rlpx/rlpx_test.go
+++ b/p2p/rlpx/rlpx_test.go
@@ -29,10 +29,10 @@ import (
"testing"
"github.com/davecgh/go-spew/spew"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/crypto/ecies"
- "github.com/ethereum/go-ethereum/p2p/simulations/pipes"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/crypto/ecies"
+ "github.com/scroll-tech/go-ethereum/p2p/simulations/pipes"
+ "github.com/scroll-tech/go-ethereum/rlp"
"github.com/stretchr/testify/assert"
)
diff --git a/p2p/server.go b/p2p/server.go
index bcfc1bd10b..657aabbbc7 100644
--- a/p2p/server.go
+++ b/p2p/server.go
@@ -29,16 +29,16 @@ import (
"sync/atomic"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/mclock"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/event"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/p2p/discover"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/enr"
- "github.com/ethereum/go-ethereum/p2p/nat"
- "github.com/ethereum/go-ethereum/p2p/netutil"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/mclock"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/event"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/p2p/discover"
+ "github.com/scroll-tech/go-ethereum/p2p/enode"
+ "github.com/scroll-tech/go-ethereum/p2p/enr"
+ "github.com/scroll-tech/go-ethereum/p2p/nat"
+ "github.com/scroll-tech/go-ethereum/p2p/netutil"
)
const (
diff --git a/p2p/server_test.go b/p2p/server_test.go
index f6f5700c5e..bc2f0255a6 100644
--- a/p2p/server_test.go
+++ b/p2p/server_test.go
@@ -27,12 +27,12 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/internal/testlog"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/enr"
- "github.com/ethereum/go-ethereum/p2p/rlpx"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/internal/testlog"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/p2p/enode"
+ "github.com/scroll-tech/go-ethereum/p2p/enr"
+ "github.com/scroll-tech/go-ethereum/p2p/rlpx"
)
type testTransport struct {
diff --git a/p2p/simulations/adapters/exec.go b/p2p/simulations/adapters/exec.go
index 35ccdfb068..2cdd99e4c7 100644
--- a/p2p/simulations/adapters/exec.go
+++ b/p2p/simulations/adapters/exec.go
@@ -35,11 +35,11 @@ import (
"time"
"github.com/docker/docker/pkg/reexec"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/node"
- "github.com/ethereum/go-ethereum/p2p"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/rpc"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/node"
+ "github.com/scroll-tech/go-ethereum/p2p"
+ "github.com/scroll-tech/go-ethereum/p2p/enode"
+ "github.com/scroll-tech/go-ethereum/rpc"
"github.com/gorilla/websocket"
)
diff --git a/p2p/simulations/adapters/inproc.go b/p2p/simulations/adapters/inproc.go
index 1cb26a8ea0..6788c4ec06 100644
--- a/p2p/simulations/adapters/inproc.go
+++ b/p2p/simulations/adapters/inproc.go
@@ -24,13 +24,13 @@ import (
"net"
"sync"
- "github.com/ethereum/go-ethereum/event"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/node"
- "github.com/ethereum/go-ethereum/p2p"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/simulations/pipes"
- "github.com/ethereum/go-ethereum/rpc"
+ "github.com/scroll-tech/go-ethereum/event"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/node"
+ "github.com/scroll-tech/go-ethereum/p2p"
+ "github.com/scroll-tech/go-ethereum/p2p/enode"
+ "github.com/scroll-tech/go-ethereum/p2p/simulations/pipes"
+ "github.com/scroll-tech/go-ethereum/rpc"
"github.com/gorilla/websocket"
)
diff --git a/p2p/simulations/adapters/inproc_test.go b/p2p/simulations/adapters/inproc_test.go
index 2a61508fe1..77055cf631 100644
--- a/p2p/simulations/adapters/inproc_test.go
+++ b/p2p/simulations/adapters/inproc_test.go
@@ -23,7 +23,7 @@ import (
"sync"
"testing"
- "github.com/ethereum/go-ethereum/p2p/simulations/pipes"
+ "github.com/scroll-tech/go-ethereum/p2p/simulations/pipes"
)
func TestTCPPipe(t *testing.T) {
diff --git a/p2p/simulations/adapters/types.go b/p2p/simulations/adapters/types.go
index aeb8ef7772..c0f4893316 100644
--- a/p2p/simulations/adapters/types.go
+++ b/p2p/simulations/adapters/types.go
@@ -26,13 +26,13 @@ import (
"strconv"
"github.com/docker/docker/pkg/reexec"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/node"
- "github.com/ethereum/go-ethereum/p2p"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/enr"
- "github.com/ethereum/go-ethereum/rpc"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/node"
+ "github.com/scroll-tech/go-ethereum/p2p"
+ "github.com/scroll-tech/go-ethereum/p2p/enode"
+ "github.com/scroll-tech/go-ethereum/p2p/enr"
+ "github.com/scroll-tech/go-ethereum/rpc"
"github.com/gorilla/websocket"
)
diff --git a/p2p/simulations/connect.go b/p2p/simulations/connect.go
index ede96b34c1..c231ca755a 100644
--- a/p2p/simulations/connect.go
+++ b/p2p/simulations/connect.go
@@ -20,7 +20,7 @@ import (
"errors"
"strings"
- "github.com/ethereum/go-ethereum/p2p/enode"
+ "github.com/scroll-tech/go-ethereum/p2p/enode"
)
var (
diff --git a/p2p/simulations/connect_test.go b/p2p/simulations/connect_test.go
index 0154a18b03..c1da948765 100644
--- a/p2p/simulations/connect_test.go
+++ b/p2p/simulations/connect_test.go
@@ -19,9 +19,9 @@ package simulations
import (
"testing"
- "github.com/ethereum/go-ethereum/node"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/simulations/adapters"
+ "github.com/scroll-tech/go-ethereum/node"
+ "github.com/scroll-tech/go-ethereum/p2p/enode"
+ "github.com/scroll-tech/go-ethereum/p2p/simulations/adapters"
)
func newTestNetwork(t *testing.T, nodeCount int) (*Network, []enode.ID) {
diff --git a/p2p/simulations/examples/ping-pong.go b/p2p/simulations/examples/ping-pong.go
index 0cddd9b505..f16205ec5b 100644
--- a/p2p/simulations/examples/ping-pong.go
+++ b/p2p/simulations/examples/ping-pong.go
@@ -25,12 +25,12 @@ import (
"sync/atomic"
"time"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/node"
- "github.com/ethereum/go-ethereum/p2p"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/simulations"
- "github.com/ethereum/go-ethereum/p2p/simulations/adapters"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/node"
+ "github.com/scroll-tech/go-ethereum/p2p"
+ "github.com/scroll-tech/go-ethereum/p2p/enode"
+ "github.com/scroll-tech/go-ethereum/p2p/simulations"
+ "github.com/scroll-tech/go-ethereum/p2p/simulations/adapters"
)
var adapterType = flag.String("adapter", "sim", `node adapter to use (one of "sim", "exec" or "docker")`)
diff --git a/p2p/simulations/http.go b/p2p/simulations/http.go
index 27ed5b75d2..10e4e61dda 100644
--- a/p2p/simulations/http.go
+++ b/p2p/simulations/http.go
@@ -29,11 +29,11 @@ import (
"strings"
"sync"
- "github.com/ethereum/go-ethereum/event"
- "github.com/ethereum/go-ethereum/p2p"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/simulations/adapters"
- "github.com/ethereum/go-ethereum/rpc"
+ "github.com/scroll-tech/go-ethereum/event"
+ "github.com/scroll-tech/go-ethereum/p2p"
+ "github.com/scroll-tech/go-ethereum/p2p/enode"
+ "github.com/scroll-tech/go-ethereum/p2p/simulations/adapters"
+ "github.com/scroll-tech/go-ethereum/rpc"
"github.com/gorilla/websocket"
"github.com/julienschmidt/httprouter"
)
diff --git a/p2p/simulations/http_test.go b/p2p/simulations/http_test.go
index 6d7f0b6d7a..d9729be095 100644
--- a/p2p/simulations/http_test.go
+++ b/p2p/simulations/http_test.go
@@ -29,13 +29,13 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/event"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/node"
- "github.com/ethereum/go-ethereum/p2p"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/simulations/adapters"
- "github.com/ethereum/go-ethereum/rpc"
+ "github.com/scroll-tech/go-ethereum/event"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/node"
+ "github.com/scroll-tech/go-ethereum/p2p"
+ "github.com/scroll-tech/go-ethereum/p2p/enode"
+ "github.com/scroll-tech/go-ethereum/p2p/simulations/adapters"
+ "github.com/scroll-tech/go-ethereum/rpc"
"github.com/mattn/go-colorable"
)
diff --git a/p2p/simulations/mocker.go b/p2p/simulations/mocker.go
index fd25e2c918..e168cb12f1 100644
--- a/p2p/simulations/mocker.go
+++ b/p2p/simulations/mocker.go
@@ -24,9 +24,9 @@ import (
"sync"
"time"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/simulations/adapters"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/p2p/enode"
+ "github.com/scroll-tech/go-ethereum/p2p/simulations/adapters"
)
//a map of mocker names to its function
diff --git a/p2p/simulations/mocker_test.go b/p2p/simulations/mocker_test.go
index 56d81942bb..821afe8094 100644
--- a/p2p/simulations/mocker_test.go
+++ b/p2p/simulations/mocker_test.go
@@ -27,7 +27,7 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/p2p/enode"
+ "github.com/scroll-tech/go-ethereum/p2p/enode"
)
func TestMocker(t *testing.T) {
diff --git a/p2p/simulations/network.go b/p2p/simulations/network.go
index 962910dd25..20e7960366 100644
--- a/p2p/simulations/network.go
+++ b/p2p/simulations/network.go
@@ -26,11 +26,11 @@ import (
"sync"
"time"
- "github.com/ethereum/go-ethereum/event"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/p2p"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/simulations/adapters"
+ "github.com/scroll-tech/go-ethereum/event"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/p2p"
+ "github.com/scroll-tech/go-ethereum/p2p/enode"
+ "github.com/scroll-tech/go-ethereum/p2p/simulations/adapters"
)
var DialBanTimeout = 200 * time.Millisecond
diff --git a/p2p/simulations/network_test.go b/p2p/simulations/network_test.go
index d5651441a2..d817c95808 100644
--- a/p2p/simulations/network_test.go
+++ b/p2p/simulations/network_test.go
@@ -27,10 +27,10 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/node"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/simulations/adapters"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/node"
+ "github.com/scroll-tech/go-ethereum/p2p/enode"
+ "github.com/scroll-tech/go-ethereum/p2p/simulations/adapters"
)
// Tests that a created snapshot with a minimal service only contains the expected connections
diff --git a/p2p/simulations/simulation.go b/p2p/simulations/simulation.go
index ae62c42b9c..75bb62949c 100644
--- a/p2p/simulations/simulation.go
+++ b/p2p/simulations/simulation.go
@@ -20,7 +20,7 @@ import (
"context"
"time"
- "github.com/ethereum/go-ethereum/p2p/enode"
+ "github.com/scroll-tech/go-ethereum/p2p/enode"
)
// Simulation provides a framework for running actions in a simulated network
diff --git a/p2p/simulations/test.go b/p2p/simulations/test.go
index 0edb07b127..4dbc5e9ad3 100644
--- a/p2p/simulations/test.go
+++ b/p2p/simulations/test.go
@@ -19,10 +19,10 @@ package simulations
import (
"testing"
- "github.com/ethereum/go-ethereum/p2p"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/enr"
- "github.com/ethereum/go-ethereum/rpc"
+ "github.com/scroll-tech/go-ethereum/p2p"
+ "github.com/scroll-tech/go-ethereum/p2p/enode"
+ "github.com/scroll-tech/go-ethereum/p2p/enr"
+ "github.com/scroll-tech/go-ethereum/rpc"
)
// NoopService is the service that does not do anything
diff --git a/p2p/tracker/tracker.go b/p2p/tracker/tracker.go
index 69a49087e2..73412a7fd7 100644
--- a/p2p/tracker/tracker.go
+++ b/p2p/tracker/tracker.go
@@ -22,8 +22,8 @@ import (
"sync"
"time"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/metrics"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/metrics"
)
const (
diff --git a/p2p/transport.go b/p2p/transport.go
index d594259866..603b4241ff 100644
--- a/p2p/transport.go
+++ b/p2p/transport.go
@@ -25,11 +25,11 @@ import (
"sync"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/bitutil"
- "github.com/ethereum/go-ethereum/metrics"
- "github.com/ethereum/go-ethereum/p2p/rlpx"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/bitutil"
+ "github.com/scroll-tech/go-ethereum/metrics"
+ "github.com/scroll-tech/go-ethereum/p2p/rlpx"
+ "github.com/scroll-tech/go-ethereum/rlp"
)
const (
diff --git a/p2p/transport_test.go b/p2p/transport_test.go
index 753ea30bf1..f861772eac 100644
--- a/p2p/transport_test.go
+++ b/p2p/transport_test.go
@@ -23,8 +23,8 @@ import (
"testing"
"github.com/davecgh/go-spew/spew"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/p2p/simulations/pipes"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/p2p/simulations/pipes"
)
func TestProtocolHandshake(t *testing.T) {
diff --git a/p2p/util.go b/p2p/util.go
index 3c5f6b8508..21e373ee71 100644
--- a/p2p/util.go
+++ b/p2p/util.go
@@ -19,7 +19,7 @@ package p2p
import (
"container/heap"
- "github.com/ethereum/go-ethereum/common/mclock"
+ "github.com/scroll-tech/go-ethereum/common/mclock"
)
// expHeap tracks strings and their expiry time.
diff --git a/p2p/util_test.go b/p2p/util_test.go
index cc0d2b215f..fd22ef40f9 100644
--- a/p2p/util_test.go
+++ b/p2p/util_test.go
@@ -20,7 +20,7 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/common/mclock"
+ "github.com/scroll-tech/go-ethereum/common/mclock"
)
func TestExpHeap(t *testing.T) {
diff --git a/params/bootnodes.go b/params/bootnodes.go
index e3b5570d55..3a4699bf22 100644
--- a/params/bootnodes.go
+++ b/params/bootnodes.go
@@ -16,7 +16,7 @@
package params
-import "github.com/ethereum/go-ethereum/common"
+import "github.com/scroll-tech/go-ethereum/common"
// MainnetBootnodes are the enode URLs of the P2P bootstrap nodes running on
// the main Ethereum network.
diff --git a/params/config.go b/params/config.go
index f767c1c4b9..5b57a64e2c 100644
--- a/params/config.go
+++ b/params/config.go
@@ -21,7 +21,7 @@ import (
"fmt"
"math/big"
- "github.com/ethereum/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common"
"golang.org/x/crypto/sha3"
)
diff --git a/params/dao.go b/params/dao.go
index da3c8dfc99..0c638aea61 100644
--- a/params/dao.go
+++ b/params/dao.go
@@ -19,7 +19,7 @@ package params
import (
"math/big"
- "github.com/ethereum/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common"
)
// DAOForkBlockExtra is the block header extra-data field to set for the DAO fork
diff --git a/rlp/decode_test.go b/rlp/decode_test.go
index 7c3dafeac4..ad80ea43e1 100644
--- a/rlp/decode_test.go
+++ b/rlp/decode_test.go
@@ -27,7 +27,7 @@ import (
"strings"
"testing"
- "github.com/ethereum/go-ethereum/common/math"
+ "github.com/scroll-tech/go-ethereum/common/math"
)
func TestStreamKind(t *testing.T) {
diff --git a/rlp/encode_test.go b/rlp/encode_test.go
index a63743440d..09c9b9cfcf 100644
--- a/rlp/encode_test.go
+++ b/rlp/encode_test.go
@@ -27,7 +27,7 @@ import (
"sync"
"testing"
- "github.com/ethereum/go-ethereum/common/math"
+ "github.com/scroll-tech/go-ethereum/common/math"
)
type testEncoder struct {
diff --git a/rlp/iterator_test.go b/rlp/iterator_test.go
index 53c3819186..5fa9444820 100644
--- a/rlp/iterator_test.go
+++ b/rlp/iterator_test.go
@@ -19,7 +19,7 @@ package rlp
import (
"testing"
- "github.com/ethereum/go-ethereum/common/hexutil"
+ "github.com/scroll-tech/go-ethereum/common/hexutil"
)
// TestIterator tests some basic things about the ListIterator. A more
diff --git a/rpc/client.go b/rpc/client.go
index e43760c22c..be03cb074a 100644
--- a/rpc/client.go
+++ b/rpc/client.go
@@ -27,7 +27,7 @@ import (
"sync/atomic"
"time"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/log"
)
var (
diff --git a/rpc/client_example_test.go b/rpc/client_example_test.go
index 044b57a9c4..524b656277 100644
--- a/rpc/client_example_test.go
+++ b/rpc/client_example_test.go
@@ -21,8 +21,8 @@ import (
"fmt"
"time"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/rpc"
+ "github.com/scroll-tech/go-ethereum/common/hexutil"
+ "github.com/scroll-tech/go-ethereum/rpc"
)
// In this example, our client wishes to track the latest 'block number'
diff --git a/rpc/client_test.go b/rpc/client_test.go
index 224eb0c5c8..8166312b3f 100644
--- a/rpc/client_test.go
+++ b/rpc/client_test.go
@@ -33,7 +33,7 @@ import (
"time"
"github.com/davecgh/go-spew/spew"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/log"
)
func TestClientRequest(t *testing.T) {
@@ -354,7 +354,7 @@ func TestClientSubscribeClose(t *testing.T) {
}
}
-// This test reproduces https://github.com/ethereum/go-ethereum/issues/17837 where the
+// This test reproduces https://github.com/scroll-tech/go-ethereum/issues/17837 where the
// client hangs during shutdown when Unsubscribe races with Client.Close.
func TestClientCloseUnsubscribeRace(t *testing.T) {
server := newTestServer()
@@ -438,7 +438,7 @@ func TestClientSubscriptionUnsubscribeServer(t *testing.T) {
}
// This checks that the subscribed channel can be closed after Unsubscribe.
-// It is the reproducer for https://github.com/ethereum/go-ethereum/issues/22322
+// It is the reproducer for https://github.com/scroll-tech/go-ethereum/issues/22322
func TestClientSubscriptionChannelClose(t *testing.T) {
t.Parallel()
diff --git a/rpc/doc.go b/rpc/doc.go
index e0a6324675..fc175f2ae8 100644
--- a/rpc/doc.go
+++ b/rpc/doc.go
@@ -99,7 +99,7 @@ Subscriptions are deleted when the user sends an unsubscribe request or when the
connection which was used to create the subscription is closed. This can be initiated by
the client and server. The server will close the connection for any write error.
-For more information about subscriptions, see https://github.com/ethereum/go-ethereum/wiki/RPC-PUB-SUB.
+For more information about subscriptions, see https://github.com/scroll-tech/go-ethereum/wiki/RPC-PUB-SUB.
Reverse Calls
diff --git a/rpc/endpoints.go b/rpc/endpoints.go
index d78ebe2858..0e664acaeb 100644
--- a/rpc/endpoints.go
+++ b/rpc/endpoints.go
@@ -20,7 +20,7 @@ import (
"net"
"strings"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/log"
)
// StartIPCEndpoint starts an IPC endpoint.
diff --git a/rpc/handler.go b/rpc/handler.go
index 85f774a1b7..28f92effc2 100644
--- a/rpc/handler.go
+++ b/rpc/handler.go
@@ -25,7 +25,7 @@ import (
"sync"
"time"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/log"
)
// handler handles JSON-RPC messages. There is one handler per connection. Note that
diff --git a/rpc/ipc.go b/rpc/ipc.go
index 07a211c627..3926c6e55d 100644
--- a/rpc/ipc.go
+++ b/rpc/ipc.go
@@ -20,8 +20,8 @@ import (
"context"
"net"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/p2p/netutil"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/p2p/netutil"
)
// ServeListener accepts connections on l, serving JSON-RPC on them.
diff --git a/rpc/ipc_unix.go b/rpc/ipc_unix.go
index 249a9cf044..dc95b5d046 100644
--- a/rpc/ipc_unix.go
+++ b/rpc/ipc_unix.go
@@ -26,7 +26,7 @@ import (
"os"
"path/filepath"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/log"
)
// ipcListen will create a Unix socket on the given endpoint.
diff --git a/rpc/metrics.go b/rpc/metrics.go
index 7fb6fc0a17..0eb4597946 100644
--- a/rpc/metrics.go
+++ b/rpc/metrics.go
@@ -19,7 +19,7 @@ package rpc
import (
"fmt"
- "github.com/ethereum/go-ethereum/metrics"
+ "github.com/scroll-tech/go-ethereum/metrics"
)
var (
diff --git a/rpc/server.go b/rpc/server.go
index 64e078a7fd..2229712fd2 100644
--- a/rpc/server.go
+++ b/rpc/server.go
@@ -22,7 +22,7 @@ import (
"sync/atomic"
mapset "github.com/deckarep/golang-set"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/log"
)
const MetadataApi = "rpc"
diff --git a/rpc/service.go b/rpc/service.go
index bef891ea11..19ae479c5b 100644
--- a/rpc/service.go
+++ b/rpc/service.go
@@ -26,7 +26,7 @@ import (
"sync"
"unicode"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/log"
)
var (
diff --git a/rpc/types.go b/rpc/types.go
index ca52d474d9..07726ce178 100644
--- a/rpc/types.go
+++ b/rpc/types.go
@@ -24,8 +24,8 @@ import (
"strconv"
"strings"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/hexutil"
)
// API describes the set of methods offered over the RPC interface
diff --git a/rpc/types_test.go b/rpc/types_test.go
index f110dee7c6..ac446ef3cd 100644
--- a/rpc/types_test.go
+++ b/rpc/types_test.go
@@ -21,8 +21,8 @@ import (
"reflect"
"testing"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/math"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/math"
)
func TestBlockNumberJSONUnmarshal(t *testing.T) {
diff --git a/rpc/websocket.go b/rpc/websocket.go
index 5571324af8..249620ad6f 100644
--- a/rpc/websocket.go
+++ b/rpc/websocket.go
@@ -28,7 +28,7 @@ import (
"time"
mapset "github.com/deckarep/golang-set"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/log"
"github.com/gorilla/websocket"
)
diff --git a/rpc/websocket_test.go b/rpc/websocket_test.go
index cf83b621f1..855c3f4a2e 100644
--- a/rpc/websocket_test.go
+++ b/rpc/websocket_test.go
@@ -144,7 +144,7 @@ func TestClientWebsocketPing(t *testing.T) {
// server can't handle the request.
// Wait for the context's deadline to be reached before proceeding.
- // This is important for reproducing https://github.com/ethereum/go-ethereum/issues/19798
+ // This is important for reproducing https://github.com/scroll-tech/go-ethereum/issues/19798
<-ctx.Done()
close(sendPing)
diff --git a/signer/core/api.go b/signer/core/api.go
index fb68018a6b..96979dd2ee 100644
--- a/signer/core/api.go
+++ b/signer/core/api.go
@@ -25,16 +25,16 @@ import (
"os"
"reflect"
- "github.com/ethereum/go-ethereum/accounts"
- "github.com/ethereum/go-ethereum/accounts/keystore"
- "github.com/ethereum/go-ethereum/accounts/scwallet"
- "github.com/ethereum/go-ethereum/accounts/usbwallet"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/internal/ethapi"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/signer/core/apitypes"
- "github.com/ethereum/go-ethereum/signer/storage"
+ "github.com/scroll-tech/go-ethereum/accounts"
+ "github.com/scroll-tech/go-ethereum/accounts/keystore"
+ "github.com/scroll-tech/go-ethereum/accounts/scwallet"
+ "github.com/scroll-tech/go-ethereum/accounts/usbwallet"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/hexutil"
+ "github.com/scroll-tech/go-ethereum/internal/ethapi"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/signer/core/apitypes"
+ "github.com/scroll-tech/go-ethereum/signer/storage"
)
const (
diff --git a/signer/core/api_test.go b/signer/core/api_test.go
index 36f12f71a5..7e76ca190b 100644
--- a/signer/core/api_test.go
+++ b/signer/core/api_test.go
@@ -27,17 +27,17 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/accounts"
- "github.com/ethereum/go-ethereum/accounts/keystore"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/internal/ethapi"
- "github.com/ethereum/go-ethereum/rlp"
- "github.com/ethereum/go-ethereum/signer/core"
- "github.com/ethereum/go-ethereum/signer/core/apitypes"
- "github.com/ethereum/go-ethereum/signer/fourbyte"
- "github.com/ethereum/go-ethereum/signer/storage"
+ "github.com/scroll-tech/go-ethereum/accounts"
+ "github.com/scroll-tech/go-ethereum/accounts/keystore"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/hexutil"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/internal/ethapi"
+ "github.com/scroll-tech/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/signer/core"
+ "github.com/scroll-tech/go-ethereum/signer/core/apitypes"
+ "github.com/scroll-tech/go-ethereum/signer/fourbyte"
+ "github.com/scroll-tech/go-ethereum/signer/storage"
)
//Used for testing
diff --git a/signer/core/apitypes/types.go b/signer/core/apitypes/types.go
index 625959219f..869d66201a 100644
--- a/signer/core/apitypes/types.go
+++ b/signer/core/apitypes/types.go
@@ -22,9 +22,9 @@ import (
"math/big"
"strings"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/hexutil"
+ "github.com/scroll-tech/go-ethereum/core/types"
)
type ValidationInfo struct {
@@ -80,7 +80,7 @@ type SendTxArgs struct {
// We accept "data" and "input" for backwards-compatibility reasons.
// "input" is the newer name and should be preferred by clients.
- // Issue detail: https://github.com/ethereum/go-ethereum/issues/15628
+ // Issue detail: https://github.com/scroll-tech/go-ethereum/issues/15628
Data *hexutil.Bytes `json:"data"`
Input *hexutil.Bytes `json:"input,omitempty"`
diff --git a/signer/core/auditlog.go b/signer/core/auditlog.go
index 84877ee712..7f07f41df7 100644
--- a/signer/core/auditlog.go
+++ b/signer/core/auditlog.go
@@ -20,11 +20,11 @@ import (
"context"
"encoding/json"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/internal/ethapi"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/signer/core/apitypes"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/hexutil"
+ "github.com/scroll-tech/go-ethereum/internal/ethapi"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/signer/core/apitypes"
)
type AuditLogger struct {
diff --git a/signer/core/cliui.go b/signer/core/cliui.go
index 05c60906cc..db9a3a047d 100644
--- a/signer/core/cliui.go
+++ b/signer/core/cliui.go
@@ -24,10 +24,10 @@ import (
"strings"
"sync"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/console/prompt"
- "github.com/ethereum/go-ethereum/internal/ethapi"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/common/hexutil"
+ "github.com/scroll-tech/go-ethereum/console/prompt"
+ "github.com/scroll-tech/go-ethereum/internal/ethapi"
+ "github.com/scroll-tech/go-ethereum/log"
)
type CommandlineUI struct {
diff --git a/signer/core/gnosis_safe.go b/signer/core/gnosis_safe.go
index bdf7f837a0..7eb890c214 100644
--- a/signer/core/gnosis_safe.go
+++ b/signer/core/gnosis_safe.go
@@ -4,10 +4,10 @@ import (
"fmt"
"math/big"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/common/math"
- "github.com/ethereum/go-ethereum/signer/core/apitypes"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/hexutil"
+ "github.com/scroll-tech/go-ethereum/common/math"
+ "github.com/scroll-tech/go-ethereum/signer/core/apitypes"
)
// GnosisSafeTx is a type to parse the safe-tx returned by the relayer,
diff --git a/signer/core/signed_data.go b/signer/core/signed_data.go
index daa84313da..dbbca92d09 100644
--- a/signer/core/signed_data.go
+++ b/signer/core/signed_data.go
@@ -31,15 +31,15 @@ import (
"unicode"
"unicode/utf8"
- "github.com/ethereum/go-ethereum/accounts"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/common/math"
- "github.com/ethereum/go-ethereum/consensus/clique"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/rlp"
- "github.com/ethereum/go-ethereum/signer/core/apitypes"
+ "github.com/scroll-tech/go-ethereum/accounts"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/hexutil"
+ "github.com/scroll-tech/go-ethereum/common/math"
+ "github.com/scroll-tech/go-ethereum/consensus/clique"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/signer/core/apitypes"
)
type SigFormat struct {
@@ -654,7 +654,7 @@ func (api *SignerAPI) EcRecover(ctx context.Context, data hexutil.Bytes, sig hex
// Note, the signature must conform to the secp256k1 curve R, S and V values, where
// the V value must be be 27 or 28 for legacy reasons.
//
- // https://github.com/ethereum/go-ethereum/wiki/Management-APIs#personal_ecRecover
+ // https://github.com/scroll-tech/go-ethereum/wiki/Management-APIs#personal_ecRecover
if len(sig) != 65 {
return common.Address{}, fmt.Errorf("signature must be 65 bytes long")
}
diff --git a/signer/core/signed_data_internal_test.go b/signer/core/signed_data_internal_test.go
index 9768ee0b3f..eaa3c483d6 100644
--- a/signer/core/signed_data_internal_test.go
+++ b/signer/core/signed_data_internal_test.go
@@ -21,7 +21,7 @@ import (
"math/big"
"testing"
- "github.com/ethereum/go-ethereum/common/hexutil"
+ "github.com/scroll-tech/go-ethereum/common/hexutil"
)
func TestBytesPadding(t *testing.T) {
diff --git a/signer/core/signed_data_test.go b/signer/core/signed_data_test.go
index 23b7b9897b..3acdc65d8a 100644
--- a/signer/core/signed_data_test.go
+++ b/signer/core/signed_data_test.go
@@ -26,12 +26,12 @@ import (
"strings"
"testing"
- "github.com/ethereum/go-ethereum/accounts/keystore"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/common/math"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/signer/core"
+ "github.com/scroll-tech/go-ethereum/accounts/keystore"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/hexutil"
+ "github.com/scroll-tech/go-ethereum/common/math"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/signer/core"
)
var typesStandard = core.Types{
diff --git a/signer/core/stdioui.go b/signer/core/stdioui.go
index 6963a89122..26ab210f32 100644
--- a/signer/core/stdioui.go
+++ b/signer/core/stdioui.go
@@ -19,9 +19,9 @@ package core
import (
"context"
- "github.com/ethereum/go-ethereum/internal/ethapi"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/rpc"
+ "github.com/scroll-tech/go-ethereum/internal/ethapi"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/rpc"
)
type StdIOUI struct {
diff --git a/signer/core/uiapi.go b/signer/core/uiapi.go
index 3a0327d869..4cf9f325a9 100644
--- a/signer/core/uiapi.go
+++ b/signer/core/uiapi.go
@@ -24,11 +24,11 @@ import (
"io/ioutil"
"math/big"
- "github.com/ethereum/go-ethereum/accounts"
- "github.com/ethereum/go-ethereum/accounts/keystore"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/math"
- "github.com/ethereum/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/accounts"
+ "github.com/scroll-tech/go-ethereum/accounts/keystore"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/math"
+ "github.com/scroll-tech/go-ethereum/crypto"
)
// SignerUIAPI implements methods Clef provides for a UI to query, in the bidirectional communication
diff --git a/signer/fourbyte/abi.go b/signer/fourbyte/abi.go
index d8fbabd3b1..c4b5b8512e 100644
--- a/signer/fourbyte/abi.go
+++ b/signer/fourbyte/abi.go
@@ -23,8 +23,8 @@ import (
"regexp"
"strings"
- "github.com/ethereum/go-ethereum/accounts/abi"
- "github.com/ethereum/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/accounts/abi"
+ "github.com/scroll-tech/go-ethereum/common"
)
// decodedCallData is an internal type to represent a method call parsed according
diff --git a/signer/fourbyte/abi_test.go b/signer/fourbyte/abi_test.go
index 68c027ecea..19fb6b1c83 100644
--- a/signer/fourbyte/abi_test.go
+++ b/signer/fourbyte/abi_test.go
@@ -22,8 +22,8 @@ import (
"strings"
"testing"
- "github.com/ethereum/go-ethereum/accounts/abi"
- "github.com/ethereum/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/accounts/abi"
+ "github.com/scroll-tech/go-ethereum/common"
)
func verify(t *testing.T, jsondata, calldata string, exp []interface{}) {
diff --git a/signer/fourbyte/fourbyte_test.go b/signer/fourbyte/fourbyte_test.go
index cf54c9b9c2..dcfbdcaa15 100644
--- a/signer/fourbyte/fourbyte_test.go
+++ b/signer/fourbyte/fourbyte_test.go
@@ -22,8 +22,8 @@ import (
"strings"
"testing"
- "github.com/ethereum/go-ethereum/accounts/abi"
- "github.com/ethereum/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/accounts/abi"
+ "github.com/scroll-tech/go-ethereum/common"
)
// Tests that all the selectors contained in the 4byte database are valid.
diff --git a/signer/fourbyte/validation.go b/signer/fourbyte/validation.go
index 58111e8e00..f9cdaca3b9 100644
--- a/signer/fourbyte/validation.go
+++ b/signer/fourbyte/validation.go
@@ -22,8 +22,8 @@ import (
"fmt"
"math/big"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/signer/core/apitypes"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/signer/core/apitypes"
)
// ValidateTransaction does a number of checks on the supplied transaction, and
@@ -49,7 +49,7 @@ func (db *Database) ValidateTransaction(selector *string, tx *apitypes.SendTxArg
if tx.To == nil {
// Contract creation should contain sufficient data to deploy a contract. A
// typical error is omitting sender due to some quirk in the javascript call
- // e.g. https://github.com/ethereum/go-ethereum/issues/16106.
+ // e.g. https://github.com/scroll-tech/go-ethereum/issues/16106.
if len(data) == 0 {
// Prevent sending ether into black hole (show stopper)
if tx.Value.ToInt().Cmp(big.NewInt(0)) > 0 {
diff --git a/signer/fourbyte/validation_test.go b/signer/fourbyte/validation_test.go
index c3085696f4..1af6fea410 100644
--- a/signer/fourbyte/validation_test.go
+++ b/signer/fourbyte/validation_test.go
@@ -20,9 +20,9 @@ import (
"math/big"
"testing"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/signer/core/apitypes"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/hexutil"
+ "github.com/scroll-tech/go-ethereum/signer/core/apitypes"
)
func mixAddr(a string) (*common.MixedcaseAddress, error) {
diff --git a/signer/rules/rules.go b/signer/rules/rules.go
index f37209f645..c69e9af901 100644
--- a/signer/rules/rules.go
+++ b/signer/rules/rules.go
@@ -23,11 +23,11 @@ import (
"strings"
"github.com/dop251/goja"
- "github.com/ethereum/go-ethereum/internal/ethapi"
- "github.com/ethereum/go-ethereum/internal/jsre/deps"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/signer/core"
- "github.com/ethereum/go-ethereum/signer/storage"
+ "github.com/scroll-tech/go-ethereum/internal/ethapi"
+ "github.com/scroll-tech/go-ethereum/internal/jsre/deps"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/signer/core"
+ "github.com/scroll-tech/go-ethereum/signer/storage"
)
var (
diff --git a/signer/rules/rules_test.go b/signer/rules/rules_test.go
index d506ef2db0..b2d1130de0 100644
--- a/signer/rules/rules_test.go
+++ b/signer/rules/rules_test.go
@@ -22,14 +22,14 @@ import (
"strings"
"testing"
- "github.com/ethereum/go-ethereum/accounts"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/internal/ethapi"
- "github.com/ethereum/go-ethereum/signer/core"
- "github.com/ethereum/go-ethereum/signer/core/apitypes"
- "github.com/ethereum/go-ethereum/signer/storage"
+ "github.com/scroll-tech/go-ethereum/accounts"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/hexutil"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/internal/ethapi"
+ "github.com/scroll-tech/go-ethereum/signer/core"
+ "github.com/scroll-tech/go-ethereum/signer/core/apitypes"
+ "github.com/scroll-tech/go-ethereum/signer/storage"
)
const JS = `
diff --git a/signer/storage/aes_gcm_storage.go b/signer/storage/aes_gcm_storage.go
index 1dad34a3eb..bad1d843fe 100644
--- a/signer/storage/aes_gcm_storage.go
+++ b/signer/storage/aes_gcm_storage.go
@@ -25,7 +25,7 @@ import (
"io/ioutil"
"os"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/log"
)
type storedCredential struct {
diff --git a/signer/storage/aes_gcm_storage_test.go b/signer/storage/aes_gcm_storage_test.go
index 664ef12994..24c1cba6bb 100644
--- a/signer/storage/aes_gcm_storage_test.go
+++ b/signer/storage/aes_gcm_storage_test.go
@@ -23,8 +23,8 @@ import (
"io/ioutil"
"testing"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/log"
"github.com/mattn/go-colorable"
)
diff --git a/tests/block_test_util.go b/tests/block_test_util.go
index bcf861e09b..b03452354d 100644
--- a/tests/block_test_util.go
+++ b/tests/block_test_util.go
@@ -25,18 +25,18 @@ import (
"math/big"
"os"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/common/math"
- "github.com/ethereum/go-ethereum/consensus"
- "github.com/ethereum/go-ethereum/consensus/ethash"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/state"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/core/vm"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/hexutil"
+ "github.com/scroll-tech/go-ethereum/common/math"
+ "github.com/scroll-tech/go-ethereum/consensus"
+ "github.com/scroll-tech/go-ethereum/consensus/ethash"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/core/state"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/core/vm"
+ "github.com/scroll-tech/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/rlp"
)
// A BlockTest checks handling of entire blocks.
diff --git a/tests/difficulty_test.go b/tests/difficulty_test.go
index 192dff12cc..2c912290a1 100644
--- a/tests/difficulty_test.go
+++ b/tests/difficulty_test.go
@@ -20,8 +20,8 @@ import (
"math/big"
"testing"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/params"
)
var (
diff --git a/tests/difficulty_test_util.go b/tests/difficulty_test_util.go
index fe6e90b027..77b4b0ff50 100644
--- a/tests/difficulty_test_util.go
+++ b/tests/difficulty_test_util.go
@@ -20,11 +20,11 @@ import (
"fmt"
"math/big"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/math"
- "github.com/ethereum/go-ethereum/consensus/ethash"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/math"
+ "github.com/scroll-tech/go-ethereum/consensus/ethash"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/params"
)
//go:generate gencodec -type DifficultyTest -field-override difficultyTestMarshaling -out gen_difficultytest.go
diff --git a/tests/fuzzers/abi/abifuzzer.go b/tests/fuzzers/abi/abifuzzer.go
index 60233d158a..1288ada4ad 100644
--- a/tests/fuzzers/abi/abifuzzer.go
+++ b/tests/fuzzers/abi/abifuzzer.go
@@ -21,7 +21,7 @@ import (
"reflect"
"strings"
- "github.com/ethereum/go-ethereum/accounts/abi"
+ "github.com/scroll-tech/go-ethereum/accounts/abi"
fuzz "github.com/google/gofuzz"
)
diff --git a/tests/fuzzers/bitutil/compress_fuzz.go b/tests/fuzzers/bitutil/compress_fuzz.go
index 5903cf2f93..e0c2b546aa 100644
--- a/tests/fuzzers/bitutil/compress_fuzz.go
+++ b/tests/fuzzers/bitutil/compress_fuzz.go
@@ -19,7 +19,7 @@ package bitutil
import (
"bytes"
- "github.com/ethereum/go-ethereum/common/bitutil"
+ "github.com/scroll-tech/go-ethereum/common/bitutil"
)
// Fuzz implements a go-fuzz fuzzer method to test various encoding method
diff --git a/tests/fuzzers/bls12381/bls12381_fuzz.go b/tests/fuzzers/bls12381/bls12381_fuzz.go
index b283ed11fe..48f3d23648 100644
--- a/tests/fuzzers/bls12381/bls12381_fuzz.go
+++ b/tests/fuzzers/bls12381/bls12381_fuzz.go
@@ -29,7 +29,7 @@ import (
gnark "github.com/consensys/gnark-crypto/ecc/bls12-381"
"github.com/consensys/gnark-crypto/ecc/bls12-381/fp"
"github.com/consensys/gnark-crypto/ecc/bls12-381/fr"
- "github.com/ethereum/go-ethereum/crypto/bls12381"
+ "github.com/scroll-tech/go-ethereum/crypto/bls12381"
)
func FuzzCrossPairing(data []byte) int {
diff --git a/tests/fuzzers/bls12381/precompile_fuzzer.go b/tests/fuzzers/bls12381/precompile_fuzzer.go
index bc3c456526..648138a956 100644
--- a/tests/fuzzers/bls12381/precompile_fuzzer.go
+++ b/tests/fuzzers/bls12381/precompile_fuzzer.go
@@ -20,8 +20,8 @@ import (
"bytes"
"fmt"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/vm"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core/vm"
)
const (
diff --git a/tests/fuzzers/bn256/bn256_fuzz.go b/tests/fuzzers/bn256/bn256_fuzz.go
index 030ac19b3f..06c9fd5ff8 100644
--- a/tests/fuzzers/bn256/bn256_fuzz.go
+++ b/tests/fuzzers/bn256/bn256_fuzz.go
@@ -13,8 +13,8 @@ import (
"math/big"
"github.com/consensys/gnark-crypto/ecc/bn254"
- cloudflare "github.com/ethereum/go-ethereum/crypto/bn256/cloudflare"
- google "github.com/ethereum/go-ethereum/crypto/bn256/google"
+ cloudflare "github.com/scroll-tech/go-ethereum/crypto/bn256/cloudflare"
+ google "github.com/scroll-tech/go-ethereum/crypto/bn256/google"
)
func getG1Points(input io.Reader) (*cloudflare.G1, *google.G1, *bn254.G1Affine) {
diff --git a/tests/fuzzers/difficulty/debug/main.go b/tests/fuzzers/difficulty/debug/main.go
index 23516b3a0d..043a17478f 100644
--- a/tests/fuzzers/difficulty/debug/main.go
+++ b/tests/fuzzers/difficulty/debug/main.go
@@ -5,7 +5,7 @@ import (
"io/ioutil"
"os"
- "github.com/ethereum/go-ethereum/tests/fuzzers/difficulty"
+ "github.com/scroll-tech/go-ethereum/tests/fuzzers/difficulty"
)
func main() {
diff --git a/tests/fuzzers/difficulty/difficulty-fuzz.go b/tests/fuzzers/difficulty/difficulty-fuzz.go
index e4c5dcf57c..a62406447d 100644
--- a/tests/fuzzers/difficulty/difficulty-fuzz.go
+++ b/tests/fuzzers/difficulty/difficulty-fuzz.go
@@ -23,8 +23,8 @@ import (
"io"
"math/big"
- "github.com/ethereum/go-ethereum/consensus/ethash"
- "github.com/ethereum/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/consensus/ethash"
+ "github.com/scroll-tech/go-ethereum/core/types"
)
type fuzzer struct {
diff --git a/tests/fuzzers/keystore/keystore-fuzzer.go b/tests/fuzzers/keystore/keystore-fuzzer.go
index e3bcae92e1..88b0b91b46 100644
--- a/tests/fuzzers/keystore/keystore-fuzzer.go
+++ b/tests/fuzzers/keystore/keystore-fuzzer.go
@@ -19,7 +19,7 @@ package keystore
import (
"os"
- "github.com/ethereum/go-ethereum/accounts/keystore"
+ "github.com/scroll-tech/go-ethereum/accounts/keystore"
)
func Fuzz(input []byte) int {
diff --git a/tests/fuzzers/les/debug/main.go b/tests/fuzzers/les/debug/main.go
index 09e087d4c8..f8aa7308e3 100644
--- a/tests/fuzzers/les/debug/main.go
+++ b/tests/fuzzers/les/debug/main.go
@@ -21,7 +21,7 @@ import (
"io/ioutil"
"os"
- "github.com/ethereum/go-ethereum/tests/fuzzers/les"
+ "github.com/scroll-tech/go-ethereum/tests/fuzzers/les"
)
func main() {
diff --git a/tests/fuzzers/les/les-fuzzer.go b/tests/fuzzers/les/les-fuzzer.go
index 3e10171873..52dff68601 100644
--- a/tests/fuzzers/les/les-fuzzer.go
+++ b/tests/fuzzers/les/les-fuzzer.go
@@ -22,17 +22,17 @@ import (
"io"
"math/big"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/consensus/ethash"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/core/vm"
- "github.com/ethereum/go-ethereum/crypto"
- l "github.com/ethereum/go-ethereum/les"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/rlp"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/consensus/ethash"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/core/vm"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ l "github.com/scroll-tech/go-ethereum/les"
+ "github.com/scroll-tech/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/trie"
)
var (
diff --git a/tests/fuzzers/rangeproof/debug/main.go b/tests/fuzzers/rangeproof/debug/main.go
index a81c69fea5..dc89a28a84 100644
--- a/tests/fuzzers/rangeproof/debug/main.go
+++ b/tests/fuzzers/rangeproof/debug/main.go
@@ -21,7 +21,7 @@ import (
"io/ioutil"
"os"
- "github.com/ethereum/go-ethereum/tests/fuzzers/rangeproof"
+ "github.com/scroll-tech/go-ethereum/tests/fuzzers/rangeproof"
)
func main() {
diff --git a/tests/fuzzers/rangeproof/rangeproof-fuzzer.go b/tests/fuzzers/rangeproof/rangeproof-fuzzer.go
index 09ee6bb9c7..cdbfa98e39 100644
--- a/tests/fuzzers/rangeproof/rangeproof-fuzzer.go
+++ b/tests/fuzzers/rangeproof/rangeproof-fuzzer.go
@@ -23,9 +23,9 @@ import (
"io"
"sort"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/ethdb/memorydb"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/ethdb/memorydb"
+ "github.com/scroll-tech/go-ethereum/trie"
)
type kv struct {
diff --git a/tests/fuzzers/rlp/rlp_fuzzer.go b/tests/fuzzers/rlp/rlp_fuzzer.go
index 18b36287b5..d4c733f383 100644
--- a/tests/fuzzers/rlp/rlp_fuzzer.go
+++ b/tests/fuzzers/rlp/rlp_fuzzer.go
@@ -20,8 +20,8 @@ import (
"bytes"
"fmt"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/rlp"
)
func decodeEncode(input []byte, val interface{}, i int) {
diff --git a/tests/fuzzers/runtime/runtime_fuzz.go b/tests/fuzzers/runtime/runtime_fuzz.go
index 9b96045752..4e79fc54a8 100644
--- a/tests/fuzzers/runtime/runtime_fuzz.go
+++ b/tests/fuzzers/runtime/runtime_fuzz.go
@@ -17,7 +17,7 @@
package runtime
import (
- "github.com/ethereum/go-ethereum/core/vm/runtime"
+ "github.com/scroll-tech/go-ethereum/core/vm/runtime"
)
// Fuzz is the basic entry point for the go-fuzz tool
diff --git a/tests/fuzzers/secp256k1/secp_fuzzer.go b/tests/fuzzers/secp256k1/secp_fuzzer.go
index 53845b6433..a8f269936b 100644
--- a/tests/fuzzers/secp256k1/secp_fuzzer.go
+++ b/tests/fuzzers/secp256k1/secp_fuzzer.go
@@ -22,7 +22,7 @@ import (
"fmt"
"github.com/btcsuite/btcd/btcec"
- "github.com/ethereum/go-ethereum/crypto/secp256k1"
+ "github.com/scroll-tech/go-ethereum/crypto/secp256k1"
fuzz "github.com/google/gofuzz"
)
diff --git a/tests/fuzzers/stacktrie/debug/main.go b/tests/fuzzers/stacktrie/debug/main.go
index 1ec28a8ef1..7ddcfc1f29 100644
--- a/tests/fuzzers/stacktrie/debug/main.go
+++ b/tests/fuzzers/stacktrie/debug/main.go
@@ -5,7 +5,7 @@ import (
"io/ioutil"
"os"
- "github.com/ethereum/go-ethereum/tests/fuzzers/stacktrie"
+ "github.com/scroll-tech/go-ethereum/tests/fuzzers/stacktrie"
)
func main() {
diff --git a/tests/fuzzers/stacktrie/trie_fuzzer.go b/tests/fuzzers/stacktrie/trie_fuzzer.go
index e73ef4851a..e8f90d09f2 100644
--- a/tests/fuzzers/stacktrie/trie_fuzzer.go
+++ b/tests/fuzzers/stacktrie/trie_fuzzer.go
@@ -25,9 +25,9 @@ import (
"io"
"sort"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/ethdb"
+ "github.com/scroll-tech/go-ethereum/trie"
"golang.org/x/crypto/sha3"
)
diff --git a/tests/fuzzers/trie/trie-fuzzer.go b/tests/fuzzers/trie/trie-fuzzer.go
index e993af47cf..aca71ff454 100644
--- a/tests/fuzzers/trie/trie-fuzzer.go
+++ b/tests/fuzzers/trie/trie-fuzzer.go
@@ -21,9 +21,9 @@ import (
"encoding/binary"
"fmt"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/ethdb/memorydb"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/ethdb/memorydb"
+ "github.com/scroll-tech/go-ethereum/trie"
)
// randTest performs random trie operations.
diff --git a/tests/fuzzers/txfetcher/txfetcher_fuzzer.go b/tests/fuzzers/txfetcher/txfetcher_fuzzer.go
index d1d6fdc665..e85d942ee0 100644
--- a/tests/fuzzers/txfetcher/txfetcher_fuzzer.go
+++ b/tests/fuzzers/txfetcher/txfetcher_fuzzer.go
@@ -23,10 +23,10 @@ import (
"math/rand"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/mclock"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/eth/fetcher"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/mclock"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/eth/fetcher"
)
var (
diff --git a/tests/fuzzers/vflux/clientpool-fuzzer.go b/tests/fuzzers/vflux/clientpool-fuzzer.go
index 0414c001ec..5dd705d19b 100644
--- a/tests/fuzzers/vflux/clientpool-fuzzer.go
+++ b/tests/fuzzers/vflux/clientpool-fuzzer.go
@@ -24,14 +24,14 @@ import (
"math/big"
"time"
- "github.com/ethereum/go-ethereum/common/mclock"
- "github.com/ethereum/go-ethereum/ethdb/memorydb"
- "github.com/ethereum/go-ethereum/les/vflux"
- vfs "github.com/ethereum/go-ethereum/les/vflux/server"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/enr"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/common/mclock"
+ "github.com/scroll-tech/go-ethereum/ethdb/memorydb"
+ "github.com/scroll-tech/go-ethereum/les/vflux"
+ vfs "github.com/scroll-tech/go-ethereum/les/vflux/server"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/p2p/enode"
+ "github.com/scroll-tech/go-ethereum/p2p/enr"
+ "github.com/scroll-tech/go-ethereum/rlp"
)
var (
diff --git a/tests/fuzzers/vflux/debug/main.go b/tests/fuzzers/vflux/debug/main.go
index 1d4a5ff19c..c49c22780d 100644
--- a/tests/fuzzers/vflux/debug/main.go
+++ b/tests/fuzzers/vflux/debug/main.go
@@ -21,8 +21,8 @@ import (
"io/ioutil"
"os"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/tests/fuzzers/vflux"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/tests/fuzzers/vflux"
)
func main() {
diff --git a/tests/gen_btheader.go b/tests/gen_btheader.go
index 4387f8db41..36f2648fbf 100644
--- a/tests/gen_btheader.go
+++ b/tests/gen_btheader.go
@@ -6,10 +6,10 @@ import (
"encoding/json"
"math/big"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/common/math"
- "github.com/ethereum/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/hexutil"
+ "github.com/scroll-tech/go-ethereum/common/math"
+ "github.com/scroll-tech/go-ethereum/core/types"
)
var _ = (*btHeaderMarshaling)(nil)
diff --git a/tests/gen_difficultytest.go b/tests/gen_difficultytest.go
index cd15ae31b5..e22e968e1d 100644
--- a/tests/gen_difficultytest.go
+++ b/tests/gen_difficultytest.go
@@ -6,8 +6,8 @@ import (
"encoding/json"
"math/big"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/math"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/math"
)
var _ = (*difficultyTestMarshaling)(nil)
diff --git a/tests/gen_stenv.go b/tests/gen_stenv.go
index ecf7af8503..2b5b1310cd 100644
--- a/tests/gen_stenv.go
+++ b/tests/gen_stenv.go
@@ -7,8 +7,8 @@ import (
"errors"
"math/big"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/math"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/math"
)
var _ = (*stEnvMarshaling)(nil)
diff --git a/tests/gen_sttransaction.go b/tests/gen_sttransaction.go
index 7693a207a5..64434d89bd 100644
--- a/tests/gen_sttransaction.go
+++ b/tests/gen_sttransaction.go
@@ -6,9 +6,9 @@ import (
"encoding/json"
"math/big"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/common/math"
- "github.com/ethereum/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/common/hexutil"
+ "github.com/scroll-tech/go-ethereum/common/math"
+ "github.com/scroll-tech/go-ethereum/core/types"
)
var _ = (*stTransactionMarshaling)(nil)
diff --git a/tests/init.go b/tests/init.go
index d6b5b3043d..28a82fd1d4 100644
--- a/tests/init.go
+++ b/tests/init.go
@@ -21,7 +21,7 @@ import (
"math/big"
"sort"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/params"
)
// Forks table defines supported forks and their chain config.
diff --git a/tests/init_test.go b/tests/init_test.go
index 312ad8869a..38b5afa5a0 100644
--- a/tests/init_test.go
+++ b/tests/init_test.go
@@ -30,7 +30,7 @@ import (
"strings"
"testing"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/params"
)
var (
diff --git a/tests/rlp_test_util.go b/tests/rlp_test_util.go
index 9069ec55a1..763cfae327 100644
--- a/tests/rlp_test_util.go
+++ b/tests/rlp_test_util.go
@@ -24,7 +24,7 @@ import (
"math/big"
"strings"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/rlp"
)
// RLPTest is the JSON structure of a single RLP test.
diff --git a/tests/state_test.go b/tests/state_test.go
index 9554e75630..414d353bd9 100644
--- a/tests/state_test.go
+++ b/tests/state_test.go
@@ -23,7 +23,7 @@ import (
"reflect"
"testing"
- "github.com/ethereum/go-ethereum/core/vm"
+ "github.com/scroll-tech/go-ethereum/core/vm"
)
func TestState(t *testing.T) {
diff --git a/tests/state_test_util.go b/tests/state_test_util.go
index f7fb08bfbc..b0ea4bbcbf 100644
--- a/tests/state_test_util.go
+++ b/tests/state_test_util.go
@@ -24,19 +24,19 @@ import (
"strconv"
"strings"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/common/math"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/state"
- "github.com/ethereum/go-ethereum/core/state/snapshot"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/core/vm"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/hexutil"
+ "github.com/scroll-tech/go-ethereum/common/math"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/core/state"
+ "github.com/scroll-tech/go-ethereum/core/state/snapshot"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/core/vm"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/ethdb"
+ "github.com/scroll-tech/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/rlp"
"golang.org/x/crypto/sha3"
)
diff --git a/tests/transaction_test.go b/tests/transaction_test.go
index cb0f262318..016e8a477e 100644
--- a/tests/transaction_test.go
+++ b/tests/transaction_test.go
@@ -19,7 +19,7 @@ package tests
import (
"testing"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/params"
)
func TestTransaction(t *testing.T) {
diff --git a/tests/transaction_test_util.go b/tests/transaction_test_util.go
index 82ee01de15..118d58b1fd 100644
--- a/tests/transaction_test_util.go
+++ b/tests/transaction_test_util.go
@@ -19,12 +19,12 @@ package tests
import (
"fmt"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/hexutil"
+ "github.com/scroll-tech/go-ethereum/core"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/params"
+ "github.com/scroll-tech/go-ethereum/rlp"
)
// TransactionTest checks RLP decoding and sender derivation of transactions.
diff --git a/trie/committer.go b/trie/committer.go
index 0721990a21..edc3685391 100644
--- a/trie/committer.go
+++ b/trie/committer.go
@@ -21,8 +21,8 @@ import (
"fmt"
"sync"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/crypto"
"golang.org/x/crypto/sha3"
)
diff --git a/trie/database.go b/trie/database.go
index 58ca4e6f3c..7b25d96e09 100644
--- a/trie/database.go
+++ b/trie/database.go
@@ -26,12 +26,12 @@ import (
"time"
"github.com/VictoriaMetrics/fastcache"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/metrics"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/ethdb"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/metrics"
+ "github.com/scroll-tech/go-ethereum/rlp"
)
var (
diff --git a/trie/database_test.go b/trie/database_test.go
index 81c469500f..7a6f9af3eb 100644
--- a/trie/database_test.go
+++ b/trie/database_test.go
@@ -19,8 +19,8 @@ package trie
import (
"testing"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/ethdb/memorydb"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/ethdb/memorydb"
)
// Tests that the trie database returns a missing trie node error if attempting
diff --git a/trie/errors.go b/trie/errors.go
index 567b80078c..7423c5c4c3 100644
--- a/trie/errors.go
+++ b/trie/errors.go
@@ -19,7 +19,7 @@ package trie
import (
"fmt"
- "github.com/ethereum/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common"
)
// MissingNodeError is returned by the trie functions (TryGet, TryUpdate, TryDelete)
diff --git a/trie/hasher.go b/trie/hasher.go
index 3a62a2f119..286d0d6d4a 100644
--- a/trie/hasher.go
+++ b/trie/hasher.go
@@ -19,8 +19,8 @@ package trie
import (
"sync"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/rlp"
"golang.org/x/crypto/sha3"
)
diff --git a/trie/iterator.go b/trie/iterator.go
index 406f216c22..af787aa7b5 100644
--- a/trie/iterator.go
+++ b/trie/iterator.go
@@ -21,9 +21,9 @@ import (
"container/heap"
"errors"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/ethdb"
+ "github.com/scroll-tech/go-ethereum/rlp"
)
// Iterator is a key-value trie iterator that traverses a Trie.
diff --git a/trie/iterator_test.go b/trie/iterator_test.go
index 95cafdd3bd..46920e9541 100644
--- a/trie/iterator_test.go
+++ b/trie/iterator_test.go
@@ -23,10 +23,10 @@ import (
"math/rand"
"testing"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/ethdb/memorydb"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/ethdb"
+ "github.com/scroll-tech/go-ethereum/ethdb/memorydb"
)
func TestIterator(t *testing.T) {
diff --git a/trie/node.go b/trie/node.go
index f4055e779a..2ca46be070 100644
--- a/trie/node.go
+++ b/trie/node.go
@@ -21,8 +21,8 @@ import (
"io"
"strings"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/rlp"
)
var indices = []string{"0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f", "[17]"}
diff --git a/trie/node_test.go b/trie/node_test.go
index 52720f1c77..d107c9e819 100644
--- a/trie/node_test.go
+++ b/trie/node_test.go
@@ -20,7 +20,7 @@ import (
"bytes"
"testing"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/rlp"
)
func newTestFullNode(v []byte) []interface{} {
diff --git a/trie/proof.go b/trie/proof.go
index 51ecea0c39..f29f3b83bf 100644
--- a/trie/proof.go
+++ b/trie/proof.go
@@ -21,11 +21,11 @@ import (
"errors"
"fmt"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/ethdb/memorydb"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/ethdb"
+ "github.com/scroll-tech/go-ethereum/ethdb/memorydb"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/rlp"
)
// Prove constructs a merkle proof for key. The result contains all encoded nodes
diff --git a/trie/proof_test.go b/trie/proof_test.go
index 95ad6169c3..2155ae0fbd 100644
--- a/trie/proof_test.go
+++ b/trie/proof_test.go
@@ -25,9 +25,9 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/ethdb/memorydb"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/ethdb/memorydb"
)
func init() {
diff --git a/trie/secure_trie.go b/trie/secure_trie.go
index 18be12d34a..113ef70260 100644
--- a/trie/secure_trie.go
+++ b/trie/secure_trie.go
@@ -19,10 +19,10 @@ package trie
import (
"fmt"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/rlp"
)
// SecureTrie wraps a trie with key hashing. In a secure trie, all
diff --git a/trie/secure_trie_test.go b/trie/secure_trie_test.go
index fb6c38ee22..b81b4e1ad5 100644
--- a/trie/secure_trie_test.go
+++ b/trie/secure_trie_test.go
@@ -22,9 +22,9 @@ import (
"sync"
"testing"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/ethdb/memorydb"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/ethdb/memorydb"
)
func newEmptySecure() *SecureTrie {
diff --git a/trie/stacktrie.go b/trie/stacktrie.go
index f9ff10b62d..2e9f98bac7 100644
--- a/trie/stacktrie.go
+++ b/trie/stacktrie.go
@@ -25,10 +25,10 @@ import (
"io"
"sync"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/ethdb"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/rlp"
)
var ErrCommitDisabled = errors.New("no database for committing")
diff --git a/trie/stacktrie_test.go b/trie/stacktrie_test.go
index fb39e42525..9ce7cf71ea 100644
--- a/trie/stacktrie_test.go
+++ b/trie/stacktrie_test.go
@@ -21,9 +21,9 @@ import (
"math/big"
"testing"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/ethdb/memorydb"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/ethdb/memorydb"
)
func TestStackTrieInsertAndHash(t *testing.T) {
diff --git a/trie/sync.go b/trie/sync.go
index 3a6076ff8f..cb84585feb 100644
--- a/trie/sync.go
+++ b/trie/sync.go
@@ -20,10 +20,10 @@ import (
"errors"
"fmt"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/prque"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/ethdb"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/common/prque"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/ethdb"
)
// ErrNotRequested is returned by the trie sync when it's requested to process a
diff --git a/trie/sync_bloom.go b/trie/sync_bloom.go
index 91e5e6711d..6d47f757db 100644
--- a/trie/sync_bloom.go
+++ b/trie/sync_bloom.go
@@ -23,11 +23,11 @@ import (
"sync/atomic"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/metrics"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core/rawdb"
+ "github.com/scroll-tech/go-ethereum/ethdb"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/metrics"
bloomfilter "github.com/holiman/bloomfilter/v2"
)
diff --git a/trie/sync_test.go b/trie/sync_test.go
index cb3283875d..1892462d41 100644
--- a/trie/sync_test.go
+++ b/trie/sync_test.go
@@ -20,9 +20,9 @@ import (
"bytes"
"testing"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/ethdb/memorydb"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/ethdb/memorydb"
)
// makeTestTrie create a sample test trie to test node-wise reconstruction.
diff --git a/trie/trie.go b/trie/trie.go
index 13343112b8..1befc0145e 100644
--- a/trie/trie.go
+++ b/trie/trie.go
@@ -23,11 +23,11 @@ import (
"fmt"
"sync"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/log"
+ "github.com/scroll-tech/go-ethereum/rlp"
)
var (
diff --git a/trie/trie_test.go b/trie/trie_test.go
index be0df8a544..1f35d9e3d3 100644
--- a/trie/trie_test.go
+++ b/trie/trie_test.go
@@ -31,13 +31,13 @@ import (
"testing/quick"
"github.com/davecgh/go-spew/spew"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/ethdb/leveldb"
- "github.com/ethereum/go-ethereum/ethdb/memorydb"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/scroll-tech/go-ethereum/common"
+ "github.com/scroll-tech/go-ethereum/core/types"
+ "github.com/scroll-tech/go-ethereum/crypto"
+ "github.com/scroll-tech/go-ethereum/ethdb"
+ "github.com/scroll-tech/go-ethereum/ethdb/leveldb"
+ "github.com/scroll-tech/go-ethereum/ethdb/memorydb"
+ "github.com/scroll-tech/go-ethereum/rlp"
"golang.org/x/crypto/sha3"
)