From 3a25a3f53d05cb3440af24f4a59445f2194ff099 Mon Sep 17 00:00:00 2001 From: edudukin Date: Sat, 19 Apr 2025 17:13:15 +0200 Subject: [PATCH] refactor --- .travis.yml | 2 +- README.md | 8 +- SECURITY.md | 14 +- accounts/abi/abi.go | 4 +- accounts/abi/abi_test.go | 8 +- accounts/abi/abigen/bind.go | 4 +- accounts/abi/abigen/bind_test.go | 236 +++++++++--------- accounts/abi/abigen/bindv2.go | 2 +- accounts/abi/abigen/bindv2_test.go | 4 +- accounts/abi/abigen/source.go.tpl | 12 +- accounts/abi/abigen/source2.go.tpl | 8 +- accounts/abi/abigen/template.go | 2 +- .../abigen/testdata/v2/callbackparam.go.txt | 8 +- .../abi/abigen/testdata/v2/crowdsale.go.txt | 8 +- accounts/abi/abigen/testdata/v2/dao.go.txt | 8 +- .../testdata/v2/deeplynestedarray.go.txt | 8 +- accounts/abi/abigen/testdata/v2/empty.go.txt | 8 +- .../abigen/testdata/v2/eventchecker.go.txt | 8 +- accounts/abi/abigen/testdata/v2/getter.go.txt | 8 +- .../testdata/v2/identifiercollision.go.txt | 8 +- .../abigen/testdata/v2/inputchecker.go.txt | 8 +- .../abi/abigen/testdata/v2/interactor.go.txt | 8 +- .../abigen/testdata/v2/nameconflict.go.txt | 8 +- .../testdata/v2/numericmethodname.go.txt | 8 +- .../abigen/testdata/v2/outputchecker.go.txt | 8 +- .../abi/abigen/testdata/v2/overload.go.txt | 8 +- .../abigen/testdata/v2/rangekeyword.go.txt | 8 +- accounts/abi/abigen/testdata/v2/slicer.go.txt | 8 +- .../abi/abigen/testdata/v2/structs-abi.go.txt | 8 +- .../abi/abigen/testdata/v2/structs.go.txt | 8 +- accounts/abi/abigen/testdata/v2/token.go.txt | 8 +- accounts/abi/abigen/testdata/v2/tuple.go.txt | 8 +- accounts/abi/abigen/testdata/v2/tupler.go.txt | 8 +- .../abi/abigen/testdata/v2/underscorer.go.txt | 8 +- accounts/abi/bind/backends/simulated.go | 10 +- accounts/abi/bind/old.go | 24 +- accounts/abi/bind/v2/auth.go | 12 +- accounts/abi/bind/v2/backend.go | 6 +- accounts/abi/bind/v2/base.go | 10 +- accounts/abi/bind/v2/base_test.go | 16 +- accounts/abi/bind/v2/dep_tree.go | 4 +- accounts/abi/bind/v2/dep_tree_test.go | 6 +- accounts/abi/bind/v2/generate_test.go | 18 +- .../bind/v2/internal/contracts/db/bindings.go | 8 +- .../v2/internal/contracts/events/bindings.go | 8 +- .../contracts/nested_libraries/bindings.go | 8 +- .../contracts/solc_errors/bindings.go | 8 +- .../contracts/uint256arrayreturn/bindings.go | 8 +- accounts/abi/bind/v2/lib.go | 12 +- accounts/abi/bind/v2/lib_test.go | 26 +- accounts/abi/bind/v2/util.go | 8 +- accounts/abi/bind/v2/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 | 6 +- 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 +- .../usbwallet/trezor/messages-common.proto | 2 +- .../usbwallet/trezor/messages-ethereum.proto | 2 +- .../trezor/messages-management.proto | 2 +- accounts/usbwallet/trezor/messages.proto | 2 +- accounts/usbwallet/wallet.go | 12 +- beacon/blsync/block_sync.go | 16 +- beacon/blsync/block_sync_test.go | 8 +- beacon/blsync/client.go | 24 +- beacon/blsync/engineclient.go | 14 +- beacon/engine/errors.go | 4 +- beacon/engine/gen_blockparams.go | 6 +- beacon/engine/gen_ed.go | 6 +- beacon/engine/gen_epe.go | 2 +- beacon/engine/types.go | 10 +- beacon/light/api/api_server.go | 10 +- beacon/light/api/light_api.go | 12 +- beacon/light/canonical.go | 8 +- beacon/light/committee_chain.go | 16 +- beacon/light/committee_chain_test.go | 8 +- beacon/light/head_tracker.go | 8 +- beacon/light/request/scheduler.go | 2 +- beacon/light/request/server.go | 4 +- beacon/light/request/server_test.go | 2 +- beacon/light/sync/head_sync.go | 6 +- beacon/light/sync/head_sync_test.go | 6 +- beacon/light/sync/test_helpers.go | 6 +- beacon/light/sync/types.go | 6 +- beacon/light/sync/update_sync.go | 12 +- beacon/light/sync/update_sync_test.go | 4 +- beacon/light/test_helpers.go | 8 +- beacon/merkle/merkle.go | 4 +- beacon/params/config.go | 8 +- beacon/params/networks.go | 2 +- beacon/types/beacon_block.go | 4 +- beacon/types/beacon_block_test.go | 2 +- beacon/types/committee.go | 6 +- beacon/types/exec_header.go | 4 +- beacon/types/exec_payload.go | 6 +- beacon/types/gen_header_json.go | 2 +- beacon/types/gen_syncaggregate_json.go | 2 +- beacon/types/header.go | 6 +- beacon/types/light_sync.go | 8 +- build/ci.go | 14 +- build/deb/ethereum/deb.control | 4 +- build/nsis.install.nsh | 6 +- build/update-license.go | 2 +- cmd/abidump/main.go | 4 +- cmd/abigen/main.go | 12 +- cmd/blsync/main.go | 14 +- cmd/clef/main.go | 40 +-- cmd/clef/run_test.go | 4 +- cmd/clef/tutorial.md | 6 +- cmd/devp2p/crawl.go | 4 +- cmd/devp2p/discv4cmd.go | 16 +- 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 | 20 +- cmd/devp2p/internal/ethtest/chain_test.go | 6 +- cmd/devp2p/internal/ethtest/conn.go | 12 +- cmd/devp2p/internal/ethtest/engine.go | 2 +- cmd/devp2p/internal/ethtest/protocol.go | 4 +- cmd/devp2p/internal/ethtest/snap.go | 16 +- cmd/devp2p/internal/ethtest/suite.go | 18 +- cmd/devp2p/internal/ethtest/suite_test.go | 16 +- cmd/devp2p/internal/ethtest/transaction.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 | 6 +- cmd/devp2p/main.go | 6 +- cmd/devp2p/nodeset.go | 4 +- cmd/devp2p/nodesetcmd.go | 10 +- cmd/devp2p/rlpxcmd.go | 12 +- cmd/devp2p/runtest.go | 8 +- cmd/era/main.go | 14 +- cmd/ethkey/changepassword.go | 4 +- cmd/ethkey/generate.go | 6 +- cmd/ethkey/inspect.go | 6 +- cmd/ethkey/main.go | 2 +- cmd/ethkey/message.go | 10 +- cmd/ethkey/run_test.go | 4 +- cmd/ethkey/utils.go | 2 +- cmd/evm/blockrunner.go | 6 +- cmd/evm/eofparse.go | 4 +- cmd/evm/eofparse_test.go | 4 +- cmd/evm/internal/t8ntool/block.go | 14 +- cmd/evm/internal/t8ntool/execution.go | 38 +-- cmd/evm/internal/t8ntool/file_tracer.go | 10 +- cmd/evm/internal/t8ntool/flags.go | 4 +- cmd/evm/internal/t8ntool/gen_execresult.go | 8 +- cmd/evm/internal/t8ntool/gen_header.go | 8 +- cmd/evm/internal/t8ntool/gen_stenv.go | 6 +- cmd/evm/internal/t8ntool/transaction.go | 14 +- cmd/evm/internal/t8ntool/transition.go | 24 +- cmd/evm/internal/t8ntool/tx_iterator.go | 12 +- cmd/evm/main.go | 16 +- cmd/evm/reporter.go | 4 +- cmd/evm/runner.go | 26 +- cmd/evm/staterunner.go | 10 +- cmd/evm/t8n_test.go | 6 +- cmd/evm/testdata/30/README.txt | 2 +- cmd/geth/accountcmd.go | 10 +- cmd/geth/chaincmd.go | 30 +-- cmd/geth/config.go | 34 +-- cmd/geth/consolecmd.go | 4 +- cmd/geth/consolecmd_test.go | 2 +- cmd/geth/dbcmd.go | 26 +- cmd/geth/exportcmd_test.go | 2 +- cmd/geth/logging_test.go | 2 +- cmd/geth/logtestcmd_active.go | 4 +- cmd/geth/main.go | 26 +- cmd/geth/misccmd.go | 2 +- cmd/geth/run_test.go | 6 +- cmd/geth/snapshot.go | 22 +- cmd/geth/testdata/vcheck/data.json | 4 +- cmd/geth/testdata/vcheck/vulnerabilities.json | 48 ++-- cmd/geth/verkle.go | 8 +- cmd/geth/version_check.go | 2 +- cmd/rlpdump/main.go | 4 +- cmd/rlpdump/rlpdump_test.go | 4 +- cmd/utils/cmd.go | 28 +-- cmd/utils/export_test.go | 4 +- cmd/utils/flags.go | 80 +++--- cmd/utils/flags_legacy.go | 4 +- cmd/utils/history_test.go | 22 +- cmd/utils/prompt.go | 2 +- cmd/workload/filtertest.go | 14 +- cmd/workload/filtertestgen.go | 6 +- cmd/workload/historytest.go | 8 +- cmd/workload/historytestgen.go | 10 +- cmd/workload/main.go | 8 +- cmd/workload/testsuite.go | 12 +- common/bitutil/compress_test.go | 2 +- common/bytes.go | 2 +- common/debug.go | 2 +- common/hexutil/json_example_test.go | 2 +- common/prque/lazyqueue.go | 2 +- common/prque/lazyqueue_test.go | 2 +- common/types.go | 2 +- consensus/beacon/consensus.go | 22 +- consensus/clique/api.go | 12 +- consensus/clique/clique.go | 32 +-- consensus/clique/clique_test.go | 14 +- consensus/clique/snapshot.go | 14 +- consensus/clique/snapshot_test.go | 16 +- consensus/consensus.go | 12 +- consensus/ethash/consensus.go | 22 +- consensus/ethash/consensus_test.go | 8 +- consensus/ethash/difficulty.go | 2 +- consensus/ethash/ethash.go | 6 +- consensus/misc/dao.go | 8 +- consensus/misc/eip1559/eip1559.go | 8 +- consensus/misc/eip1559/eip1559_test.go | 6 +- consensus/misc/eip4844/eip4844.go | 6 +- consensus/misc/eip4844/eip4844_test.go | 4 +- consensus/misc/gaslimit.go | 2 +- console/bridge.go | 8 +- console/console.go | 12 +- console/console_test.go | 16 +- core/bench_test.go | 20 +- core/block_validator.go | 10 +- core/block_validator_test.go | 20 +- core/blockchain.go | 50 ++-- core/blockchain_insert.go | 8 +- core/blockchain_reader.go | 22 +- core/blockchain_repair_test.go | 16 +- core/blockchain_sethead_test.go | 22 +- core/blockchain_snapshot_test.go | 16 +- core/blockchain_test.go | 38 +-- core/chain_makers.go | 24 +- core/chain_makers_test.go | 18 +- core/dao_test.go | 8 +- core/error.go | 2 +- core/events.go | 2 +- core/evm.go | 14 +- core/filtermaps/chain_view.go | 6 +- core/filtermaps/checkpoints.go | 2 +- core/filtermaps/filtermaps.go | 14 +- core/filtermaps/indexer.go | 4 +- core/filtermaps/indexer_test.go | 16 +- core/filtermaps/map_renderer.go | 8 +- core/filtermaps/matcher.go | 8 +- core/filtermaps/matcher_backend.go | 4 +- core/filtermaps/matcher_test.go | 2 +- core/filtermaps/math.go | 2 +- core/filtermaps/math_test.go | 2 +- core/forkid/forkid.go | 6 +- core/forkid/forkid_test.go | 10 +- core/gen_genesis.go | 10 +- core/genesis.go | 30 +-- core/genesis_test.go | 18 +- core/headerchain.go | 18 +- core/headerchain_test.go | 12 +- core/history/historymode.go | 4 +- core/mkalloc.go | 6 +- core/rawdb/accessors_chain.go | 16 +- 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/accessors_sync.go | 8 +- core/rawdb/accessors_trie.go | 8 +- core/rawdb/ancient_scheme.go | 2 +- core/rawdb/ancient_utils.go | 4 +- core/rawdb/ancienttest/testsuite.go | 4 +- core/rawdb/chain_freezer.go | 8 +- core/rawdb/chain_iterator.go | 12 +- core/rawdb/chain_iterator_test.go | 6 +- core/rawdb/database.go | 10 +- core/rawdb/freezer.go | 6 +- core/rawdb/freezer_batch.go | 2 +- core/rawdb/freezer_memory.go | 8 +- core/rawdb/freezer_memory_test.go | 4 +- core/rawdb/freezer_meta.go | 4 +- core/rawdb/freezer_meta_test.go | 2 +- core/rawdb/freezer_resettable.go | 4 +- core/rawdb/freezer_resettable_test.go | 2 +- core/rawdb/freezer_table.go | 6 +- core/rawdb/freezer_table_test.go | 2 +- core/rawdb/freezer_test.go | 6 +- core/rawdb/key_length_iterator.go | 2 +- core/rawdb/schema.go | 6 +- core/rawdb/table.go | 2 +- core/rawdb/table_test.go | 2 +- core/rlp_test.go | 12 +- core/sender_cacher.go | 2 +- core/state/access_events.go | 8 +- core/state/access_events_test.go | 6 +- core/state/access_list.go | 2 +- core/state/database.go | 22 +- core/state/dump.go | 12 +- core/state/iterator.go | 8 +- core/state/iterator_test.go | 6 +- core/state/journal.go | 4 +- core/state/metrics.go | 2 +- core/state/pruner/bloom.go | 6 +- core/state/pruner/pruner.go | 18 +- core/state/reader.go | 22 +- core/state/snapshot/context.go | 10 +- core/state/snapshot/conversion.go | 14 +- core/state/snapshot/difflayer.go | 6 +- core/state/snapshot/difflayer_test.go | 6 +- core/state/snapshot/disklayer.go | 12 +- core/state/snapshot/disklayer_test.go | 8 +- core/state/snapshot/generate.go | 18 +- core/state/snapshot/generate_test.go | 22 +- core/state/snapshot/holdable_iterator.go | 4 +- core/state/snapshot/holdable_iterator_test.go | 4 +- 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/metrics.go | 2 +- core/state/snapshot/snapshot.go | 16 +- core/state/snapshot/snapshot_test.go | 10 +- core/state/snapshot/utils.go | 10 +- core/state/state_object.go | 12 +- core/state/state_object_test.go | 2 +- core/state/state_test.go | 10 +- core/state/statedb.go | 26 +- core/state/statedb_fuzz_test.go | 20 +- core/state/statedb_hooked.go | 14 +- core/state/statedb_hooked_test.go | 6 +- core/state/statedb_test.go | 32 +-- core/state/stateupdate.go | 6 +- core/state/sync.go | 10 +- core/state/sync_test.go | 20 +- core/state/transient_storage.go | 2 +- core/state/trie_prefetcher.go | 6 +- core/state/trie_prefetcher_test.go | 14 +- core/state_prefetcher.go | 8 +- core/state_processor.go | 16 +- core/state_processor_test.go | 24 +- core/state_transition.go | 12 +- core/stateless.go | 24 +- core/stateless/database.go | 8 +- core/stateless/encoding.go | 4 +- core/stateless/witness.go | 4 +- core/tracing/CHANGELOG.md | 12 +- core/tracing/hooks.go | 8 +- core/tracing/journal.go | 4 +- core/tracing/journal_test.go | 2 +- core/txindexer.go | 8 +- core/txindexer_test.go | 14 +- core/txpool/blobpool/blobpool.go | 26 +- core/txpool/blobpool/blobpool_test.go | 24 +- core/txpool/blobpool/config.go | 2 +- core/txpool/blobpool/evictheap.go | 2 +- core/txpool/blobpool/evictheap_test.go | 4 +- core/txpool/blobpool/interface.go | 8 +- core/txpool/blobpool/limbo.go | 8 +- core/txpool/blobpool/lookup.go | 2 +- core/txpool/blobpool/metrics.go | 2 +- core/txpool/legacypool/legacypool.go | 26 +- core/txpool/legacypool/legacypool2_test.go | 12 +- core/txpool/legacypool/legacypool_test.go | 22 +- core/txpool/legacypool/list.go | 4 +- core/txpool/legacypool/list_test.go | 6 +- core/txpool/legacypool/noncer.go | 4 +- core/txpool/locals/errors.go | 4 +- core/txpool/locals/journal.go | 8 +- core/txpool/locals/tx_tracker.go | 14 +- core/txpool/locals/tx_tracker_test.go | 22 +- core/txpool/reserver.go | 6 +- core/txpool/subpool.go | 10 +- core/txpool/txpool.go | 16 +- core/txpool/validation.go | 16 +- core/types.go | 6 +- core/types/account.go | 6 +- core/types/block.go | 6 +- core/types/block_test.go | 12 +- core/types/bloom9.go | 4 +- core/types/bloom9_test.go | 4 +- core/types/deposit_test.go | 4 +- core/types/gen_access_tuple.go | 2 +- core/types/gen_account.go | 6 +- core/types/gen_account_rlp.go | 2 +- core/types/gen_authorization.go | 4 +- core/types/gen_header_json.go | 4 +- core/types/gen_header_rlp.go | 2 +- core/types/gen_log_json.go | 4 +- core/types/gen_log_rlp.go | 2 +- core/types/gen_receipt_json.go | 4 +- core/types/gen_withdrawal_json.go | 4 +- core/types/gen_withdrawal_rlp.go | 2 +- core/types/hashes.go | 4 +- core/types/hashing.go | 6 +- core/types/hashing_test.go | 16 +- core/types/log.go | 4 +- core/types/log_test.go | 4 +- core/types/receipt.go | 10 +- core/types/receipt_test.go | 6 +- core/types/rlp_fuzzer_test.go | 2 +- core/types/state_account.go | 4 +- core/types/transaction.go | 6 +- core/types/transaction_marshalling.go | 6 +- core/types/transaction_signing.go | 8 +- core/types/transaction_signing_test.go | 8 +- core/types/transaction_test.go | 6 +- core/types/tx_access_list.go | 4 +- core/types/tx_blob.go | 8 +- core/types/tx_blob_test.go | 6 +- core/types/tx_dynamic_fee.go | 4 +- core/types/tx_legacy.go | 2 +- core/types/tx_setcode.go | 8 +- core/types/tx_setcode_test.go | 2 +- core/types/types_test.go | 6 +- core/types/withdrawal.go | 6 +- core/verkle_witness_test.go | 24 +- core/vm/analysis_legacy_test.go | 2 +- core/vm/common.go | 2 +- core/vm/contract.go | 4 +- core/vm/contracts.go | 14 +- core/vm/contracts_fuzz_test.go | 2 +- core/vm/contracts_test.go | 2 +- core/vm/eips.go | 6 +- core/vm/eof.go | 2 +- core/vm/eof_control_flow.go | 2 +- core/vm/eof_test.go | 2 +- core/vm/eof_validation_test.go | 4 +- core/vm/evm.go | 12 +- core/vm/gas_table.go | 6 +- core/vm/gas_table_test.go | 10 +- core/vm/instructions.go | 10 +- core/vm/instructions_test.go | 12 +- core/vm/interface.go | 14 +- core/vm/interpreter.go | 10 +- core/vm/interpreter_test.go | 8 +- core/vm/jump_table.go | 2 +- core/vm/jump_table_export.go | 2 +- core/vm/memory_test.go | 2 +- core/vm/operations_acl.go | 10 +- core/vm/operations_verkle.go | 6 +- core/vm/program/program.go | 2 +- core/vm/program/program_test.go | 4 +- 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 | 28 +-- core/vm/stack_table.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.go | 2 +- crypto/ecies/ecies_test.go | 2 +- crypto/ecies/params.go | 2 +- crypto/kzg4844/kzg4844.go | 2 +- crypto/kzg4844/kzg4844_ckzg_cgo.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_admin.go | 6 +- eth/api_backend.go | 40 +-- eth/api_backend_test.go | 26 +- eth/api_debug.go | 22 +- eth/api_debug_test.go | 14 +- eth/api_miner.go | 2 +- eth/backend.go | 70 +++--- eth/catalyst/api.go | 34 +-- eth/catalyst/api_test.go | 36 +-- eth/catalyst/queue.go | 8 +- eth/catalyst/simulated_beacon.go | 24 +- eth/catalyst/simulated_beacon_api.go | 6 +- eth/catalyst/simulated_beacon_test.go | 20 +- eth/catalyst/tester.go | 10 +- eth/downloader/api.go | 8 +- eth/downloader/beacondevsync.go | 4 +- eth/downloader/beaconsync.go | 10 +- eth/downloader/downloader.go | 24 +- eth/downloader/downloader_test.go | 28 +-- eth/downloader/events.go | 2 +- eth/downloader/fetchers.go | 6 +- eth/downloader/fetchers_concurrent.go | 8 +- eth/downloader/fetchers_concurrent_bodies.go | 6 +- .../fetchers_concurrent_receipts.go | 6 +- eth/downloader/metrics.go | 2 +- eth/downloader/peer.go | 10 +- eth/downloader/queue.go | 16 +- eth/downloader/queue_test.go | 14 +- eth/downloader/resultstore.go | 2 +- eth/downloader/skeleton.go | 12 +- eth/downloader/skeleton_test.go | 12 +- eth/downloader/statesync.go | 4 +- eth/downloader/testchain_test.go | 18 +- eth/dropper.go | 10 +- eth/ethconfig/config.go | 28 +-- eth/ethconfig/gen_config.go | 14 +- eth/fetcher/tx_fetcher.go | 14 +- eth/fetcher/tx_fetcher_test.go | 10 +- eth/filters/api.go | 14 +- eth/filters/api_test.go | 4 +- eth/filters/filter.go | 12 +- eth/filters/filter_system.go | 24 +- eth/filters/filter_system_test.go | 22 +- eth/filters/filter_test.go | 24 +- eth/gasestimator/gasestimator.go | 16 +- eth/gasprice/feehistory.go | 12 +- eth/gasprice/feehistory_test.go | 2 +- eth/gasprice/gasprice.go | 18 +- eth/gasprice/gasprice_test.go | 24 +- eth/handler.go | 34 +-- eth/handler_eth.go | 8 +- eth/handler_eth_test.go | 26 +- eth/handler_snap.go | 6 +- eth/handler_test.go | 26 +- eth/peer.go | 4 +- eth/peerset.go | 8 +- eth/protocols/eth/broadcast.go | 4 +- eth/protocols/eth/discovery.go | 8 +- eth/protocols/eth/dispatcher.go | 2 +- eth/protocols/eth/handler.go | 18 +- eth/protocols/eth/handler_test.go | 34 +-- eth/protocols/eth/handlers.go | 12 +- eth/protocols/eth/handshake.go | 8 +- eth/protocols/eth/handshake_test.go | 8 +- eth/protocols/eth/metrics.go | 2 +- 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/gentrie.go | 8 +- eth/protocols/snap/gentrie_test.go | 12 +- eth/protocols/snap/handler.go | 20 +- eth/protocols/snap/handler_fuzzing_test.go | 20 +- eth/protocols/snap/metrics.go | 2 +- eth/protocols/snap/peer.go | 6 +- eth/protocols/snap/progress_test.go | 2 +- eth/protocols/snap/protocol.go | 6 +- eth/protocols/snap/range.go | 2 +- eth/protocols/snap/range_test.go | 2 +- eth/protocols/snap/sort_test.go | 2 +- eth/protocols/snap/sync.go | 26 +- eth/protocols/snap/sync_test.go | 24 +- eth/protocols/snap/tracker.go | 2 +- eth/state_accessor.go | 20 +- eth/sync.go | 6 +- eth/sync_test.go | 10 +- eth/tracers/api.go | 34 +-- eth/tracers/api_test.go | 36 +-- eth/tracers/dir.go | 6 +- .../internal/tracetest/calltrace_test.go | 22 +- .../internal/tracetest/flat_calltrace_test.go | 18 +- .../internal/tracetest/prestate_test.go | 14 +- eth/tracers/internal/tracetest/supply_test.go | 24 +- eth/tracers/internal/tracetest/util.go | 16 +- eth/tracers/internal/util_test.go | 2 +- eth/tracers/js/goja.go | 20 +- eth/tracers/js/tracer_test.go | 12 +- eth/tracers/live.go | 2 +- eth/tracers/live/gen_supplyinfoburn.go | 2 +- eth/tracers/live/gen_supplyinfoissuance.go | 2 +- eth/tracers/live/noop.go | 10 +- eth/tracers/live/supply.go | 18 +- eth/tracers/logger/access_list_tracer.go | 8 +- eth/tracers/logger/gen_callframe.go | 6 +- eth/tracers/logger/gen_structlog.go | 8 +- eth/tracers/logger/logger.go | 14 +- eth/tracers/logger/logger_json.go | 12 +- eth/tracers/logger/logger_test.go | 10 +- eth/tracers/native/4byte.go | 12 +- eth/tracers/native/call.go | 18 +- eth/tracers/native/call_flat.go | 14 +- eth/tracers/native/call_flat_test.go | 12 +- eth/tracers/native/gen_account_json.go | 4 +- eth/tracers/native/gen_callframe_json.go | 6 +- eth/tracers/native/gen_flatcallaction_json.go | 4 +- eth/tracers/native/gen_flatcallresult_json.go | 4 +- eth/tracers/native/mux.go | 10 +- eth/tracers/native/noop.go | 10 +- eth/tracers/native/prestate.go | 20 +- eth/tracers/tracers_test.go | 18 +- ethclient/ethclient.go | 10 +- ethclient/ethclient_test.go | 28 +-- ethclient/example_test.go | 2 +- ethclient/gethclient/gethclient.go | 12 +- ethclient/gethclient/gethclient_test.go | 26 +- ethclient/signer.go | 4 +- ethclient/simulated/backend.go | 26 +- ethclient/simulated/backend_test.go | 12 +- ethclient/simulated/options.go | 4 +- ethclient/simulated/options_test.go | 8 +- ethclient/simulated/rollback_test.go | 2 +- ethclient/types_test.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 +- ethdb/pebble/pebble.go | 10 +- ethdb/pebble/pebble_test.go | 4 +- ethdb/remotedb/remotedb.go | 6 +- ethstats/ethstats.go | 24 +- event/example_feed_test.go | 2 +- event/example_scope_test.go | 2 +- event/example_subscription_test.go | 2 +- event/subscription.go | 2 +- graphql/graphiql.go | 4 +- graphql/graphql.go | 20 +- graphql/graphql_test.go | 26 +- graphql/service.go | 8 +- interfaces.go | 4 +- internal/blocktest/test_hash.go | 2 +- internal/cmdtest/test_cmd.go | 2 +- internal/debug/api.go | 2 +- internal/debug/flags.go | 8 +- internal/debug/trace.go | 2 +- internal/era/accumulator.go | 2 +- internal/era/builder.go | 8 +- internal/era/e2store/e2store_test.go | 2 +- internal/era/era.go | 8 +- internal/era/era_test.go | 6 +- internal/era/iterator.go | 4 +- internal/ethapi/addrlock.go | 2 +- internal/ethapi/api.go | 40 +-- internal/ethapi/api_test.go | 46 ++-- internal/ethapi/backend.go | 26 +- internal/ethapi/dbapi.go | 4 +- internal/ethapi/errors.go | 8 +- internal/ethapi/logtracer.go | 8 +- internal/ethapi/override/override.go | 12 +- internal/ethapi/override/override_test.go | 14 +- internal/ethapi/simulate.go | 24 +- internal/ethapi/simulate_test.go | 6 +- internal/ethapi/transaction_args.go | 22 +- internal/ethapi/transaction_args_test.go | 28 +-- internal/flags/flags.go | 2 +- internal/flags/helpers.go | 4 +- internal/guide/guide_test.go | 6 +- internal/jsre/deps/web3.js | 2 +- internal/jsre/jsre.go | 2 +- internal/shutdowncheck/shutdown_tracker.go | 8 +- internal/testlog/testlog.go | 2 +- internal/testlog/testlog_test.go | 2 +- internal/testrand/rand.go | 2 +- internal/version/version.go | 4 +- metrics/cpu_enabled.go | 2 +- metrics/cputime_unix.go | 2 +- metrics/exp/exp.go | 6 +- metrics/influxdb/influxdb.go | 2 +- metrics/influxdb/influxdb_test.go | 4 +- metrics/influxdb/influxdbv1.go | 4 +- metrics/influxdb/influxdbv2.go | 4 +- metrics/internal/sampledata.go | 2 +- metrics/internal/sampledata_test.go | 2 +- metrics/prometheus/collector.go | 2 +- metrics/prometheus/collector_test.go | 4 +- metrics/prometheus/prometheus.go | 4 +- miner/miner.go | 16 +- miner/miner_test.go | 28 +-- miner/ordering.go | 6 +- miner/ordering_test.go | 8 +- miner/payload_building.go | 16 +- miner/payload_building_test.go | 28 +-- miner/pending.go | 2 +- miner/worker.go | 22 +- node/api.go | 16 +- node/api_test.go | 2 +- node/config.go | 10 +- node/config_test.go | 4 +- node/database.go | 10 +- node/defaults.go | 6 +- node/endpoints.go | 4 +- node/jwt_auth.go | 2 +- node/node.go | 20 +- node/node_auth_test.go | 4 +- 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 | 72 +++--- p2p/config.go | 10 +- p2p/config_toml.go | 8 +- p2p/dial.go | 10 +- p2p/dial_test.go | 10 +- p2p/discover/common.go | 10 +- p2p/discover/lookup.go | 2 +- p2p/discover/metrics.go | 2 +- p2p/discover/node.go | 2 +- p2p/discover/ntp.go | 2 +- p2p/discover/table.go | 12 +- p2p/discover/table_reval.go | 4 +- p2p/discover/table_reval_test.go | 6 +- p2p/discover/table_test.go | 14 +- 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_talk.go | 6 +- p2p/discover/v5_udp.go | 12 +- p2p/discover/v5_udp_test.go | 14 +- 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 | 10 +- p2p/discover/v5wire/session.go | 8 +- p2p/dnsdisc/client.go | 12 +- p2p/dnsdisc/client_test.go | 14 +- 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 | 6 +- p2p/enode/node.go | 4 +- p2p/enode/node_test.go | 4 +- p2p/enode/nodedb.go | 4 +- 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.go | 2 +- p2p/nat/natupnp_test.go | 2 +- p2p/nat/stun.go | 2 +- p2p/netutil/iptrack.go | 2 +- p2p/netutil/iptrack_test.go | 2 +- 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 | 18 +- p2p/server_nat.go | 8 +- p2p/server_nat_test.go | 6 +- p2p/server_test.go | 12 +- 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 | 4 +- params/dao.go | 2 +- params/protocol_params.go | 2 +- rlp/decode.go | 2 +- rlp/decode_test.go | 2 +- rlp/encbuffer_example_test.go | 2 +- rlp/encode.go | 2 +- rlp/encode_test.go | 2 +- rlp/encoder_example_test.go | 2 +- rlp/iterator_test.go | 2 +- rlp/rlpgen/gen.go | 2 +- rlp/rlpgen/main.go | 2 +- rlp/rlpgen/testdata/bigint.out.txt | 2 +- rlp/rlpgen/testdata/nil.out.txt | 2 +- rlp/rlpgen/testdata/optional.out.txt | 2 +- rlp/rlpgen/testdata/rawvalue.in.txt | 2 +- rlp/rlpgen/testdata/rawvalue.out.txt | 2 +- rlp/rlpgen/testdata/uint256.out.txt | 2 +- rlp/rlpgen/testdata/uints.out.txt | 2 +- rlp/typecache.go | 2 +- rpc/client.go | 2 +- rpc/client_example_test.go | 4 +- rpc/client_opt_test.go | 2 +- rpc/client_test.go | 8 +- 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/subscription_test.go | 4 +- rpc/types.go | 4 +- rpc/types_test.go | 2 +- rpc/websocket.go | 2 +- rpc/websocket_test.go | 2 +- signer/core/api.go | 24 +- signer/core/api_test.go | 22 +- .../apitypes/signed_data_internal_test.go | 8 +- signer/core/apitypes/types.go | 16 +- signer/core/apitypes/types_test.go | 6 +- signer/core/auditlog.go | 10 +- signer/core/cliui.go | 8 +- signer/core/gnosis_safe.go | 8 +- signer/core/signed_data.go | 16 +- signer/core/signed_data_test.go | 14 +- 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.go | 4 +- tests/block_test_util.go | 34 +-- tests/difficulty_test.go | 2 +- tests/difficulty_test_util.go | 10 +- tests/fuzzers/bls12381/bls12381_fuzz.go | 2 +- tests/fuzzers/bls12381/precompile_fuzzer.go | 4 +- tests/fuzzers/bn256/bn256_fuzz.go | 6 +- tests/fuzzers/difficulty/difficulty-fuzz.go | 4 +- tests/fuzzers/rangeproof/rangeproof-fuzzer.go | 10 +- tests/fuzzers/secp256k1/secp_test.go | 2 +- tests/fuzzers/txfetcher/txfetcher_fuzzer.go | 8 +- tests/gen_btheader.go | 8 +- tests/gen_difficultytest.go | 4 +- tests/gen_stauthorization.go | 4 +- tests/gen_stenv.go | 4 +- tests/gen_sttransaction.go | 8 +- tests/init.go | 2 +- tests/init_test.go | 2 +- tests/rlp_test_util.go | 2 +- tests/state_test.go | 12 +- tests/state_test_util.go | 38 +-- tests/transaction_test.go | 2 +- tests/transaction_test_util.go | 12 +- trie/committer.go | 4 +- trie/database_test.go | 12 +- trie/errors.go | 2 +- trie/hasher.go | 4 +- trie/iterator.go | 4 +- trie/iterator_test.go | 10 +- trie/node.go | 4 +- trie/node_enc.go | 2 +- trie/node_test.go | 16 +- trie/proof.go | 6 +- trie/proof_test.go | 8 +- trie/secure_trie.go | 10 +- trie/secure_trie_test.go | 10 +- trie/stacktrie.go | 4 +- trie/stacktrie_fuzzer_test.go | 10 +- trie/stacktrie_test.go | 6 +- trie/sync.go | 18 +- trie/sync_test.go | 14 +- trie/tracer.go | 2 +- trie/tracer_test.go | 8 +- trie/trie.go | 10 +- trie/trie_id.go | 2 +- trie/trie_reader.go | 6 +- trie/trie_test.go | 16 +- trie/trienode/node.go | 2 +- trie/trienode/node_test.go | 4 +- trie/trienode/proof.go | 8 +- trie/utils/verkle.go | 4 +- trie/utils/verkle_test.go | 8 +- trie/verkle.go | 12 +- trie/verkle_test.go | 10 +- triedb/database.go | 16 +- triedb/database/database.go | 4 +- triedb/hashdb/database.go | 20 +- triedb/history.go | 4 +- triedb/pathdb/buffer.go | 10 +- triedb/pathdb/database.go | 16 +- triedb/pathdb/database_test.go | 16 +- triedb/pathdb/difflayer.go | 4 +- triedb/pathdb/difflayer_test.go | 18 +- triedb/pathdb/disklayer.go | 8 +- triedb/pathdb/execute.go | 12 +- triedb/pathdb/flush.go | 8 +- triedb/pathdb/history.go | 10 +- triedb/pathdb/history_inspect.go | 8 +- triedb/pathdb/history_test.go | 12 +- triedb/pathdb/holdable_iterator.go | 4 +- triedb/pathdb/holdable_iterator_test.go | 8 +- triedb/pathdb/iterator.go | 6 +- triedb/pathdb/iterator_binary.go | 2 +- triedb/pathdb/iterator_fast.go | 2 +- triedb/pathdb/iterator_test.go | 12 +- triedb/pathdb/journal.go | 10 +- triedb/pathdb/layertree.go | 4 +- triedb/pathdb/metrics.go | 2 +- triedb/pathdb/nodes.go | 14 +- triedb/pathdb/reader.go | 12 +- triedb/pathdb/states.go | 10 +- triedb/pathdb/states_test.go | 4 +- triedb/preimages.go | 6 +- triedb/states.go | 4 +- 923 files changed, 4208 insertions(+), 4208 deletions(-) diff --git a/.travis.yml b/.travis.yml index 43f8ced19c..db0b2159c2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,5 @@ language: go -go_import_path: github.com/ethereum/go-ethereum +go_import_path: github.com/YehorDudukin/go-ethereum sudo: false jobs: include: diff --git a/README.md b/README.md index 9ccfe933aa..a68734493d 100644 --- a/README.md +++ b/README.md @@ -3,9 +3,9 @@ Golang execution layer implementation of the Ethereum protocol. [![API Reference]( -https://pkg.go.dev/badge/github.com/ethereum/go-ethereum -)](https://pkg.go.dev/github.com/ethereum/go-ethereum?tab=doc) -[![Go Report Card](https://goreportcard.com/badge/github.com/ethereum/go-ethereum)](https://goreportcard.com/report/github.com/ethereum/go-ethereum) +https://pkg.go.dev/badge/github.com/YehorDudukin/go-ethereum +)](https://pkg.go.dev/github.com/YehorDudukin/go-ethereum?tab=doc) +[![Go Report Card](https://goreportcard.com/badge/github.com/YehorDudukin/go-ethereum)](https://goreportcard.com/report/github.com/YehorDudukin/go-ethereum) [![Travis](https://app.travis-ci.com/ethereum/go-ethereum.svg?branch=master)](https://app.travis-ci.com/github/ethereum/go-ethereum) [![Discord](https://img.shields.io/badge/discord-join%20chat-blue.svg)](https://discord.gg/nthXNEv) @@ -241,7 +241,7 @@ testing procedures. ### Contributing to geth.ethereum.org For contributions to the [go-ethereum website](https://geth.ethereum.org), please checkout and raise pull requests against the `website` branch. -For more detailed instructions please see the `website` branch [README](https://github.com/ethereum/go-ethereum/tree/website#readme) or the +For more detailed instructions please see the `website` branch [README](https://github.com/YehorDudukin/go-ethereum/tree/website#readme) or the [contributing](https://geth.ethereum.org/docs/developers/geth-developer/contributing) page of the website. ## License diff --git a/SECURITY.md b/SECURITY.md index 0b497b44ae..32b897b213 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/YehorDudukin/go-ethereum/releases). We recommend using the [most recently released version](https://github.com/YehorDudukin/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/YehorDudukin/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/YehorDudukin/go-ethereum/blob/master/docs/audits/2017-04-25_Geth-audit_Truesec.pdf) | +| `clef` | 20180914 | [pdf](https://github.com/YehorDudukin/go-ethereum/blob/master/docs/audits/2018-09-14_Clef-audit_NCC.pdf) | +| `Discv5` | 20191015 | [pdf](https://github.com/YehorDudukin/go-ethereum/blob/master/docs/audits/2019-10-15_Discv5_audit_LeastAuthority.pdf) | +| `Discv5` | 20200124 | [pdf](https://github.com/YehorDudukin/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 publicly 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/YehorDudukin/go-ethereum/security/advisories?state=published) for more information about publicly 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 f75278c8b1..a54e2b6b6d 100644 --- a/accounts/abi/abi.go +++ b/accounts/abi/abi.go @@ -24,8 +24,8 @@ import ( "io" "math/big" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/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 db9a4c55a5..e510206783 100644 --- a/accounts/abi/abi_test.go +++ b/accounts/abi/abi_test.go @@ -26,10 +26,10 @@ import ( "strings" "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/internal/testrand" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/math" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/internal/testrand" ) const jsondata = ` diff --git a/accounts/abi/abigen/bind.go b/accounts/abi/abigen/bind.go index 56e5e214de..fa8f39389a 100644 --- a/accounts/abi/abigen/bind.go +++ b/accounts/abi/abigen/bind.go @@ -29,8 +29,8 @@ import ( "text/template" "unicode" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/accounts/abi" + "github.com/YehorDudukin/go-ethereum/log" ) func isKeyWord(arg string) bool { diff --git a/accounts/abi/abigen/bind_test.go b/accounts/abi/abigen/bind_test.go index 195064fb7a..9e44c2285c 100644 --- a/accounts/abi/abigen/bind_test.go +++ b/accounts/abi/abigen/bind_test.go @@ -25,7 +25,7 @@ import ( "strings" "testing" - "github.com/ethereum/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common" ) var bindTests = []struct { @@ -46,7 +46,7 @@ var bindTests = []struct { `contract NilContract {}`, []string{`606060405260068060106000396000f3606060405200`}, []string{`[]`}, - `"github.com/ethereum/go-ethereum/common"`, + `"github.com/YehorDudukin/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) @@ -69,7 +69,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/YehorDudukin/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) @@ -85,7 +85,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/YehorDudukin/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) @@ -101,7 +101,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/YehorDudukin/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) @@ -128,7 +128,7 @@ var bindTests = []struct { ` "fmt" - "github.com/ethereum/go-ethereum/common" + "github.com/YehorDudukin/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) @@ -166,7 +166,7 @@ var bindTests = []struct { ` "fmt" - "github.com/ethereum/go-ethereum/common" + "github.com/YehorDudukin/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) @@ -207,7 +207,7 @@ var bindTests = []struct { "math/big" "reflect" - "github.com/ethereum/go-ethereum/common" + "github.com/YehorDudukin/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) @@ -287,10 +287,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/types" - "github.com/ethereum/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/accounts/abi/bind" + "github.com/YehorDudukin/go-ethereum/accounts/abi/bind/backends" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/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/types" - "github.com/ethereum/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/accounts/abi/bind" + "github.com/YehorDudukin/go-ethereum/accounts/abi/bind/backends" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/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/types" - "github.com/ethereum/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/accounts/abi/bind" + "github.com/YehorDudukin/go-ethereum/accounts/abi/bind/backends" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/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/types" - "github.com/ethereum/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/accounts/abi/bind" + "github.com/YehorDudukin/go-ethereum/accounts/abi/bind/backends" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/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/types" - "github.com/ethereum/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/accounts/abi/bind" + "github.com/YehorDudukin/go-ethereum/accounts/abi/bind/backends" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/crypto" `, ` // Generate a new random account and a funded simulator @@ -562,10 +562,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/types" - "github.com/ethereum/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/accounts/abi/bind" + "github.com/YehorDudukin/go-ethereum/accounts/abi/bind/backends" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/crypto" `, ` // Generate a new random account and a funded simulator @@ -607,10 +607,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/types" + "github.com/YehorDudukin/go-ethereum/accounts/abi/bind" + "github.com/YehorDudukin/go-ethereum/accounts/abi/bind/backends" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/types" `, ` // Create a simulator and wrap a non-deployed contract @@ -646,10 +646,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/types" + "github.com/YehorDudukin/go-ethereum/accounts/abi/bind" + "github.com/YehorDudukin/go-ethereum/accounts/abi/bind/backends" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/types" `, ` // Create a simulator and wrap a non-deployed contract @@ -694,10 +694,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/types" - "github.com/ethereum/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/accounts/abi/bind" + "github.com/YehorDudukin/go-ethereum/accounts/abi/bind/backends" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/crypto" `, ` // Generate a new random account and a funded simulator @@ -743,11 +743,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/types" - "github.com/ethereum/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/accounts/abi/bind" + "github.com/YehorDudukin/go-ethereum/accounts/abi/bind/backends" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/crypto" `, ` // Generate a new random account and a funded simulator @@ -819,10 +819,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/types" - "github.com/ethereum/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/accounts/abi/bind" + "github.com/YehorDudukin/go-ethereum/accounts/abi/bind/backends" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/crypto" `, ` // Generate a new random account and a funded simulator @@ -912,11 +912,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/types" - "github.com/ethereum/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/accounts/abi/bind" + "github.com/YehorDudukin/go-ethereum/accounts/abi/bind/backends" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/crypto" `, ` // Generate a new random account and a funded simulator @@ -1103,10 +1103,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/types" - "github.com/ethereum/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/accounts/abi/bind" + "github.com/YehorDudukin/go-ethereum/accounts/abi/bind/backends" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/crypto" `, ` // Generate a new random account and a funded simulator @@ -1238,10 +1238,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/types" - "github.com/ethereum/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/accounts/abi/bind" + "github.com/YehorDudukin/go-ethereum/accounts/abi/bind/backends" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/crypto" `, ` @@ -1380,10 +1380,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/types" - "github.com/ethereum/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/accounts/abi/bind" + "github.com/YehorDudukin/go-ethereum/accounts/abi/bind/backends" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/crypto" `, ` // Generate a new random account and a funded simulator @@ -1446,10 +1446,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/types" - "github.com/ethereum/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/accounts/abi/bind" + "github.com/YehorDudukin/go-ethereum/accounts/abi/bind/backends" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/crypto" `, ` // Initialize test accounts @@ -1534,10 +1534,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/types" + "github.com/YehorDudukin/go-ethereum/accounts/abi/bind" + "github.com/YehorDudukin/go-ethereum/accounts/abi/bind/backends" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/core/types" `, ` // Initialize test accounts @@ -1597,10 +1597,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/types" + "github.com/YehorDudukin/go-ethereum/accounts/abi/bind" + "github.com/YehorDudukin/go-ethereum/accounts/abi/bind/backends" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/core/types" `, ` key, _ := crypto.GenerateKey() @@ -1659,10 +1659,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/types" - "github.com/ethereum/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/accounts/abi/bind" + "github.com/YehorDudukin/go-ethereum/accounts/abi/bind/backends" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/crypto" `, ` // Generate a new random account and a funded simulator @@ -1720,10 +1720,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/types" - "github.com/ethereum/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/accounts/abi/bind" + "github.com/YehorDudukin/go-ethereum/accounts/abi/bind/backends" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/crypto" `, ` key, _ := crypto.GenerateKey() @@ -1810,11 +1810,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/core/types" - "github.com/ethereum/go-ethereum/crypto" - "github.com/ethereum/go-ethereum/eth/ethconfig" + "github.com/YehorDudukin/go-ethereum/accounts/abi/bind" + "github.com/YehorDudukin/go-ethereum/accounts/abi/bind/backends" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/eth/ethconfig" `, ` var ( @@ -1892,11 +1892,11 @@ var bindTests = []struct { "context" "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/types" - "github.com/ethereum/go-ethereum/crypto" - "github.com/ethereum/go-ethereum/eth/ethconfig" + "github.com/YehorDudukin/go-ethereum/accounts/abi/bind" + "github.com/YehorDudukin/go-ethereum/accounts/abi/bind/backends" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/eth/ethconfig" `, ` var ( @@ -1945,11 +1945,11 @@ var bindTests = []struct { "context" "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/types" - "github.com/ethereum/go-ethereum/crypto" - "github.com/ethereum/go-ethereum/eth/ethconfig" + "github.com/YehorDudukin/go-ethereum/accounts/abi/bind" + "github.com/YehorDudukin/go-ethereum/accounts/abi/bind/backends" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/eth/ethconfig" `, tester: ` var ( @@ -1994,11 +1994,11 @@ var bindTests = []struct { "context" "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/types" - "github.com/ethereum/go-ethereum/crypto" - "github.com/ethereum/go-ethereum/eth/ethconfig" + "github.com/YehorDudukin/go-ethereum/accounts/abi/bind" + "github.com/YehorDudukin/go-ethereum/accounts/abi/bind/backends" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/eth/ethconfig" `, tester: ` var ( @@ -2035,11 +2035,11 @@ var bindTests = []struct { "context" "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/types" - "github.com/ethereum/go-ethereum/crypto" - "github.com/ethereum/go-ethereum/eth/ethconfig" + "github.com/YehorDudukin/go-ethereum/accounts/abi/bind" + "github.com/YehorDudukin/go-ethereum/accounts/abi/bind/backends" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/eth/ethconfig" `, tester: ` var ( @@ -2073,7 +2073,7 @@ var bindTests = []struct { bytecode: []string{"0x6080604052348015600f57600080fd5b5060958061001e6000396000f3fe6080604052348015600f57600080fd5b5060043610603c5760003560e01c80639d993132146041578063d02767c7146049578063ffa02795146051575b600080fd5b60476059565b005b604f605b565b005b6057605d565b005b565b565b56fea26469706673582212200382ca602dff96a7e2ba54657985e2b4ac423a56abe4a1f0667bc635c4d4371f64736f6c63430008110033"}, abi: []string{`[{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_param","type":"address"}],"name":"_1TestEvent","type":"event"},{"inputs":[],"name":"_1test","outputs":[],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"__1test","outputs":[],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"__2test","outputs":[],"stateMutability":"pure","type":"function"}]`}, imports: ` - "github.com/ethereum/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common" `, tester: ` if b, err := NewNumericMethodName(common.Address{}, nil); b == nil || err != nil { @@ -2143,7 +2143,7 @@ func TestBindings(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/YehorDudukin/go-ethereum@v0.0.0", "-replace", "github.com/YehorDudukin/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/abigen/bindv2.go b/accounts/abi/abigen/bindv2.go index ef4b769bb4..5438b73ed7 100644 --- a/accounts/abi/abigen/bindv2.go +++ b/accounts/abi/abigen/bindv2.go @@ -28,7 +28,7 @@ import ( "text/template" "unicode" - "github.com/ethereum/go-ethereum/accounts/abi" + "github.com/YehorDudukin/go-ethereum/accounts/abi" ) // underlyingBindType returns a string representation of the Go type diff --git a/accounts/abi/abigen/bindv2_test.go b/accounts/abi/abigen/bindv2_test.go index 2756ba0835..165a625400 100644 --- a/accounts/abi/abigen/bindv2_test.go +++ b/accounts/abi/abigen/bindv2_test.go @@ -22,8 +22,8 @@ import ( "strings" "testing" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/accounts/abi" + "github.com/YehorDudukin/go-ethereum/crypto" ) type bindV2Test struct { diff --git a/accounts/abi/abigen/source.go.tpl b/accounts/abi/abigen/source.go.tpl index c84862d03b..c3fb3d45d0 100644 --- a/accounts/abi/abigen/source.go.tpl +++ b/accounts/abi/abigen/source.go.tpl @@ -8,12 +8,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/YehorDudukin/go-ethereum" + "github.com/YehorDudukin/go-ethereum/accounts/abi" + "github.com/YehorDudukin/go-ethereum/accounts/abi/bind" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/event" ) // Reference imports to suppress errors if they are not otherwise used. diff --git a/accounts/abi/abigen/source2.go.tpl b/accounts/abi/abigen/source2.go.tpl index 8f9d4d4103..6aa93a2a92 100644 --- a/accounts/abi/abigen/source2.go.tpl +++ b/accounts/abi/abigen/source2.go.tpl @@ -8,10 +8,10 @@ import ( "math/big" "errors" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind/v2" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/accounts/abi" + "github.com/YehorDudukin/go-ethereum/accounts/abi/bind/v2" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/types" ) // Reference imports to suppress errors if they are not otherwise used. diff --git a/accounts/abi/abigen/template.go b/accounts/abi/abigen/template.go index cbb21037a6..2adc54a94e 100644 --- a/accounts/abi/abigen/template.go +++ b/accounts/abi/abigen/template.go @@ -21,7 +21,7 @@ import ( "strings" "unicode" - "github.com/ethereum/go-ethereum/accounts/abi" + "github.com/YehorDudukin/go-ethereum/accounts/abi" ) // tmplData is the data structure required to fill the binding template. diff --git a/accounts/abi/abigen/testdata/v2/callbackparam.go.txt b/accounts/abi/abigen/testdata/v2/callbackparam.go.txt index e3205bde0d..bed8d972eb 100644 --- a/accounts/abi/abigen/testdata/v2/callbackparam.go.txt +++ b/accounts/abi/abigen/testdata/v2/callbackparam.go.txt @@ -8,10 +8,10 @@ import ( "errors" "math/big" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind/v2" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/accounts/abi" + "github.com/YehorDudukin/go-ethereum/accounts/abi/bind/v2" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/types" ) // Reference imports to suppress errors if they are not otherwise used. diff --git a/accounts/abi/abigen/testdata/v2/crowdsale.go.txt b/accounts/abi/abigen/testdata/v2/crowdsale.go.txt index 60d8b4ec11..2269452282 100644 --- a/accounts/abi/abigen/testdata/v2/crowdsale.go.txt +++ b/accounts/abi/abigen/testdata/v2/crowdsale.go.txt @@ -8,10 +8,10 @@ import ( "errors" "math/big" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind/v2" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/accounts/abi" + "github.com/YehorDudukin/go-ethereum/accounts/abi/bind/v2" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/types" ) // Reference imports to suppress errors if they are not otherwise used. diff --git a/accounts/abi/abigen/testdata/v2/dao.go.txt b/accounts/abi/abigen/testdata/v2/dao.go.txt index 72a80949f6..588e918db1 100644 --- a/accounts/abi/abigen/testdata/v2/dao.go.txt +++ b/accounts/abi/abigen/testdata/v2/dao.go.txt @@ -8,10 +8,10 @@ import ( "errors" "math/big" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind/v2" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/accounts/abi" + "github.com/YehorDudukin/go-ethereum/accounts/abi/bind/v2" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/types" ) // Reference imports to suppress errors if they are not otherwise used. diff --git a/accounts/abi/abigen/testdata/v2/deeplynestedarray.go.txt b/accounts/abi/abigen/testdata/v2/deeplynestedarray.go.txt index 00f717d020..fb7cea7a31 100644 --- a/accounts/abi/abigen/testdata/v2/deeplynestedarray.go.txt +++ b/accounts/abi/abigen/testdata/v2/deeplynestedarray.go.txt @@ -8,10 +8,10 @@ import ( "errors" "math/big" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind/v2" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/accounts/abi" + "github.com/YehorDudukin/go-ethereum/accounts/abi/bind/v2" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/types" ) // Reference imports to suppress errors if they are not otherwise used. diff --git a/accounts/abi/abigen/testdata/v2/empty.go.txt b/accounts/abi/abigen/testdata/v2/empty.go.txt index 7082e20799..17afb88dfa 100644 --- a/accounts/abi/abigen/testdata/v2/empty.go.txt +++ b/accounts/abi/abigen/testdata/v2/empty.go.txt @@ -8,10 +8,10 @@ import ( "errors" "math/big" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind/v2" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/accounts/abi" + "github.com/YehorDudukin/go-ethereum/accounts/abi/bind/v2" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/types" ) // Reference imports to suppress errors if they are not otherwise used. diff --git a/accounts/abi/abigen/testdata/v2/eventchecker.go.txt b/accounts/abi/abigen/testdata/v2/eventchecker.go.txt index 92558c5efe..ceee43ec15 100644 --- a/accounts/abi/abigen/testdata/v2/eventchecker.go.txt +++ b/accounts/abi/abigen/testdata/v2/eventchecker.go.txt @@ -8,10 +8,10 @@ import ( "errors" "math/big" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind/v2" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/accounts/abi" + "github.com/YehorDudukin/go-ethereum/accounts/abi/bind/v2" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/types" ) // Reference imports to suppress errors if they are not otherwise used. diff --git a/accounts/abi/abigen/testdata/v2/getter.go.txt b/accounts/abi/abigen/testdata/v2/getter.go.txt index 8e6e7debbf..0a409f12cc 100644 --- a/accounts/abi/abigen/testdata/v2/getter.go.txt +++ b/accounts/abi/abigen/testdata/v2/getter.go.txt @@ -8,10 +8,10 @@ import ( "errors" "math/big" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind/v2" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/accounts/abi" + "github.com/YehorDudukin/go-ethereum/accounts/abi/bind/v2" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/types" ) // Reference imports to suppress errors if they are not otherwise used. diff --git a/accounts/abi/abigen/testdata/v2/identifiercollision.go.txt b/accounts/abi/abigen/testdata/v2/identifiercollision.go.txt index 60554aac13..fd75c33758 100644 --- a/accounts/abi/abigen/testdata/v2/identifiercollision.go.txt +++ b/accounts/abi/abigen/testdata/v2/identifiercollision.go.txt @@ -8,10 +8,10 @@ import ( "errors" "math/big" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind/v2" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/accounts/abi" + "github.com/YehorDudukin/go-ethereum/accounts/abi/bind/v2" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/types" ) // Reference imports to suppress errors if they are not otherwise used. diff --git a/accounts/abi/abigen/testdata/v2/inputchecker.go.txt b/accounts/abi/abigen/testdata/v2/inputchecker.go.txt index 7b226aa90b..462df1cffb 100644 --- a/accounts/abi/abigen/testdata/v2/inputchecker.go.txt +++ b/accounts/abi/abigen/testdata/v2/inputchecker.go.txt @@ -8,10 +8,10 @@ import ( "errors" "math/big" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind/v2" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/accounts/abi" + "github.com/YehorDudukin/go-ethereum/accounts/abi/bind/v2" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/types" ) // Reference imports to suppress errors if they are not otherwise used. diff --git a/accounts/abi/abigen/testdata/v2/interactor.go.txt b/accounts/abi/abigen/testdata/v2/interactor.go.txt index cc0900856e..5226dbbced 100644 --- a/accounts/abi/abigen/testdata/v2/interactor.go.txt +++ b/accounts/abi/abigen/testdata/v2/interactor.go.txt @@ -8,10 +8,10 @@ import ( "errors" "math/big" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind/v2" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/accounts/abi" + "github.com/YehorDudukin/go-ethereum/accounts/abi/bind/v2" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/types" ) // Reference imports to suppress errors if they are not otherwise used. diff --git a/accounts/abi/abigen/testdata/v2/nameconflict.go.txt b/accounts/abi/abigen/testdata/v2/nameconflict.go.txt index 6228bf7cc7..94f7f2b22f 100644 --- a/accounts/abi/abigen/testdata/v2/nameconflict.go.txt +++ b/accounts/abi/abigen/testdata/v2/nameconflict.go.txt @@ -8,10 +8,10 @@ import ( "errors" "math/big" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind/v2" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/accounts/abi" + "github.com/YehorDudukin/go-ethereum/accounts/abi/bind/v2" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/types" ) // Reference imports to suppress errors if they are not otherwise used. diff --git a/accounts/abi/abigen/testdata/v2/numericmethodname.go.txt b/accounts/abi/abigen/testdata/v2/numericmethodname.go.txt index 5a2208e0d4..9145a33eea 100644 --- a/accounts/abi/abigen/testdata/v2/numericmethodname.go.txt +++ b/accounts/abi/abigen/testdata/v2/numericmethodname.go.txt @@ -8,10 +8,10 @@ import ( "errors" "math/big" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind/v2" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/accounts/abi" + "github.com/YehorDudukin/go-ethereum/accounts/abi/bind/v2" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/types" ) // Reference imports to suppress errors if they are not otherwise used. diff --git a/accounts/abi/abigen/testdata/v2/outputchecker.go.txt b/accounts/abi/abigen/testdata/v2/outputchecker.go.txt index 6f1f8e6795..e2de91c495 100644 --- a/accounts/abi/abigen/testdata/v2/outputchecker.go.txt +++ b/accounts/abi/abigen/testdata/v2/outputchecker.go.txt @@ -8,10 +8,10 @@ import ( "errors" "math/big" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind/v2" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/accounts/abi" + "github.com/YehorDudukin/go-ethereum/accounts/abi/bind/v2" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/types" ) // Reference imports to suppress errors if they are not otherwise used. diff --git a/accounts/abi/abigen/testdata/v2/overload.go.txt b/accounts/abi/abigen/testdata/v2/overload.go.txt index ed7c0b543c..251b6d9405 100644 --- a/accounts/abi/abigen/testdata/v2/overload.go.txt +++ b/accounts/abi/abigen/testdata/v2/overload.go.txt @@ -8,10 +8,10 @@ import ( "errors" "math/big" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind/v2" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/accounts/abi" + "github.com/YehorDudukin/go-ethereum/accounts/abi/bind/v2" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/types" ) // Reference imports to suppress errors if they are not otherwise used. diff --git a/accounts/abi/abigen/testdata/v2/rangekeyword.go.txt b/accounts/abi/abigen/testdata/v2/rangekeyword.go.txt index c7f1425395..51dd07566e 100644 --- a/accounts/abi/abigen/testdata/v2/rangekeyword.go.txt +++ b/accounts/abi/abigen/testdata/v2/rangekeyword.go.txt @@ -8,10 +8,10 @@ import ( "errors" "math/big" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind/v2" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/accounts/abi" + "github.com/YehorDudukin/go-ethereum/accounts/abi/bind/v2" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/types" ) // Reference imports to suppress errors if they are not otherwise used. diff --git a/accounts/abi/abigen/testdata/v2/slicer.go.txt b/accounts/abi/abigen/testdata/v2/slicer.go.txt index b66c05cf0f..949ec54f8f 100644 --- a/accounts/abi/abigen/testdata/v2/slicer.go.txt +++ b/accounts/abi/abigen/testdata/v2/slicer.go.txt @@ -8,10 +8,10 @@ import ( "errors" "math/big" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind/v2" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/accounts/abi" + "github.com/YehorDudukin/go-ethereum/accounts/abi/bind/v2" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/types" ) // Reference imports to suppress errors if they are not otherwise used. diff --git a/accounts/abi/abigen/testdata/v2/structs-abi.go.txt b/accounts/abi/abigen/testdata/v2/structs-abi.go.txt index aab6242707..104d386b6f 100644 --- a/accounts/abi/abigen/testdata/v2/structs-abi.go.txt +++ b/accounts/abi/abigen/testdata/v2/structs-abi.go.txt @@ -8,10 +8,10 @@ import ( "errors" "math/big" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind/v2" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/accounts/abi" + "github.com/YehorDudukin/go-ethereum/accounts/abi/bind/v2" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/types" ) // Reference imports to suppress errors if they are not otherwise used. diff --git a/accounts/abi/abigen/testdata/v2/structs.go.txt b/accounts/abi/abigen/testdata/v2/structs.go.txt index 7fe59c5616..0808c2f177 100644 --- a/accounts/abi/abigen/testdata/v2/structs.go.txt +++ b/accounts/abi/abigen/testdata/v2/structs.go.txt @@ -8,10 +8,10 @@ import ( "errors" "math/big" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind/v2" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/accounts/abi" + "github.com/YehorDudukin/go-ethereum/accounts/abi/bind/v2" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/types" ) // Reference imports to suppress errors if they are not otherwise used. diff --git a/accounts/abi/abigen/testdata/v2/token.go.txt b/accounts/abi/abigen/testdata/v2/token.go.txt index aca18cb227..9667e84348 100644 --- a/accounts/abi/abigen/testdata/v2/token.go.txt +++ b/accounts/abi/abigen/testdata/v2/token.go.txt @@ -8,10 +8,10 @@ import ( "errors" "math/big" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind/v2" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/accounts/abi" + "github.com/YehorDudukin/go-ethereum/accounts/abi/bind/v2" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/types" ) // Reference imports to suppress errors if they are not otherwise used. diff --git a/accounts/abi/abigen/testdata/v2/tuple.go.txt b/accounts/abi/abigen/testdata/v2/tuple.go.txt index 65af765463..d86da8f157 100644 --- a/accounts/abi/abigen/testdata/v2/tuple.go.txt +++ b/accounts/abi/abigen/testdata/v2/tuple.go.txt @@ -8,10 +8,10 @@ import ( "errors" "math/big" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind/v2" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/accounts/abi" + "github.com/YehorDudukin/go-ethereum/accounts/abi/bind/v2" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/types" ) // Reference imports to suppress errors if they are not otherwise used. diff --git a/accounts/abi/abigen/testdata/v2/tupler.go.txt b/accounts/abi/abigen/testdata/v2/tupler.go.txt index caa692dade..418267d863 100644 --- a/accounts/abi/abigen/testdata/v2/tupler.go.txt +++ b/accounts/abi/abigen/testdata/v2/tupler.go.txt @@ -8,10 +8,10 @@ import ( "errors" "math/big" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind/v2" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/accounts/abi" + "github.com/YehorDudukin/go-ethereum/accounts/abi/bind/v2" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/types" ) // Reference imports to suppress errors if they are not otherwise used. diff --git a/accounts/abi/abigen/testdata/v2/underscorer.go.txt b/accounts/abi/abigen/testdata/v2/underscorer.go.txt index ef9eb864fa..2619e69791 100644 --- a/accounts/abi/abigen/testdata/v2/underscorer.go.txt +++ b/accounts/abi/abigen/testdata/v2/underscorer.go.txt @@ -8,10 +8,10 @@ import ( "errors" "math/big" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind/v2" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/accounts/abi" + "github.com/YehorDudukin/go-ethereum/accounts/abi/bind/v2" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/types" ) // Reference imports to suppress errors if they are not otherwise used. diff --git a/accounts/abi/bind/backends/simulated.go b/accounts/abi/bind/backends/simulated.go index dfd9296952..7513a774d1 100644 --- a/accounts/abi/bind/backends/simulated.go +++ b/accounts/abi/bind/backends/simulated.go @@ -19,13 +19,13 @@ package backends import ( "context" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/ethclient/simulated" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/ethclient/simulated" ) // SimulatedBackend is a simulated blockchain. -// Deprecated: use package github.com/ethereum/go-ethereum/ethclient/simulated instead. +// Deprecated: use package github.com/YehorDudukin/go-ethereum/ethclient/simulated instead. type SimulatedBackend struct { *simulated.Backend simulated.Client @@ -42,7 +42,7 @@ func (b *SimulatedBackend) Fork(ctx context.Context, parentHash common.Hash) err // A simulated backend always uses chainID 1337. // // Deprecated: please use simulated.Backend from package -// github.com/ethereum/go-ethereum/ethclient/simulated instead. +// github.com/YehorDudukin/go-ethereum/ethclient/simulated instead. func NewSimulatedBackend(alloc types.GenesisAlloc, gasLimit uint64) *SimulatedBackend { b := simulated.NewBackend(alloc, simulated.WithBlockGasLimit(gasLimit)) return &SimulatedBackend{ diff --git a/accounts/abi/bind/old.go b/accounts/abi/bind/old.go index b09f5f3c7a..3fd332bb61 100644 --- a/accounts/abi/bind/old.go +++ b/accounts/abi/bind/old.go @@ -15,7 +15,7 @@ // along with the go-ethereum library. If not, see . // Package bind is the runtime for abigen v1 generated contract bindings. -// Deprecated: please use github.com/ethereum/go-ethereum/bind/v2 +// Deprecated: please use github.com/YehorDudukin/go-ethereum/bind/v2 package bind import ( @@ -27,20 +27,20 @@ import ( "strings" "sync" - "github.com/ethereum/go-ethereum/accounts" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/abigen" - bind2 "github.com/ethereum/go-ethereum/accounts/abi/bind/v2" - "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/YehorDudukin/go-ethereum/accounts" + "github.com/YehorDudukin/go-ethereum/accounts/abi" + "github.com/YehorDudukin/go-ethereum/accounts/abi/abigen" + bind2 "github.com/YehorDudukin/go-ethereum/accounts/abi/bind/v2" + "github.com/YehorDudukin/go-ethereum/accounts/external" + "github.com/YehorDudukin/go-ethereum/accounts/keystore" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/log" ) // Bind generates a v1 contract binding. -// Deprecated: binding generation has moved to github.com/ethereum/go-ethereum/accounts/abi/abigen +// Deprecated: binding generation has moved to github.com/YehorDudukin/go-ethereum/accounts/abi/abigen func Bind(types []string, abis []string, bytecodes []string, fsigs []map[string]string, pkg string, libs map[string]string, aliases map[string]string) (string, error) { return abigen.Bind(types, abis, bytecodes, fsigs, pkg, libs, aliases) } diff --git a/accounts/abi/bind/v2/auth.go b/accounts/abi/bind/v2/auth.go index 0a452a2c75..3c2c25212c 100644 --- a/accounts/abi/bind/v2/auth.go +++ b/accounts/abi/bind/v2/auth.go @@ -22,12 +22,12 @@ import ( "errors" "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/YehorDudukin/go-ethereum/accounts" + "github.com/YehorDudukin/go-ethereum/accounts/external" + "github.com/YehorDudukin/go-ethereum/accounts/keystore" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/crypto" ) // ErrNotAuthorized is returned when an account is not properly unlocked. diff --git a/accounts/abi/bind/v2/backend.go b/accounts/abi/bind/v2/backend.go index 2f5f17b31e..5b836c0ac5 100644 --- a/accounts/abi/bind/v2/backend.go +++ b/accounts/abi/bind/v2/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/YehorDudukin/go-ethereum" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/types" ) var ( diff --git a/accounts/abi/bind/v2/base.go b/accounts/abi/bind/v2/base.go index 535c0ed4fd..fb5eeafae7 100644 --- a/accounts/abi/bind/v2/base.go +++ b/accounts/abi/bind/v2/base.go @@ -24,12 +24,12 @@ import ( "strings" "sync" - "github.com/ethereum/go-ethereum" + "github.com/YehorDudukin/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/event" + "github.com/YehorDudukin/go-ethereum/accounts/abi" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/event" ) const basefeeWiggleMultiplier = 2 diff --git a/accounts/abi/bind/v2/base_test.go b/accounts/abi/bind/v2/base_test.go index 80d0f22f2c..3cadd2c362 100644 --- a/accounts/abi/bind/v2/base_test.go +++ b/accounts/abi/bind/v2/base_test.go @@ -24,14 +24,14 @@ import ( "strings" "testing" - "github.com/ethereum/go-ethereum" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind/v2" - "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/YehorDudukin/go-ethereum" + "github.com/YehorDudukin/go-ethereum/accounts/abi" + "github.com/YehorDudukin/go-ethereum/accounts/abi/bind/v2" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/rlp" "github.com/stretchr/testify/assert" ) diff --git a/accounts/abi/bind/v2/dep_tree.go b/accounts/abi/bind/v2/dep_tree.go index 72a6468951..08963df958 100644 --- a/accounts/abi/bind/v2/dep_tree.go +++ b/accounts/abi/bind/v2/dep_tree.go @@ -22,8 +22,8 @@ import ( "maps" "strings" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/types" ) // DeploymentParams contains parameters needed to deploy one or more contracts via LinkAndDeploy diff --git a/accounts/abi/bind/v2/dep_tree_test.go b/accounts/abi/bind/v2/dep_tree_test.go index e686e3fec4..cef9e6c4cf 100644 --- a/accounts/abi/bind/v2/dep_tree_test.go +++ b/accounts/abi/bind/v2/dep_tree_test.go @@ -21,9 +21,9 @@ import ( "regexp" "testing" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/crypto" "golang.org/x/exp/rand" ) diff --git a/accounts/abi/bind/v2/generate_test.go b/accounts/abi/bind/v2/generate_test.go index ae35e0b475..fd9ada1cdb 100644 --- a/accounts/abi/bind/v2/generate_test.go +++ b/accounts/abi/bind/v2/generate_test.go @@ -23,19 +23,19 @@ import ( "strings" "testing" - "github.com/ethereum/go-ethereum/accounts/abi/abigen" - "github.com/ethereum/go-ethereum/cmd/utils" - "github.com/ethereum/go-ethereum/common/compiler" - "github.com/ethereum/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/accounts/abi/abigen" + "github.com/YehorDudukin/go-ethereum/cmd/utils" + "github.com/YehorDudukin/go-ethereum/common/compiler" + "github.com/YehorDudukin/go-ethereum/crypto" ) // Run go generate to recreate the test bindings. // -//go:generate go run github.com/ethereum/go-ethereum/cmd/abigen -v2 -combined-json internal/contracts/db/combined-abi.json -type DBStats -pkg db -out internal/contracts/db/bindings.go -//go:generate go run github.com/ethereum/go-ethereum/cmd/abigen -v2 -combined-json internal/contracts/events/combined-abi.json -type C -pkg events -out internal/contracts/events/bindings.go -//go:generate go run github.com/ethereum/go-ethereum/cmd/abigen -v2 -combined-json internal/contracts/nested_libraries/combined-abi.json -type C1 -pkg nested_libraries -out internal/contracts/nested_libraries/bindings.go -//go:generate go run github.com/ethereum/go-ethereum/cmd/abigen -v2 -combined-json internal/contracts/solc_errors/combined-abi.json -type C -pkg solc_errors -out internal/contracts/solc_errors/bindings.go -//go:generate go run github.com/ethereum/go-ethereum/cmd/abigen -v2 -combined-json internal/contracts/uint256arrayreturn/combined-abi.json -type C -pkg uint256arrayreturn -out internal/contracts/uint256arrayreturn/bindings.go +//go:generate go run github.com/YehorDudukin/go-ethereum/cmd/abigen -v2 -combined-json internal/contracts/db/combined-abi.json -type DBStats -pkg db -out internal/contracts/db/bindings.go +//go:generate go run github.com/YehorDudukin/go-ethereum/cmd/abigen -v2 -combined-json internal/contracts/events/combined-abi.json -type C -pkg events -out internal/contracts/events/bindings.go +//go:generate go run github.com/YehorDudukin/go-ethereum/cmd/abigen -v2 -combined-json internal/contracts/nested_libraries/combined-abi.json -type C1 -pkg nested_libraries -out internal/contracts/nested_libraries/bindings.go +//go:generate go run github.com/YehorDudukin/go-ethereum/cmd/abigen -v2 -combined-json internal/contracts/solc_errors/combined-abi.json -type C -pkg solc_errors -out internal/contracts/solc_errors/bindings.go +//go:generate go run github.com/YehorDudukin/go-ethereum/cmd/abigen -v2 -combined-json internal/contracts/uint256arrayreturn/combined-abi.json -type C -pkg uint256arrayreturn -out internal/contracts/uint256arrayreturn/bindings.go // TestBindingGeneration tests that re-running generation of bindings does not result in // mutations to the binding code. diff --git a/accounts/abi/bind/v2/internal/contracts/db/bindings.go b/accounts/abi/bind/v2/internal/contracts/db/bindings.go index 6291160fe9..f3bf07b5b2 100644 --- a/accounts/abi/bind/v2/internal/contracts/db/bindings.go +++ b/accounts/abi/bind/v2/internal/contracts/db/bindings.go @@ -8,10 +8,10 @@ import ( "errors" "math/big" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind/v2" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/accounts/abi" + "github.com/YehorDudukin/go-ethereum/accounts/abi/bind/v2" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/types" ) // Reference imports to suppress errors if they are not otherwise used. diff --git a/accounts/abi/bind/v2/internal/contracts/events/bindings.go b/accounts/abi/bind/v2/internal/contracts/events/bindings.go index 580bffa23e..85cf61ccc7 100644 --- a/accounts/abi/bind/v2/internal/contracts/events/bindings.go +++ b/accounts/abi/bind/v2/internal/contracts/events/bindings.go @@ -8,10 +8,10 @@ import ( "errors" "math/big" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind/v2" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/accounts/abi" + "github.com/YehorDudukin/go-ethereum/accounts/abi/bind/v2" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/types" ) // Reference imports to suppress errors if they are not otherwise used. diff --git a/accounts/abi/bind/v2/internal/contracts/nested_libraries/bindings.go b/accounts/abi/bind/v2/internal/contracts/nested_libraries/bindings.go index 6fd6a1b285..2b4ca2471e 100644 --- a/accounts/abi/bind/v2/internal/contracts/nested_libraries/bindings.go +++ b/accounts/abi/bind/v2/internal/contracts/nested_libraries/bindings.go @@ -8,10 +8,10 @@ import ( "errors" "math/big" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind/v2" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/accounts/abi" + "github.com/YehorDudukin/go-ethereum/accounts/abi/bind/v2" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/types" ) // Reference imports to suppress errors if they are not otherwise used. diff --git a/accounts/abi/bind/v2/internal/contracts/solc_errors/bindings.go b/accounts/abi/bind/v2/internal/contracts/solc_errors/bindings.go index 067fb2b0e1..1b13e77a5f 100644 --- a/accounts/abi/bind/v2/internal/contracts/solc_errors/bindings.go +++ b/accounts/abi/bind/v2/internal/contracts/solc_errors/bindings.go @@ -8,10 +8,10 @@ import ( "errors" "math/big" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind/v2" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/accounts/abi" + "github.com/YehorDudukin/go-ethereum/accounts/abi/bind/v2" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/types" ) // Reference imports to suppress errors if they are not otherwise used. diff --git a/accounts/abi/bind/v2/internal/contracts/uint256arrayreturn/bindings.go b/accounts/abi/bind/v2/internal/contracts/uint256arrayreturn/bindings.go index 4999cc75d9..72e30cc5c0 100644 --- a/accounts/abi/bind/v2/internal/contracts/uint256arrayreturn/bindings.go +++ b/accounts/abi/bind/v2/internal/contracts/uint256arrayreturn/bindings.go @@ -8,10 +8,10 @@ import ( "errors" "math/big" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/accounts/abi/bind/v2" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/accounts/abi" + "github.com/YehorDudukin/go-ethereum/accounts/abi/bind/v2" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/types" ) // Reference imports to suppress errors if they are not otherwise used. diff --git a/accounts/abi/bind/v2/lib.go b/accounts/abi/bind/v2/lib.go index 3831161341..4aab6b5758 100644 --- a/accounts/abi/bind/v2/lib.go +++ b/accounts/abi/bind/v2/lib.go @@ -29,12 +29,12 @@ package bind import ( "errors" - "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/YehorDudukin/go-ethereum" + "github.com/YehorDudukin/go-ethereum/accounts/abi" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/event" ) // ContractEvent is a type constraint for ABI event types. diff --git a/accounts/abi/bind/v2/lib_test.go b/accounts/abi/bind/v2/lib_test.go index fc895edad5..e998ad6337 100644 --- a/accounts/abi/bind/v2/lib_test.go +++ b/accounts/abi/bind/v2/lib_test.go @@ -22,19 +22,19 @@ import ( "testing" "time" - "github.com/ethereum/go-ethereum/accounts/abi/bind/backends" - "github.com/ethereum/go-ethereum/accounts/abi/bind/v2" - "github.com/ethereum/go-ethereum/accounts/abi/bind/v2/internal/contracts/events" - "github.com/ethereum/go-ethereum/accounts/abi/bind/v2/internal/contracts/nested_libraries" - "github.com/ethereum/go-ethereum/accounts/abi/bind/v2/internal/contracts/solc_errors" - "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/ethconfig" - "github.com/ethereum/go-ethereum/ethclient" - "github.com/ethereum/go-ethereum/ethclient/simulated" - "github.com/ethereum/go-ethereum/node" - "github.com/ethereum/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/accounts/abi/bind/backends" + "github.com/YehorDudukin/go-ethereum/accounts/abi/bind/v2" + "github.com/YehorDudukin/go-ethereum/accounts/abi/bind/v2/internal/contracts/events" + "github.com/YehorDudukin/go-ethereum/accounts/abi/bind/v2/internal/contracts/nested_libraries" + "github.com/YehorDudukin/go-ethereum/accounts/abi/bind/v2/internal/contracts/solc_errors" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/eth/ethconfig" + "github.com/YehorDudukin/go-ethereum/ethclient" + "github.com/YehorDudukin/go-ethereum/ethclient/simulated" + "github.com/YehorDudukin/go-ethereum/node" + "github.com/YehorDudukin/go-ethereum/params" ) var testKey, _ = crypto.HexToECDSA("b71c71a67e1177ad4e901695e1b4b9ee17ae16c6668d313eac2f96dbcda3f291") diff --git a/accounts/abi/bind/v2/util.go b/accounts/abi/bind/v2/util.go index 438848a753..4daa62ea24 100644 --- a/accounts/abi/bind/v2/util.go +++ b/accounts/abi/bind/v2/util.go @@ -21,10 +21,10 @@ import ( "errors" "time" - "github.com/ethereum/go-ethereum" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/log" ) // WaitMined waits for tx to be mined on the blockchain. diff --git a/accounts/abi/bind/v2/util_test.go b/accounts/abi/bind/v2/util_test.go index b1b647a7b9..9b765f0d96 100644 --- a/accounts/abi/bind/v2/util_test.go +++ b/accounts/abi/bind/v2/util_test.go @@ -23,12 +23,12 @@ import ( "testing" "time" - "github.com/ethereum/go-ethereum/accounts/abi/bind/v2" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/crypto" - "github.com/ethereum/go-ethereum/ethclient/simulated" - "github.com/ethereum/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/accounts/abi/bind/v2" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/ethclient/simulated" + "github.com/YehorDudukin/go-ethereum/params" ) var waitDeployedTests = map[string]struct { diff --git a/accounts/abi/error.go b/accounts/abi/error.go index 8e50112ec5..9528aeefa8 100644 --- a/accounts/abi/error.go +++ b/accounts/abi/error.go @@ -21,8 +21,8 @@ import ( "fmt" "strings" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/crypto" ) type Error struct { diff --git a/accounts/abi/event.go b/accounts/abi/event.go index f9457b86af..8ca652db1b 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/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/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 c548fd8db6..eb322f19ad 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/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/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 c5a1a71f47..431761503f 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/YehorDudukin/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 beef1fa37f..873a8ae66a 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/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/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 cda31b6204..e312fc7cc1 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/YehorDudukin/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..8cc8c3110c 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/YehorDudukin/go-ethereum/common" ) type packUnpackTest struct { diff --git a/accounts/abi/topics.go b/accounts/abi/topics.go index 4819334ae6..1ddceb041b 100644 --- a/accounts/abi/topics.go +++ b/accounts/abi/topics.go @@ -23,9 +23,9 @@ import ( "math/big" "reflect" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/common/math" - "github.com/ethereum/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/math" + "github.com/YehorDudukin/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 161867e2d9..5f95f85e63 100644 --- a/accounts/abi/topics_test.go +++ b/accounts/abi/topics_test.go @@ -22,8 +22,8 @@ import ( "reflect" "testing" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/crypto" ) func TestMakeTopics(t *testing.T) { diff --git a/accounts/abi/type.go b/accounts/abi/type.go index e59456f15a..f4f3fddffe 100644 --- a/accounts/abi/type.go +++ b/accounts/abi/type.go @@ -26,7 +26,7 @@ import ( "unicode" "unicode/utf8" - "github.com/ethereum/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common" ) // Type enumerator diff --git a/accounts/abi/type_test.go b/accounts/abi/type_test.go index 95922548c4..ef3aeec69e 100644 --- a/accounts/abi/type_test.go +++ b/accounts/abi/type_test.go @@ -21,8 +21,8 @@ import ( "reflect" "testing" + "github.com/YehorDudukin/go-ethereum/common" "github.com/davecgh/go-spew/spew" - "github.com/ethereum/go-ethereum/common" ) // typeWithoutStringer is an alias for the Type type which simply doesn't implement diff --git a/accounts/abi/unpack.go b/accounts/abi/unpack.go index 905b5ce629..152e8f0d14 100644 --- a/accounts/abi/unpack.go +++ b/accounts/abi/unpack.go @@ -24,7 +24,7 @@ import ( "math/big" "reflect" - "github.com/ethereum/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common" ) var ( diff --git a/accounts/abi/unpack_test.go b/accounts/abi/unpack_test.go index 74db298b3f..a9d18f349f 100644 --- a/accounts/abi/unpack_test.go +++ b/accounts/abi/unpack_test.go @@ -27,7 +27,7 @@ import ( "strings" "testing" - "github.com/ethereum/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common" "github.com/stretchr/testify/require" ) diff --git a/accounts/accounts.go b/accounts/accounts.go index 7bd911577a..a6526e9b1b 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/YehorDudukin/go-ethereum" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/event" "golang.org/x/crypto/sha3" ) diff --git a/accounts/accounts_test.go b/accounts/accounts_test.go index 2c4138aa78..6953337189 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/YehorDudukin/go-ethereum/common/hexutil" ) func TestTextHash(t *testing.T) { diff --git a/accounts/external/backend.go b/accounts/external/backend.go index 42eaf661cc..18244fa69a 100644 --- a/accounts/external/backend.go +++ b/accounts/external/backend.go @@ -22,15 +22,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/YehorDudukin/go-ethereum" + "github.com/YehorDudukin/go-ethereum/accounts" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/event" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/rpc" + "github.com/YehorDudukin/go-ethereum/signer/core/apitypes" ) type ExternalBackend struct { diff --git a/accounts/keystore/account_cache.go b/accounts/keystore/account_cache.go index d3a98850c7..d95a983cb7 100644 --- a/accounts/keystore/account_cache.go +++ b/accounts/keystore/account_cache.go @@ -28,10 +28,10 @@ import ( "sync" "time" + "github.com/YehorDudukin/go-ethereum/accounts" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/log" mapset "github.com/deckarep/golang-set/v2" - "github.com/ethereum/go-ethereum/accounts" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/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 c9a8cdfcef..9f8b36a9b0 100644 --- a/accounts/keystore/account_cache_test.go +++ b/accounts/keystore/account_cache_test.go @@ -27,10 +27,10 @@ import ( "testing" "time" + "github.com/YehorDudukin/go-ethereum/accounts" + "github.com/YehorDudukin/go-ethereum/common" "github.com/cespare/cp" "github.com/davecgh/go-spew/spew" - "github.com/ethereum/go-ethereum/accounts" - "github.com/ethereum/go-ethereum/common" ) var ( diff --git a/accounts/keystore/file_cache.go b/accounts/keystore/file_cache.go index 63eb850374..c708f868a1 100644 --- a/accounts/keystore/file_cache.go +++ b/accounts/keystore/file_cache.go @@ -23,8 +23,8 @@ import ( "sync" "time" + "github.com/YehorDudukin/go-ethereum/log" mapset "github.com/deckarep/golang-set/v2" - "github.com/ethereum/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 9b2ac14712..9221fe9d64 100644 --- a/accounts/keystore/key.go +++ b/accounts/keystore/key.go @@ -28,9 +28,9 @@ import ( "strings" "time" - "github.com/ethereum/go-ethereum/accounts" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/accounts" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/crypto" "github.com/google/uuid" ) diff --git a/accounts/keystore/keystore.go b/accounts/keystore/keystore.go index df3dda60b6..2e8ad8d588 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/YehorDudukin/go-ethereum/accounts" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/event" ) var ( diff --git a/accounts/keystore/keystore_test.go b/accounts/keystore/keystore_test.go index f8922a3f3f..d2802a714f 100644 --- a/accounts/keystore/keystore_test.go +++ b/accounts/keystore/keystore_test.go @@ -27,10 +27,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/YehorDudukin/go-ethereum/accounts" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/event" ) var testSigData = make([]byte, 32) diff --git a/accounts/keystore/passphrase.go b/accounts/keystore/passphrase.go index e7a7f8d0cb..426eed0d25 100644 --- a/accounts/keystore/passphrase.go +++ b/accounts/keystore/passphrase.go @@ -37,10 +37,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/YehorDudukin/go-ethereum/accounts" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/math" + "github.com/YehorDudukin/go-ethereum/crypto" "github.com/google/uuid" "golang.org/x/crypto/pbkdf2" "golang.org/x/crypto/scrypt" @@ -120,7 +120,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/YehorDudukin/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 20ec0f5519..8e59231750 100644 --- a/accounts/keystore/passphrase_test.go +++ b/accounts/keystore/passphrase_test.go @@ -20,7 +20,7 @@ import ( "os" "testing" - "github.com/ethereum/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common" ) const ( diff --git a/accounts/keystore/plain.go b/accounts/keystore/plain.go index f62a133ce1..b9ab15658e 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/YehorDudukin/go-ethereum/common" ) type keyStorePlain struct { diff --git a/accounts/keystore/plain_test.go b/accounts/keystore/plain_test.go index 737eb7fd61..e601c71f14 100644 --- a/accounts/keystore/plain_test.go +++ b/accounts/keystore/plain_test.go @@ -25,8 +25,8 @@ import ( "strings" "testing" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/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..77854cc444 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/YehorDudukin/go-ethereum/accounts" + "github.com/YehorDudukin/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..f2faafa194 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/YehorDudukin/go-ethereum" + "github.com/YehorDudukin/go-ethereum/accounts" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/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 1bef321cd1..1638cf7855 100644 --- a/accounts/keystore/watch.go +++ b/accounts/keystore/watch.go @@ -23,7 +23,7 @@ import ( "os" "time" - "github.com/ethereum/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/log" "github.com/fsnotify/fsnotify" ) diff --git a/accounts/manager.go b/accounts/manager.go index ac21ecd985..380cae1493 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/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/event" ) // managerSubBufferSize determines how many incoming wallet events diff --git a/accounts/scwallet/hub.go b/accounts/scwallet/hub.go index 1b1899dc8e..52dbfea900 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/YehorDudukin/go-ethereum/accounts" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/event" + "github.com/YehorDudukin/go-ethereum/log" pcsc "github.com/gballet/go-libpcsclite" ) diff --git a/accounts/scwallet/securechannel.go b/accounts/scwallet/securechannel.go index b3a7be8df0..a1a123112f 100644 --- a/accounts/scwallet/securechannel.go +++ b/accounts/scwallet/securechannel.go @@ -26,7 +26,7 @@ import ( "errors" "fmt" - "github.com/ethereum/go-ethereum/crypto" + "github.com/YehorDudukin/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 58cfc88301..2f8856b2a0 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/YehorDudukin/go-ethereum" + "github.com/YehorDudukin/go-ethereum/accounts" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/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 81457b7da2..abc1cae10d 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/YehorDudukin/go-ethereum/accounts" + "github.com/YehorDudukin/go-ethereum/event" + "github.com/YehorDudukin/go-ethereum/log" "github.com/karalabe/hid" ) diff --git a/accounts/usbwallet/ledger.go b/accounts/usbwallet/ledger.go index 2be6edd44f..d998c7dfdc 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/YehorDudukin/go-ethereum/accounts" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/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 d4862d161b..49fa0d0706 100644 --- a/accounts/usbwallet/trezor.go +++ b/accounts/usbwallet/trezor.go @@ -28,12 +28,12 @@ import ( "math" "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/YehorDudukin/go-ethereum/accounts" + "github.com/YehorDudukin/go-ethereum/accounts/usbwallet/trezor" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/log" "google.golang.org/protobuf/proto" ) diff --git a/accounts/usbwallet/trezor/messages-common.proto b/accounts/usbwallet/trezor/messages-common.proto index 1f524e25d7..dedf1c7e83 100644 --- a/accounts/usbwallet/trezor/messages-common.proto +++ b/accounts/usbwallet/trezor/messages-common.proto @@ -5,7 +5,7 @@ syntax = "proto2"; package hw.trezor.messages.common; -option go_package = "github.com/ethereum/go-ethereum/accounts/usbwallet/trezor"; +option go_package = "github.com/YehorDudukin/go-ethereum/accounts/usbwallet/trezor"; /** * Response: Success of the previous request diff --git a/accounts/usbwallet/trezor/messages-ethereum.proto b/accounts/usbwallet/trezor/messages-ethereum.proto index 8e1150abb6..7cdbf10d33 100644 --- a/accounts/usbwallet/trezor/messages-ethereum.proto +++ b/accounts/usbwallet/trezor/messages-ethereum.proto @@ -5,7 +5,7 @@ syntax = "proto2"; package hw.trezor.messages.ethereum; -option go_package = "github.com/ethereum/go-ethereum/accounts/usbwallet/trezor"; +option go_package = "github.com/YehorDudukin/go-ethereum/accounts/usbwallet/trezor"; // Sugar for easier handling in Java option java_package = "com.satoshilabs.trezor.lib.protobuf"; diff --git a/accounts/usbwallet/trezor/messages-management.proto b/accounts/usbwallet/trezor/messages-management.proto index 55eb58983e..d9a4f119b5 100644 --- a/accounts/usbwallet/trezor/messages-management.proto +++ b/accounts/usbwallet/trezor/messages-management.proto @@ -5,7 +5,7 @@ syntax = "proto2"; package hw.trezor.messages.management; -option go_package = "github.com/ethereum/go-ethereum/accounts/usbwallet/trezor"; +option go_package = "github.com/YehorDudukin/go-ethereum/accounts/usbwallet/trezor"; // Sugar for easier handling in Java option java_package = "com.satoshilabs.trezor.lib.protobuf"; diff --git a/accounts/usbwallet/trezor/messages.proto b/accounts/usbwallet/trezor/messages.proto index c232bef60d..2032c3faeb 100644 --- a/accounts/usbwallet/trezor/messages.proto +++ b/accounts/usbwallet/trezor/messages.proto @@ -9,7 +9,7 @@ package hw.trezor.messages; * Messages for TREZOR communication */ -option go_package = "github.com/ethereum/go-ethereum/accounts/usbwallet/trezor"; +option go_package = "github.com/YehorDudukin/go-ethereum/accounts/usbwallet/trezor"; // Sugar for easier handling in Java option java_package = "com.satoshilabs.trezor.lib.protobuf"; diff --git a/accounts/usbwallet/wallet.go b/accounts/usbwallet/wallet.go index 0fd0415a9e..4c7e9aa7a8 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/YehorDudukin/go-ethereum" + "github.com/YehorDudukin/go-ethereum/accounts" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/log" "github.com/karalabe/hid" ) diff --git a/beacon/blsync/block_sync.go b/beacon/blsync/block_sync.go index a6252a55f1..cd14165713 100755 --- a/beacon/blsync/block_sync.go +++ b/beacon/blsync/block_sync.go @@ -17,14 +17,14 @@ package blsync import ( - "github.com/ethereum/go-ethereum/beacon/light/request" - "github.com/ethereum/go-ethereum/beacon/light/sync" - "github.com/ethereum/go-ethereum/beacon/params" - "github.com/ethereum/go-ethereum/beacon/types" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/common/lru" - "github.com/ethereum/go-ethereum/event" - "github.com/ethereum/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/beacon/light/request" + "github.com/YehorDudukin/go-ethereum/beacon/light/sync" + "github.com/YehorDudukin/go-ethereum/beacon/params" + "github.com/YehorDudukin/go-ethereum/beacon/types" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/lru" + "github.com/YehorDudukin/go-ethereum/event" + "github.com/YehorDudukin/go-ethereum/log" ) // beaconBlockSync implements request.Module; it fetches the beacon blocks belonging diff --git a/beacon/blsync/block_sync_test.go b/beacon/blsync/block_sync_test.go index e7c2c4d163..c564da35f0 100644 --- a/beacon/blsync/block_sync_test.go +++ b/beacon/blsync/block_sync_test.go @@ -19,10 +19,10 @@ package blsync import ( "testing" - "github.com/ethereum/go-ethereum/beacon/light/request" - "github.com/ethereum/go-ethereum/beacon/light/sync" - "github.com/ethereum/go-ethereum/beacon/types" - "github.com/ethereum/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/beacon/light/request" + "github.com/YehorDudukin/go-ethereum/beacon/light/sync" + "github.com/YehorDudukin/go-ethereum/beacon/types" + "github.com/YehorDudukin/go-ethereum/common" zrntcommon "github.com/protolambda/zrnt/eth2/beacon/common" "github.com/protolambda/zrnt/eth2/beacon/deneb" ) diff --git a/beacon/blsync/client.go b/beacon/blsync/client.go index 744f469124..5e9c674132 100644 --- a/beacon/blsync/client.go +++ b/beacon/blsync/client.go @@ -17,18 +17,18 @@ package blsync import ( - "github.com/ethereum/go-ethereum/beacon/light" - "github.com/ethereum/go-ethereum/beacon/light/api" - "github.com/ethereum/go-ethereum/beacon/light/request" - "github.com/ethereum/go-ethereum/beacon/light/sync" - "github.com/ethereum/go-ethereum/beacon/params" - "github.com/ethereum/go-ethereum/beacon/types" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/common/mclock" - "github.com/ethereum/go-ethereum/ethdb/memorydb" - "github.com/ethereum/go-ethereum/event" - "github.com/ethereum/go-ethereum/log" - "github.com/ethereum/go-ethereum/rpc" + "github.com/YehorDudukin/go-ethereum/beacon/light" + "github.com/YehorDudukin/go-ethereum/beacon/light/api" + "github.com/YehorDudukin/go-ethereum/beacon/light/request" + "github.com/YehorDudukin/go-ethereum/beacon/light/sync" + "github.com/YehorDudukin/go-ethereum/beacon/params" + "github.com/YehorDudukin/go-ethereum/beacon/types" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/mclock" + "github.com/YehorDudukin/go-ethereum/ethdb/memorydb" + "github.com/YehorDudukin/go-ethereum/event" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/rpc" ) type Client struct { diff --git a/beacon/blsync/engineclient.go b/beacon/blsync/engineclient.go index 77bee83f5b..2d24fed6a8 100644 --- a/beacon/blsync/engineclient.go +++ b/beacon/blsync/engineclient.go @@ -22,13 +22,13 @@ import ( "sync" "time" - "github.com/ethereum/go-ethereum/beacon/engine" - "github.com/ethereum/go-ethereum/beacon/params" - "github.com/ethereum/go-ethereum/beacon/types" - "github.com/ethereum/go-ethereum/common" - ctypes "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/log" - "github.com/ethereum/go-ethereum/rpc" + "github.com/YehorDudukin/go-ethereum/beacon/engine" + "github.com/YehorDudukin/go-ethereum/beacon/params" + "github.com/YehorDudukin/go-ethereum/beacon/types" + "github.com/YehorDudukin/go-ethereum/common" + ctypes "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/rpc" ) type engineClient struct { diff --git a/beacon/engine/errors.go b/beacon/engine/errors.go index 62773a0ea9..426d9c3c64 100644 --- a/beacon/engine/errors.go +++ b/beacon/engine/errors.go @@ -17,8 +17,8 @@ package engine import ( - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/rpc" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/rpc" ) // EngineAPIError is a standardized error message between consensus and execution diff --git a/beacon/engine/gen_blockparams.go b/beacon/engine/gen_blockparams.go index b1f01b50ff..ad067b3f78 100644 --- a/beacon/engine/gen_blockparams.go +++ b/beacon/engine/gen_blockparams.go @@ -6,9 +6,9 @@ import ( "encoding/json" "errors" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/common/hexutil" - "github.com/ethereum/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/core/types" ) var _ = (*payloadAttributesMarshaling)(nil) diff --git a/beacon/engine/gen_ed.go b/beacon/engine/gen_ed.go index 0ae5a3b8f1..cfadf45beb 100644 --- a/beacon/engine/gen_ed.go +++ b/beacon/engine/gen_ed.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/core/types" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/core/types" ) var _ = (*executableDataMarshaling)(nil) diff --git a/beacon/engine/gen_epe.go b/beacon/engine/gen_epe.go index deada06166..c78cec9ace 100644 --- a/beacon/engine/gen_epe.go +++ b/beacon/engine/gen_epe.go @@ -7,7 +7,7 @@ import ( "errors" "math/big" - "github.com/ethereum/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/common/hexutil" ) var _ = (*executionPayloadEnvelopeMarshaling)(nil) diff --git a/beacon/engine/types.go b/beacon/engine/types.go index 984090ef89..6f50eb5f93 100644 --- a/beacon/engine/types.go +++ b/beacon/engine/types.go @@ -21,11 +21,11 @@ import ( "math/big" "slices" - "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/params" - "github.com/ethereum/go-ethereum/trie" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/trie" ) // PayloadVersion denotes the version of PayloadAttributes used to request the diff --git a/beacon/light/api/api_server.go b/beacon/light/api/api_server.go index 2579854d82..516a7ea5f6 100755 --- a/beacon/light/api/api_server.go +++ b/beacon/light/api/api_server.go @@ -19,11 +19,11 @@ package api import ( "reflect" - "github.com/ethereum/go-ethereum/beacon/light/request" - "github.com/ethereum/go-ethereum/beacon/light/sync" - "github.com/ethereum/go-ethereum/beacon/types" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/beacon/light/request" + "github.com/YehorDudukin/go-ethereum/beacon/light/sync" + "github.com/YehorDudukin/go-ethereum/beacon/types" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/log" ) // ApiServer is a wrapper around BeaconLightApi that implements request.requestServer. diff --git a/beacon/light/api/light_api.go b/beacon/light/api/light_api.go index f9a5aae153..f33ca27dd7 100755 --- a/beacon/light/api/light_api.go +++ b/beacon/light/api/light_api.go @@ -28,13 +28,13 @@ import ( "sync" "time" + "github.com/YehorDudukin/go-ethereum/beacon/merkle" + "github.com/YehorDudukin/go-ethereum/beacon/params" + "github.com/YehorDudukin/go-ethereum/beacon/types" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/log" "github.com/donovanhide/eventsource" - "github.com/ethereum/go-ethereum/beacon/merkle" - "github.com/ethereum/go-ethereum/beacon/params" - "github.com/ethereum/go-ethereum/beacon/types" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/common/hexutil" - "github.com/ethereum/go-ethereum/log" ) var ( diff --git a/beacon/light/canonical.go b/beacon/light/canonical.go index b5371493b4..09f7a4f971 100644 --- a/beacon/light/canonical.go +++ b/beacon/light/canonical.go @@ -20,10 +20,10 @@ import ( "encoding/binary" "fmt" - "github.com/ethereum/go-ethereum/common/lru" - "github.com/ethereum/go-ethereum/ethdb" - "github.com/ethereum/go-ethereum/log" - "github.com/ethereum/go-ethereum/rlp" + "github.com/YehorDudukin/go-ethereum/common/lru" + "github.com/YehorDudukin/go-ethereum/ethdb" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/rlp" ) // canonicalStore stores instances of the given type in a database and caches diff --git a/beacon/light/committee_chain.go b/beacon/light/committee_chain.go index 4fa87785c0..9ce284e654 100644 --- a/beacon/light/committee_chain.go +++ b/beacon/light/committee_chain.go @@ -23,14 +23,14 @@ import ( "sync" "time" - "github.com/ethereum/go-ethereum/beacon/params" - "github.com/ethereum/go-ethereum/beacon/types" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/common/lru" - "github.com/ethereum/go-ethereum/common/mclock" - "github.com/ethereum/go-ethereum/core/rawdb" - "github.com/ethereum/go-ethereum/ethdb" - "github.com/ethereum/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/beacon/params" + "github.com/YehorDudukin/go-ethereum/beacon/types" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/lru" + "github.com/YehorDudukin/go-ethereum/common/mclock" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/ethdb" + "github.com/YehorDudukin/go-ethereum/log" ) var ( diff --git a/beacon/light/committee_chain_test.go b/beacon/light/committee_chain_test.go index 17ba135905..817d69b6f5 100644 --- a/beacon/light/committee_chain_test.go +++ b/beacon/light/committee_chain_test.go @@ -21,10 +21,10 @@ import ( "testing" "time" - "github.com/ethereum/go-ethereum/beacon/params" - "github.com/ethereum/go-ethereum/beacon/types" - "github.com/ethereum/go-ethereum/common/mclock" - "github.com/ethereum/go-ethereum/ethdb/memorydb" + "github.com/YehorDudukin/go-ethereum/beacon/params" + "github.com/YehorDudukin/go-ethereum/beacon/types" + "github.com/YehorDudukin/go-ethereum/common/mclock" + "github.com/YehorDudukin/go-ethereum/ethdb/memorydb" ) var ( diff --git a/beacon/light/head_tracker.go b/beacon/light/head_tracker.go index 62faf1dbc1..5db724d6d0 100644 --- a/beacon/light/head_tracker.go +++ b/beacon/light/head_tracker.go @@ -21,10 +21,10 @@ import ( "sync" "time" - "github.com/ethereum/go-ethereum/beacon/params" - "github.com/ethereum/go-ethereum/beacon/types" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/beacon/params" + "github.com/YehorDudukin/go-ethereum/beacon/types" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/log" ) // HeadTracker keeps track of the latest validated head and the "prefetch" head diff --git a/beacon/light/request/scheduler.go b/beacon/light/request/scheduler.go index e80daf805e..0e421c855e 100644 --- a/beacon/light/request/scheduler.go +++ b/beacon/light/request/scheduler.go @@ -19,7 +19,7 @@ package request import ( "sync" - "github.com/ethereum/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/log" ) // Module represents a mechanism which is typically responsible for downloading diff --git a/beacon/light/request/server.go b/beacon/light/request/server.go index a06dec99ae..cfb65c3576 100644 --- a/beacon/light/request/server.go +++ b/beacon/light/request/server.go @@ -21,8 +21,8 @@ import ( "sync" "time" - "github.com/ethereum/go-ethereum/common/mclock" - "github.com/ethereum/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/common/mclock" + "github.com/YehorDudukin/go-ethereum/log" ) var ( diff --git a/beacon/light/request/server_test.go b/beacon/light/request/server_test.go index fef5d062ea..b4dd83eee3 100644 --- a/beacon/light/request/server_test.go +++ b/beacon/light/request/server_test.go @@ -3,7 +3,7 @@ package request import ( "testing" - "github.com/ethereum/go-ethereum/common/mclock" + "github.com/YehorDudukin/go-ethereum/common/mclock" ) const ( diff --git a/beacon/light/sync/head_sync.go b/beacon/light/sync/head_sync.go index 5e41258053..c8d07700ec 100644 --- a/beacon/light/sync/head_sync.go +++ b/beacon/light/sync/head_sync.go @@ -17,9 +17,9 @@ package sync import ( - "github.com/ethereum/go-ethereum/beacon/light/request" - "github.com/ethereum/go-ethereum/beacon/types" - "github.com/ethereum/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/beacon/light/request" + "github.com/YehorDudukin/go-ethereum/beacon/types" + "github.com/YehorDudukin/go-ethereum/log" ) type headTracker interface { diff --git a/beacon/light/sync/head_sync_test.go b/beacon/light/sync/head_sync_test.go index d095d6a446..0763b7c75b 100644 --- a/beacon/light/sync/head_sync_test.go +++ b/beacon/light/sync/head_sync_test.go @@ -19,9 +19,9 @@ package sync import ( "testing" - "github.com/ethereum/go-ethereum/beacon/light/request" - "github.com/ethereum/go-ethereum/beacon/types" - "github.com/ethereum/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/beacon/light/request" + "github.com/YehorDudukin/go-ethereum/beacon/types" + "github.com/YehorDudukin/go-ethereum/common" ) var ( diff --git a/beacon/light/sync/test_helpers.go b/beacon/light/sync/test_helpers.go index b331bf7110..96132d23b9 100644 --- a/beacon/light/sync/test_helpers.go +++ b/beacon/light/sync/test_helpers.go @@ -20,9 +20,9 @@ import ( "reflect" "testing" - "github.com/ethereum/go-ethereum/beacon/light" - "github.com/ethereum/go-ethereum/beacon/light/request" - "github.com/ethereum/go-ethereum/beacon/types" + "github.com/YehorDudukin/go-ethereum/beacon/light" + "github.com/YehorDudukin/go-ethereum/beacon/light/request" + "github.com/YehorDudukin/go-ethereum/beacon/types" ) type requestWithID struct { diff --git a/beacon/light/sync/types.go b/beacon/light/sync/types.go index 97a3fb2111..cebb5a06a5 100644 --- a/beacon/light/sync/types.go +++ b/beacon/light/sync/types.go @@ -17,9 +17,9 @@ package sync import ( - "github.com/ethereum/go-ethereum/beacon/light/request" - "github.com/ethereum/go-ethereum/beacon/types" - "github.com/ethereum/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/beacon/light/request" + "github.com/YehorDudukin/go-ethereum/beacon/types" + "github.com/YehorDudukin/go-ethereum/common" ) var ( diff --git a/beacon/light/sync/update_sync.go b/beacon/light/sync/update_sync.go index 9549ee5992..99b0f42877 100644 --- a/beacon/light/sync/update_sync.go +++ b/beacon/light/sync/update_sync.go @@ -19,12 +19,12 @@ package sync import ( "sort" - "github.com/ethereum/go-ethereum/beacon/light" - "github.com/ethereum/go-ethereum/beacon/light/request" - "github.com/ethereum/go-ethereum/beacon/params" - "github.com/ethereum/go-ethereum/beacon/types" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/beacon/light" + "github.com/YehorDudukin/go-ethereum/beacon/light/request" + "github.com/YehorDudukin/go-ethereum/beacon/params" + "github.com/YehorDudukin/go-ethereum/beacon/types" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/log" ) const maxUpdateRequest = 8 // maximum number of updates requested in a single request diff --git a/beacon/light/sync/update_sync_test.go b/beacon/light/sync/update_sync_test.go index 88d573165e..2f4b7751a9 100644 --- a/beacon/light/sync/update_sync_test.go +++ b/beacon/light/sync/update_sync_test.go @@ -19,8 +19,8 @@ package sync import ( "testing" - "github.com/ethereum/go-ethereum/beacon/light/request" - "github.com/ethereum/go-ethereum/beacon/types" + "github.com/YehorDudukin/go-ethereum/beacon/light/request" + "github.com/YehorDudukin/go-ethereum/beacon/types" ) func TestCheckpointInit(t *testing.T) { diff --git a/beacon/light/test_helpers.go b/beacon/light/test_helpers.go index 50e554b3d7..149db39fec 100644 --- a/beacon/light/test_helpers.go +++ b/beacon/light/test_helpers.go @@ -21,10 +21,10 @@ import ( "crypto/sha256" mrand "math/rand" - "github.com/ethereum/go-ethereum/beacon/merkle" - "github.com/ethereum/go-ethereum/beacon/params" - "github.com/ethereum/go-ethereum/beacon/types" - "github.com/ethereum/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/beacon/merkle" + "github.com/YehorDudukin/go-ethereum/beacon/params" + "github.com/YehorDudukin/go-ethereum/beacon/types" + "github.com/YehorDudukin/go-ethereum/common" ) func GenerateTestCommittee() *types.SerializedSyncCommittee { diff --git a/beacon/merkle/merkle.go b/beacon/merkle/merkle.go index 30896f9b01..cd4e0e9aaf 100644 --- a/beacon/merkle/merkle.go +++ b/beacon/merkle/merkle.go @@ -22,8 +22,8 @@ import ( "errors" "reflect" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/hexutil" ) // Value represents either a 32 byte leaf value or hash node in a binary merkle tree/partial proof. diff --git a/beacon/params/config.go b/beacon/params/config.go index 2f6ba082c5..97f85fb0b4 100644 --- a/beacon/params/config.go +++ b/beacon/params/config.go @@ -26,10 +26,10 @@ import ( "strconv" "strings" - "github.com/ethereum/go-ethereum/beacon/merkle" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/common/hexutil" - "github.com/ethereum/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/beacon/merkle" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/log" "gopkg.in/yaml.v3" ) diff --git a/beacon/params/networks.go b/beacon/params/networks.go index 7e73a2c69c..c8bdd8f622 100644 --- a/beacon/params/networks.go +++ b/beacon/params/networks.go @@ -19,7 +19,7 @@ package params import ( _ "embed" - "github.com/ethereum/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common" ) //go:embed checkpoint_mainnet.hex diff --git a/beacon/types/beacon_block.go b/beacon/types/beacon_block.go index a2e31d5abf..595adcb60a 100644 --- a/beacon/types/beacon_block.go +++ b/beacon/types/beacon_block.go @@ -21,8 +21,8 @@ import ( "encoding/json" "fmt" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/types" zrntcommon "github.com/protolambda/zrnt/eth2/beacon/common" "github.com/protolambda/zrnt/eth2/configs" "github.com/protolambda/ztyp/codec" diff --git a/beacon/types/beacon_block_test.go b/beacon/types/beacon_block_test.go index 05aeeaaa16..665b97efb8 100644 --- a/beacon/types/beacon_block_test.go +++ b/beacon/types/beacon_block_test.go @@ -21,7 +21,7 @@ import ( "path/filepath" "testing" - "github.com/ethereum/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common" ) func TestBlockFromJSON(t *testing.T) { diff --git a/beacon/types/committee.go b/beacon/types/committee.go index 5f89c27554..126f75ab4a 100644 --- a/beacon/types/committee.go +++ b/beacon/types/committee.go @@ -22,9 +22,9 @@ import ( "fmt" "math/bits" - "github.com/ethereum/go-ethereum/beacon/params" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/beacon/params" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/hexutil" bls "github.com/protolambda/bls12-381-util" ) diff --git a/beacon/types/exec_header.go b/beacon/types/exec_header.go index ae79b00841..92a394a4d2 100644 --- a/beacon/types/exec_header.go +++ b/beacon/types/exec_header.go @@ -20,8 +20,8 @@ import ( "encoding/json" "fmt" - "github.com/ethereum/go-ethereum/beacon/merkle" - "github.com/ethereum/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/beacon/merkle" + "github.com/YehorDudukin/go-ethereum/common" zrntcommon "github.com/protolambda/zrnt/eth2/beacon/common" "github.com/protolambda/ztyp/tree" diff --git a/beacon/types/exec_payload.go b/beacon/types/exec_payload.go index 7b81f2fbfc..b4ae997780 100644 --- a/beacon/types/exec_payload.go +++ b/beacon/types/exec_payload.go @@ -20,9 +20,9 @@ import ( "fmt" "math/big" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/trie" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/trie" "github.com/holiman/uint256" "github.com/protolambda/zrnt/eth2/beacon/capella" zrntcommon "github.com/protolambda/zrnt/eth2/beacon/common" diff --git a/beacon/types/gen_header_json.go b/beacon/types/gen_header_json.go index 9b3ffea06f..97685df2f5 100644 --- a/beacon/types/gen_header_json.go +++ b/beacon/types/gen_header_json.go @@ -6,7 +6,7 @@ import ( "encoding/json" "errors" - "github.com/ethereum/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common" ) var _ = (*headerMarshaling)(nil) diff --git a/beacon/types/gen_syncaggregate_json.go b/beacon/types/gen_syncaggregate_json.go index 1547ec5f01..25703d6185 100644 --- a/beacon/types/gen_syncaggregate_json.go +++ b/beacon/types/gen_syncaggregate_json.go @@ -6,7 +6,7 @@ import ( "encoding/json" "errors" - "github.com/ethereum/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/common/hexutil" ) var _ = (*syncAggregateMarshaling)(nil) diff --git a/beacon/types/header.go b/beacon/types/header.go index c8388df1e7..40fd53acfe 100644 --- a/beacon/types/header.go +++ b/beacon/types/header.go @@ -21,9 +21,9 @@ import ( "crypto/sha256" "encoding/binary" - "github.com/ethereum/go-ethereum/beacon/merkle" - "github.com/ethereum/go-ethereum/beacon/params" - "github.com/ethereum/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/beacon/merkle" + "github.com/YehorDudukin/go-ethereum/beacon/params" + "github.com/YehorDudukin/go-ethereum/common" zrntcommon "github.com/protolambda/zrnt/eth2/beacon/common" ) diff --git a/beacon/types/light_sync.go b/beacon/types/light_sync.go index 128ee77f1b..efa5d6b45c 100644 --- a/beacon/types/light_sync.go +++ b/beacon/types/light_sync.go @@ -20,10 +20,10 @@ import ( "errors" "fmt" - "github.com/ethereum/go-ethereum/beacon/merkle" - "github.com/ethereum/go-ethereum/beacon/params" - "github.com/ethereum/go-ethereum/common" - ctypes "github.com/ethereum/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/beacon/merkle" + "github.com/YehorDudukin/go-ethereum/beacon/params" + "github.com/YehorDudukin/go-ethereum/common" + ctypes "github.com/YehorDudukin/go-ethereum/core/types" ) // HeadInfo represents an unvalidated new head announcement. diff --git a/build/ci.go b/build/ci.go index b2ff829d3f..e29f0b6a39 100644 --- a/build/ci.go +++ b/build/ci.go @@ -56,10 +56,10 @@ import ( "strings" "time" + "github.com/YehorDudukin/go-ethereum/crypto/signify" + "github.com/YehorDudukin/go-ethereum/internal/build" + "github.com/YehorDudukin/go-ethereum/internal/version" "github.com/cespare/cp" - "github.com/ethereum/go-ethereum/crypto/signify" - "github.com/ethereum/go-ethereum/internal/build" - "github.com/ethereum/go-ethereum/internal/version" ) var ( @@ -234,8 +234,8 @@ func buildFlags(env build.Environment, staticLinking bool, buildTags []string) ( // cgo-linker further down. ld = append(ld, "--buildid=none") if env.Commit != "" { - ld = append(ld, "-X", "github.com/ethereum/go-ethereum/internal/version.gitCommit="+env.Commit) - ld = append(ld, "-X", "github.com/ethereum/go-ethereum/internal/version.gitDate="+env.Date) + ld = append(ld, "-X", "github.com/YehorDudukin/go-ethereum/internal/version.gitCommit="+env.Commit) + ld = append(ld, "-X", "github.com/YehorDudukin/go-ethereum/internal/version.gitDate="+env.Date) } // Strip DWARF on darwin. This used to be required for certain things, // and there is no downside to this, so we just keep doing it. @@ -401,8 +401,8 @@ func doCheckGenerate() { func doCheckBadDeps() { baddeps := [][2]string{ // Rawdb tends to be a dumping ground for db utils, sometimes leaking the db itself - {"github.com/ethereum/go-ethereum/core/rawdb", "github.com/ethereum/go-ethereum/ethdb/leveldb"}, - {"github.com/ethereum/go-ethereum/core/rawdb", "github.com/ethereum/go-ethereum/ethdb/pebbledb"}, + {"github.com/YehorDudukin/go-ethereum/core/rawdb", "github.com/YehorDudukin/go-ethereum/ethdb/leveldb"}, + {"github.com/YehorDudukin/go-ethereum/core/rawdb", "github.com/YehorDudukin/go-ethereum/ethdb/pebbledb"}, } tc := new(build.GoToolchain) diff --git a/build/deb/ethereum/deb.control b/build/deb/ethereum/deb.control index 333e954c17..9a06d5ea4c 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), golang-go Standards-Version: 3.9.5 Homepage: https://ethereum.org -Vcs-Git: https://github.com/ethereum/go-ethereum.git -Vcs-Browser: https://github.com/ethereum/go-ethereum +Vcs-Git: https://github.com/YehorDudukin/go-ethereum.git +Vcs-Browser: https://github.com/YehorDudukin/go-ethereum Package: {{.Name}} Architecture: any diff --git a/build/nsis.install.nsh b/build/nsis.install.nsh index 9b73148a44..7d726ed5b6 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/YehorDudukin/go-ethereum/issues" +!define UPDATEURL "https://github.com/YehorDudukin/go-ethereum/releases" +!define ABOUTURL "https://github.com/YehorDudukin/go-ethereum#ethereum-go" !define /date NOW "%Y%m%d" PageEx license diff --git a/build/update-license.go b/build/update-license.go index f548a5995b..ea008a0df5 100644 --- a/build/update-license.go +++ b/build/update-license.go @@ -78,7 +78,7 @@ var ( "internal/reexec", // 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/YehorDudukin/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 ae1ac64139..c57ad95db5 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/YehorDudukin/go-ethereum/signer/core/apitypes" + "github.com/YehorDudukin/go-ethereum/signer/fourbyte" ) func init() { diff --git a/cmd/abigen/main.go b/cmd/abigen/main.go index c82358be49..77f4d3dced 100644 --- a/cmd/abigen/main.go +++ b/cmd/abigen/main.go @@ -24,12 +24,12 @@ import ( "regexp" "strings" - "github.com/ethereum/go-ethereum/accounts/abi/abigen" - "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/YehorDudukin/go-ethereum/accounts/abi/abigen" + "github.com/YehorDudukin/go-ethereum/cmd/utils" + "github.com/YehorDudukin/go-ethereum/common/compiler" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/internal/flags" + "github.com/YehorDudukin/go-ethereum/log" "github.com/urfave/cli/v2" ) diff --git a/cmd/blsync/main.go b/cmd/blsync/main.go index 39a9407304..10131a1ca5 100644 --- a/cmd/blsync/main.go +++ b/cmd/blsync/main.go @@ -22,13 +22,13 @@ import ( "os" "slices" - "github.com/ethereum/go-ethereum/beacon/blsync" - "github.com/ethereum/go-ethereum/cmd/utils" - "github.com/ethereum/go-ethereum/internal/debug" - "github.com/ethereum/go-ethereum/internal/flags" - "github.com/ethereum/go-ethereum/log" - "github.com/ethereum/go-ethereum/node" - "github.com/ethereum/go-ethereum/rpc" + "github.com/YehorDudukin/go-ethereum/beacon/blsync" + "github.com/YehorDudukin/go-ethereum/cmd/utils" + "github.com/YehorDudukin/go-ethereum/internal/debug" + "github.com/YehorDudukin/go-ethereum/internal/flags" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/node" + "github.com/YehorDudukin/go-ethereum/rpc" "github.com/urfave/cli/v2" ) diff --git a/cmd/clef/main.go b/cmd/clef/main.go index dde4ae853f..783935c590 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/YehorDudukin/go-ethereum/accounts" + "github.com/YehorDudukin/go-ethereum/accounts/keystore" + "github.com/YehorDudukin/go-ethereum/cmd/utils" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/internal/ethapi" + "github.com/YehorDudukin/go-ethereum/internal/flags" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/node" + "github.com/YehorDudukin/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/rlp" + "github.com/YehorDudukin/go-ethereum/rpc" + "github.com/YehorDudukin/go-ethereum/signer/core" + "github.com/YehorDudukin/go-ethereum/signer/core/apitypes" + "github.com/YehorDudukin/go-ethereum/signer/fourbyte" + "github.com/YehorDudukin/go-ethereum/signer/rules" + "github.com/YehorDudukin/go-ethereum/signer/storage" "github.com/mattn/go-colorable" "github.com/mattn/go-isatty" "github.com/urfave/cli/v2" @@ -873,7 +873,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/YehorDudukin/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/run_test.go b/cmd/clef/run_test.go index d404457ba2..1a0c6d0db6 100644 --- a/cmd/clef/run_test.go +++ b/cmd/clef/run_test.go @@ -21,8 +21,8 @@ import ( "os" "testing" - "github.com/ethereum/go-ethereum/internal/cmdtest" - "github.com/ethereum/go-ethereum/internal/reexec" + "github.com/YehorDudukin/go-ethereum/internal/cmdtest" + "github.com/YehorDudukin/go-ethereum/internal/reexec" ) const registeredName = "clef-test" diff --git a/cmd/clef/tutorial.md b/cmd/clef/tutorial.md index 3ea662b5d4..1f3f275638 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/YehorDudukin/go-ethereum/tree/master/cmd/clef#external-api-1) and the [External API Changelog](https://github.com/YehorDudukin/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/YehorDudukin/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/YehorDudukin/go-ethereum/blob/master/cmd/clef/rules.md). ## Geth integration diff --git a/cmd/devp2p/crawl.go b/cmd/devp2p/crawl.go index 4288a5feb8..a2bd5f484e 100644 --- a/cmd/devp2p/crawl.go +++ b/cmd/devp2p/crawl.go @@ -22,8 +22,8 @@ import ( "sync/atomic" "time" - "github.com/ethereum/go-ethereum/log" - "github.com/ethereum/go-ethereum/p2p/enode" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/p2p/enode" ) type crawler struct { diff --git a/cmd/devp2p/discv4cmd.go b/cmd/devp2p/discv4cmd.go index 84c7ef0c44..c2b360c2e3 100644 --- a/cmd/devp2p/discv4cmd.go +++ b/cmd/devp2p/discv4cmd.go @@ -26,14 +26,14 @@ 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/log" - "github.com/ethereum/go-ethereum/p2p/discover" - "github.com/ethereum/go-ethereum/p2p/enode" - "github.com/ethereum/go-ethereum/params" - "github.com/ethereum/go-ethereum/rpc" + "github.com/YehorDudukin/go-ethereum/cmd/devp2p/internal/v4test" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/p2p/discover" + "github.com/YehorDudukin/go-ethereum/p2p/enode" + "github.com/YehorDudukin/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/rpc" "github.com/urfave/cli/v2" ) diff --git a/cmd/devp2p/discv5cmd.go b/cmd/devp2p/discv5cmd.go index dd253dd082..da2e729e8d 100644 --- a/cmd/devp2p/discv5cmd.go +++ b/cmd/devp2p/discv5cmd.go @@ -22,9 +22,9 @@ import ( "slices" "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/YehorDudukin/go-ethereum/cmd/devp2p/internal/v5test" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/p2p/discover" "github.com/urfave/cli/v2" ) diff --git a/cmd/devp2p/dns_cloudflare.go b/cmd/devp2p/dns_cloudflare.go index b8aded7b0d..b982743e8c 100644 --- a/cmd/devp2p/dns_cloudflare.go +++ b/cmd/devp2p/dns_cloudflare.go @@ -22,9 +22,9 @@ import ( "fmt" "strings" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/p2p/dnsdisc" "github.com/cloudflare/cloudflare-go" - "github.com/ethereum/go-ethereum/log" - "github.com/ethereum/go-ethereum/p2p/dnsdisc" "github.com/urfave/cli/v2" ) diff --git a/cmd/devp2p/dns_route53.go b/cmd/devp2p/dns_route53.go index 86907688f3..b74608e7ab 100644 --- a/cmd/devp2p/dns_route53.go +++ b/cmd/devp2p/dns_route53.go @@ -26,13 +26,13 @@ import ( "strings" "time" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/p2p/dnsdisc" "github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/aws-sdk-go-v2/config" "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/urfave/cli/v2" ) diff --git a/cmd/devp2p/dnscmd.go b/cmd/devp2p/dnscmd.go index 0fce7b1030..6374023638 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/YehorDudukin/go-ethereum/accounts/keystore" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/console/prompt" + "github.com/YehorDudukin/go-ethereum/p2p/dnsdisc" + "github.com/YehorDudukin/go-ethereum/p2p/enode" "github.com/urfave/cli/v2" ) diff --git a/cmd/devp2p/enrcmd.go b/cmd/devp2p/enrcmd.go index c9b692612f..374fe81074 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/YehorDudukin/go-ethereum/p2p/enode" + "github.com/YehorDudukin/go-ethereum/p2p/enr" + "github.com/YehorDudukin/go-ethereum/rlp" "github.com/urfave/cli/v2" ) diff --git a/cmd/devp2p/internal/ethtest/chain.go b/cmd/devp2p/internal/ethtest/chain.go index 689667a56b..5262f3ca91 100644 --- a/cmd/devp2p/internal/ethtest/chain.go +++ b/cmd/devp2p/internal/ethtest/chain.go @@ -31,16 +31,16 @@ import ( "slices" "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/forkid" - "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/eth/protocols/eth" - "github.com/ethereum/go-ethereum/params" - "github.com/ethereum/go-ethereum/rlp" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/core" + "github.com/YehorDudukin/go-ethereum/core/forkid" + "github.com/YehorDudukin/go-ethereum/core/state" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/eth/protocols/eth" + "github.com/YehorDudukin/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/rlp" ) // Chain is a lightweight blockchain-like store which can read a hivechain diff --git a/cmd/devp2p/internal/ethtest/chain_test.go b/cmd/devp2p/internal/ethtest/chain_test.go index 62bd6d26ea..e46c355b02 100644 --- a/cmd/devp2p/internal/ethtest/chain_test.go +++ b/cmd/devp2p/internal/ethtest/chain_test.go @@ -21,9 +21,9 @@ import ( "strconv" "testing" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/eth/protocols/eth" - "github.com/ethereum/go-ethereum/p2p" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/eth/protocols/eth" + "github.com/YehorDudukin/go-ethereum/p2p" "github.com/stretchr/testify/assert" ) diff --git a/cmd/devp2p/internal/ethtest/conn.go b/cmd/devp2p/internal/ethtest/conn.go index a7bc70cbf5..64df1d56f7 100644 --- a/cmd/devp2p/internal/ethtest/conn.go +++ b/cmd/devp2p/internal/ethtest/conn.go @@ -24,13 +24,13 @@ import ( "reflect" "time" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/eth/protocols/eth" + "github.com/YehorDudukin/go-ethereum/eth/protocols/snap" + "github.com/YehorDudukin/go-ethereum/p2p" + "github.com/YehorDudukin/go-ethereum/p2p/rlpx" + "github.com/YehorDudukin/go-ethereum/rlp" "github.com/davecgh/go-spew/spew" - "github.com/ethereum/go-ethereum/crypto" - "github.com/ethereum/go-ethereum/eth/protocols/eth" - "github.com/ethereum/go-ethereum/eth/protocols/snap" - "github.com/ethereum/go-ethereum/p2p" - "github.com/ethereum/go-ethereum/p2p/rlpx" - "github.com/ethereum/go-ethereum/rlp" ) var ( diff --git a/cmd/devp2p/internal/ethtest/engine.go b/cmd/devp2p/internal/ethtest/engine.go index 0e94efa5bd..1fd52f4173 100644 --- a/cmd/devp2p/internal/ethtest/engine.go +++ b/cmd/devp2p/internal/ethtest/engine.go @@ -25,7 +25,7 @@ import ( "path/filepath" "time" - "github.com/ethereum/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common" "github.com/golang-jwt/jwt/v4" ) diff --git a/cmd/devp2p/internal/ethtest/protocol.go b/cmd/devp2p/internal/ethtest/protocol.go index 5c2f7d9e48..064ec3c6b4 100644 --- a/cmd/devp2p/internal/ethtest/protocol.go +++ b/cmd/devp2p/internal/ethtest/protocol.go @@ -17,8 +17,8 @@ package ethtest import ( - "github.com/ethereum/go-ethereum/p2p" - "github.com/ethereum/go-ethereum/rlp" + "github.com/YehorDudukin/go-ethereum/p2p" + "github.com/YehorDudukin/go-ethereum/rlp" ) // Unexported devp2p message codes from p2p/peer.go. diff --git a/cmd/devp2p/internal/ethtest/snap.go b/cmd/devp2p/internal/ethtest/snap.go index 9c1efa0e8e..85a35e3496 100644 --- a/cmd/devp2p/internal/ethtest/snap.go +++ b/cmd/devp2p/internal/ethtest/snap.go @@ -24,14 +24,14 @@ import ( "math/rand" "reflect" - "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/crypto" - "github.com/ethereum/go-ethereum/eth/protocols/snap" - "github.com/ethereum/go-ethereum/internal/utesting" - "github.com/ethereum/go-ethereum/trie" - "github.com/ethereum/go-ethereum/trie/trienode" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/state" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/eth/protocols/snap" + "github.com/YehorDudukin/go-ethereum/internal/utesting" + "github.com/YehorDudukin/go-ethereum/trie" + "github.com/YehorDudukin/go-ethereum/trie/trienode" ) func (c *Conn) snapRequest(code uint64, msg any) (any, error) { diff --git a/cmd/devp2p/internal/ethtest/suite.go b/cmd/devp2p/internal/ethtest/suite.go index 8ebbe2a05d..8dc82a47a3 100644 --- a/cmd/devp2p/internal/ethtest/suite.go +++ b/cmd/devp2p/internal/ethtest/suite.go @@ -24,15 +24,15 @@ import ( "sync" "time" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/consensus/misc/eip4844" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/crypto" - "github.com/ethereum/go-ethereum/crypto/kzg4844" - "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/enode" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/consensus/misc/eip4844" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/crypto/kzg4844" + "github.com/YehorDudukin/go-ethereum/eth/protocols/eth" + "github.com/YehorDudukin/go-ethereum/internal/utesting" + "github.com/YehorDudukin/go-ethereum/p2p" + "github.com/YehorDudukin/go-ethereum/p2p/enode" "github.com/holiman/uint256" ) diff --git a/cmd/devp2p/internal/ethtest/suite_test.go b/cmd/devp2p/internal/ethtest/suite_test.go index a6fca0e524..6c9434ab47 100644 --- a/cmd/devp2p/internal/ethtest/suite_test.go +++ b/cmd/devp2p/internal/ethtest/suite_test.go @@ -24,14 +24,14 @@ import ( "testing" "time" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/common/hexutil" - "github.com/ethereum/go-ethereum/eth" - "github.com/ethereum/go-ethereum/eth/catalyst" - "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/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/eth" + "github.com/YehorDudukin/go-ethereum/eth/catalyst" + "github.com/YehorDudukin/go-ethereum/eth/ethconfig" + "github.com/YehorDudukin/go-ethereum/internal/utesting" + "github.com/YehorDudukin/go-ethereum/node" + "github.com/YehorDudukin/go-ethereum/p2p" ) func makeJWTSecret(t *testing.T) (string, [32]byte, error) { diff --git a/cmd/devp2p/internal/ethtest/transaction.go b/cmd/devp2p/internal/ethtest/transaction.go index cbbbbce8d9..c549e3a371 100644 --- a/cmd/devp2p/internal/ethtest/transaction.go +++ b/cmd/devp2p/internal/ethtest/transaction.go @@ -22,10 +22,10 @@ import ( "os" "time" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/eth/protocols/eth" - "github.com/ethereum/go-ethereum/internal/utesting" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/eth/protocols/eth" + "github.com/YehorDudukin/go-ethereum/internal/utesting" ) // sendTxs sends the given transactions to the node and diff --git a/cmd/devp2p/internal/v4test/discv4tests.go b/cmd/devp2p/internal/v4test/discv4tests.go index 963df6cdbc..f5eebf4545 100644 --- a/cmd/devp2p/internal/v4test/discv4tests.go +++ b/cmd/devp2p/internal/v4test/discv4tests.go @@ -24,9 +24,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/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/internal/utesting" + "github.com/YehorDudukin/go-ethereum/p2p/discover/v4wire" ) const ( diff --git a/cmd/devp2p/internal/v4test/framework.go b/cmd/devp2p/internal/v4test/framework.go index 958fb71179..e5be247b96 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/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/p2p/discover/v4wire" + "github.com/YehorDudukin/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 2139cd8ca6..e6f11fadde 100644 --- a/cmd/devp2p/internal/v5test/discv5tests.go +++ b/cmd/devp2p/internal/v5test/discv5tests.go @@ -23,10 +23,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/YehorDudukin/go-ethereum/internal/utesting" + "github.com/YehorDudukin/go-ethereum/p2p/discover/v5wire" + "github.com/YehorDudukin/go-ethereum/p2p/enode" + "github.com/YehorDudukin/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 92a5048150..3cba7b658f 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/YehorDudukin/go-ethereum/common/mclock" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/p2p/discover/v5wire" + "github.com/YehorDudukin/go-ethereum/p2p/enode" + "github.com/YehorDudukin/go-ethereum/p2p/enr" ) // readError represents an error during packet reading. diff --git a/cmd/devp2p/keycmd.go b/cmd/devp2p/keycmd.go index 98d7bd76ae..f576607911 100644 --- a/cmd/devp2p/keycmd.go +++ b/cmd/devp2p/keycmd.go @@ -21,9 +21,9 @@ import ( "fmt" "net" - "github.com/ethereum/go-ethereum/crypto" - "github.com/ethereum/go-ethereum/p2p/enode" - "github.com/ethereum/go-ethereum/p2p/enr" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/p2p/enode" + "github.com/YehorDudukin/go-ethereum/p2p/enr" "github.com/urfave/cli/v2" ) diff --git a/cmd/devp2p/main.go b/cmd/devp2p/main.go index 66974bba58..4afbe75d77 100644 --- a/cmd/devp2p/main.go +++ b/cmd/devp2p/main.go @@ -20,9 +20,9 @@ import ( "fmt" "os" - "github.com/ethereum/go-ethereum/internal/debug" - "github.com/ethereum/go-ethereum/internal/flags" - "github.com/ethereum/go-ethereum/p2p/enode" + "github.com/YehorDudukin/go-ethereum/internal/debug" + "github.com/YehorDudukin/go-ethereum/internal/flags" + "github.com/YehorDudukin/go-ethereum/p2p/enode" "github.com/urfave/cli/v2" ) diff --git a/cmd/devp2p/nodeset.go b/cmd/devp2p/nodeset.go index 4a6df6cdfe..c589a2b252 100644 --- a/cmd/devp2p/nodeset.go +++ b/cmd/devp2p/nodeset.go @@ -25,8 +25,8 @@ import ( "slices" "time" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/p2p/enode" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/p2p/enode" ) const jsonIndent = " " diff --git a/cmd/devp2p/nodesetcmd.go b/cmd/devp2p/nodesetcmd.go index d7725fadb1..20d28cef2e 100644 --- a/cmd/devp2p/nodesetcmd.go +++ b/cmd/devp2p/nodesetcmd.go @@ -25,11 +25,11 @@ import ( "strings" "time" - "github.com/ethereum/go-ethereum/core" - "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/YehorDudukin/go-ethereum/core" + "github.com/YehorDudukin/go-ethereum/core/forkid" + "github.com/YehorDudukin/go-ethereum/p2p/enr" + "github.com/YehorDudukin/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/rlp" "github.com/urfave/cli/v2" ) diff --git a/cmd/devp2p/rlpxcmd.go b/cmd/devp2p/rlpxcmd.go index 118731fd6c..71f5781c7b 100644 --- a/cmd/devp2p/rlpxcmd.go +++ b/cmd/devp2p/rlpxcmd.go @@ -21,12 +21,12 @@ import ( "fmt" "net" - "github.com/ethereum/go-ethereum/cmd/devp2p/internal/ethtest" - "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/rlpx" - "github.com/ethereum/go-ethereum/rlp" + "github.com/YehorDudukin/go-ethereum/cmd/devp2p/internal/ethtest" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/p2p" + "github.com/YehorDudukin/go-ethereum/p2p/enode" + "github.com/YehorDudukin/go-ethereum/p2p/rlpx" + "github.com/YehorDudukin/go-ethereum/rlp" "github.com/urfave/cli/v2" ) diff --git a/cmd/devp2p/runtest.go b/cmd/devp2p/runtest.go index 7e3723c641..119affbc38 100644 --- a/cmd/devp2p/runtest.go +++ b/cmd/devp2p/runtest.go @@ -19,10 +19,10 @@ package main import ( "os" - "github.com/ethereum/go-ethereum/cmd/devp2p/internal/v4test" - "github.com/ethereum/go-ethereum/internal/flags" - "github.com/ethereum/go-ethereum/internal/utesting" - "github.com/ethereum/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/cmd/devp2p/internal/v4test" + "github.com/YehorDudukin/go-ethereum/internal/flags" + "github.com/YehorDudukin/go-ethereum/internal/utesting" + "github.com/YehorDudukin/go-ethereum/log" "github.com/urfave/cli/v2" ) diff --git a/cmd/era/main.go b/cmd/era/main.go index 8b57fd695c..03f70c6782 100644 --- a/cmd/era/main.go +++ b/cmd/era/main.go @@ -27,13 +27,13 @@ import ( "strings" "time" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/internal/era" - "github.com/ethereum/go-ethereum/internal/ethapi" - "github.com/ethereum/go-ethereum/internal/flags" - "github.com/ethereum/go-ethereum/params" - "github.com/ethereum/go-ethereum/trie" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/internal/era" + "github.com/YehorDudukin/go-ethereum/internal/ethapi" + "github.com/YehorDudukin/go-ethereum/internal/flags" + "github.com/YehorDudukin/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/trie" "github.com/urfave/cli/v2" ) diff --git a/cmd/ethkey/changepassword.go b/cmd/ethkey/changepassword.go index 4298e2b834..94bd86e9b4 100644 --- a/cmd/ethkey/changepassword.go +++ b/cmd/ethkey/changepassword.go @@ -21,8 +21,8 @@ import ( "os" "strings" - "github.com/ethereum/go-ethereum/accounts/keystore" - "github.com/ethereum/go-ethereum/cmd/utils" + "github.com/YehorDudukin/go-ethereum/accounts/keystore" + "github.com/YehorDudukin/go-ethereum/cmd/utils" "github.com/urfave/cli/v2" ) diff --git a/cmd/ethkey/generate.go b/cmd/ethkey/generate.go index 60d8b3c779..776d23615a 100644 --- a/cmd/ethkey/generate.go +++ b/cmd/ethkey/generate.go @@ -22,9 +22,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/YehorDudukin/go-ethereum/accounts/keystore" + "github.com/YehorDudukin/go-ethereum/cmd/utils" + "github.com/YehorDudukin/go-ethereum/crypto" "github.com/google/uuid" "github.com/urfave/cli/v2" ) diff --git a/cmd/ethkey/inspect.go b/cmd/ethkey/inspect.go index 29b1c13e85..403fabd7f9 100644 --- a/cmd/ethkey/inspect.go +++ b/cmd/ethkey/inspect.go @@ -21,9 +21,9 @@ import ( "fmt" "os" - "github.com/ethereum/go-ethereum/accounts/keystore" - "github.com/ethereum/go-ethereum/cmd/utils" - "github.com/ethereum/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/accounts/keystore" + "github.com/YehorDudukin/go-ethereum/cmd/utils" + "github.com/YehorDudukin/go-ethereum/crypto" "github.com/urfave/cli/v2" ) diff --git a/cmd/ethkey/main.go b/cmd/ethkey/main.go index 25c0d104f6..2ec7b21d19 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/YehorDudukin/go-ethereum/internal/flags" "github.com/urfave/cli/v2" ) diff --git a/cmd/ethkey/message.go b/cmd/ethkey/message.go index 6b8dec03cd..6b8973c05e 100644 --- a/cmd/ethkey/message.go +++ b/cmd/ethkey/message.go @@ -21,11 +21,11 @@ import ( "fmt" "os" - "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/crypto" + "github.com/YehorDudukin/go-ethereum/accounts" + "github.com/YehorDudukin/go-ethereum/accounts/keystore" + "github.com/YehorDudukin/go-ethereum/cmd/utils" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/crypto" "github.com/urfave/cli/v2" ) diff --git a/cmd/ethkey/run_test.go b/cmd/ethkey/run_test.go index 73506e5da1..45913ca1e2 100644 --- a/cmd/ethkey/run_test.go +++ b/cmd/ethkey/run_test.go @@ -21,8 +21,8 @@ import ( "os" "testing" - "github.com/ethereum/go-ethereum/internal/cmdtest" - "github.com/ethereum/go-ethereum/internal/reexec" + "github.com/YehorDudukin/go-ethereum/internal/cmdtest" + "github.com/YehorDudukin/go-ethereum/internal/reexec" ) type testEthkey struct { diff --git a/cmd/ethkey/utils.go b/cmd/ethkey/utils.go index 2821145089..386e4166e8 100644 --- a/cmd/ethkey/utils.go +++ b/cmd/ethkey/utils.go @@ -22,7 +22,7 @@ import ( "os" "strings" - "github.com/ethereum/go-ethereum/cmd/utils" + "github.com/YehorDudukin/go-ethereum/cmd/utils" "github.com/urfave/cli/v2" ) diff --git a/cmd/evm/blockrunner.go b/cmd/evm/blockrunner.go index 31d1ba5ba1..aab4c4abc5 100644 --- a/cmd/evm/blockrunner.go +++ b/cmd/evm/blockrunner.go @@ -25,9 +25,9 @@ import ( "regexp" "slices" - "github.com/ethereum/go-ethereum/core" - "github.com/ethereum/go-ethereum/core/rawdb" - "github.com/ethereum/go-ethereum/tests" + "github.com/YehorDudukin/go-ethereum/core" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/tests" "github.com/urfave/cli/v2" ) diff --git a/cmd/evm/eofparse.go b/cmd/evm/eofparse.go index 9710735576..a69bc2709d 100644 --- a/cmd/evm/eofparse.go +++ b/cmd/evm/eofparse.go @@ -26,8 +26,8 @@ import ( "path/filepath" "strings" - "github.com/ethereum/go-ethereum/core/vm" - "github.com/ethereum/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/core/vm" + "github.com/YehorDudukin/go-ethereum/log" "github.com/urfave/cli/v2" ) diff --git a/cmd/evm/eofparse_test.go b/cmd/evm/eofparse_test.go index a9119916a5..2e892b8036 100644 --- a/cmd/evm/eofparse_test.go +++ b/cmd/evm/eofparse_test.go @@ -25,8 +25,8 @@ import ( "strings" "testing" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/vm" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/vm" ) func FuzzEofParsing(f *testing.F) { diff --git a/cmd/evm/internal/t8ntool/block.go b/cmd/evm/internal/t8ntool/block.go index 37a6db9ffc..1632d3e2df 100644 --- a/cmd/evm/internal/t8ntool/block.go +++ b/cmd/evm/internal/t8ntool/block.go @@ -24,13 +24,13 @@ 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/core/types" - "github.com/ethereum/go-ethereum/crypto" - "github.com/ethereum/go-ethereum/rlp" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/common/math" + "github.com/YehorDudukin/go-ethereum/consensus/clique" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/rlp" "github.com/urfave/cli/v2" ) diff --git a/cmd/evm/internal/t8ntool/execution.go b/cmd/evm/internal/t8ntool/execution.go index b2e5f70714..7b7ad2a161 100644 --- a/cmd/evm/internal/t8ntool/execution.go +++ b/cmd/evm/internal/t8ntool/execution.go @@ -20,25 +20,25 @@ 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/consensus/ethash" - "github.com/ethereum/go-ethereum/consensus/misc" - "github.com/ethereum/go-ethereum/consensus/misc/eip4844" - "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/tracing" - "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/ethereum/go-ethereum/triedb" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/common/math" + "github.com/YehorDudukin/go-ethereum/consensus/ethash" + "github.com/YehorDudukin/go-ethereum/consensus/misc" + "github.com/YehorDudukin/go-ethereum/consensus/misc/eip4844" + "github.com/YehorDudukin/go-ethereum/core" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/core/state" + "github.com/YehorDudukin/go-ethereum/core/tracing" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/core/vm" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/ethdb" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/rlp" + "github.com/YehorDudukin/go-ethereum/trie" + "github.com/YehorDudukin/go-ethereum/triedb" "github.com/holiman/uint256" "golang.org/x/crypto/sha3" ) diff --git a/cmd/evm/internal/t8ntool/file_tracer.go b/cmd/evm/internal/t8ntool/file_tracer.go index 38fc35bd32..e71a37b20f 100644 --- a/cmd/evm/internal/t8ntool/file_tracer.go +++ b/cmd/evm/internal/t8ntool/file_tracer.go @@ -24,11 +24,11 @@ import ( "os" "path/filepath" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/tracing" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/eth/tracers" - "github.com/ethereum/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/tracing" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/eth/tracers" + "github.com/YehorDudukin/go-ethereum/log" ) // fileWritingTracer wraps either a tracer or a logger. On tx start, diff --git a/cmd/evm/internal/t8ntool/flags.go b/cmd/evm/internal/t8ntool/flags.go index f2606c86d1..3c4b50545e 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/YehorDudukin/go-ethereum/core/vm" + "github.com/YehorDudukin/go-ethereum/tests" "github.com/urfave/cli/v2" ) diff --git a/cmd/evm/internal/t8ntool/gen_execresult.go b/cmd/evm/internal/t8ntool/gen_execresult.go index 38310b9f2b..755b83a610 100644 --- a/cmd/evm/internal/t8ntool/gen_execresult.go +++ b/cmd/evm/internal/t8ntool/gen_execresult.go @@ -6,10 +6,10 @@ import ( "encoding/json" "errors" - "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/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/common/math" + "github.com/YehorDudukin/go-ethereum/core/types" ) var _ = (*executionResultMarshaling)(nil) diff --git a/cmd/evm/internal/t8ntool/gen_header.go b/cmd/evm/internal/t8ntool/gen_header.go index a8c8668978..70e6a19532 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/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/common/math" + "github.com/YehorDudukin/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 d47db4a876..ed352632fe 100644 --- a/cmd/evm/internal/t8ntool/gen_stenv.go +++ b/cmd/evm/internal/t8ntool/gen_stenv.go @@ -7,9 +7,9 @@ import ( "errors" "math/big" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/common/math" - "github.com/ethereum/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/math" + "github.com/YehorDudukin/go-ethereum/core/types" ) var _ = (*stEnvMarshaling)(nil) diff --git a/cmd/evm/internal/t8ntool/transaction.go b/cmd/evm/internal/t8ntool/transaction.go index 2bc4f73b60..e5fbf4e43e 100644 --- a/cmd/evm/internal/t8ntool/transaction.go +++ b/cmd/evm/internal/t8ntool/transaction.go @@ -24,13 +24,13 @@ 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/params" - "github.com/ethereum/go-ethereum/rlp" - "github.com/ethereum/go-ethereum/tests" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/core" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/rlp" + "github.com/YehorDudukin/go-ethereum/tests" "github.com/urfave/cli/v2" ) diff --git a/cmd/evm/internal/t8ntool/transition.go b/cmd/evm/internal/t8ntool/transition.go index e946ccddd5..9ef6aa45f4 100644 --- a/cmd/evm/internal/t8ntool/transition.go +++ b/cmd/evm/internal/t8ntool/transition.go @@ -25,18 +25,18 @@ import ( "os" "path/filepath" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/common/hexutil" - "github.com/ethereum/go-ethereum/consensus/misc/eip1559" - "github.com/ethereum/go-ethereum/core/state" - "github.com/ethereum/go-ethereum/core/tracing" - "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/eth/tracers/logger" - "github.com/ethereum/go-ethereum/log" - "github.com/ethereum/go-ethereum/params" - "github.com/ethereum/go-ethereum/tests" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/consensus/misc/eip1559" + "github.com/YehorDudukin/go-ethereum/core/state" + "github.com/YehorDudukin/go-ethereum/core/tracing" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/core/vm" + "github.com/YehorDudukin/go-ethereum/eth/tracers" + "github.com/YehorDudukin/go-ethereum/eth/tracers/logger" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/tests" "github.com/urfave/cli/v2" ) diff --git a/cmd/evm/internal/t8ntool/tx_iterator.go b/cmd/evm/internal/t8ntool/tx_iterator.go index 047626c56b..a7bf3966e7 100644 --- a/cmd/evm/internal/t8ntool/tx_iterator.go +++ b/cmd/evm/internal/t8ntool/tx_iterator.go @@ -25,12 +25,12 @@ import ( "os" "strings" - "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/params" - "github.com/ethereum/go-ethereum/rlp" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/rlp" ) // txWithKey is a helper-struct, to allow us to use the types.Transaction along with diff --git a/cmd/evm/main.go b/cmd/evm/main.go index 61e46aa50e..2786c8bc6c 100644 --- a/cmd/evm/main.go +++ b/cmd/evm/main.go @@ -23,17 +23,17 @@ import ( "os" "path/filepath" - "github.com/ethereum/go-ethereum/cmd/evm/internal/t8ntool" - "github.com/ethereum/go-ethereum/core/state" - "github.com/ethereum/go-ethereum/core/tracing" - "github.com/ethereum/go-ethereum/eth/tracers/logger" - "github.com/ethereum/go-ethereum/internal/debug" - "github.com/ethereum/go-ethereum/internal/flags" + "github.com/YehorDudukin/go-ethereum/cmd/evm/internal/t8ntool" + "github.com/YehorDudukin/go-ethereum/core/state" + "github.com/YehorDudukin/go-ethereum/core/tracing" + "github.com/YehorDudukin/go-ethereum/eth/tracers/logger" + "github.com/YehorDudukin/go-ethereum/internal/debug" + "github.com/YehorDudukin/go-ethereum/internal/flags" "github.com/urfave/cli/v2" // 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/YehorDudukin/go-ethereum/eth/tracers/js" + _ "github.com/YehorDudukin/go-ethereum/eth/tracers/native" ) // Some other nice-to-haves: diff --git a/cmd/evm/reporter.go b/cmd/evm/reporter.go index f6249e1843..04e05622ac 100644 --- a/cmd/evm/reporter.go +++ b/cmd/evm/reporter.go @@ -20,8 +20,8 @@ import ( "encoding/json" "fmt" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/state" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/state" "github.com/urfave/cli/v2" ) diff --git a/cmd/evm/runner.go b/cmd/evm/runner.go index b2cf28353b..8d356bf6e0 100644 --- a/cmd/evm/runner.go +++ b/cmd/evm/runner.go @@ -30,19 +30,19 @@ import ( "testing" "time" - "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/tracing" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/core/vm" - "github.com/ethereum/go-ethereum/core/vm/runtime" - "github.com/ethereum/go-ethereum/internal/flags" - "github.com/ethereum/go-ethereum/params" - "github.com/ethereum/go-ethereum/triedb" - "github.com/ethereum/go-ethereum/triedb/hashdb" + "github.com/YehorDudukin/go-ethereum/cmd/utils" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/core/state" + "github.com/YehorDudukin/go-ethereum/core/tracing" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/core/vm" + "github.com/YehorDudukin/go-ethereum/core/vm/runtime" + "github.com/YehorDudukin/go-ethereum/internal/flags" + "github.com/YehorDudukin/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/triedb" + "github.com/YehorDudukin/go-ethereum/triedb/hashdb" "github.com/urfave/cli/v2" ) diff --git a/cmd/evm/staterunner.go b/cmd/evm/staterunner.go index 1b0eb2ca2a..ac8c6123e9 100644 --- a/cmd/evm/staterunner.go +++ b/cmd/evm/staterunner.go @@ -24,11 +24,11 @@ import ( "regexp" "slices" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/rawdb" - "github.com/ethereum/go-ethereum/core/vm" - "github.com/ethereum/go-ethereum/internal/flags" - "github.com/ethereum/go-ethereum/tests" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/core/vm" + "github.com/YehorDudukin/go-ethereum/internal/flags" + "github.com/YehorDudukin/go-ethereum/tests" "github.com/urfave/cli/v2" ) diff --git a/cmd/evm/t8n_test.go b/cmd/evm/t8n_test.go index 46146be787..30fe79b5d8 100644 --- a/cmd/evm/t8n_test.go +++ b/cmd/evm/t8n_test.go @@ -28,9 +28,9 @@ import ( "strings" "testing" - "github.com/ethereum/go-ethereum/cmd/evm/internal/t8ntool" - "github.com/ethereum/go-ethereum/internal/cmdtest" - "github.com/ethereum/go-ethereum/internal/reexec" + "github.com/YehorDudukin/go-ethereum/cmd/evm/internal/t8ntool" + "github.com/YehorDudukin/go-ethereum/internal/cmdtest" + "github.com/YehorDudukin/go-ethereum/internal/reexec" ) func TestMain(m *testing.M) { diff --git a/cmd/evm/testdata/30/README.txt b/cmd/evm/testdata/30/README.txt index 84c92de853..5cddc27773 100644 --- a/cmd/evm/testdata/30/README.txt +++ b/cmd/evm/testdata/30/README.txt @@ -1,4 +1,4 @@ -This example comes from https://github.com/ethereum/go-ethereum/issues/27730. +This example comes from https://github.com/YehorDudukin/go-ethereum/issues/27730. The input transactions contain three transactions, number `0` and `2` are taken from `testdata/13`, whereas number `1` is taken from #27730. diff --git a/cmd/geth/accountcmd.go b/cmd/geth/accountcmd.go index b564fa3b57..dafa5d002f 100644 --- a/cmd/geth/accountcmd.go +++ b/cmd/geth/accountcmd.go @@ -22,11 +22,11 @@ import ( "os" "strings" - "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/crypto" + "github.com/YehorDudukin/go-ethereum/accounts" + "github.com/YehorDudukin/go-ethereum/accounts/keystore" + "github.com/YehorDudukin/go-ethereum/cmd/utils" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/crypto" "github.com/urfave/cli/v2" ) diff --git a/cmd/geth/chaincmd.go b/cmd/geth/chaincmd.go index c57a9a947d..cdcdf0f7c8 100644 --- a/cmd/geth/chaincmd.go +++ b/cmd/geth/chaincmd.go @@ -27,21 +27,21 @@ 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/history" - "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/internal/debug" - "github.com/ethereum/go-ethereum/internal/era" - "github.com/ethereum/go-ethereum/internal/flags" - "github.com/ethereum/go-ethereum/log" - "github.com/ethereum/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/cmd/utils" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/core" + "github.com/YehorDudukin/go-ethereum/core/history" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/core/state" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/ethdb" + "github.com/YehorDudukin/go-ethereum/internal/debug" + "github.com/YehorDudukin/go-ethereum/internal/era" + "github.com/YehorDudukin/go-ethereum/internal/flags" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/params" "github.com/urfave/cli/v2" ) diff --git a/cmd/geth/config.go b/cmd/geth/config.go index 4215403234..66de2829fb 100644 --- a/cmd/geth/config.go +++ b/cmd/geth/config.go @@ -27,23 +27,23 @@ import ( "strings" "unicode" - "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/accounts/scwallet" - "github.com/ethereum/go-ethereum/accounts/usbwallet" - "github.com/ethereum/go-ethereum/beacon/blsync" - "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/eth/catalyst" - "github.com/ethereum/go-ethereum/eth/ethconfig" - "github.com/ethereum/go-ethereum/internal/flags" - "github.com/ethereum/go-ethereum/internal/version" - "github.com/ethereum/go-ethereum/log" - "github.com/ethereum/go-ethereum/metrics" - "github.com/ethereum/go-ethereum/node" - "github.com/ethereum/go-ethereum/rpc" + "github.com/YehorDudukin/go-ethereum/accounts" + "github.com/YehorDudukin/go-ethereum/accounts/external" + "github.com/YehorDudukin/go-ethereum/accounts/keystore" + "github.com/YehorDudukin/go-ethereum/accounts/scwallet" + "github.com/YehorDudukin/go-ethereum/accounts/usbwallet" + "github.com/YehorDudukin/go-ethereum/beacon/blsync" + "github.com/YehorDudukin/go-ethereum/cmd/utils" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/eth/catalyst" + "github.com/YehorDudukin/go-ethereum/eth/ethconfig" + "github.com/YehorDudukin/go-ethereum/internal/flags" + "github.com/YehorDudukin/go-ethereum/internal/version" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/metrics" + "github.com/YehorDudukin/go-ethereum/node" + "github.com/YehorDudukin/go-ethereum/rpc" "github.com/naoina/toml" "github.com/urfave/cli/v2" ) diff --git a/cmd/geth/consolecmd.go b/cmd/geth/consolecmd.go index bf38c86349..5d8cbf2da9 100644 --- a/cmd/geth/consolecmd.go +++ b/cmd/geth/consolecmd.go @@ -21,8 +21,8 @@ import ( "slices" "strings" - "github.com/ethereum/go-ethereum/cmd/utils" - "github.com/ethereum/go-ethereum/console" + "github.com/YehorDudukin/go-ethereum/cmd/utils" + "github.com/YehorDudukin/go-ethereum/console" "github.com/urfave/cli/v2" ) diff --git a/cmd/geth/consolecmd_test.go b/cmd/geth/consolecmd_test.go index b8c2c498a6..b9e0ec0d77 100644 --- a/cmd/geth/consolecmd_test.go +++ b/cmd/geth/consolecmd_test.go @@ -26,7 +26,7 @@ import ( "testing" "time" - "github.com/ethereum/go-ethereum/internal/version" + "github.com/YehorDudukin/go-ethereum/internal/version" ) const ( diff --git a/cmd/geth/dbcmd.go b/cmd/geth/dbcmd.go index 44a52521f0..e8092a70df 100644 --- a/cmd/geth/dbcmd.go +++ b/cmd/geth/dbcmd.go @@ -28,19 +28,19 @@ 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/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/ethereum/go-ethereum/triedb" + "github.com/YehorDudukin/go-ethereum/cmd/utils" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/console/prompt" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/core/state/snapshot" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/ethdb" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/rlp" + "github.com/YehorDudukin/go-ethereum/trie" + "github.com/YehorDudukin/go-ethereum/triedb" "github.com/olekukonko/tablewriter" "github.com/urfave/cli/v2" ) diff --git a/cmd/geth/exportcmd_test.go b/cmd/geth/exportcmd_test.go index d08c890734..1402f2600d 100644 --- a/cmd/geth/exportcmd_test.go +++ b/cmd/geth/exportcmd_test.go @@ -22,7 +22,7 @@ import ( "os" "testing" - "github.com/ethereum/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common" ) // TestExport does a basic test of "geth export", exporting the test-genesis. diff --git a/cmd/geth/logging_test.go b/cmd/geth/logging_test.go index 37fffecc30..686c8a7008 100644 --- a/cmd/geth/logging_test.go +++ b/cmd/geth/logging_test.go @@ -30,7 +30,7 @@ import ( "strings" "testing" - "github.com/ethereum/go-ethereum/internal/reexec" + "github.com/YehorDudukin/go-ethereum/internal/reexec" ) func runSelf(args ...string) ([]byte, error) { diff --git a/cmd/geth/logtestcmd_active.go b/cmd/geth/logtestcmd_active.go index f9bbc3d4ec..5a2802f9aa 100644 --- a/cmd/geth/logtestcmd_active.go +++ b/cmd/geth/logtestcmd_active.go @@ -25,8 +25,8 @@ import ( "math/big" "time" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/log" "github.com/holiman/uint256" "github.com/urfave/cli/v2" ) diff --git a/cmd/geth/main.go b/cmd/geth/main.go index 289030ae65..9de24c978d 100644 --- a/cmd/geth/main.go +++ b/cmd/geth/main.go @@ -25,22 +25,22 @@ import ( "strconv" "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/console/prompt" - "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/flags" - "github.com/ethereum/go-ethereum/log" - "github.com/ethereum/go-ethereum/node" + "github.com/YehorDudukin/go-ethereum/accounts" + "github.com/YehorDudukin/go-ethereum/cmd/utils" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/console/prompt" + "github.com/YehorDudukin/go-ethereum/eth/downloader" + "github.com/YehorDudukin/go-ethereum/ethclient" + "github.com/YehorDudukin/go-ethereum/internal/debug" + "github.com/YehorDudukin/go-ethereum/internal/flags" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/node" "go.uber.org/automaxprocs/maxprocs" // Force-load the tracer engines to trigger registration - _ "github.com/ethereum/go-ethereum/eth/tracers/js" - _ "github.com/ethereum/go-ethereum/eth/tracers/live" - _ "github.com/ethereum/go-ethereum/eth/tracers/native" + _ "github.com/YehorDudukin/go-ethereum/eth/tracers/js" + _ "github.com/YehorDudukin/go-ethereum/eth/tracers/live" + _ "github.com/YehorDudukin/go-ethereum/eth/tracers/native" "github.com/urfave/cli/v2" ) diff --git a/cmd/geth/misccmd.go b/cmd/geth/misccmd.go index 2d31f3abe7..a69afb9273 100644 --- a/cmd/geth/misccmd.go +++ b/cmd/geth/misccmd.go @@ -22,7 +22,7 @@ import ( "runtime" "strings" - "github.com/ethereum/go-ethereum/internal/version" + "github.com/YehorDudukin/go-ethereum/internal/version" "github.com/urfave/cli/v2" ) diff --git a/cmd/geth/run_test.go b/cmd/geth/run_test.go index 1d32880325..6b50d4f067 100644 --- a/cmd/geth/run_test.go +++ b/cmd/geth/run_test.go @@ -23,9 +23,9 @@ import ( "testing" "time" - "github.com/ethereum/go-ethereum/internal/cmdtest" - "github.com/ethereum/go-ethereum/internal/reexec" - "github.com/ethereum/go-ethereum/rpc" + "github.com/YehorDudukin/go-ethereum/internal/cmdtest" + "github.com/YehorDudukin/go-ethereum/internal/reexec" + "github.com/YehorDudukin/go-ethereum/rpc" ) type testgeth struct { diff --git a/cmd/geth/snapshot.go b/cmd/geth/snapshot.go index f0be52a0df..f2a087e2d9 100644 --- a/cmd/geth/snapshot.go +++ b/cmd/geth/snapshot.go @@ -25,17 +25,17 @@ import ( "slices" "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/YehorDudukin/go-ethereum/cmd/utils" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/core/state" + "github.com/YehorDudukin/go-ethereum/core/state/pruner" + "github.com/YehorDudukin/go-ethereum/core/state/snapshot" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/rlp" + "github.com/YehorDudukin/go-ethereum/trie" "github.com/urfave/cli/v2" ) diff --git a/cmd/geth/testdata/vcheck/data.json b/cmd/geth/testdata/vcheck/data.json index e7ee2bf7e4..08b3dd4cf4 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/YehorDudukin/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/YehorDudukin/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 31a34de6be..fde4140c20 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/YehorDudukin/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/YehorDudukin/go-ethereum/commit/567d41d9363706b4b13ce0903804e8acf214af49", + "https://github.com/YehorDudukin/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/YehorDudukin/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/YehorDudukin/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/YehorDudukin/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/YehorDudukin/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/YehorDudukin/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/YehorDudukin/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/YehorDudukin/go-ethereum/security/advisories/GHSA-r33q-22hv-j29q", + "https://github.com/YehorDudukin/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/YehorDudukin/go-ethereum/commit/223b950944f494a5b4e0957fd9f92c48b09037ad) from [this PR](https://github.com/YehorDudukin/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/YehorDudukin/go-ethereum/security/advisories/GHSA-xw37-57qp-9mm4" ], "published": "2020-12-10", "severity": "High", @@ -122,9 +122,9 @@ "summary": "A consensus-flaw in the Geth EVM could cause a node to deviate from the canonical chain.", "description": "A memory-corruption bug within the EVM can cause a consensus error, where vulnerable nodes obtain a different `stateRoot` when processing a maliciously crafted transaction. This, in turn, would lead to the chain being split: mainnet splitting in two forks.\n\nAll Geth versions supporting the London hard fork are vulnerable (the bug is older than London), so all users should update.\n\nThis bug was exploited on Mainnet at block 13107518.\n\nCredits for the discovery go to @guidovranken (working for Sentnl during an audit of the Telos EVM) and reported via bounty@ethereum.org.", "links": [ - "https://github.com/ethereum/go-ethereum/blob/master/docs/postmortems/2021-08-22-split-postmortem.md", - "https://github.com/ethereum/go-ethereum/security/advisories/GHSA-9856-9gg9-qcmq", - "https://github.com/ethereum/go-ethereum/releases/tag/v1.10.8" + "https://github.com/YehorDudukin/go-ethereum/blob/master/docs/postmortems/2021-08-22-split-postmortem.md", + "https://github.com/YehorDudukin/go-ethereum/security/advisories/GHSA-9856-9gg9-qcmq", + "https://github.com/YehorDudukin/go-ethereum/releases/tag/v1.10.8" ], "introduced": "v1.10.0", "fixed": "v1.10.8", @@ -137,11 +137,11 @@ "name": "DoS via malicious `snap/1` request", "uid": "GETH-2021-03", "summary": "A vulnerable node is susceptible to crash when processing a maliciously crafted message from a peer, via the snap/1 protocol. The crash can be triggered by sending a malicious snap/1 GetTrieNodes package.", - "description": "The `snap/1` protocol handler contains two vulnerabilities related to the `GetTrieNodes` packet, which can be exploited to crash the node. Full details are available at the Github security [advisory](https://github.com/ethereum/go-ethereum/security/advisories/GHSA-59hh-656j-3p7v)", + "description": "The `snap/1` protocol handler contains two vulnerabilities related to the `GetTrieNodes` packet, which can be exploited to crash the node. Full details are available at the Github security [advisory](https://github.com/YehorDudukin/go-ethereum/security/advisories/GHSA-59hh-656j-3p7v)", "links": [ - "https://github.com/ethereum/go-ethereum/security/advisories/GHSA-59hh-656j-3p7v", + "https://github.com/YehorDudukin/go-ethereum/security/advisories/GHSA-59hh-656j-3p7v", "https://geth.ethereum.org/docs/vulnerabilities/vulnerabilities", - "https://github.com/ethereum/go-ethereum/pull/23657" + "https://github.com/YehorDudukin/go-ethereum/pull/23657" ], "introduced": "v1.10.0", "fixed": "v1.10.9", @@ -154,11 +154,11 @@ "name": "DoS via malicious p2p message", "uid": "GETH-2022-01", "summary": "A vulnerable node can crash via p2p messages sent from an attacker node, if running with non-default log options.", - "description": "A vulnerable node, if configured to use high verbosity logging, can be made to crash when handling specially crafted p2p messages sent from an attacker node. Full details are available at the Github security [advisory](https://github.com/ethereum/go-ethereum/security/advisories/GHSA-wjxw-gh3m-7pm5)", + "description": "A vulnerable node, if configured to use high verbosity logging, can be made to crash when handling specially crafted p2p messages sent from an attacker node. Full details are available at the Github security [advisory](https://github.com/YehorDudukin/go-ethereum/security/advisories/GHSA-wjxw-gh3m-7pm5)", "links": [ - "https://github.com/ethereum/go-ethereum/security/advisories/GHSA-wjxw-gh3m-7pm5", + "https://github.com/YehorDudukin/go-ethereum/security/advisories/GHSA-wjxw-gh3m-7pm5", "https://geth.ethereum.org/docs/vulnerabilities/vulnerabilities", - "https://github.com/ethereum/go-ethereum/pull/24507" + "https://github.com/YehorDudukin/go-ethereum/pull/24507" ], "introduced": "v1.10.0", "fixed": "v1.10.17", @@ -173,7 +173,7 @@ "summary": "A vulnerable node can be made to consume unbounded amounts of memory when handling specially crafted p2p messages sent from an attacker node.", "description": "The p2p handler spawned a new goroutine to respond to ping requests. By flooding a node with ping requests, an unbounded number of goroutines can be created, leading to resource exhaustion and potentially crash due to OOM.", "links": [ - "https://github.com/ethereum/go-ethereum/security/advisories/GHSA-ppjg-v974-84cm", + "https://github.com/YehorDudukin/go-ethereum/security/advisories/GHSA-ppjg-v974-84cm", "https://geth.ethereum.org/docs/vulnerabilities/vulnerabilities" ], "introduced": "v1.10.0", @@ -187,9 +187,9 @@ "name": "DoS via malicious p2p message", "uid": "GETH-2024-01", "summary": "A vulnerable node can be made to consume very large amounts of memory when handling specially crafted p2p messages sent from an attacker node.", - "description": "A vulnerable node can be made to consume very large amounts of memory when handling specially crafted p2p messages sent from an attacker node. Full details will be available at the Github security [advisory](https://github.com/ethereum/go-ethereum/security/advisories/GHSA-4xc9-8hmq-j652)", + "description": "A vulnerable node can be made to consume very large amounts of memory when handling specially crafted p2p messages sent from an attacker node. Full details will be available at the Github security [advisory](https://github.com/YehorDudukin/go-ethereum/security/advisories/GHSA-4xc9-8hmq-j652)", "links": [ - "https://github.com/ethereum/go-ethereum/security/advisories/GHSA-4xc9-8hmq-j652", + "https://github.com/YehorDudukin/go-ethereum/security/advisories/GHSA-4xc9-8hmq-j652", "https://geth.ethereum.org/docs/vulnerabilities/vulnerabilities" ], "introduced": "v1.10.0", diff --git a/cmd/geth/verkle.go b/cmd/geth/verkle.go index 6490f832af..0bca2f21a2 100644 --- a/cmd/geth/verkle.go +++ b/cmd/geth/verkle.go @@ -24,10 +24,10 @@ import ( "os" "slices" - "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/log" + "github.com/YehorDudukin/go-ethereum/cmd/utils" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/log" "github.com/ethereum/go-verkle" "github.com/urfave/cli/v2" ) diff --git a/cmd/geth/version_check.go b/cmd/geth/version_check.go index 237556788e..1769f32732 100644 --- a/cmd/geth/version_check.go +++ b/cmd/geth/version_check.go @@ -26,7 +26,7 @@ import ( "regexp" "strings" - "github.com/ethereum/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/log" "github.com/jedisct1/go-minisign" "github.com/urfave/cli/v2" ) diff --git a/cmd/rlpdump/main.go b/cmd/rlpdump/main.go index 685e5bb71a..3ba7ef941e 100644 --- a/cmd/rlpdump/main.go +++ b/cmd/rlpdump/main.go @@ -30,8 +30,8 @@ import ( "strconv" "strings" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/rlp" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/rlp" ) var ( diff --git a/cmd/rlpdump/rlpdump_test.go b/cmd/rlpdump/rlpdump_test.go index 4b0ae680ac..daae19914c 100644 --- a/cmd/rlpdump/rlpdump_test.go +++ b/cmd/rlpdump/rlpdump_test.go @@ -22,8 +22,8 @@ import ( "strings" "testing" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/hexutil" ) func TestRoundtrip(t *testing.T) { diff --git a/cmd/utils/cmd.go b/cmd/utils/cmd.go index d34e15ebc0..0a1609e760 100644 --- a/cmd/utils/cmd.go +++ b/cmd/utils/cmd.go @@ -34,20 +34,20 @@ 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/state/snapshot" - "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/internal/era" - "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/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/core/state/snapshot" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/eth/ethconfig" + "github.com/YehorDudukin/go-ethereum/ethdb" + "github.com/YehorDudukin/go-ethereum/internal/debug" + "github.com/YehorDudukin/go-ethereum/internal/era" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/node" + "github.com/YehorDudukin/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/rlp" "github.com/urfave/cli/v2" ) diff --git a/cmd/utils/export_test.go b/cmd/utils/export_test.go index d1a004d9b7..a8249669ca 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/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/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 f5fc94cebc..1090d24c36 100644 --- a/cmd/utils/flags.go +++ b/cmd/utils/flags.go @@ -35,46 +35,46 @@ import ( "strings" "time" - "github.com/ethereum/go-ethereum/accounts" - "github.com/ethereum/go-ethereum/accounts/keystore" - bparams "github.com/ethereum/go-ethereum/beacon/params" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/common/fdlimit" - "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/txpool/blobpool" - "github.com/ethereum/go-ethereum/core/txpool/legacypool" - "github.com/ethereum/go-ethereum/core/vm" - "github.com/ethereum/go-ethereum/crypto" - "github.com/ethereum/go-ethereum/crypto/kzg4844" - "github.com/ethereum/go-ethereum/eth" - "github.com/ethereum/go-ethereum/eth/catalyst" - "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/tracers" - "github.com/ethereum/go-ethereum/ethdb" - "github.com/ethereum/go-ethereum/ethdb/remotedb" - "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/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/ethereum/go-ethereum/rpc" - "github.com/ethereum/go-ethereum/triedb" - "github.com/ethereum/go-ethereum/triedb/hashdb" - "github.com/ethereum/go-ethereum/triedb/pathdb" + "github.com/YehorDudukin/go-ethereum/accounts" + "github.com/YehorDudukin/go-ethereum/accounts/keystore" + bparams "github.com/YehorDudukin/go-ethereum/beacon/params" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/fdlimit" + "github.com/YehorDudukin/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/core" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/core/txpool/blobpool" + "github.com/YehorDudukin/go-ethereum/core/txpool/legacypool" + "github.com/YehorDudukin/go-ethereum/core/vm" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/crypto/kzg4844" + "github.com/YehorDudukin/go-ethereum/eth" + "github.com/YehorDudukin/go-ethereum/eth/catalyst" + "github.com/YehorDudukin/go-ethereum/eth/ethconfig" + "github.com/YehorDudukin/go-ethereum/eth/filters" + "github.com/YehorDudukin/go-ethereum/eth/gasprice" + "github.com/YehorDudukin/go-ethereum/eth/tracers" + "github.com/YehorDudukin/go-ethereum/ethdb" + "github.com/YehorDudukin/go-ethereum/ethdb/remotedb" + "github.com/YehorDudukin/go-ethereum/ethstats" + "github.com/YehorDudukin/go-ethereum/graphql" + "github.com/YehorDudukin/go-ethereum/internal/ethapi" + "github.com/YehorDudukin/go-ethereum/internal/flags" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/metrics" + "github.com/YehorDudukin/go-ethereum/metrics/exp" + "github.com/YehorDudukin/go-ethereum/metrics/influxdb" + "github.com/YehorDudukin/go-ethereum/miner" + "github.com/YehorDudukin/go-ethereum/node" + "github.com/YehorDudukin/go-ethereum/p2p" + "github.com/YehorDudukin/go-ethereum/p2p/enode" + "github.com/YehorDudukin/go-ethereum/p2p/nat" + "github.com/YehorDudukin/go-ethereum/p2p/netutil" + "github.com/YehorDudukin/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/rpc" + "github.com/YehorDudukin/go-ethereum/triedb" + "github.com/YehorDudukin/go-ethereum/triedb/hashdb" + "github.com/YehorDudukin/go-ethereum/triedb/pathdb" pcsclite "github.com/gballet/go-libpcsclite" gopsutil "github.com/shirou/gopsutil/mem" "github.com/urfave/cli/v2" diff --git a/cmd/utils/flags_legacy.go b/cmd/utils/flags_legacy.go index ff63dd5685..30651310ff 100644 --- a/cmd/utils/flags_legacy.go +++ b/cmd/utils/flags_legacy.go @@ -19,8 +19,8 @@ package utils import ( "fmt" - "github.com/ethereum/go-ethereum/eth/ethconfig" - "github.com/ethereum/go-ethereum/internal/flags" + "github.com/YehorDudukin/go-ethereum/eth/ethconfig" + "github.com/YehorDudukin/go-ethereum/internal/flags" "github.com/urfave/cli/v2" ) diff --git a/cmd/utils/history_test.go b/cmd/utils/history_test.go index d3c6bda1c5..80673a10f2 100644 --- a/cmd/utils/history_test.go +++ b/cmd/utils/history_test.go @@ -26,17 +26,17 @@ import ( "strings" "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/internal/era" - "github.com/ethereum/go-ethereum/params" - "github.com/ethereum/go-ethereum/trie" - "github.com/ethereum/go-ethereum/triedb" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/consensus/ethash" + "github.com/YehorDudukin/go-ethereum/core" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/core/vm" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/internal/era" + "github.com/YehorDudukin/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/trie" + "github.com/YehorDudukin/go-ethereum/triedb" ) var ( diff --git a/cmd/utils/prompt.go b/cmd/utils/prompt.go index 9419b77010..b83cb57e9e 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/YehorDudukin/go-ethereum/console/prompt" ) // GetPassPhrase displays the given text(prompt) to the user and requests some textual diff --git a/cmd/workload/filtertest.go b/cmd/workload/filtertest.go index 52dd6e41ad..f9aefb3146 100644 --- a/cmd/workload/filtertest.go +++ b/cmd/workload/filtertest.go @@ -23,13 +23,13 @@ import ( "math/big" "time" - "github.com/ethereum/go-ethereum" - "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/rlp" - "github.com/ethereum/go-ethereum/rpc" + "github.com/YehorDudukin/go-ethereum" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/internal/utesting" + "github.com/YehorDudukin/go-ethereum/rlp" + "github.com/YehorDudukin/go-ethereum/rpc" ) type filterTestSuite struct { diff --git a/cmd/workload/filtertestgen.go b/cmd/workload/filtertestgen.go index 6d1f639819..bb5c744097 100644 --- a/cmd/workload/filtertestgen.go +++ b/cmd/workload/filtertestgen.go @@ -26,9 +26,9 @@ import ( "os" "time" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/internal/flags" - "github.com/ethereum/go-ethereum/rpc" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/internal/flags" + "github.com/YehorDudukin/go-ethereum/rpc" "github.com/urfave/cli/v2" ) diff --git a/cmd/workload/historytest.go b/cmd/workload/historytest.go index 29fe3f5098..527ff0f3ce 100644 --- a/cmd/workload/historytest.go +++ b/cmd/workload/historytest.go @@ -21,10 +21,10 @@ import ( "encoding/json" "fmt" - "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/utesting" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/internal/utesting" ) // historyTest is the content of a history test. diff --git a/cmd/workload/historytestgen.go b/cmd/workload/historytestgen.go index 9d98bb28e6..a9d04ac0db 100644 --- a/cmd/workload/historytestgen.go +++ b/cmd/workload/historytestgen.go @@ -23,11 +23,11 @@ import ( "math/big" "os" - "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/flags" - "github.com/ethereum/go-ethereum/rlp" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/internal/flags" + "github.com/YehorDudukin/go-ethereum/rlp" "github.com/urfave/cli/v2" ) diff --git a/cmd/workload/main.go b/cmd/workload/main.go index 6ade426c16..8fcf0b8ccd 100644 --- a/cmd/workload/main.go +++ b/cmd/workload/main.go @@ -20,10 +20,10 @@ import ( "fmt" "os" - "github.com/ethereum/go-ethereum/ethclient" - "github.com/ethereum/go-ethereum/internal/debug" - "github.com/ethereum/go-ethereum/internal/flags" - "github.com/ethereum/go-ethereum/rpc" + "github.com/YehorDudukin/go-ethereum/ethclient" + "github.com/YehorDudukin/go-ethereum/internal/debug" + "github.com/YehorDudukin/go-ethereum/internal/flags" + "github.com/YehorDudukin/go-ethereum/rpc" "github.com/urfave/cli/v2" ) diff --git a/cmd/workload/testsuite.go b/cmd/workload/testsuite.go index e8e25e7731..0fbd163000 100644 --- a/cmd/workload/testsuite.go +++ b/cmd/workload/testsuite.go @@ -23,12 +23,12 @@ import ( "os" "slices" - "github.com/ethereum/go-ethereum/core/history" - "github.com/ethereum/go-ethereum/internal/flags" - "github.com/ethereum/go-ethereum/internal/utesting" - "github.com/ethereum/go-ethereum/log" - "github.com/ethereum/go-ethereum/params" - "github.com/ethereum/go-ethereum/rpc" + "github.com/YehorDudukin/go-ethereum/core/history" + "github.com/YehorDudukin/go-ethereum/internal/flags" + "github.com/YehorDudukin/go-ethereum/internal/utesting" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/rpc" "github.com/urfave/cli/v2" ) diff --git a/common/bitutil/compress_test.go b/common/bitutil/compress_test.go index c6f6fe8bcf..70d031f679 100644 --- a/common/bitutil/compress_test.go +++ b/common/bitutil/compress_test.go @@ -22,7 +22,7 @@ import ( "math/rand" "testing" - "github.com/ethereum/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/common/hexutil" ) // Tests that data bitset encoding and decoding works and is bijective. diff --git a/common/bytes.go b/common/bytes.go index d1f5c6c995..cb3bb8ca07 100644 --- a/common/bytes.go +++ b/common/bytes.go @@ -21,7 +21,7 @@ import ( "encoding/hex" "errors" - "github.com/ethereum/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/common/hexutil" ) // FromHex returns the bytes represented by the hexadecimal string s. diff --git a/common/debug.go b/common/debug.go index 28c52b4a9c..68b9c8420e 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/YehorDudukin/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..87d90adcc7 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/YehorDudukin/go-ethereum/common/hexutil" ) type MyType [5]byte diff --git a/common/prque/lazyqueue.go b/common/prque/lazyqueue.go index ebe53d5e6b..fe4dd3b1df 100644 --- a/common/prque/lazyqueue.go +++ b/common/prque/lazyqueue.go @@ -21,7 +21,7 @@ import ( "container/heap" "time" - "github.com/ethereum/go-ethereum/common/mclock" + "github.com/YehorDudukin/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 ffb7e5e9e3..2b22c940b9 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/YehorDudukin/go-ethereum/common/mclock" ) const ( diff --git a/common/types.go b/common/types.go index fdb25f1b34..9fb4546a5a 100644 --- a/common/types.go +++ b/common/types.go @@ -29,7 +29,7 @@ import ( "strconv" "strings" - "github.com/ethereum/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/common/hexutil" "golang.org/x/crypto/sha3" ) diff --git a/consensus/beacon/consensus.go b/consensus/beacon/consensus.go index cc9f44e460..e142d60ff9 100644 --- a/consensus/beacon/consensus.go +++ b/consensus/beacon/consensus.go @@ -21,17 +21,17 @@ import ( "fmt" "math/big" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/consensus" - "github.com/ethereum/go-ethereum/consensus/misc/eip1559" - "github.com/ethereum/go-ethereum/consensus/misc/eip4844" - "github.com/ethereum/go-ethereum/core/state" - "github.com/ethereum/go-ethereum/core/tracing" - "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/rpc" - "github.com/ethereum/go-ethereum/trie" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/consensus" + "github.com/YehorDudukin/go-ethereum/consensus/misc/eip1559" + "github.com/YehorDudukin/go-ethereum/consensus/misc/eip4844" + "github.com/YehorDudukin/go-ethereum/core/state" + "github.com/YehorDudukin/go-ethereum/core/tracing" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/core/vm" + "github.com/YehorDudukin/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/rpc" + "github.com/YehorDudukin/go-ethereum/trie" "github.com/holiman/uint256" ) diff --git a/consensus/clique/api.go b/consensus/clique/api.go index 374b50692d..d158277cb8 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/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/consensus" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/rlp" + "github.com/YehorDudukin/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 d31efd7445..6fd138734c 100644 --- a/consensus/clique/clique.go +++ b/consensus/clique/clique.go @@ -27,22 +27,22 @@ import ( "sync" "time" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/common/hexutil" - "github.com/ethereum/go-ethereum/common/lru" - "github.com/ethereum/go-ethereum/consensus" - "github.com/ethereum/go-ethereum/consensus/misc" - "github.com/ethereum/go-ethereum/consensus/misc/eip1559" - "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/rpc" - "github.com/ethereum/go-ethereum/trie" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/common/lru" + "github.com/YehorDudukin/go-ethereum/consensus" + "github.com/YehorDudukin/go-ethereum/consensus/misc" + "github.com/YehorDudukin/go-ethereum/consensus/misc/eip1559" + "github.com/YehorDudukin/go-ethereum/core/state" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/core/vm" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/ethdb" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/rlp" + "github.com/YehorDudukin/go-ethereum/rpc" + "github.com/YehorDudukin/go-ethereum/trie" "golang.org/x/crypto/sha3" ) diff --git a/consensus/clique/clique_test.go b/consensus/clique/clique_test.go index bacd207493..762acd88a9 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/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/core/vm" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/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 d0b15e9489..0dea851460 100644 --- a/consensus/clique/snapshot.go +++ b/consensus/clique/snapshot.go @@ -23,13 +23,13 @@ import ( "slices" "time" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/common/lru" - "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/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/lru" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/ethdb" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/params" ) // Vote represents a single vote that an authorized signer made to modify the diff --git a/consensus/clique/snapshot_test.go b/consensus/clique/snapshot_test.go index a83d6ca736..1acd842860 100644 --- a/consensus/clique/snapshot_test.go +++ b/consensus/clique/snapshot_test.go @@ -24,13 +24,13 @@ import ( "slices" "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/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/core/vm" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/params" ) // testerAccountPool is a pool to maintain currently active tester accounts, @@ -367,7 +367,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/YehorDudukin/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 c59b9a4744..2d7e00b425 100644 --- a/consensus/consensus.go +++ b/consensus/consensus.go @@ -20,12 +20,12 @@ 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/core/vm" - "github.com/ethereum/go-ethereum/params" - "github.com/ethereum/go-ethereum/rpc" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/state" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/core/vm" + "github.com/YehorDudukin/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/rpc" ) // ChainHeaderReader defines a small collection of methods needed to access the local diff --git a/consensus/ethash/consensus.go b/consensus/ethash/consensus.go index 4f92f1282b..46f06f5307 100644 --- a/consensus/ethash/consensus.go +++ b/consensus/ethash/consensus.go @@ -22,18 +22,18 @@ import ( "math/big" "time" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/consensus" + "github.com/YehorDudukin/go-ethereum/consensus/misc" + "github.com/YehorDudukin/go-ethereum/consensus/misc/eip1559" + "github.com/YehorDudukin/go-ethereum/core/state" + "github.com/YehorDudukin/go-ethereum/core/tracing" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/core/vm" + "github.com/YehorDudukin/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/rlp" + "github.com/YehorDudukin/go-ethereum/trie" mapset "github.com/deckarep/golang-set/v2" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/consensus" - "github.com/ethereum/go-ethereum/consensus/misc" - "github.com/ethereum/go-ethereum/consensus/misc/eip1559" - "github.com/ethereum/go-ethereum/core/state" - "github.com/ethereum/go-ethereum/core/tracing" - "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/ethereum/go-ethereum/trie" "github.com/holiman/uint256" "golang.org/x/crypto/sha3" ) diff --git a/consensus/ethash/consensus_test.go b/consensus/ethash/consensus_test.go index e3793cd1b0..59ebdd3651 100644 --- a/consensus/ethash/consensus_test.go +++ b/consensus/ethash/consensus_test.go @@ -26,10 +26,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/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/math" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/params" ) type diffTest struct { diff --git a/consensus/ethash/difficulty.go b/consensus/ethash/difficulty.go index 66a18059c6..eea4f23fef 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/YehorDudukin/go-ethereum/core/types" "github.com/holiman/uint256" ) diff --git a/consensus/ethash/ethash.go b/consensus/ethash/ethash.go index f37ec26056..261133cb8a 100644 --- a/consensus/ethash/ethash.go +++ b/consensus/ethash/ethash.go @@ -20,9 +20,9 @@ package ethash import ( "time" - "github.com/ethereum/go-ethereum/consensus" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/rpc" + "github.com/YehorDudukin/go-ethereum/consensus" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/rpc" ) // Ethash is a consensus engine based on proof-of-work implementing the ethash diff --git a/consensus/misc/dao.go b/consensus/misc/dao.go index b80c1b833a..7aa6c71ad5 100644 --- a/consensus/misc/dao.go +++ b/consensus/misc/dao.go @@ -21,10 +21,10 @@ import ( "errors" "math/big" - "github.com/ethereum/go-ethereum/core/tracing" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/core/vm" - "github.com/ethereum/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/core/tracing" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/core/vm" + "github.com/YehorDudukin/go-ethereum/params" ) var ( diff --git a/consensus/misc/eip1559/eip1559.go b/consensus/misc/eip1559/eip1559.go index a90bd744b2..9f376e2a8e 100644 --- a/consensus/misc/eip1559/eip1559.go +++ b/consensus/misc/eip1559/eip1559.go @@ -21,10 +21,10 @@ import ( "fmt" "math/big" - "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/params" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/consensus/misc" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/params" ) // VerifyEIP1559Header verifies some header attributes which were changed in EIP-1559, diff --git a/consensus/misc/eip1559/eip1559_test.go b/consensus/misc/eip1559/eip1559_test.go index b5afdf0fe5..7b4d775983 100644 --- a/consensus/misc/eip1559/eip1559_test.go +++ b/consensus/misc/eip1559/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/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/params" ) // copyConfig does a _shallow_ copy of a given config. Safe to set new values, but diff --git a/consensus/misc/eip4844/eip4844.go b/consensus/misc/eip4844/eip4844.go index 32b34f4e53..621755125e 100644 --- a/consensus/misc/eip4844/eip4844.go +++ b/consensus/misc/eip4844/eip4844.go @@ -21,9 +21,9 @@ import ( "fmt" "math/big" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/params" - "github.com/ethereum/go-ethereum/params/forks" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/params/forks" ) var ( diff --git a/consensus/misc/eip4844/eip4844_test.go b/consensus/misc/eip4844/eip4844_test.go index f4e3cb3d9a..40279e52ad 100644 --- a/consensus/misc/eip4844/eip4844_test.go +++ b/consensus/misc/eip4844/eip4844_test.go @@ -21,8 +21,8 @@ import ( "math/big" "testing" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/params" ) func TestCalcExcessBlobGas(t *testing.T) { diff --git a/consensus/misc/gaslimit.go b/consensus/misc/gaslimit.go index dfcabd9a80..0f0100c291 100644 --- a/consensus/misc/gaslimit.go +++ b/consensus/misc/gaslimit.go @@ -19,7 +19,7 @@ package misc import ( "fmt" - "github.com/ethereum/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/params" ) // VerifyGaslimit verifies the header gas limit according increase/decrease diff --git a/console/bridge.go b/console/bridge.go index c1d7746c02..72a9e32937 100644 --- a/console/bridge.go +++ b/console/bridge.go @@ -24,11 +24,11 @@ import ( "strings" "time" + "github.com/YehorDudukin/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/console/prompt" + "github.com/YehorDudukin/go-ethereum/internal/jsre" + "github.com/YehorDudukin/go-ethereum/rpc" "github.com/dop251/goja" - "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" ) // bridge is a collection of JavaScript utility methods to bride the .js runtime diff --git a/console/console.go b/console/console.go index b5c77bd78f..7ecdb18ec5 100644 --- a/console/console.go +++ b/console/console.go @@ -29,13 +29,13 @@ import ( "sync" "syscall" + "github.com/YehorDudukin/go-ethereum/console/prompt" + "github.com/YehorDudukin/go-ethereum/internal/jsre" + "github.com/YehorDudukin/go-ethereum/internal/jsre/deps" + "github.com/YehorDudukin/go-ethereum/internal/web3ext" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/rpc" "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/log" - "github.com/ethereum/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 d210a993c2..00816607b1 100644 --- a/console/console_test.go +++ b/console/console_test.go @@ -25,14 +25,14 @@ import ( "testing" "time" - "github.com/ethereum/go-ethereum/common" - "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/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/console/prompt" + "github.com/YehorDudukin/go-ethereum/core" + "github.com/YehorDudukin/go-ethereum/eth" + "github.com/YehorDudukin/go-ethereum/eth/ethconfig" + "github.com/YehorDudukin/go-ethereum/internal/jsre" + "github.com/YehorDudukin/go-ethereum/miner" + "github.com/YehorDudukin/go-ethereum/node" ) const ( diff --git a/core/bench_test.go b/core/bench_test.go index 00f924076a..e9507d8a07 100644 --- a/core/bench_test.go +++ b/core/bench_test.go @@ -21,16 +21,16 @@ import ( "math/big" "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/ethdb/pebble" - "github.com/ethereum/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/math" + "github.com/YehorDudukin/go-ethereum/consensus/ethash" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/core/vm" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/ethdb" + "github.com/YehorDudukin/go-ethereum/ethdb/pebble" + "github.com/YehorDudukin/go-ethereum/params" ) func BenchmarkInsertChain_empty_memdb(b *testing.B) { diff --git a/core/block_validator.go b/core/block_validator.go index 591e472bc1..7d3a27017d 100644 --- a/core/block_validator.go +++ b/core/block_validator.go @@ -20,11 +20,11 @@ import ( "errors" "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/YehorDudukin/go-ethereum/consensus" + "github.com/YehorDudukin/go-ethereum/core/state" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/params" + "github.com/YehorDudukin/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 5217979236..038aeb1e31 100644 --- a/core/block_validator_test.go +++ b/core/block_validator_test.go @@ -21,16 +21,16 @@ import ( "testing" "time" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/consensus" - "github.com/ethereum/go-ethereum/consensus/beacon" - "github.com/ethereum/go-ethereum/consensus/clique" - "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/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/consensus" + "github.com/YehorDudukin/go-ethereum/consensus/beacon" + "github.com/YehorDudukin/go-ethereum/consensus/clique" + "github.com/YehorDudukin/go-ethereum/consensus/ethash" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/core/vm" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/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 6667f64911..3444631a0e 100644 --- a/core/blockchain.go +++ b/core/blockchain.go @@ -31,31 +31,31 @@ import ( "sync/atomic" "time" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/common/lru" - "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/consensus/misc/eip4844" - "github.com/ethereum/go-ethereum/core/history" - "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/stateless" - "github.com/ethereum/go-ethereum/core/tracing" - "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/internal/version" - "github.com/ethereum/go-ethereum/log" - "github.com/ethereum/go-ethereum/metrics" - "github.com/ethereum/go-ethereum/params" - "github.com/ethereum/go-ethereum/rlp" - "github.com/ethereum/go-ethereum/triedb" - "github.com/ethereum/go-ethereum/triedb/hashdb" - "github.com/ethereum/go-ethereum/triedb/pathdb" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/lru" + "github.com/YehorDudukin/go-ethereum/common/mclock" + "github.com/YehorDudukin/go-ethereum/common/prque" + "github.com/YehorDudukin/go-ethereum/consensus" + "github.com/YehorDudukin/go-ethereum/consensus/misc/eip4844" + "github.com/YehorDudukin/go-ethereum/core/history" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/core/state" + "github.com/YehorDudukin/go-ethereum/core/state/snapshot" + "github.com/YehorDudukin/go-ethereum/core/stateless" + "github.com/YehorDudukin/go-ethereum/core/tracing" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/core/vm" + "github.com/YehorDudukin/go-ethereum/ethdb" + "github.com/YehorDudukin/go-ethereum/event" + "github.com/YehorDudukin/go-ethereum/internal/syncx" + "github.com/YehorDudukin/go-ethereum/internal/version" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/metrics" + "github.com/YehorDudukin/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/rlp" + "github.com/YehorDudukin/go-ethereum/triedb" + "github.com/YehorDudukin/go-ethereum/triedb/hashdb" + "github.com/YehorDudukin/go-ethereum/triedb/pathdb" ) var ( diff --git a/core/blockchain_insert.go b/core/blockchain_insert.go index ec3f771818..0cc65ec3b8 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/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/mclock" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/log" ) // insertStats tracks and reports on block insertion. diff --git a/core/blockchain_reader.go b/core/blockchain_reader.go index a8c2e26d18..db427eaa71 100644 --- a/core/blockchain_reader.go +++ b/core/blockchain_reader.go @@ -19,17 +19,17 @@ package core import ( "errors" - "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/ethereum/go-ethereum/triedb" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/consensus" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/core/state" + "github.com/YehorDudukin/go-ethereum/core/state/snapshot" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/core/vm" + "github.com/YehorDudukin/go-ethereum/event" + "github.com/YehorDudukin/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/rlp" + "github.com/YehorDudukin/go-ethereum/triedb" ) // 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 3ff1d77fc8..3ed4a3858c 100644 --- a/core/blockchain_repair_test.go +++ b/core/blockchain_repair_test.go @@ -26,13 +26,13 @@ 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/ethdb/pebble" - "github.com/ethereum/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/consensus/ethash" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/core/vm" + "github.com/YehorDudukin/go-ethereum/ethdb/pebble" + "github.com/YehorDudukin/go-ethereum/params" ) // Tests a recovery for a short canonical chain where a recent block was already @@ -1888,7 +1888,7 @@ func testRepairWithScheme(t *testing.T, tt *rewindTest, snapshots bool, scheme s } } -// TestIssue23496 tests scenario described in https://github.com/ethereum/go-ethereum/pull/23496#issuecomment-926393893 +// TestIssue23496 tests scenario described in https://github.com/YehorDudukin/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 e998b510df..e4d9e297e5 100644 --- a/core/blockchain_sethead_test.go +++ b/core/blockchain_sethead_test.go @@ -27,17 +27,17 @@ 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/state" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/core/vm" - "github.com/ethereum/go-ethereum/ethdb/pebble" - "github.com/ethereum/go-ethereum/params" - "github.com/ethereum/go-ethereum/triedb" - "github.com/ethereum/go-ethereum/triedb/hashdb" - "github.com/ethereum/go-ethereum/triedb/pathdb" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/consensus/ethash" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/core/state" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/core/vm" + "github.com/YehorDudukin/go-ethereum/ethdb/pebble" + "github.com/YehorDudukin/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/triedb" + "github.com/YehorDudukin/go-ethereum/triedb/hashdb" + "github.com/YehorDudukin/go-ethereum/triedb/pathdb" ) // 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 23effea15e..10734376c8 100644 --- a/core/blockchain_snapshot_test.go +++ b/core/blockchain_snapshot_test.go @@ -29,14 +29,14 @@ 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/ethdb/pebble" - "github.com/ethereum/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/consensus" + "github.com/YehorDudukin/go-ethereum/consensus/ethash" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/core/vm" + "github.com/YehorDudukin/go-ethereum/ethdb" + "github.com/YehorDudukin/go-ethereum/ethdb/pebble" + "github.com/YehorDudukin/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 289eff0a8f..4a29bc3cef 100644 --- a/core/blockchain_test.go +++ b/core/blockchain_test.go @@ -29,22 +29,22 @@ import ( "testing" "time" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/consensus" - "github.com/ethereum/go-ethereum/consensus/beacon" - "github.com/ethereum/go-ethereum/consensus/ethash" - "github.com/ethereum/go-ethereum/core/history" - "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/core/vm/program" - "github.com/ethereum/go-ethereum/crypto" - "github.com/ethereum/go-ethereum/eth/tracers/logger" - "github.com/ethereum/go-ethereum/ethdb" - "github.com/ethereum/go-ethereum/ethdb/pebble" - "github.com/ethereum/go-ethereum/params" - "github.com/ethereum/go-ethereum/trie" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/consensus" + "github.com/YehorDudukin/go-ethereum/consensus/beacon" + "github.com/YehorDudukin/go-ethereum/consensus/ethash" + "github.com/YehorDudukin/go-ethereum/core/history" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/core/state" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/core/vm" + "github.com/YehorDudukin/go-ethereum/core/vm/program" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/eth/tracers/logger" + "github.com/YehorDudukin/go-ethereum/ethdb" + "github.com/YehorDudukin/go-ethereum/ethdb/pebble" + "github.com/YehorDudukin/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/trie" "github.com/holiman/uint256" ) @@ -1509,7 +1509,7 @@ func testEIP161AccountRemoval(t *testing.T, scheme string) { // 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/YehorDudukin/go-ethereum/pull/15941 func TestBlockchainHeaderchainReorgConsistency(t *testing.T) { testBlockchainHeaderchainReorgConsistency(t, rawdb.HashScheme) testBlockchainHeaderchainReorgConsistency(t, rawdb.PathScheme) @@ -1725,8 +1725,8 @@ func testBlockchainRecovery(t *testing.T, scheme string) { // 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/YehorDudukin/go-ethereum/issues/18977 +// - https://github.com/YehorDudukin/go-ethereum/pull/18988 func TestLowDiffLongChain(t *testing.T) { testLowDiffLongChain(t, rawdb.HashScheme) testLowDiffLongChain(t, rawdb.PathScheme) diff --git a/core/chain_makers.go b/core/chain_makers.go index 37bddcfda5..50f1f9506c 100644 --- a/core/chain_makers.go +++ b/core/chain_makers.go @@ -20,18 +20,18 @@ 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/consensus/misc/eip1559" - "github.com/ethereum/go-ethereum/consensus/misc/eip4844" - "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/params" - "github.com/ethereum/go-ethereum/triedb" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/consensus" + "github.com/YehorDudukin/go-ethereum/consensus/misc" + "github.com/YehorDudukin/go-ethereum/consensus/misc/eip1559" + "github.com/YehorDudukin/go-ethereum/consensus/misc/eip4844" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/core/state" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/core/vm" + "github.com/YehorDudukin/go-ethereum/ethdb" + "github.com/YehorDudukin/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/triedb" "github.com/ethereum/go-verkle" "github.com/holiman/uint256" ) diff --git a/core/chain_makers_test.go b/core/chain_makers_test.go index d81a52e915..581957d623 100644 --- a/core/chain_makers_test.go +++ b/core/chain_makers_test.go @@ -22,16 +22,16 @@ import ( "reflect" "testing" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/consensus/beacon" + "github.com/YehorDudukin/go-ethereum/consensus/ethash" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/core/vm" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/triedb" "github.com/davecgh/go-spew/spew" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/consensus/beacon" - "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/ethereum/go-ethereum/triedb" ) func TestGeneratePOSChain(t *testing.T) { diff --git a/core/dao_test.go b/core/dao_test.go index 5da9e91b03..7be191eb12 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/YehorDudukin/go-ethereum/consensus/ethash" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/core/vm" + "github.com/YehorDudukin/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 de95e64636..22c5339c3f 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/YehorDudukin/go-ethereum/core/types" ) var ( diff --git a/core/events.go b/core/events.go index 5ad2cb1f7b..65b98e7bab 100644 --- a/core/events.go +++ b/core/events.go @@ -17,7 +17,7 @@ package core import ( - "github.com/ethereum/go-ethereum/core/types" + "github.com/YehorDudukin/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 41b4e6ac58..53eca39cdc 100644 --- a/core/evm.go +++ b/core/evm.go @@ -19,13 +19,13 @@ package core import ( "math/big" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/consensus" - "github.com/ethereum/go-ethereum/consensus/misc/eip4844" - "github.com/ethereum/go-ethereum/core/tracing" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/core/vm" - "github.com/ethereum/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/consensus" + "github.com/YehorDudukin/go-ethereum/consensus/misc/eip4844" + "github.com/YehorDudukin/go-ethereum/core/tracing" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/core/vm" + "github.com/YehorDudukin/go-ethereum/params" "github.com/holiman/uint256" ) diff --git a/core/filtermaps/chain_view.go b/core/filtermaps/chain_view.go index d6f0a727bf..50f449b5e4 100644 --- a/core/filtermaps/chain_view.go +++ b/core/filtermaps/chain_view.go @@ -19,9 +19,9 @@ package filtermaps import ( "sync" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/log" ) // blockchain represents the underlying blockchain of ChainView. diff --git a/core/filtermaps/checkpoints.go b/core/filtermaps/checkpoints.go index face4ea5d3..cec5eb41c4 100644 --- a/core/filtermaps/checkpoints.go +++ b/core/filtermaps/checkpoints.go @@ -20,7 +20,7 @@ import ( _ "embed" "encoding/json" - "github.com/ethereum/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common" ) // checkpointList lists checkpoints for finalized epochs of a given chain. diff --git a/core/filtermaps/filtermaps.go b/core/filtermaps/filtermaps.go index fa2d6e3ffb..f24679f54f 100644 --- a/core/filtermaps/filtermaps.go +++ b/core/filtermaps/filtermaps.go @@ -24,13 +24,13 @@ import ( "sync" "time" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/common/lru" - "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/metrics" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/lru" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/ethdb" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/metrics" ) var ( diff --git a/core/filtermaps/indexer.go b/core/filtermaps/indexer.go index 9a5424da4a..78158c0f6c 100644 --- a/core/filtermaps/indexer.go +++ b/core/filtermaps/indexer.go @@ -21,8 +21,8 @@ import ( "math" "time" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/log" ) const ( diff --git a/core/filtermaps/indexer_test.go b/core/filtermaps/indexer_test.go index 4dddd27087..d5c7d66047 100644 --- a/core/filtermaps/indexer_test.go +++ b/core/filtermaps/indexer_test.go @@ -26,14 +26,14 @@ import ( "sync" "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/ethereum/go-ethereum/rlp" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/consensus/ethash" + "github.com/YehorDudukin/go-ethereum/core" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/ethdb" + "github.com/YehorDudukin/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/rlp" ) var testParams = Params{ diff --git a/core/filtermaps/map_renderer.go b/core/filtermaps/map_renderer.go index 23d84f0eca..491e39742a 100644 --- a/core/filtermaps/map_renderer.go +++ b/core/filtermaps/map_renderer.go @@ -23,10 +23,10 @@ import ( "sort" "time" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/common/lru" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/lru" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/log" ) const ( diff --git a/core/filtermaps/matcher.go b/core/filtermaps/matcher.go index 5738bf166a..0908b7347c 100644 --- a/core/filtermaps/matcher.go +++ b/core/filtermaps/matcher.go @@ -25,10 +25,10 @@ import ( "sync/atomic" "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/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/mclock" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/log" ) const doRuntimeStats = false diff --git a/core/filtermaps/matcher_backend.go b/core/filtermaps/matcher_backend.go index 335ac84551..50fb055bae 100644 --- a/core/filtermaps/matcher_backend.go +++ b/core/filtermaps/matcher_backend.go @@ -19,8 +19,8 @@ package filtermaps import ( "context" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/types" ) // FilterMapsMatcherBackend implements MatcherBackend. diff --git a/core/filtermaps/matcher_test.go b/core/filtermaps/matcher_test.go index 5a49ce66ec..9d306e9f60 100644 --- a/core/filtermaps/matcher_test.go +++ b/core/filtermaps/matcher_test.go @@ -22,7 +22,7 @@ import ( "math/rand" "testing" - "github.com/ethereum/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common" ) func TestMatcher(t *testing.T) { diff --git a/core/filtermaps/math.go b/core/filtermaps/math.go index 762a99be9e..bbfb433e6d 100644 --- a/core/filtermaps/math.go +++ b/core/filtermaps/math.go @@ -23,7 +23,7 @@ import ( "math" "sort" - "github.com/ethereum/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common" ) // Params defines the basic parameters of the log index structure. diff --git a/core/filtermaps/math_test.go b/core/filtermaps/math_test.go index a4c1609059..fce0974395 100644 --- a/core/filtermaps/math_test.go +++ b/core/filtermaps/math_test.go @@ -21,7 +21,7 @@ import ( "math/rand" "testing" - "github.com/ethereum/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common" ) func TestSingleMatch(t *testing.T) { diff --git a/core/forkid/forkid.go b/core/forkid/forkid.go index 4db366da82..916a1af76c 100644 --- a/core/forkid/forkid.go +++ b/core/forkid/forkid.go @@ -27,9 +27,9 @@ import ( "slices" "strings" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/log" - "github.com/ethereum/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/params" ) var ( diff --git a/core/forkid/forkid_test.go b/core/forkid/forkid_test.go index 413e4d77a8..214b208c7e 100644 --- a/core/forkid/forkid_test.go +++ b/core/forkid/forkid_test.go @@ -23,11 +23,11 @@ import ( "math/big" "testing" - "github.com/ethereum/go-ethereum/common" - "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/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/params" + "github.com/YehorDudukin/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 2028f98edc..fbef25e138 100644 --- a/core/gen_genesis.go +++ b/core/gen_genesis.go @@ -7,11 +7,11 @@ 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/ethereum/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/common/math" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/params" ) var _ = (*genesisSpecMarshaling)(nil) diff --git a/core/genesis.go b/core/genesis.go index 95782a827a..e4e14ed613 100644 --- a/core/genesis.go +++ b/core/genesis.go @@ -24,21 +24,21 @@ 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/tracing" - "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/ethereum/go-ethereum/triedb" - "github.com/ethereum/go-ethereum/triedb/pathdb" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/common/math" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/core/state" + "github.com/YehorDudukin/go-ethereum/core/tracing" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/ethdb" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/rlp" + "github.com/YehorDudukin/go-ethereum/trie" + "github.com/YehorDudukin/go-ethereum/triedb" + "github.com/YehorDudukin/go-ethereum/triedb/pathdb" "github.com/holiman/uint256" ) diff --git a/core/genesis_test.go b/core/genesis_test.go index 726bda86bb..dc3c73b149 100644 --- a/core/genesis_test.go +++ b/core/genesis_test.go @@ -23,16 +23,16 @@ import ( "reflect" "testing" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/consensus/ethash" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/core/vm" + "github.com/YehorDudukin/go-ethereum/ethdb" + "github.com/YehorDudukin/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/triedb" + "github.com/YehorDudukin/go-ethereum/triedb/pathdb" "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/types" - "github.com/ethereum/go-ethereum/core/vm" - "github.com/ethereum/go-ethereum/ethdb" - "github.com/ethereum/go-ethereum/params" - "github.com/ethereum/go-ethereum/triedb" - "github.com/ethereum/go-ethereum/triedb/pathdb" ) func TestSetupGenesis(t *testing.T) { diff --git a/core/headerchain.go b/core/headerchain.go index f7acc49bef..7d926d40a2 100644 --- a/core/headerchain.go +++ b/core/headerchain.go @@ -22,15 +22,15 @@ import ( "sync/atomic" "time" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/common/lru" - "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/ethereum/go-ethereum/rlp" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/lru" + "github.com/YehorDudukin/go-ethereum/consensus" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/ethdb" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/rlp" ) const ( diff --git a/core/headerchain_test.go b/core/headerchain_test.go index b51fb8f226..bbb2210d6e 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/params" - "github.com/ethereum/go-ethereum/triedb" + "github.com/YehorDudukin/go-ethereum/consensus" + "github.com/YehorDudukin/go-ethereum/consensus/ethash" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/triedb" ) func verifyUnbrokenCanonchain(hc *HeaderChain) error { diff --git a/core/history/historymode.go b/core/history/historymode.go index e735222d37..076aa68c85 100644 --- a/core/history/historymode.go +++ b/core/history/historymode.go @@ -19,8 +19,8 @@ package history import ( "fmt" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/params" ) // HistoryMode configures history pruning. diff --git a/core/mkalloc.go b/core/mkalloc.go index cc4955f038..26dab59e59 100644 --- a/core/mkalloc.go +++ b/core/mkalloc.go @@ -33,9 +33,9 @@ import ( "slices" "strconv" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core" - "github.com/ethereum/go-ethereum/rlp" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core" + "github.com/YehorDudukin/go-ethereum/rlp" ) type allocItem struct { diff --git a/core/rawdb/accessors_chain.go b/core/rawdb/accessors_chain.go index 2f62d86e4b..5e8db0a8a6 100644 --- a/core/rawdb/accessors_chain.go +++ b/core/rawdb/accessors_chain.go @@ -23,14 +23,14 @@ import ( "math/big" "slices" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/consensus/misc/eip4844" - "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/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/consensus/misc/eip4844" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/ethdb" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/params" + "github.com/YehorDudukin/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 247e277582..e2e4a2de08 100644 --- a/core/rawdb/accessors_chain_test.go +++ b/core/rawdb/accessors_chain_test.go @@ -26,11 +26,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/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/rlp" "golang.org/x/crypto/sha3" ) diff --git a/core/rawdb/accessors_indexes.go b/core/rawdb/accessors_indexes.go index 1a5c414c8e..a4319d4c2c 100644 --- a/core/rawdb/accessors_indexes.go +++ b/core/rawdb/accessors_indexes.go @@ -22,12 +22,12 @@ import ( "errors" "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/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/ethdb" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/rlp" ) // DecodeTxLookupEntry decodes the supplied tx lookup data. diff --git a/core/rawdb/accessors_indexes_test.go b/core/rawdb/accessors_indexes_test.go index 29b468fb2a..76f5da6703 100644 --- a/core/rawdb/accessors_indexes_test.go +++ b/core/rawdb/accessors_indexes_test.go @@ -20,11 +20,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/internal/blocktest" - "github.com/ethereum/go-ethereum/rlp" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/ethdb" + "github.com/YehorDudukin/go-ethereum/internal/blocktest" + "github.com/YehorDudukin/go-ethereum/rlp" ) var newTestHasher = blocktest.NewHasher diff --git a/core/rawdb/accessors_metadata.go b/core/rawdb/accessors_metadata.go index 859566f722..82fff4e1dc 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/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/ethdb" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/params" + "github.com/YehorDudukin/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 5cea581fcd..b3913f8821 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/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/ethdb" + "github.com/YehorDudukin/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 adc77fae83..be368b8df4 100644 --- a/core/rawdb/accessors_state.go +++ b/core/rawdb/accessors_state.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/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/ethdb" + "github.com/YehorDudukin/go-ethereum/log" ) // ReadPreimage retrieves a single preimage of the provided hash. diff --git a/core/rawdb/accessors_sync.go b/core/rawdb/accessors_sync.go index 2dc08b3b72..626b225468 100644 --- a/core/rawdb/accessors_sync.go +++ b/core/rawdb/accessors_sync.go @@ -17,10 +17,10 @@ package rawdb import ( - "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/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/ethdb" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/rlp" ) // ReadSkeletonSyncStatus retrieves the serialized sync status saved at shutdown. diff --git a/core/rawdb/accessors_trie.go b/core/rawdb/accessors_trie.go index 8bd6b71eee..a46a461b10 100644 --- a/core/rawdb/accessors_trie.go +++ b/core/rawdb/accessors_trie.go @@ -20,10 +20,10 @@ import ( "fmt" "sync" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/crypto" - "github.com/ethereum/go-ethereum/ethdb" - "github.com/ethereum/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/ethdb" + "github.com/YehorDudukin/go-ethereum/log" ) // HashScheme is the legacy hash-based state scheme with which trie nodes are diff --git a/core/rawdb/ancient_scheme.go b/core/rawdb/ancient_scheme.go index 1ffebed3e7..e4b6de95ba 100644 --- a/core/rawdb/ancient_scheme.go +++ b/core/rawdb/ancient_scheme.go @@ -19,7 +19,7 @@ package rawdb import ( "path/filepath" - "github.com/ethereum/go-ethereum/ethdb" + "github.com/YehorDudukin/go-ethereum/ethdb" ) // The list of table names of chain freezer. diff --git a/core/rawdb/ancient_utils.go b/core/rawdb/ancient_utils.go index f4909d86e7..896409f2bd 100644 --- a/core/rawdb/ancient_utils.go +++ b/core/rawdb/ancient_utils.go @@ -20,8 +20,8 @@ import ( "fmt" "path/filepath" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/ethdb" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/ethdb" ) type tableSize struct { diff --git a/core/rawdb/ancienttest/testsuite.go b/core/rawdb/ancienttest/testsuite.go index 70de263c04..b6d58ea7ea 100644 --- a/core/rawdb/ancienttest/testsuite.go +++ b/core/rawdb/ancienttest/testsuite.go @@ -21,8 +21,8 @@ import ( "reflect" "testing" - "github.com/ethereum/go-ethereum/ethdb" - "github.com/ethereum/go-ethereum/internal/testrand" + "github.com/YehorDudukin/go-ethereum/ethdb" + "github.com/YehorDudukin/go-ethereum/internal/testrand" ) // TestAncientSuite runs a suite of tests against an ancient database diff --git a/core/rawdb/chain_freezer.go b/core/rawdb/chain_freezer.go index f3c671f45a..1251c05f60 100644 --- a/core/rawdb/chain_freezer.go +++ b/core/rawdb/chain_freezer.go @@ -22,10 +22,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/params" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/ethdb" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/params" ) const ( diff --git a/core/rawdb/chain_iterator.go b/core/rawdb/chain_iterator.go index ecbc44e1f1..a25bd5782a 100644 --- a/core/rawdb/chain_iterator.go +++ b/core/rawdb/chain_iterator.go @@ -22,12 +22,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/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/prque" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/ethdb" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/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 75bd5a9a94..b13af882fb 100644 --- a/core/rawdb/chain_iterator_test.go +++ b/core/rawdb/chain_iterator_test.go @@ -23,9 +23,9 @@ import ( "sync" "testing" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/ethdb" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/ethdb" ) func TestChainIterator(t *testing.T) { diff --git a/core/rawdb/database.go b/core/rawdb/database.go index 2a50e3f9ee..9b9e74f34f 100644 --- a/core/rawdb/database.go +++ b/core/rawdb/database.go @@ -27,11 +27,11 @@ import ( "strings" "time" - "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/ethereum/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/ethdb" + "github.com/YehorDudukin/go-ethereum/ethdb/memorydb" + "github.com/YehorDudukin/go-ethereum/log" "github.com/olekukonko/tablewriter" ) diff --git a/core/rawdb/freezer.go b/core/rawdb/freezer.go index 105d3af934..b3d03c83fb 100644 --- a/core/rawdb/freezer.go +++ b/core/rawdb/freezer.go @@ -25,9 +25,9 @@ import ( "sync" "sync/atomic" - "github.com/ethereum/go-ethereum/ethdb" - "github.com/ethereum/go-ethereum/log" - "github.com/ethereum/go-ethereum/metrics" + "github.com/YehorDudukin/go-ethereum/ethdb" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/metrics" "github.com/gofrs/flock" ) diff --git a/core/rawdb/freezer_batch.go b/core/rawdb/freezer_batch.go index 99b63df4dc..a24e6e4f32 100644 --- a/core/rawdb/freezer_batch.go +++ b/core/rawdb/freezer_batch.go @@ -21,7 +21,7 @@ import ( "math" "time" - "github.com/ethereum/go-ethereum/rlp" + "github.com/YehorDudukin/go-ethereum/rlp" "github.com/golang/snappy" ) diff --git a/core/rawdb/freezer_memory.go b/core/rawdb/freezer_memory.go index 4274546de5..04c3373f15 100644 --- a/core/rawdb/freezer_memory.go +++ b/core/rawdb/freezer_memory.go @@ -22,10 +22,10 @@ import ( "math" "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/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/ethdb" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/rlp" ) // memoryTable is used to store a list of sequential items in memory. diff --git a/core/rawdb/freezer_memory_test.go b/core/rawdb/freezer_memory_test.go index 4bd31d8027..1e67a910e2 100644 --- a/core/rawdb/freezer_memory_test.go +++ b/core/rawdb/freezer_memory_test.go @@ -19,8 +19,8 @@ package rawdb import ( "testing" - "github.com/ethereum/go-ethereum/core/rawdb/ancienttest" - "github.com/ethereum/go-ethereum/ethdb" + "github.com/YehorDudukin/go-ethereum/core/rawdb/ancienttest" + "github.com/YehorDudukin/go-ethereum/ethdb" ) func TestMemoryFreezer(t *testing.T) { diff --git a/core/rawdb/freezer_meta.go b/core/rawdb/freezer_meta.go index 3cda9ae45c..5c9b6acc1d 100644 --- a/core/rawdb/freezer_meta.go +++ b/core/rawdb/freezer_meta.go @@ -22,8 +22,8 @@ import ( "math" "os" - "github.com/ethereum/go-ethereum/log" - "github.com/ethereum/go-ethereum/rlp" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/rlp" ) const ( diff --git a/core/rawdb/freezer_meta_test.go b/core/rawdb/freezer_meta_test.go index 31f8c519c8..7496e1c17e 100644 --- a/core/rawdb/freezer_meta_test.go +++ b/core/rawdb/freezer_meta_test.go @@ -20,7 +20,7 @@ import ( "os" "testing" - "github.com/ethereum/go-ethereum/rlp" + "github.com/YehorDudukin/go-ethereum/rlp" ) func TestReadWriteFreezerTableMeta(t *testing.T) { diff --git a/core/rawdb/freezer_resettable.go b/core/rawdb/freezer_resettable.go index 2e64e6074c..78f52cad6d 100644 --- a/core/rawdb/freezer_resettable.go +++ b/core/rawdb/freezer_resettable.go @@ -21,8 +21,8 @@ import ( "path/filepath" "sync" - "github.com/ethereum/go-ethereum/ethdb" - "github.com/ethereum/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/ethdb" + "github.com/YehorDudukin/go-ethereum/log" ) const tmpSuffix = ".tmp" diff --git a/core/rawdb/freezer_resettable_test.go b/core/rawdb/freezer_resettable_test.go index 61dc23d798..08e4a01d81 100644 --- a/core/rawdb/freezer_resettable_test.go +++ b/core/rawdb/freezer_resettable_test.go @@ -21,7 +21,7 @@ import ( "os" "testing" - "github.com/ethereum/go-ethereum/ethdb" + "github.com/YehorDudukin/go-ethereum/ethdb" ) func TestResetFreezer(t *testing.T) { diff --git a/core/rawdb/freezer_table.go b/core/rawdb/freezer_table.go index aec24b207e..5b7b952a9b 100644 --- a/core/rawdb/freezer_table.go +++ b/core/rawdb/freezer_table.go @@ -29,9 +29,9 @@ import ( "sync/atomic" "time" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/log" - "github.com/ethereum/go-ethereum/metrics" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/metrics" "github.com/golang/snappy" ) diff --git a/core/rawdb/freezer_table_test.go b/core/rawdb/freezer_table_test.go index 96edac7e4a..1e5ffd26a1 100644 --- a/core/rawdb/freezer_table_test.go +++ b/core/rawdb/freezer_table_test.go @@ -27,8 +27,8 @@ import ( "testing" "testing/quick" + "github.com/YehorDudukin/go-ethereum/metrics" "github.com/davecgh/go-spew/spew" - "github.com/ethereum/go-ethereum/metrics" "github.com/stretchr/testify/require" ) diff --git a/core/rawdb/freezer_test.go b/core/rawdb/freezer_test.go index 150734d3ac..9fc031f734 100644 --- a/core/rawdb/freezer_test.go +++ b/core/rawdb/freezer_test.go @@ -25,9 +25,9 @@ import ( "sync" "testing" - "github.com/ethereum/go-ethereum/core/rawdb/ancienttest" - "github.com/ethereum/go-ethereum/ethdb" - "github.com/ethereum/go-ethereum/rlp" + "github.com/YehorDudukin/go-ethereum/core/rawdb/ancienttest" + "github.com/YehorDudukin/go-ethereum/ethdb" + "github.com/YehorDudukin/go-ethereum/rlp" "github.com/stretchr/testify/require" ) diff --git a/core/rawdb/key_length_iterator.go b/core/rawdb/key_length_iterator.go index d1c5af269a..322157ea2f 100644 --- a/core/rawdb/key_length_iterator.go +++ b/core/rawdb/key_length_iterator.go @@ -16,7 +16,7 @@ package rawdb -import "github.com/ethereum/go-ethereum/ethdb" +import "github.com/YehorDudukin/go-ethereum/ethdb" // KeyLengthIterator is a wrapper for a database iterator that ensures only key-value pairs // with a specific key length will be returned. diff --git a/core/rawdb/schema.go b/core/rawdb/schema.go index fa125cecc0..9b094b34ef 100644 --- a/core/rawdb/schema.go +++ b/core/rawdb/schema.go @@ -21,9 +21,9 @@ import ( "bytes" "encoding/binary" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/crypto" - "github.com/ethereum/go-ethereum/metrics" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/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 1a9060b636..d820761bd4 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/YehorDudukin/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..77b40a63ce 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/YehorDudukin/go-ethereum/ethdb" ) func TestTableDatabase(t *testing.T) { testTableDatabase(t, "prefix") } diff --git a/core/rlp_test.go b/core/rlp_test.go index bc37408537..5ef23ff5cf 100644 --- a/core/rlp_test.go +++ b/core/rlp_test.go @@ -21,12 +21,12 @@ import ( "math/big" "testing" - "github.com/ethereum/go-ethereum/common" - "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/params" - "github.com/ethereum/go-ethereum/rlp" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/consensus/ethash" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/rlp" "golang.org/x/crypto/sha3" ) diff --git a/core/sender_cacher.go b/core/sender_cacher.go index 73bd5c85f2..7950157fe0 100644 --- a/core/sender_cacher.go +++ b/core/sender_cacher.go @@ -20,7 +20,7 @@ import ( "runtime" "sync" - "github.com/ethereum/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/core/types" ) // senderCacherOnce is used to ensure that the SenderCacher is initialized only once. diff --git a/core/state/access_events.go b/core/state/access_events.go index b745c383b1..3537ee92f3 100644 --- a/core/state/access_events.go +++ b/core/state/access_events.go @@ -19,10 +19,10 @@ package state import ( "maps" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/common/math" - "github.com/ethereum/go-ethereum/params" - "github.com/ethereum/go-ethereum/trie/utils" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/math" + "github.com/YehorDudukin/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/trie/utils" "github.com/holiman/uint256" ) diff --git a/core/state/access_events_test.go b/core/state/access_events_test.go index 10630b3181..71045071d1 100644 --- a/core/state/access_events_test.go +++ b/core/state/access_events_test.go @@ -19,9 +19,9 @@ package state import ( "testing" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/params" - "github.com/ethereum/go-ethereum/trie/utils" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/trie/utils" ) var ( diff --git a/core/state/access_list.go b/core/state/access_list.go index a58c2b20ea..ee0bd8027f 100644 --- a/core/state/access_list.go +++ b/core/state/access_list.go @@ -22,7 +22,7 @@ import ( "slices" "strings" - "github.com/ethereum/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common" ) type accessList struct { diff --git a/core/state/database.go b/core/state/database.go index a63be4e3ce..1b07e40a03 100644 --- a/core/state/database.go +++ b/core/state/database.go @@ -19,17 +19,17 @@ package state import ( "fmt" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/common/lru" - "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/trie" - "github.com/ethereum/go-ethereum/trie/trienode" - "github.com/ethereum/go-ethereum/trie/utils" - "github.com/ethereum/go-ethereum/triedb" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/lru" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/core/state/snapshot" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/ethdb" + "github.com/YehorDudukin/go-ethereum/trie" + "github.com/YehorDudukin/go-ethereum/trie/trienode" + "github.com/YehorDudukin/go-ethereum/trie/utils" + "github.com/YehorDudukin/go-ethereum/triedb" ) const ( diff --git a/core/state/dump.go b/core/state/dump.go index 11b5c32782..346cacece0 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/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/rlp" + "github.com/YehorDudukin/go-ethereum/trie" ) // DumpConfig is a set of options to control what portions of the state will be diff --git a/core/state/iterator.go b/core/state/iterator.go index 5ea52c6183..eb862a5ca4 100644 --- a/core/state/iterator.go +++ b/core/state/iterator.go @@ -21,10 +21,10 @@ import ( "errors" "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/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/rlp" + "github.com/YehorDudukin/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 26456d7a89..206a5eba25 100644 --- a/core/state/iterator_test.go +++ b/core/state/iterator_test.go @@ -19,9 +19,9 @@ package state import ( "testing" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/rawdb" - "github.com/ethereum/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/crypto" ) // 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 13332dbd79..160ffe0e7d 100644 --- a/core/state/journal.go +++ b/core/state/journal.go @@ -22,8 +22,8 @@ import ( "slices" "sort" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/crypto" "github.com/holiman/uint256" ) diff --git a/core/state/metrics.go b/core/state/metrics.go index dd4b2e9838..e3d9c188cc 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/YehorDudukin/go-ethereum/metrics" var ( accountReadMeters = metrics.NewRegisteredMeter("state/read/account", nil) diff --git a/core/state/pruner/bloom.go b/core/state/pruner/bloom.go index dad2b5b2a8..53c160aeae 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/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/log" bloomfilter "github.com/holiman/bloomfilter/v2" ) diff --git a/core/state/pruner/pruner.go b/core/state/pruner/pruner.go index 46558a6fce..a9776e5447 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/ethdb" - "github.com/ethereum/go-ethereum/log" - "github.com/ethereum/go-ethereum/rlp" - "github.com/ethereum/go-ethereum/trie" - "github.com/ethereum/go-ethereum/triedb" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/core/state/snapshot" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/ethdb" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/rlp" + "github.com/YehorDudukin/go-ethereum/trie" + "github.com/YehorDudukin/go-ethereum/triedb" ) const ( diff --git a/core/state/reader.go b/core/state/reader.go index a0f15dfcc8..986c2d09e6 100644 --- a/core/state/reader.go +++ b/core/state/reader.go @@ -19,17 +19,17 @@ package state import ( "errors" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/common/lru" - "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/rlp" - "github.com/ethereum/go-ethereum/trie" - "github.com/ethereum/go-ethereum/trie/utils" - "github.com/ethereum/go-ethereum/triedb" - "github.com/ethereum/go-ethereum/triedb/database" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/lru" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/ethdb" + "github.com/YehorDudukin/go-ethereum/rlp" + "github.com/YehorDudukin/go-ethereum/trie" + "github.com/YehorDudukin/go-ethereum/trie/utils" + "github.com/YehorDudukin/go-ethereum/triedb" + "github.com/YehorDudukin/go-ethereum/triedb/database" ) // ContractCodeReader defines the interface for accessing contract code. diff --git a/core/state/snapshot/context.go b/core/state/snapshot/context.go index 3d293d27f4..2914ed9f39 100644 --- a/core/state/snapshot/context.go +++ b/core/state/snapshot/context.go @@ -23,11 +23,11 @@ import ( "math" "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/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/ethdb" + "github.com/YehorDudukin/go-ethereum/ethdb/memorydb" + "github.com/YehorDudukin/go-ethereum/log" ) const ( diff --git a/core/state/snapshot/conversion.go b/core/state/snapshot/conversion.go index 4b0774f2ae..bc0d0b2fcc 100644 --- a/core/state/snapshot/conversion.go +++ b/core/state/snapshot/conversion.go @@ -25,13 +25,13 @@ import ( "sync" "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/log" - "github.com/ethereum/go-ethereum/rlp" - "github.com/ethereum/go-ethereum/trie" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/ethdb" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/rlp" + "github.com/YehorDudukin/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 28957051d4..27f6c2403e 100644 --- a/core/state/snapshot/difflayer.go +++ b/core/state/snapshot/difflayer.go @@ -27,9 +27,9 @@ import ( "sync/atomic" "time" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/rlp" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/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 b212098e75..908fc601ea 100644 --- a/core/state/snapshot/difflayer_test.go +++ b/core/state/snapshot/difflayer_test.go @@ -23,9 +23,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/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/ethdb/memorydb" ) func copyAccounts(accounts map[common.Hash][]byte) map[common.Hash][]byte { diff --git a/core/state/snapshot/disklayer.go b/core/state/snapshot/disklayer.go index 202e6c70ed..70262414b6 100644 --- a/core/state/snapshot/disklayer.go +++ b/core/state/snapshot/disklayer.go @@ -21,12 +21,12 @@ import ( "sync" "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/rlp" - "github.com/ethereum/go-ethereum/triedb" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/ethdb" + "github.com/YehorDudukin/go-ethereum/rlp" + "github.com/YehorDudukin/go-ethereum/triedb" ) // 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 6d99a90d61..07ad7aa4a6 100644 --- a/core/state/snapshot/disklayer_test.go +++ b/core/state/snapshot/disklayer_test.go @@ -21,10 +21,10 @@ 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/memorydb" - "github.com/ethereum/go-ethereum/rlp" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/ethdb/memorydb" + "github.com/YehorDudukin/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 01fb55ea4c..b00aa3131a 100644 --- a/core/state/snapshot/generate.go +++ b/core/state/snapshot/generate.go @@ -23,15 +23,15 @@ import ( "time" "github.com/VictoriaMetrics/fastcache" - "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/types" - "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/ethereum/go-ethereum/triedb" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/ethdb" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/rlp" + "github.com/YehorDudukin/go-ethereum/trie" + "github.com/YehorDudukin/go-ethereum/triedb" ) var ( diff --git a/core/state/snapshot/generate_test.go b/core/state/snapshot/generate_test.go index 3de7735ef8..da2a7e7459 100644 --- a/core/state/snapshot/generate_test.go +++ b/core/state/snapshot/generate_test.go @@ -22,17 +22,17 @@ 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/ethdb" - "github.com/ethereum/go-ethereum/log" - "github.com/ethereum/go-ethereum/rlp" - "github.com/ethereum/go-ethereum/trie" - "github.com/ethereum/go-ethereum/trie/trienode" - "github.com/ethereum/go-ethereum/triedb" - "github.com/ethereum/go-ethereum/triedb/hashdb" - "github.com/ethereum/go-ethereum/triedb/pathdb" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/ethdb" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/rlp" + "github.com/YehorDudukin/go-ethereum/trie" + "github.com/YehorDudukin/go-ethereum/trie/trienode" + "github.com/YehorDudukin/go-ethereum/triedb" + "github.com/YehorDudukin/go-ethereum/triedb/hashdb" + "github.com/YehorDudukin/go-ethereum/triedb/pathdb" "github.com/holiman/uint256" "golang.org/x/crypto/sha3" ) diff --git a/core/state/snapshot/holdable_iterator.go b/core/state/snapshot/holdable_iterator.go index 1e86ff9d82..422f4a39f8 100644 --- a/core/state/snapshot/holdable_iterator.go +++ b/core/state/snapshot/holdable_iterator.go @@ -17,8 +17,8 @@ package snapshot import ( - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/ethdb" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/ethdb" ) // holdableIterator is a wrapper of underlying database iterator. It extends diff --git a/core/state/snapshot/holdable_iterator_test.go b/core/state/snapshot/holdable_iterator_test.go index ce4cf6bb8a..cd15271125 100644 --- a/core/state/snapshot/holdable_iterator_test.go +++ b/core/state/snapshot/holdable_iterator_test.go @@ -20,8 +20,8 @@ import ( "bytes" "testing" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/rawdb" ) func TestIteratorHold(t *testing.T) { diff --git a/core/state/snapshot/iterator.go b/core/state/snapshot/iterator.go index cd9c225844..6fd14b7cb4 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/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/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 254c4b860f..ed0229f3f3 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/YehorDudukin/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 61fc434178..45643b153b 100644 --- a/core/state/snapshot/iterator_fast.go +++ b/core/state/snapshot/iterator_fast.go @@ -23,7 +23,7 @@ import ( "slices" "sort" - "github.com/ethereum/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common" ) // weightedIterator is an 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 2e882f484e..e79cfd0186 100644 --- a/core/state/snapshot/iterator_test.go +++ b/core/state/snapshot/iterator_test.go @@ -25,8 +25,8 @@ import ( "testing" "github.com/VictoriaMetrics/fastcache" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/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 e4b396b990..a60ab5ed3b 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/triedb" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/ethdb" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/rlp" + "github.com/YehorDudukin/go-ethereum/triedb" ) const ( diff --git a/core/state/snapshot/metrics.go b/core/state/snapshot/metrics.go index b2e884588b..54b0c6a608 100644 --- a/core/state/snapshot/metrics.go +++ b/core/state/snapshot/metrics.go @@ -16,7 +16,7 @@ package snapshot -import "github.com/ethereum/go-ethereum/metrics" +import "github.com/YehorDudukin/go-ethereum/metrics" // Metrics in generation var ( diff --git a/core/state/snapshot/snapshot.go b/core/state/snapshot/snapshot.go index f0f6296433..759774e0c9 100644 --- a/core/state/snapshot/snapshot.go +++ b/core/state/snapshot/snapshot.go @@ -23,14 +23,14 @@ import ( "fmt" "sync" - "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/log" - "github.com/ethereum/go-ethereum/metrics" - "github.com/ethereum/go-ethereum/rlp" - "github.com/ethereum/go-ethereum/triedb" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/ethdb" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/metrics" + "github.com/YehorDudukin/go-ethereum/rlp" + "github.com/YehorDudukin/go-ethereum/triedb" ) var ( diff --git a/core/state/snapshot/snapshot_test.go b/core/state/snapshot/snapshot_test.go index 34ef61e8d0..0d6120fd26 100644 --- a/core/state/snapshot/snapshot_test.go +++ b/core/state/snapshot/snapshot_test.go @@ -25,10 +25,10 @@ import ( "time" "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/rlp" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/rlp" "github.com/holiman/uint256" ) @@ -185,7 +185,7 @@ func TestDiskLayerExternalInvalidationPartialFlatten(t *testing.T) { // layer to check the usual mode of operation where the accumulator is retained. func TestDiffLayerExternalInvalidationPartialFlatten(t *testing.T) { // Un-commenting this triggers the bloom set to be deterministic. The values below - // were used to trigger the flaw described in https://github.com/ethereum/go-ethereum/issues/27254. + // were used to trigger the flaw described in https://github.com/YehorDudukin/go-ethereum/issues/27254. // bloomDestructHasherOffset, bloomAccountHasherOffset, bloomStorageHasherOffset = 14, 24, 5 // Create an empty base layer and a snapshot tree out of it diff --git a/core/state/snapshot/utils.go b/core/state/snapshot/utils.go index c35c82f67a..83f50d9711 100644 --- a/core/state/snapshot/utils.go +++ b/core/state/snapshot/utils.go @@ -21,11 +21,11 @@ import ( "fmt" "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/log" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/ethdb" + "github.com/YehorDudukin/go-ethereum/log" ) // CheckDanglingStorage iterates the snap storage data, and verifies that all diff --git a/core/state/state_object.go b/core/state/state_object.go index a6979bd361..08324eba3f 100644 --- a/core/state/state_object.go +++ b/core/state/state_object.go @@ -23,12 +23,12 @@ import ( "slices" "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/log" - "github.com/ethereum/go-ethereum/rlp" - "github.com/ethereum/go-ethereum/trie/trienode" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/rlp" + "github.com/YehorDudukin/go-ethereum/trie/trienode" "github.com/holiman/uint256" ) diff --git a/core/state/state_object_test.go b/core/state/state_object_test.go index 42fd778025..1d9505ca01 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/YehorDudukin/go-ethereum/common" ) func BenchmarkCutOriginal(b *testing.B) { diff --git a/core/state/state_test.go b/core/state/state_test.go index b443411f1b..e4308d216e 100644 --- a/core/state/state_test.go +++ b/core/state/state_test.go @@ -21,11 +21,11 @@ import ( "encoding/json" "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/triedb" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/triedb" "github.com/holiman/uint256" ) diff --git a/core/state/statedb.go b/core/state/statedb.go index e3f5b9e1a0..245e89442a 100644 --- a/core/state/statedb.go +++ b/core/state/statedb.go @@ -26,18 +26,18 @@ import ( "sync/atomic" "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/stateless" - "github.com/ethereum/go-ethereum/core/tracing" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/crypto" - "github.com/ethereum/go-ethereum/log" - "github.com/ethereum/go-ethereum/params" - "github.com/ethereum/go-ethereum/trie" - "github.com/ethereum/go-ethereum/trie/trienode" - "github.com/ethereum/go-ethereum/trie/utils" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/core/state/snapshot" + "github.com/YehorDudukin/go-ethereum/core/stateless" + "github.com/YehorDudukin/go-ethereum/core/tracing" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/trie" + "github.com/YehorDudukin/go-ethereum/trie/trienode" + "github.com/YehorDudukin/go-ethereum/trie/utils" "github.com/holiman/uint256" "golang.org/x/sync/errgroup" ) @@ -205,7 +205,7 @@ func (s *StateDB) StartPrefetcher(namespace string, witness *stateless.Witness) // // To prevent this, the account trie is always scheduled for prefetching once // the prefetcher is constructed. For more details, see: - // https://github.com/ethereum/go-ethereum/issues/29880 + // https://github.com/YehorDudukin/go-ethereum/issues/29880 s.prefetcher = newTriePrefetcher(s.db, s.originalRoot, namespace, witness == nil) if err := s.prefetcher.prefetch(common.Hash{}, s.originalRoot, common.Address{}, nil, nil, false); err != nil { log.Error("Failed to prefetch account trie", "root", s.originalRoot, "err", err) diff --git a/core/state/statedb_fuzz_test.go b/core/state/statedb_fuzz_test.go index 7dada63d45..ed87c4a204 100644 --- a/core/state/statedb_fuzz_test.go +++ b/core/state/statedb_fuzz_test.go @@ -29,16 +29,16 @@ import ( "testing" "testing/quick" - "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/tracing" - "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/ethereum/go-ethereum/triedb" - "github.com/ethereum/go-ethereum/triedb/pathdb" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/core/state/snapshot" + "github.com/YehorDudukin/go-ethereum/core/tracing" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/rlp" + "github.com/YehorDudukin/go-ethereum/trie" + "github.com/YehorDudukin/go-ethereum/triedb" + "github.com/YehorDudukin/go-ethereum/triedb/pathdb" "github.com/holiman/uint256" ) diff --git a/core/state/statedb_hooked.go b/core/state/statedb_hooked.go index a2fdfe9a21..9e57f70f56 100644 --- a/core/state/statedb_hooked.go +++ b/core/state/statedb_hooked.go @@ -19,13 +19,13 @@ package state import ( "math/big" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/stateless" - "github.com/ethereum/go-ethereum/core/tracing" - "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/utils" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/stateless" + "github.com/YehorDudukin/go-ethereum/core/tracing" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/trie/utils" "github.com/holiman/uint256" ) diff --git a/core/state/statedb_hooked_test.go b/core/state/statedb_hooked_test.go index f319b0e63c..6a1cb2ccb7 100644 --- a/core/state/statedb_hooked_test.go +++ b/core/state/statedb_hooked_test.go @@ -21,9 +21,9 @@ import ( "math/big" "testing" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/tracing" - "github.com/ethereum/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/tracing" + "github.com/YehorDudukin/go-ethereum/core/types" "github.com/holiman/uint256" ) diff --git a/core/state/statedb_test.go b/core/state/statedb_test.go index e740c64faa..aeab24235d 100644 --- a/core/state/statedb_test.go +++ b/core/state/statedb_test.go @@ -30,18 +30,18 @@ import ( "testing" "testing/quick" - "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/tracing" - "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/ethereum/go-ethereum/trie/trienode" - "github.com/ethereum/go-ethereum/triedb" - "github.com/ethereum/go-ethereum/triedb/hashdb" - "github.com/ethereum/go-ethereum/triedb/pathdb" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/core/state/snapshot" + "github.com/YehorDudukin/go-ethereum/core/tracing" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/rlp" + "github.com/YehorDudukin/go-ethereum/trie" + "github.com/YehorDudukin/go-ethereum/trie/trienode" + "github.com/YehorDudukin/go-ethereum/triedb" + "github.com/YehorDudukin/go-ethereum/triedb/hashdb" + "github.com/YehorDudukin/go-ethereum/triedb/pathdb" "github.com/holiman/uint256" ) @@ -163,7 +163,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/YehorDudukin/go-ethereum/pull/15549. func TestCopy(t *testing.T) { // Create a random state test to copy and modify "independently" orig, _ := New(types.EmptyRootHash, NewDatabaseForTesting()) @@ -712,7 +712,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/YehorDudukin/go-ethereum/pull/15225#issuecomment-380191512 func TestCopyOfCopy(t *testing.T) { state, _ := New(types.EmptyRootHash, NewDatabaseForTesting()) addr := common.HexToAddress("aaaa") @@ -729,7 +729,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/YehorDudukin/go-ethereum/issues/20106. func TestCopyCommitCopy(t *testing.T) { tdb := NewDatabaseForTesting() state, _ := New(types.EmptyRootHash, tdb) @@ -803,7 +803,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/YehorDudukin/go-ethereum/issues/20106. func TestCopyCopyCommitCopy(t *testing.T) { state, _ := New(types.EmptyRootHash, NewDatabaseForTesting()) diff --git a/core/state/stateupdate.go b/core/state/stateupdate.go index 75c4ca028c..f6769eded3 100644 --- a/core/state/stateupdate.go +++ b/core/state/stateupdate.go @@ -19,9 +19,9 @@ package state import ( "maps" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/trie/trienode" - "github.com/ethereum/go-ethereum/triedb" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/trie/trienode" + "github.com/YehorDudukin/go-ethereum/triedb" ) // contractCode represents a contract code with associated metadata. diff --git a/core/state/sync.go b/core/state/sync.go index 411b54eab0..f27aab24f8 100644 --- a/core/state/sync.go +++ b/core/state/sync.go @@ -17,11 +17,11 @@ package state import ( - "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/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/ethdb" + "github.com/YehorDudukin/go-ethereum/rlp" + "github.com/YehorDudukin/go-ethereum/trie" ) // NewStateSync creates a new state trie download scheduler. diff --git a/core/state/sync_test.go b/core/state/sync_test.go index 5c8b5a90f7..f446120923 100644 --- a/core/state/sync_test.go +++ b/core/state/sync_test.go @@ -20,16 +20,16 @@ import ( "bytes" "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/rlp" - "github.com/ethereum/go-ethereum/trie" - "github.com/ethereum/go-ethereum/triedb" - "github.com/ethereum/go-ethereum/triedb/hashdb" - "github.com/ethereum/go-ethereum/triedb/pathdb" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/ethdb" + "github.com/YehorDudukin/go-ethereum/rlp" + "github.com/YehorDudukin/go-ethereum/trie" + "github.com/YehorDudukin/go-ethereum/triedb" + "github.com/YehorDudukin/go-ethereum/triedb/hashdb" + "github.com/YehorDudukin/go-ethereum/triedb/pathdb" "github.com/holiman/uint256" ) diff --git a/core/state/transient_storage.go b/core/state/transient_storage.go index e63db39eba..4fe07dc552 100644 --- a/core/state/transient_storage.go +++ b/core/state/transient_storage.go @@ -21,7 +21,7 @@ import ( "slices" "strings" - "github.com/ethereum/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common" ) // transientStorage is a representation of EIP-1153 "Transient Storage". diff --git a/core/state/trie_prefetcher.go b/core/state/trie_prefetcher.go index 6f492cf9f2..52128e554d 100644 --- a/core/state/trie_prefetcher.go +++ b/core/state/trie_prefetcher.go @@ -20,9 +20,9 @@ import ( "errors" "sync" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/log" - "github.com/ethereum/go-ethereum/metrics" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/metrics" ) var ( diff --git a/core/state/trie_prefetcher_test.go b/core/state/trie_prefetcher_test.go index 4d1b627c4d..5cb518d459 100644 --- a/core/state/trie_prefetcher_test.go +++ b/core/state/trie_prefetcher_test.go @@ -20,13 +20,13 @@ import ( "math/big" "testing" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/rawdb" - "github.com/ethereum/go-ethereum/core/tracing" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/crypto" - "github.com/ethereum/go-ethereum/internal/testrand" - "github.com/ethereum/go-ethereum/triedb" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/core/tracing" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/internal/testrand" + "github.com/YehorDudukin/go-ethereum/triedb" "github.com/holiman/uint256" ) diff --git a/core/state_prefetcher.go b/core/state_prefetcher.go index 805df5ef62..045c23af28 100644 --- a/core/state_prefetcher.go +++ b/core/state_prefetcher.go @@ -19,10 +19,10 @@ package core import ( "sync/atomic" - "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/YehorDudukin/go-ethereum/core/state" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/core/vm" + "github.com/YehorDudukin/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 322bd24f41..b0c26b328d 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/misc" - "github.com/ethereum/go-ethereum/core/state" - "github.com/ethereum/go-ethereum/core/tracing" - "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/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/consensus/misc" + "github.com/YehorDudukin/go-ethereum/core/state" + "github.com/YehorDudukin/go-ethereum/core/tracing" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/core/vm" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/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 a6ca2781f8..3b187f238b 100644 --- a/core/state_processor_test.go +++ b/core/state_processor_test.go @@ -22,18 +22,18 @@ import ( "math/big" "testing" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/consensus" - "github.com/ethereum/go-ethereum/consensus/beacon" - "github.com/ethereum/go-ethereum/consensus/ethash" - "github.com/ethereum/go-ethereum/consensus/misc/eip1559" - "github.com/ethereum/go-ethereum/consensus/misc/eip4844" - "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/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/consensus" + "github.com/YehorDudukin/go-ethereum/consensus/beacon" + "github.com/YehorDudukin/go-ethereum/consensus/ethash" + "github.com/YehorDudukin/go-ethereum/consensus/misc/eip1559" + "github.com/YehorDudukin/go-ethereum/consensus/misc/eip4844" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/core/vm" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/trie" "github.com/holiman/uint256" "golang.org/x/crypto/sha3" ) diff --git a/core/state_transition.go b/core/state_transition.go index 0f9ee9eea5..3634d4e4a9 100644 --- a/core/state_transition.go +++ b/core/state_transition.go @@ -22,12 +22,12 @@ import ( "math" "math/big" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/tracing" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/core/vm" - "github.com/ethereum/go-ethereum/crypto/kzg4844" - "github.com/ethereum/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/tracing" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/core/vm" + "github.com/YehorDudukin/go-ethereum/crypto/kzg4844" + "github.com/YehorDudukin/go-ethereum/params" "github.com/holiman/uint256" ) diff --git a/core/stateless.go b/core/stateless.go index d21a62b4a5..9d0e63b3c2 100644 --- a/core/stateless.go +++ b/core/stateless.go @@ -17,18 +17,18 @@ package core import ( - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/common/lru" - "github.com/ethereum/go-ethereum/consensus/beacon" - "github.com/ethereum/go-ethereum/consensus/ethash" - "github.com/ethereum/go-ethereum/core/state" - "github.com/ethereum/go-ethereum/core/stateless" - "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/params" - "github.com/ethereum/go-ethereum/trie" - "github.com/ethereum/go-ethereum/triedb" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/lru" + "github.com/YehorDudukin/go-ethereum/consensus/beacon" + "github.com/YehorDudukin/go-ethereum/consensus/ethash" + "github.com/YehorDudukin/go-ethereum/core/state" + "github.com/YehorDudukin/go-ethereum/core/stateless" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/core/vm" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/trie" + "github.com/YehorDudukin/go-ethereum/triedb" ) // ExecuteStateless runs a stateless execution based on a witness, verifies diff --git a/core/stateless/database.go b/core/stateless/database.go index f54c123dda..10267f6f85 100644 --- a/core/stateless/database.go +++ b/core/stateless/database.go @@ -17,10 +17,10 @@ package stateless import ( - "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/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/ethdb" ) // MakeHashDB imports tries, codes and block hashes from a witness into a new diff --git a/core/stateless/encoding.go b/core/stateless/encoding.go index 5f4cb0ea3c..33ff5b8349 100644 --- a/core/stateless/encoding.go +++ b/core/stateless/encoding.go @@ -19,8 +19,8 @@ package stateless import ( "io" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/rlp" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/rlp" ) // toExtWitness converts our internal witness representation to the consensus one. diff --git a/core/stateless/witness.go b/core/stateless/witness.go index aecfad1d52..282ea46873 100644 --- a/core/stateless/witness.go +++ b/core/stateless/witness.go @@ -22,8 +22,8 @@ import ( "slices" "sync" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/types" ) // HeaderReader is an interface to pull in headers in place of block hashes for diff --git a/core/tracing/CHANGELOG.md b/core/tracing/CHANGELOG.md index a14e123d99..217325b051 100644 --- a/core/tracing/CHANGELOG.md +++ b/core/tracing/CHANGELOG.md @@ -49,7 +49,7 @@ The state changes that are covered by the journaling library are: - `OnCodeChange` - `OnStorageChange` -## [v1.14.9](https://github.com/ethereum/go-ethereum/releases/tag/v1.14.9) +## [v1.14.9](https://github.com/YehorDudukin/go-ethereum/releases/tag/v1.14.9) ### Modified types @@ -86,7 +86,7 @@ There have been minor backwards-compatible changes to the tracing interface to e ## [v1.14.0] -There has been a major breaking change in the tracing interface for custom native tracers. JS and built-in tracers are not affected by this change and tracing API methods may be used as before. This overhaul has been done as part of the new live tracing feature ([#29189](https://github.com/ethereum/go-ethereum/pull/29189)). To learn more about live tracing please refer to the [docs](https://geth.ethereum.org/docs/developers/evm-tracing/live-tracing). +There has been a major breaking change in the tracing interface for custom native tracers. JS and built-in tracers are not affected by this change and tracing API methods may be used as before. This overhaul has been done as part of the new live tracing feature ([#29189](https://github.com/YehorDudukin/go-ethereum/pull/29189)). To learn more about live tracing please refer to the [docs](https://geth.ethereum.org/docs/developers/evm-tracing/live-tracing). **The `EVMLogger` interface which the tracers implemented has been removed.** It has been replaced by a new struct `tracing.Hooks`. `Hooks` keeps pointers to event listening functions. Internally the EVM will use these function pointers to emit events and can skip an event if the tracer has opted not to implement it. In fact this is the main reason for this change of approach. Another benefit is the ease of adding new hooks in future, and dynamically assigning event receivers. @@ -148,7 +148,7 @@ The hooks `CaptureStart` and `CaptureEnd` have been removed. These hooks signale - `CaptureState` -> `OnOpcode(pc uint64, op byte, gas, cost uint64, scope tracing.OpContext, rData []byte, depth int, err error)`. `op` is of type `byte` which can be cast to `vm.OpCode` when necessary. A `*vm.ScopeContext` is not passed anymore. It is replaced by `tracing.OpContext` which offers access to the memory, stack and current contract. - `CaptureFault` -> `OnFault(pc uint64, op byte, gas, cost uint64, scope tracing.OpContext, depth int, err error)`. Similar to above. -[unreleased]: https://github.com/ethereum/go-ethereum/compare/v1.14.8...master -[v1.14.0]: https://github.com/ethereum/go-ethereum/releases/tag/v1.14.0 -[v1.14.3]: https://github.com/ethereum/go-ethereum/releases/tag/v1.14.3 -[v1.14.4]: https://github.com/ethereum/go-ethereum/releases/tag/v1.14.4 +[unreleased]: https://github.com/YehorDudukin/go-ethereum/compare/v1.14.8...master +[v1.14.0]: https://github.com/YehorDudukin/go-ethereum/releases/tag/v1.14.0 +[v1.14.3]: https://github.com/YehorDudukin/go-ethereum/releases/tag/v1.14.3 +[v1.14.4]: https://github.com/YehorDudukin/go-ethereum/releases/tag/v1.14.4 diff --git a/core/tracing/hooks.go b/core/tracing/hooks.go index 0485f7a3eb..a1028a5134 100644 --- a/core/tracing/hooks.go +++ b/core/tracing/hooks.go @@ -19,7 +19,7 @@ // invoked by the go-ethereum core at various points in the state transition. // // To create a tracer that can be invoked with Geth, you need to register it using -// [github.com/ethereum/go-ethereum/eth/tracers.LiveDirectory.Register]. +// [github.com/YehorDudukin/go-ethereum/eth/tracers.LiveDirectory.Register]. // // See https://geth.ethereum.org/docs/developers/evm-tracing/live-tracing for a tutorial. package tracing @@ -27,9 +27,9 @@ package tracing import ( "math/big" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/params" "github.com/holiman/uint256" ) diff --git a/core/tracing/journal.go b/core/tracing/journal.go index 8937d4c5ae..80b510066b 100644 --- a/core/tracing/journal.go +++ b/core/tracing/journal.go @@ -20,8 +20,8 @@ import ( "fmt" "math/big" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/types" ) // journal is a state change journal to be wrapped around a tracer. diff --git a/core/tracing/journal_test.go b/core/tracing/journal_test.go index d9616a2ce8..63cc32e590 100644 --- a/core/tracing/journal_test.go +++ b/core/tracing/journal_test.go @@ -22,7 +22,7 @@ import ( "reflect" "testing" - "github.com/ethereum/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common" ) type testTracer struct { diff --git a/core/txindexer.go b/core/txindexer.go index 64a2e8c49f..9e9ba8c3bd 100644 --- a/core/txindexer.go +++ b/core/txindexer.go @@ -20,10 +20,10 @@ import ( "errors" "fmt" - "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/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/ethdb" + "github.com/YehorDudukin/go-ethereum/log" ) // TxIndexProgress is the struct describing the progress for transaction indexing. diff --git a/core/txindexer_test.go b/core/txindexer_test.go index 7a5688241f..77eef0cb88 100644 --- a/core/txindexer_test.go +++ b/core/txindexer_test.go @@ -20,13 +20,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/ethdb" - "github.com/ethereum/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/consensus/ethash" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/ethdb" + "github.com/YehorDudukin/go-ethereum/params" ) func verifyIndexes(t *testing.T, db ethdb.Database, block *types.Block, exist bool) { diff --git a/core/txpool/blobpool/blobpool.go b/core/txpool/blobpool/blobpool.go index e506da228d..e3a8df0c53 100644 --- a/core/txpool/blobpool/blobpool.go +++ b/core/txpool/blobpool/blobpool.go @@ -29,19 +29,19 @@ import ( "sync" "time" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/consensus/misc/eip1559" - "github.com/ethereum/go-ethereum/consensus/misc/eip4844" - "github.com/ethereum/go-ethereum/core" - "github.com/ethereum/go-ethereum/core/state" - "github.com/ethereum/go-ethereum/core/txpool" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/crypto/kzg4844" - "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/rlp" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/consensus/misc/eip1559" + "github.com/YehorDudukin/go-ethereum/consensus/misc/eip4844" + "github.com/YehorDudukin/go-ethereum/core" + "github.com/YehorDudukin/go-ethereum/core/state" + "github.com/YehorDudukin/go-ethereum/core/txpool" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/crypto/kzg4844" + "github.com/YehorDudukin/go-ethereum/event" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/metrics" + "github.com/YehorDudukin/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/rlp" "github.com/holiman/billy" "github.com/holiman/uint256" ) diff --git a/core/txpool/blobpool/blobpool_test.go b/core/txpool/blobpool/blobpool_test.go index 0a323179a6..c0aab18ce1 100644 --- a/core/txpool/blobpool/blobpool_test.go +++ b/core/txpool/blobpool/blobpool_test.go @@ -29,18 +29,18 @@ import ( "sync" "testing" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/consensus/misc/eip1559" - "github.com/ethereum/go-ethereum/consensus/misc/eip4844" - "github.com/ethereum/go-ethereum/core" - "github.com/ethereum/go-ethereum/core/state" - "github.com/ethereum/go-ethereum/core/tracing" - "github.com/ethereum/go-ethereum/core/txpool" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/crypto" - "github.com/ethereum/go-ethereum/crypto/kzg4844" - "github.com/ethereum/go-ethereum/params" - "github.com/ethereum/go-ethereum/rlp" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/consensus/misc/eip1559" + "github.com/YehorDudukin/go-ethereum/consensus/misc/eip4844" + "github.com/YehorDudukin/go-ethereum/core" + "github.com/YehorDudukin/go-ethereum/core/state" + "github.com/YehorDudukin/go-ethereum/core/tracing" + "github.com/YehorDudukin/go-ethereum/core/txpool" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/crypto/kzg4844" + "github.com/YehorDudukin/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/rlp" "github.com/holiman/billy" "github.com/holiman/uint256" ) diff --git a/core/txpool/blobpool/config.go b/core/txpool/blobpool/config.go index 1d180739cd..d9eaec464f 100644 --- a/core/txpool/blobpool/config.go +++ b/core/txpool/blobpool/config.go @@ -17,7 +17,7 @@ package blobpool import ( - "github.com/ethereum/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/log" ) // Config are the configuration parameters of the blob transaction pool. diff --git a/core/txpool/blobpool/evictheap.go b/core/txpool/blobpool/evictheap.go index 722a71bc9b..62b090e640 100644 --- a/core/txpool/blobpool/evictheap.go +++ b/core/txpool/blobpool/evictheap.go @@ -22,7 +22,7 @@ import ( "math" "slices" - "github.com/ethereum/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common" "github.com/holiman/uint256" ) diff --git a/core/txpool/blobpool/evictheap_test.go b/core/txpool/blobpool/evictheap_test.go index de4076e298..881e4f6240 100644 --- a/core/txpool/blobpool/evictheap_test.go +++ b/core/txpool/blobpool/evictheap_test.go @@ -21,8 +21,8 @@ import ( mrand "math/rand" "testing" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/params" "github.com/holiman/uint256" ) diff --git a/core/txpool/blobpool/interface.go b/core/txpool/blobpool/interface.go index 6f296a54bd..afbf42a1de 100644 --- a/core/txpool/blobpool/interface.go +++ b/core/txpool/blobpool/interface.go @@ -17,10 +17,10 @@ package blobpool import ( - "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/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/state" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/params" ) // BlockChain defines the minimal set of methods needed to back a blob pool with diff --git a/core/txpool/blobpool/limbo.go b/core/txpool/blobpool/limbo.go index d5992f2906..72759098c9 100644 --- a/core/txpool/blobpool/limbo.go +++ b/core/txpool/blobpool/limbo.go @@ -19,10 +19,10 @@ package blobpool import ( "errors" - "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/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/rlp" "github.com/holiman/billy" ) diff --git a/core/txpool/blobpool/lookup.go b/core/txpool/blobpool/lookup.go index 7607cd487a..ffc0e2d3e3 100644 --- a/core/txpool/blobpool/lookup.go +++ b/core/txpool/blobpool/lookup.go @@ -17,7 +17,7 @@ package blobpool import ( - "github.com/ethereum/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common" ) type txMetadata struct { diff --git a/core/txpool/blobpool/metrics.go b/core/txpool/blobpool/metrics.go index 52419ade09..e47c7b13b5 100644 --- a/core/txpool/blobpool/metrics.go +++ b/core/txpool/blobpool/metrics.go @@ -16,7 +16,7 @@ package blobpool -import "github.com/ethereum/go-ethereum/metrics" +import "github.com/YehorDudukin/go-ethereum/metrics" var ( // datacapGauge tracks the user's configured capacity for the blob pool. It diff --git a/core/txpool/legacypool/legacypool.go b/core/txpool/legacypool/legacypool.go index 7bf360ff65..eb58093ab4 100644 --- a/core/txpool/legacypool/legacypool.go +++ b/core/txpool/legacypool/legacypool.go @@ -28,19 +28,19 @@ import ( "sync/atomic" "time" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/common/prque" - "github.com/ethereum/go-ethereum/consensus/misc/eip1559" - "github.com/ethereum/go-ethereum/core" - "github.com/ethereum/go-ethereum/core/state" - "github.com/ethereum/go-ethereum/core/txpool" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/crypto/kzg4844" - "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/rlp" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/prque" + "github.com/YehorDudukin/go-ethereum/consensus/misc/eip1559" + "github.com/YehorDudukin/go-ethereum/core" + "github.com/YehorDudukin/go-ethereum/core/state" + "github.com/YehorDudukin/go-ethereum/core/txpool" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/crypto/kzg4844" + "github.com/YehorDudukin/go-ethereum/event" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/metrics" + "github.com/YehorDudukin/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/rlp" "github.com/holiman/uint256" ) diff --git a/core/txpool/legacypool/legacypool2_test.go b/core/txpool/legacypool/legacypool2_test.go index deb06aa617..378c59e410 100644 --- a/core/txpool/legacypool/legacypool2_test.go +++ b/core/txpool/legacypool/legacypool2_test.go @@ -21,12 +21,12 @@ import ( "math/big" "testing" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/state" - "github.com/ethereum/go-ethereum/core/tracing" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/crypto" - "github.com/ethereum/go-ethereum/event" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/state" + "github.com/YehorDudukin/go-ethereum/core/tracing" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/event" "github.com/holiman/uint256" ) diff --git a/core/txpool/legacypool/legacypool_test.go b/core/txpool/legacypool/legacypool_test.go index 2fdf890320..004b4683c6 100644 --- a/core/txpool/legacypool/legacypool_test.go +++ b/core/txpool/legacypool/legacypool_test.go @@ -29,17 +29,17 @@ import ( "testing" "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/tracing" - "github.com/ethereum/go-ethereum/core/txpool" - "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/trie" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core" + "github.com/YehorDudukin/go-ethereum/core/state" + "github.com/YehorDudukin/go-ethereum/core/tracing" + "github.com/YehorDudukin/go-ethereum/core/txpool" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/core/vm" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/event" + "github.com/YehorDudukin/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/trie" "github.com/holiman/uint256" ) diff --git a/core/txpool/legacypool/list.go b/core/txpool/legacypool/list.go index 736c28ec4a..5fd53c1e53 100644 --- a/core/txpool/legacypool/list.go +++ b/core/txpool/legacypool/list.go @@ -26,8 +26,8 @@ import ( "sync/atomic" "time" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/types" "github.com/holiman/uint256" ) diff --git a/core/txpool/legacypool/list_test.go b/core/txpool/legacypool/list_test.go index 8587c66f7d..c96b5aa123 100644 --- a/core/txpool/legacypool/list_test.go +++ b/core/txpool/legacypool/list_test.go @@ -21,9 +21,9 @@ import ( "math/rand" "testing" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/crypto" "github.com/holiman/uint256" ) diff --git a/core/txpool/legacypool/noncer.go b/core/txpool/legacypool/noncer.go index 2c65dd2cae..6b412efcc9 100644 --- a/core/txpool/legacypool/noncer.go +++ b/core/txpool/legacypool/noncer.go @@ -19,8 +19,8 @@ package legacypool import ( "sync" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/state" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/state" ) // noncer is a tiny virtual state database to manage the executable nonces of diff --git a/core/txpool/locals/errors.go b/core/txpool/locals/errors.go index fda50bf218..720c92fde7 100644 --- a/core/txpool/locals/errors.go +++ b/core/txpool/locals/errors.go @@ -19,8 +19,8 @@ package locals import ( "errors" - "github.com/ethereum/go-ethereum/core/txpool" - "github.com/ethereum/go-ethereum/core/txpool/legacypool" + "github.com/YehorDudukin/go-ethereum/core/txpool" + "github.com/YehorDudukin/go-ethereum/core/txpool/legacypool" ) // IsTemporaryReject determines whether the given error indicates a temporary diff --git a/core/txpool/locals/journal.go b/core/txpool/locals/journal.go index 46fd6de346..fcf6268923 100644 --- a/core/txpool/locals/journal.go +++ b/core/txpool/locals/journal.go @@ -22,10 +22,10 @@ import ( "io/fs" "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/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/rlp" ) // errNoActiveJournal is returned if a transaction is attempted to be inserted diff --git a/core/txpool/locals/tx_tracker.go b/core/txpool/locals/tx_tracker.go index e08384ce71..472413342b 100644 --- a/core/txpool/locals/tx_tracker.go +++ b/core/txpool/locals/tx_tracker.go @@ -22,13 +22,13 @@ import ( "sync" "time" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/txpool" - "github.com/ethereum/go-ethereum/core/txpool/legacypool" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/log" - "github.com/ethereum/go-ethereum/metrics" - "github.com/ethereum/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/txpool" + "github.com/YehorDudukin/go-ethereum/core/txpool/legacypool" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/metrics" + "github.com/YehorDudukin/go-ethereum/params" ) var ( diff --git a/core/txpool/locals/tx_tracker_test.go b/core/txpool/locals/tx_tracker_test.go index 0668d243fc..766f12621b 100644 --- a/core/txpool/locals/tx_tracker_test.go +++ b/core/txpool/locals/tx_tracker_test.go @@ -21,17 +21,17 @@ 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/txpool" - "github.com/ethereum/go-ethereum/core/txpool/legacypool" - "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/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/consensus/ethash" + "github.com/YehorDudukin/go-ethereum/core" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/core/txpool" + "github.com/YehorDudukin/go-ethereum/core/txpool/legacypool" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/core/vm" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/ethdb" + "github.com/YehorDudukin/go-ethereum/params" ) var ( diff --git a/core/txpool/reserver.go b/core/txpool/reserver.go index b6ecef9f1a..ac4dad5442 100644 --- a/core/txpool/reserver.go +++ b/core/txpool/reserver.go @@ -21,9 +21,9 @@ import ( "fmt" "sync" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/log" - "github.com/ethereum/go-ethereum/metrics" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/metrics" ) var ( diff --git a/core/txpool/subpool.go b/core/txpool/subpool.go index 8cfc14f164..8f116e3840 100644 --- a/core/txpool/subpool.go +++ b/core/txpool/subpool.go @@ -20,11 +20,11 @@ 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/crypto/kzg4844" - "github.com/ethereum/go-ethereum/event" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/crypto/kzg4844" + "github.com/YehorDudukin/go-ethereum/event" "github.com/holiman/uint256" ) diff --git a/core/txpool/txpool.go b/core/txpool/txpool.go index cc8f74c1b8..edd146953a 100644 --- a/core/txpool/txpool.go +++ b/core/txpool/txpool.go @@ -22,14 +22,14 @@ import ( "math/big" "sync" - "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/crypto/kzg4844" - "github.com/ethereum/go-ethereum/event" - "github.com/ethereum/go-ethereum/log" - "github.com/ethereum/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core" + "github.com/YehorDudukin/go-ethereum/core/state" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/crypto/kzg4844" + "github.com/YehorDudukin/go-ethereum/event" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/params" ) // TxStatus is the current status of a transaction as seen by the pool. diff --git a/core/txpool/validation.go b/core/txpool/validation.go index e370f2ce84..ca068ffd18 100644 --- a/core/txpool/validation.go +++ b/core/txpool/validation.go @@ -21,14 +21,14 @@ import ( "fmt" "math/big" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/consensus/misc/eip4844" - "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/crypto/kzg4844" - "github.com/ethereum/go-ethereum/log" - "github.com/ethereum/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/consensus/misc/eip4844" + "github.com/YehorDudukin/go-ethereum/core" + "github.com/YehorDudukin/go-ethereum/core/state" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/crypto/kzg4844" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/params" ) var ( diff --git a/core/types.go b/core/types.go index bed20802ab..00b2513911 100644 --- a/core/types.go +++ b/core/types.go @@ -19,9 +19,9 @@ package core import ( "sync/atomic" - "github.com/ethereum/go-ethereum/core/state" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/core/vm" + "github.com/YehorDudukin/go-ethereum/core/state" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/core/vm" ) // Validator is an interface which defines the standard for block validation. It diff --git a/core/types/account.go b/core/types/account.go index 52ce184cda..63ca1c70ae 100644 --- a/core/types/account.go +++ b/core/types/account.go @@ -23,9 +23,9 @@ 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/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/common/math" ) //go:generate go run github.com/fjl/gencodec -type Account -field-override accountMarshaling -out gen_account.go diff --git a/core/types/block.go b/core/types/block.go index b284fb3b16..db2484cfd3 100644 --- a/core/types/block.go +++ b/core/types/block.go @@ -28,9 +28,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/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/rlp" "github.com/ethereum/go-verkle" ) diff --git a/core/types/block_test.go b/core/types/block_test.go index 1f61be89a5..4c36bea403 100644 --- a/core/types/block_test.go +++ b/core/types/block_test.go @@ -23,12 +23,12 @@ 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/internal/blocktest" - "github.com/ethereum/go-ethereum/params" - "github.com/ethereum/go-ethereum/rlp" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/math" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/internal/blocktest" + "github.com/YehorDudukin/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/rlp" ) // from bcValidBlockTest.json, "SimpleTx" diff --git a/core/types/bloom9.go b/core/types/bloom9.go index 962ba46d47..7f46f75018 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/YehorDudukin/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/crypto" ) type bytesBacked interface { diff --git a/core/types/bloom9_test.go b/core/types/bloom9_test.go index 07f6446a97..5877c027e0 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/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/crypto" ) func TestBloom(t *testing.T) { diff --git a/core/types/deposit_test.go b/core/types/deposit_test.go index 0648920ac9..480bac12ca 100644 --- a/core/types/deposit_test.go +++ b/core/types/deposit_test.go @@ -20,8 +20,8 @@ import ( "bytes" "testing" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/accounts/abi" + "github.com/YehorDudukin/go-ethereum/common" ) var ( diff --git a/core/types/gen_access_tuple.go b/core/types/gen_access_tuple.go index d740b70981..a5eba9ff52 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/YehorDudukin/go-ethereum/common" ) // MarshalJSON marshals as JSON. diff --git a/core/types/gen_account.go b/core/types/gen_account.go index 4e475896a7..63fcfb1acd 100644 --- a/core/types/gen_account.go +++ b/core/types/gen_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/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/common/math" ) var _ = (*accountMarshaling)(nil) diff --git a/core/types/gen_account_rlp.go b/core/types/gen_account_rlp.go index 8b424493af..31de8068b9 100644 --- a/core/types/gen_account_rlp.go +++ b/core/types/gen_account_rlp.go @@ -2,7 +2,7 @@ package types -import "github.com/ethereum/go-ethereum/rlp" +import "github.com/YehorDudukin/go-ethereum/rlp" import "io" func (obj *StateAccount) EncodeRLP(_w io.Writer) error { diff --git a/core/types/gen_authorization.go b/core/types/gen_authorization.go index 57069cbb1f..d660b79bc1 100644 --- a/core/types/gen_authorization.go +++ b/core/types/gen_authorization.go @@ -6,8 +6,8 @@ import ( "encoding/json" "errors" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/hexutil" "github.com/holiman/uint256" ) diff --git a/core/types/gen_header_json.go b/core/types/gen_header_json.go index 0af12500bd..4622c1d691 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/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/hexutil" ) var _ = (*headerMarshaling)(nil) diff --git a/core/types/gen_header_rlp.go b/core/types/gen_header_rlp.go index c79aa8a250..1aecc34143 100644 --- a/core/types/gen_header_rlp.go +++ b/core/types/gen_header_rlp.go @@ -2,7 +2,7 @@ package types -import "github.com/ethereum/go-ethereum/rlp" +import "github.com/YehorDudukin/go-ethereum/rlp" import "io" func (obj *Header) EncodeRLP(_w io.Writer) error { diff --git a/core/types/gen_log_json.go b/core/types/gen_log_json.go index 3ffa9c2feb..48d77dd8f4 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/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/hexutil" ) var _ = (*logMarshaling)(nil) diff --git a/core/types/gen_log_rlp.go b/core/types/gen_log_rlp.go index 7e89629668..3a119c81d4 100644 --- a/core/types/gen_log_rlp.go +++ b/core/types/gen_log_rlp.go @@ -2,7 +2,7 @@ package types -import "github.com/ethereum/go-ethereum/rlp" +import "github.com/YehorDudukin/go-ethereum/rlp" import "io" func (obj *Log) EncodeRLP(_w io.Writer) error { diff --git a/core/types/gen_receipt_json.go b/core/types/gen_receipt_json.go index 4c641a9727..ca79f07c23 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/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/hexutil" ) var _ = (*receiptMarshaling)(nil) diff --git a/core/types/gen_withdrawal_json.go b/core/types/gen_withdrawal_json.go index 983a7f7a12..914749ee4b 100644 --- a/core/types/gen_withdrawal_json.go +++ b/core/types/gen_withdrawal_json.go @@ -5,8 +5,8 @@ package types import ( "encoding/json" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/hexutil" ) var _ = (*withdrawalMarshaling)(nil) diff --git a/core/types/gen_withdrawal_rlp.go b/core/types/gen_withdrawal_rlp.go index 6a97c04c81..bf3fbadfa2 100644 --- a/core/types/gen_withdrawal_rlp.go +++ b/core/types/gen_withdrawal_rlp.go @@ -2,7 +2,7 @@ package types -import "github.com/ethereum/go-ethereum/rlp" +import "github.com/YehorDudukin/go-ethereum/rlp" import "io" func (obj *Withdrawal) EncodeRLP(_w io.Writer) error { diff --git a/core/types/hashes.go b/core/types/hashes.go index 05cfaeed74..debf84783b 100644 --- a/core/types/hashes.go +++ b/core/types/hashes.go @@ -17,8 +17,8 @@ package types import ( - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/crypto" ) var ( diff --git a/core/types/hashing.go b/core/types/hashing.go index 224d7a87ea..7a105a64d2 100644 --- a/core/types/hashing.go +++ b/core/types/hashing.go @@ -22,9 +22,9 @@ import ( "math" "sync" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/crypto" - "github.com/ethereum/go-ethereum/rlp" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/rlp" "golang.org/x/crypto/sha3" ) diff --git a/core/types/hashing_test.go b/core/types/hashing_test.go index c846ecd0c5..b4ceac2b50 100644 --- a/core/types/hashing_test.go +++ b/core/types/hashing_test.go @@ -24,14 +24,14 @@ import ( mrand "math/rand" "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/types" - "github.com/ethereum/go-ethereum/crypto" - "github.com/ethereum/go-ethereum/rlp" - "github.com/ethereum/go-ethereum/trie" - "github.com/ethereum/go-ethereum/triedb" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/rlp" + "github.com/YehorDudukin/go-ethereum/trie" + "github.com/YehorDudukin/go-ethereum/triedb" ) func TestDeriveSha(t *testing.T) { diff --git a/core/types/log.go b/core/types/log.go index 54c7ff6372..5323c6f6fc 100644 --- a/core/types/log.go +++ b/core/types/log.go @@ -17,8 +17,8 @@ package types import ( - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/hexutil" ) //go:generate go run ../../rlp/rlpgen -type Log -out gen_log_rlp.go diff --git a/core/types/log_test.go b/core/types/log_test.go index 02eef3ecd4..08a1de0161 100644 --- a/core/types/log_test.go +++ b/core/types/log_test.go @@ -22,9 +22,9 @@ import ( "reflect" "testing" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/hexutil" "github.com/davecgh/go-spew/spew" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/common/hexutil" ) var unmarshalLogTests = map[string]struct { diff --git a/core/types/receipt.go b/core/types/receipt.go index e52a0c6477..2ffc8430a4 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/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/rlp" ) //go:generate go run github.com/fjl/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 78b43c7e49..5021409b0b 100644 --- a/core/types/receipt_test.go +++ b/core/types/receipt_test.go @@ -24,9 +24,9 @@ import ( "reflect" "testing" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/params" - "github.com/ethereum/go-ethereum/rlp" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/rlp" "github.com/holiman/uint256" "github.com/kylelemons/godebug/diff" ) diff --git a/core/types/rlp_fuzzer_test.go b/core/types/rlp_fuzzer_test.go index a3b9f72436..57e8d0435f 100644 --- a/core/types/rlp_fuzzer_test.go +++ b/core/types/rlp_fuzzer_test.go @@ -22,7 +22,7 @@ import ( "math/big" "testing" - "github.com/ethereum/go-ethereum/rlp" + "github.com/YehorDudukin/go-ethereum/rlp" "github.com/holiman/uint256" ) diff --git a/core/types/state_account.go b/core/types/state_account.go index 52ef843b35..b715d75834 100644 --- a/core/types/state_account.go +++ b/core/types/state_account.go @@ -19,8 +19,8 @@ package types import ( "bytes" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/rlp" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/rlp" "github.com/holiman/uint256" ) diff --git a/core/types/transaction.go b/core/types/transaction.go index a2f4104635..d4700b47d0 100644 --- a/core/types/transaction.go +++ b/core/types/transaction.go @@ -25,9 +25,9 @@ import ( "sync/atomic" "time" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/crypto" - "github.com/ethereum/go-ethereum/rlp" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/rlp" ) var ( diff --git a/core/types/transaction_marshalling.go b/core/types/transaction_marshalling.go index f76d4b92e9..c04d6052fb 100644 --- a/core/types/transaction_marshalling.go +++ b/core/types/transaction_marshalling.go @@ -21,9 +21,9 @@ import ( "errors" "math/big" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/common/hexutil" - "github.com/ethereum/go-ethereum/crypto/kzg4844" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/crypto/kzg4844" "github.com/holiman/uint256" ) diff --git a/core/types/transaction_signing.go b/core/types/transaction_signing.go index 01aa67c6ba..a1d0c1291c 100644 --- a/core/types/transaction_signing.go +++ b/core/types/transaction_signing.go @@ -23,10 +23,10 @@ import ( "maps" "math/big" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/crypto" - "github.com/ethereum/go-ethereum/params" - "github.com/ethereum/go-ethereum/params/forks" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/params/forks" ) 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 b66577f7ed..f36170816c 100644 --- a/core/types/transaction_signing_test.go +++ b/core/types/transaction_signing_test.go @@ -22,10 +22,10 @@ import ( "math/big" "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/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/rlp" ) func TestEIP155Signing(t *testing.T) { diff --git a/core/types/transaction_test.go b/core/types/transaction_test.go index 8922448d97..004978106f 100644 --- a/core/types/transaction_test.go +++ b/core/types/transaction_test.go @@ -27,9 +27,9 @@ import ( "reflect" "testing" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/crypto" - "github.com/ethereum/go-ethereum/rlp" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/rlp" ) // The values in those tests are from the Transaction Tests diff --git a/core/types/tx_access_list.go b/core/types/tx_access_list.go index 915de9a8ab..f69cf5e5ab 100644 --- a/core/types/tx_access_list.go +++ b/core/types/tx_access_list.go @@ -20,8 +20,8 @@ import ( "bytes" "math/big" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/rlp" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/rlp" ) //go:generate go run github.com/fjl/gencodec -type AccessTuple -out gen_access_tuple.go diff --git a/core/types/tx_blob.go b/core/types/tx_blob.go index 9b1d53958f..6bbda9a26d 100644 --- a/core/types/tx_blob.go +++ b/core/types/tx_blob.go @@ -22,10 +22,10 @@ import ( "fmt" "math/big" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/crypto/kzg4844" - "github.com/ethereum/go-ethereum/params" - "github.com/ethereum/go-ethereum/rlp" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/crypto/kzg4844" + "github.com/YehorDudukin/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/rlp" "github.com/holiman/uint256" ) diff --git a/core/types/tx_blob_test.go b/core/types/tx_blob_test.go index b9e6dcb0bb..c3c4268000 100644 --- a/core/types/tx_blob_test.go +++ b/core/types/tx_blob_test.go @@ -20,9 +20,9 @@ import ( "crypto/ecdsa" "testing" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/crypto" - "github.com/ethereum/go-ethereum/crypto/kzg4844" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/crypto/kzg4844" "github.com/holiman/uint256" ) diff --git a/core/types/tx_dynamic_fee.go b/core/types/tx_dynamic_fee.go index bba81464f8..8a43d6fb6b 100644 --- a/core/types/tx_dynamic_fee.go +++ b/core/types/tx_dynamic_fee.go @@ -20,8 +20,8 @@ import ( "bytes" "math/big" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/rlp" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/rlp" ) // DynamicFeeTx represents an EIP-1559 transaction. diff --git a/core/types/tx_legacy.go b/core/types/tx_legacy.go index 49f0a98809..929710eb4a 100644 --- a/core/types/tx_legacy.go +++ b/core/types/tx_legacy.go @@ -20,7 +20,7 @@ import ( "bytes" "math/big" - "github.com/ethereum/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common" ) // LegacyTx is the transaction data of the original Ethereum transactions. diff --git a/core/types/tx_setcode.go b/core/types/tx_setcode.go index b8e38ef1f7..2c98fd163f 100644 --- a/core/types/tx_setcode.go +++ b/core/types/tx_setcode.go @@ -22,10 +22,10 @@ import ( "errors" "math/big" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/common/hexutil" - "github.com/ethereum/go-ethereum/crypto" - "github.com/ethereum/go-ethereum/rlp" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/rlp" "github.com/holiman/uint256" ) diff --git a/core/types/tx_setcode_test.go b/core/types/tx_setcode_test.go index d0544573cf..25d7ff5123 100644 --- a/core/types/tx_setcode_test.go +++ b/core/types/tx_setcode_test.go @@ -19,7 +19,7 @@ package types import ( "testing" - "github.com/ethereum/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common" ) // TestParseDelegation tests a few possible delegation designator values and diff --git a/core/types/types_test.go b/core/types/types_test.go index 1fb386d5de..b83ff65336 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/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/rlp" ) type devnull struct{ len int } diff --git a/core/types/withdrawal.go b/core/types/withdrawal.go index 6f99e53b56..6d48838f31 100644 --- a/core/types/withdrawal.go +++ b/core/types/withdrawal.go @@ -20,9 +20,9 @@ import ( "bytes" "reflect" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/common/hexutil" - "github.com/ethereum/go-ethereum/rlp" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/rlp" ) //go:generate go run github.com/fjl/gencodec -type Withdrawal -field-override withdrawalMarshaling -out gen_withdrawal_json.go diff --git a/core/verkle_witness_test.go b/core/verkle_witness_test.go index de2280ced1..84790f2e18 100644 --- a/core/verkle_witness_test.go +++ b/core/verkle_witness_test.go @@ -24,18 +24,18 @@ import ( "slices" "testing" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/consensus/beacon" - "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/tracing" - "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/utils" - "github.com/ethereum/go-ethereum/triedb" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/consensus/beacon" + "github.com/YehorDudukin/go-ethereum/consensus/ethash" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/core/state" + "github.com/YehorDudukin/go-ethereum/core/tracing" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/core/vm" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/trie/utils" + "github.com/YehorDudukin/go-ethereum/triedb" "github.com/ethereum/go-verkle" "github.com/holiman/uint256" ) diff --git a/core/vm/analysis_legacy_test.go b/core/vm/analysis_legacy_test.go index 7f5de225e2..3fb542a9fc 100644 --- a/core/vm/analysis_legacy_test.go +++ b/core/vm/analysis_legacy_test.go @@ -20,7 +20,7 @@ import ( "math/bits" "testing" - "github.com/ethereum/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/crypto" ) func TestJumpDestAnalysis(t *testing.T) { diff --git a/core/vm/common.go b/core/vm/common.go index 658803b820..a42667b195 100644 --- a/core/vm/common.go +++ b/core/vm/common.go @@ -19,7 +19,7 @@ package vm import ( "math" - "github.com/ethereum/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common" "github.com/holiman/uint256" ) diff --git a/core/vm/contract.go b/core/vm/contract.go index 0eaa91d959..0c69220204 100644 --- a/core/vm/contract.go +++ b/core/vm/contract.go @@ -17,8 +17,8 @@ package vm import ( - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/tracing" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/tracing" "github.com/holiman/uint256" ) diff --git a/core/vm/contracts.go b/core/vm/contracts.go index 06849e65ad..e8547553b4 100644 --- a/core/vm/contracts.go +++ b/core/vm/contracts.go @@ -25,17 +25,17 @@ import ( "math" "math/big" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/tracing" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/crypto/blake2b" + "github.com/YehorDudukin/go-ethereum/crypto/bn256" + "github.com/YehorDudukin/go-ethereum/crypto/kzg4844" + "github.com/YehorDudukin/go-ethereum/params" "github.com/consensys/gnark-crypto/ecc" bls12381 "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/common" - "github.com/ethereum/go-ethereum/core/tracing" - "github.com/ethereum/go-ethereum/crypto" - "github.com/ethereum/go-ethereum/crypto/blake2b" - "github.com/ethereum/go-ethereum/crypto/bn256" - "github.com/ethereum/go-ethereum/crypto/kzg4844" - "github.com/ethereum/go-ethereum/params" "golang.org/x/crypto/ripemd160" ) diff --git a/core/vm/contracts_fuzz_test.go b/core/vm/contracts_fuzz_test.go index 1e5cc80074..67dd68f3bc 100644 --- a/core/vm/contracts_fuzz_test.go +++ b/core/vm/contracts_fuzz_test.go @@ -19,7 +19,7 @@ package vm import ( "testing" - "github.com/ethereum/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common" ) func FuzzPrecompiledContracts(f *testing.F) { diff --git a/core/vm/contracts_test.go b/core/vm/contracts_test.go index b627f2ada5..9d6115da41 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/YehorDudukin/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 6159eade7e..0fca507f42 100644 --- a/core/vm/eips.go +++ b/core/vm/eips.go @@ -21,9 +21,9 @@ import ( "math" "sort" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/tracing" - "github.com/ethereum/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/tracing" + "github.com/YehorDudukin/go-ethereum/params" "github.com/holiman/uint256" ) diff --git a/core/vm/eof.go b/core/vm/eof.go index a5406283d5..937869609b 100644 --- a/core/vm/eof.go +++ b/core/vm/eof.go @@ -24,7 +24,7 @@ import ( "io" "strings" - "github.com/ethereum/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/params" ) const ( diff --git a/core/vm/eof_control_flow.go b/core/vm/eof_control_flow.go index c0a4459906..3942b4761b 100644 --- a/core/vm/eof_control_flow.go +++ b/core/vm/eof_control_flow.go @@ -19,7 +19,7 @@ package vm import ( "fmt" - "github.com/ethereum/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/params" ) func validateControlFlow(code []byte, section int, metadata []*functionMetadata, jt *JumpTable) (int, error) { diff --git a/core/vm/eof_test.go b/core/vm/eof_test.go index 0a9cf638ce..7a733a921b 100644 --- a/core/vm/eof_test.go +++ b/core/vm/eof_test.go @@ -21,7 +21,7 @@ import ( "reflect" "testing" - "github.com/ethereum/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common" ) func TestEOFMarshaling(t *testing.T) { diff --git a/core/vm/eof_validation_test.go b/core/vm/eof_validation_test.go index f7b0e78f26..520c982c76 100644 --- a/core/vm/eof_validation_test.go +++ b/core/vm/eof_validation_test.go @@ -21,8 +21,8 @@ import ( "errors" "testing" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/params" ) func TestValidateCode(t *testing.T) { diff --git a/core/vm/evm.go b/core/vm/evm.go index c28dcb2554..8160dac267 100644 --- a/core/vm/evm.go +++ b/core/vm/evm.go @@ -21,12 +21,12 @@ import ( "math/big" "sync/atomic" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/state" - "github.com/ethereum/go-ethereum/core/tracing" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/crypto" - "github.com/ethereum/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/state" + "github.com/YehorDudukin/go-ethereum/core/tracing" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/params" "github.com/holiman/uint256" ) diff --git a/core/vm/gas_table.go b/core/vm/gas_table.go index 55855727b5..fdd58cb204 100644 --- a/core/vm/gas_table.go +++ b/core/vm/gas_table.go @@ -20,9 +20,9 @@ import ( "errors" "fmt" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/common/math" - "github.com/ethereum/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/math" + "github.com/YehorDudukin/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 cb6143c0b5..3c3ce6baf2 100644 --- a/core/vm/gas_table_test.go +++ b/core/vm/gas_table_test.go @@ -24,11 +24,11 @@ import ( "sort" "testing" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/common/hexutil" - "github.com/ethereum/go-ethereum/core/state" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/core/state" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/params" "github.com/holiman/uint256" ) diff --git a/core/vm/instructions.go b/core/vm/instructions.go index 0b3b1d1569..733ad1d326 100644 --- a/core/vm/instructions.go +++ b/core/vm/instructions.go @@ -19,11 +19,11 @@ package vm import ( "math" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/tracing" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/crypto" - "github.com/ethereum/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/tracing" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/params" "github.com/holiman/uint256" ) diff --git a/core/vm/instructions_test.go b/core/vm/instructions_test.go index 0902d17c54..6afffb1b04 100644 --- a/core/vm/instructions_test.go +++ b/core/vm/instructions_test.go @@ -25,12 +25,12 @@ import ( "strings" "testing" - "github.com/ethereum/go-ethereum/common" - "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/crypto" - "github.com/ethereum/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/math" + "github.com/YehorDudukin/go-ethereum/core/state" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/params" "github.com/holiman/uint256" ) diff --git a/core/vm/interface.go b/core/vm/interface.go index 57f35cb249..c92b412d0f 100644 --- a/core/vm/interface.go +++ b/core/vm/interface.go @@ -17,13 +17,13 @@ package vm import ( - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/state" - "github.com/ethereum/go-ethereum/core/stateless" - "github.com/ethereum/go-ethereum/core/tracing" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/params" - "github.com/ethereum/go-ethereum/trie/utils" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/state" + "github.com/YehorDudukin/go-ethereum/core/stateless" + "github.com/YehorDudukin/go-ethereum/core/tracing" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/trie/utils" "github.com/holiman/uint256" ) diff --git a/core/vm/interpreter.go b/core/vm/interpreter.go index a0038d1aa8..19126df66b 100644 --- a/core/vm/interpreter.go +++ b/core/vm/interpreter.go @@ -19,11 +19,11 @@ package vm import ( "fmt" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/common/math" - "github.com/ethereum/go-ethereum/core/tracing" - "github.com/ethereum/go-ethereum/crypto" - "github.com/ethereum/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/math" + "github.com/YehorDudukin/go-ethereum/core/tracing" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/log" "github.com/holiman/uint256" ) diff --git a/core/vm/interpreter_test.go b/core/vm/interpreter_test.go index 0b93dd59e7..49a806cba3 100644 --- a/core/vm/interpreter_test.go +++ b/core/vm/interpreter_test.go @@ -21,10 +21,10 @@ import ( "testing" "time" - "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/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/state" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/params" "github.com/holiman/uint256" ) diff --git a/core/vm/jump_table.go b/core/vm/jump_table.go index ee811b447e..76fb7282b4 100644 --- a/core/vm/jump_table.go +++ b/core/vm/jump_table.go @@ -19,7 +19,7 @@ package vm import ( "fmt" - "github.com/ethereum/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/params" ) type ( diff --git a/core/vm/jump_table_export.go b/core/vm/jump_table_export.go index b8fa6049bb..70a27ea81f 100644 --- a/core/vm/jump_table_export.go +++ b/core/vm/jump_table_export.go @@ -19,7 +19,7 @@ package vm import ( "errors" - "github.com/ethereum/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/params" ) // LookupInstructionSet returns the instruction set for the fork configured by diff --git a/core/vm/memory_test.go b/core/vm/memory_test.go index 41389b729a..842f72f39c 100644 --- a/core/vm/memory_test.go +++ b/core/vm/memory_test.go @@ -21,7 +21,7 @@ import ( "strings" "testing" - "github.com/ethereum/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common" ) func TestMemoryCopy(t *testing.T) { diff --git a/core/vm/operations_acl.go b/core/vm/operations_acl.go index ff3875868f..1f321c1d92 100644 --- a/core/vm/operations_acl.go +++ b/core/vm/operations_acl.go @@ -19,11 +19,11 @@ package vm import ( "errors" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/common/math" - "github.com/ethereum/go-ethereum/core/tracing" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/math" + "github.com/YehorDudukin/go-ethereum/core/tracing" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/params" ) func makeGasSStoreFunc(clearingRefund uint64) gasFunc { diff --git a/core/vm/operations_verkle.go b/core/vm/operations_verkle.go index 751761a911..ecdd4aa045 100644 --- a/core/vm/operations_verkle.go +++ b/core/vm/operations_verkle.go @@ -19,9 +19,9 @@ package vm import ( gomath "math" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/common/math" - "github.com/ethereum/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/math" + "github.com/YehorDudukin/go-ethereum/params" ) func gasSStore4762(evm *EVM, contract *Contract, stack *Stack, mem *Memory, memorySize uint64) (uint64, error) { diff --git a/core/vm/program/program.go b/core/vm/program/program.go index 5b9cfdcc5f..11e78d95ca 100644 --- a/core/vm/program/program.go +++ b/core/vm/program/program.go @@ -26,7 +26,7 @@ import ( "fmt" "math/big" - "github.com/ethereum/go-ethereum/core/vm" + "github.com/YehorDudukin/go-ethereum/core/vm" "github.com/holiman/uint256" ) diff --git a/core/vm/program/program_test.go b/core/vm/program/program_test.go index ceb7d8be64..cf2764e084 100644 --- a/core/vm/program/program_test.go +++ b/core/vm/program/program_test.go @@ -21,8 +21,8 @@ import ( "math/big" "testing" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/vm" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/vm" "github.com/holiman/uint256" ) diff --git a/core/vm/runtime/env.go b/core/vm/runtime/env.go index e54041f7e2..5e06d09fa3 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/YehorDudukin/go-ethereum/core" + "github.com/YehorDudukin/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 9d984291f2..79eb9522b0 100644 --- a/core/vm/runtime/runtime.go +++ b/core/vm/runtime/runtime.go @@ -20,12 +20,12 @@ import ( "math" "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/core/vm" - "github.com/ethereum/go-ethereum/crypto" - "github.com/ethereum/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/state" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/core/vm" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/params" "github.com/holiman/uint256" ) diff --git a/core/vm/runtime/runtime_example_test.go b/core/vm/runtime/runtime_example_test.go index b7d0ddc384..b6090223c2 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/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/vm/runtime" ) func ExampleExecute() { diff --git a/core/vm/runtime/runtime_test.go b/core/vm/runtime/runtime_test.go index d75a5b0459..1bb467a35b 100644 --- a/core/vm/runtime/runtime_test.go +++ b/core/vm/runtime/runtime_test.go @@ -25,21 +25,21 @@ import ( "strings" "testing" - "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/state" - "github.com/ethereum/go-ethereum/core/tracing" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/core/vm" - "github.com/ethereum/go-ethereum/core/vm/program" - "github.com/ethereum/go-ethereum/eth/tracers" - "github.com/ethereum/go-ethereum/eth/tracers/logger" - "github.com/ethereum/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/accounts/abi" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/consensus" + "github.com/YehorDudukin/go-ethereum/core" + "github.com/YehorDudukin/go-ethereum/core/state" + "github.com/YehorDudukin/go-ethereum/core/tracing" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/core/vm" + "github.com/YehorDudukin/go-ethereum/core/vm/program" + "github.com/YehorDudukin/go-ethereum/eth/tracers" + "github.com/YehorDudukin/go-ethereum/eth/tracers/logger" + "github.com/YehorDudukin/go-ethereum/params" // force-load js tracers to trigger registration - _ "github.com/ethereum/go-ethereum/eth/tracers/js" + _ "github.com/YehorDudukin/go-ethereum/eth/tracers/js" ) func TestDefaults(t *testing.T) { @@ -601,7 +601,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/YehorDudukin/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..0a36284087 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/YehorDudukin/go-ethereum/params" ) func minSwapStack(n int) int { diff --git a/crypto/bn256/bn256_fast.go b/crypto/bn256/bn256_fast.go index e3c9b60518..94f13a1ea9 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/YehorDudukin/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..ee58d04bc3 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/YehorDudukin/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 13e9b134f0..d96597016e 100644 --- a/crypto/crypto.go +++ b/crypto/crypto.go @@ -29,9 +29,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/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/math" + "github.com/YehorDudukin/go-ethereum/rlp" "golang.org/x/crypto/sha3" ) diff --git a/crypto/crypto_test.go b/crypto/crypto_test.go index 5b0c9c0533..ba5c1e6005 100644 --- a/crypto/crypto_test.go +++ b/crypto/crypto_test.go @@ -25,8 +25,8 @@ import ( "reflect" "testing" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/hexutil" ) var testAddrHex = "970e8128ab834e8eac17ab8e3812f010678cf791" diff --git a/crypto/ecies/ecies.go b/crypto/ecies/ecies.go index 76f934c72d..cf30f0f571 100644 --- a/crypto/ecies/ecies.go +++ b/crypto/ecies/ecies.go @@ -41,7 +41,7 @@ import ( "io" "math/big" - "github.com/ethereum/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/crypto" ) var ( diff --git a/crypto/ecies/ecies_test.go b/crypto/ecies/ecies_test.go index e3da71010e..9137e9f1bd 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/YehorDudukin/go-ethereum/crypto" ) func TestKDF(t *testing.T) { diff --git a/crypto/ecies/params.go b/crypto/ecies/params.go index df7698ea0c..5db8b5bb95 100644 --- a/crypto/ecies/params.go +++ b/crypto/ecies/params.go @@ -43,7 +43,7 @@ import ( "fmt" "hash" - ethcrypto "github.com/ethereum/go-ethereum/crypto" + ethcrypto "github.com/YehorDudukin/go-ethereum/crypto" ) var ( diff --git a/crypto/kzg4844/kzg4844.go b/crypto/kzg4844/kzg4844.go index 39fdfbe740..bc723cd1cd 100644 --- a/crypto/kzg4844/kzg4844.go +++ b/crypto/kzg4844/kzg4844.go @@ -24,7 +24,7 @@ import ( "reflect" "sync/atomic" - "github.com/ethereum/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/common/hexutil" ) //go:embed trusted_setup.json diff --git a/crypto/kzg4844/kzg4844_ckzg_cgo.go b/crypto/kzg4844/kzg4844_ckzg_cgo.go index dce592b444..551477c103 100644 --- a/crypto/kzg4844/kzg4844_ckzg_cgo.go +++ b/crypto/kzg4844/kzg4844_ckzg_cgo.go @@ -23,9 +23,9 @@ import ( "errors" "sync" + "github.com/YehorDudukin/go-ethereum/common/hexutil" gokzg4844 "github.com/crate-crypto/go-kzg-4844" ckzg4844 "github.com/ethereum/c-kzg-4844/bindings/go" - "github.com/ethereum/go-ethereum/common/hexutil" ) // ckzgAvailable signals whether the library was compiled into Geth. diff --git a/crypto/secp256k1/dummy.go b/crypto/secp256k1/dummy.go index 65a75080f6..f693146820 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/YehorDudukin/go-ethereum/crypto/secp256k1/libsecp256k1/include" + _ "github.com/YehorDudukin/go-ethereum/crypto/secp256k1/libsecp256k1/src" + _ "github.com/YehorDudukin/go-ethereum/crypto/secp256k1/libsecp256k1/src/modules/recovery" ) diff --git a/crypto/signature_cgo.go b/crypto/signature_cgo.go index 5c7810c14c..002797aea7 100644 --- a/crypto/signature_cgo.go +++ b/crypto/signature_cgo.go @@ -24,8 +24,8 @@ import ( "errors" "fmt" - "github.com/ethereum/go-ethereum/common/math" - "github.com/ethereum/go-ethereum/crypto/secp256k1" + "github.com/YehorDudukin/go-ethereum/common/math" + "github.com/YehorDudukin/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 74d683b507..10fdcc452a 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/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/hexutil" + "github.com/YehorDudukin/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 2e5c41c764..331c8ca09b 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 a 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/YehorDudukin/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 [23381](https://github.com/ethereum/go-ethereum/pull/23381). +- Place the fix into the PR optimizing the jumpdest analysis [23381](https://github.com/YehorDudukin/go-ethereum/pull/23381). - After 4-8 weeks, release details about the vulnerability. diff --git a/eth/api_admin.go b/eth/api_admin.go index 4a3ccb84e8..7aacc04e95 100644 --- a/eth/api_admin.go +++ b/eth/api_admin.go @@ -24,9 +24,9 @@ import ( "os" "strings" - "github.com/ethereum/go-ethereum/core" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/rlp" + "github.com/YehorDudukin/go-ethereum/core" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/rlp" ) // AdminAPI is the collection of Ethereum full node related APIs for node diff --git a/eth/api_backend.go b/eth/api_backend.go index 64fb58a1fd..395606cf2b 100644 --- a/eth/api_backend.go +++ b/eth/api_backend.go @@ -22,26 +22,26 @@ 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/consensus/misc/eip4844" - "github.com/ethereum/go-ethereum/core" - "github.com/ethereum/go-ethereum/core/filtermaps" - "github.com/ethereum/go-ethereum/core/history" - "github.com/ethereum/go-ethereum/core/rawdb" - "github.com/ethereum/go-ethereum/core/state" - "github.com/ethereum/go-ethereum/core/txpool" - "github.com/ethereum/go-ethereum/core/txpool/locals" - "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/eth/tracers" - "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/YehorDudukin/go-ethereum" + "github.com/YehorDudukin/go-ethereum/accounts" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/consensus" + "github.com/YehorDudukin/go-ethereum/consensus/misc/eip4844" + "github.com/YehorDudukin/go-ethereum/core" + "github.com/YehorDudukin/go-ethereum/core/filtermaps" + "github.com/YehorDudukin/go-ethereum/core/history" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/core/state" + "github.com/YehorDudukin/go-ethereum/core/txpool" + "github.com/YehorDudukin/go-ethereum/core/txpool/locals" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/core/vm" + "github.com/YehorDudukin/go-ethereum/eth/gasprice" + "github.com/YehorDudukin/go-ethereum/eth/tracers" + "github.com/YehorDudukin/go-ethereum/ethdb" + "github.com/YehorDudukin/go-ethereum/event" + "github.com/YehorDudukin/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/rpc" ) // EthAPIBackend implements ethapi.Backend and tracers.Backend for full nodes diff --git a/eth/api_backend_test.go b/eth/api_backend_test.go index 049f68d827..07d21c4a23 100644 --- a/eth/api_backend_test.go +++ b/eth/api_backend_test.go @@ -24,19 +24,19 @@ import ( "testing" "time" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/consensus/beacon" - "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/txpool" - "github.com/ethereum/go-ethereum/core/txpool/blobpool" - "github.com/ethereum/go-ethereum/core/txpool/legacypool" - "github.com/ethereum/go-ethereum/core/txpool/locals" - "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/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/consensus/beacon" + "github.com/YehorDudukin/go-ethereum/consensus/ethash" + "github.com/YehorDudukin/go-ethereum/core" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/core/txpool" + "github.com/YehorDudukin/go-ethereum/core/txpool/blobpool" + "github.com/YehorDudukin/go-ethereum/core/txpool/legacypool" + "github.com/YehorDudukin/go-ethereum/core/txpool/locals" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/core/vm" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/params" "github.com/holiman/uint256" ) diff --git a/eth/api_debug.go b/eth/api_debug.go index d5e4dda140..e9bfb3d6f7 100644 --- a/eth/api_debug.go +++ b/eth/api_debug.go @@ -22,17 +22,17 @@ import ( "fmt" "time" - "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/core/types" - "github.com/ethereum/go-ethereum/crypto" - "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/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/core/state" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/internal/ethapi" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/rlp" + "github.com/YehorDudukin/go-ethereum/rpc" + "github.com/YehorDudukin/go-ethereum/trie" ) // DebugAPI is the collection of Ethereum full node APIs for debugging the diff --git a/eth/api_debug_test.go b/eth/api_debug_test.go index 02b85f69fd..384b330294 100644 --- a/eth/api_debug_test.go +++ b/eth/api_debug_test.go @@ -24,14 +24,14 @@ import ( "strings" "testing" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/core/state" + "github.com/YehorDudukin/go-ethereum/core/tracing" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/triedb" "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/core/tracing" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/crypto" - "github.com/ethereum/go-ethereum/triedb" "github.com/holiman/uint256" ) diff --git a/eth/api_miner.go b/eth/api_miner.go index 8c96f4c54a..45a7b5aae8 100644 --- a/eth/api_miner.go +++ b/eth/api_miner.go @@ -19,7 +19,7 @@ package eth import ( "math/big" - "github.com/ethereum/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/common/hexutil" ) // MinerAPI provides an API to control the miner. diff --git a/eth/backend.go b/eth/backend.go index 6d1b6bae99..e13bb9f3f5 100644 --- a/eth/backend.go +++ b/eth/backend.go @@ -25,41 +25,41 @@ 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/core" - "github.com/ethereum/go-ethereum/core/filtermaps" - "github.com/ethereum/go-ethereum/core/rawdb" - "github.com/ethereum/go-ethereum/core/state/pruner" - "github.com/ethereum/go-ethereum/core/txpool" - "github.com/ethereum/go-ethereum/core/txpool/blobpool" - "github.com/ethereum/go-ethereum/core/txpool/legacypool" - "github.com/ethereum/go-ethereum/core/txpool/locals" - "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/gasprice" - "github.com/ethereum/go-ethereum/eth/protocols/eth" - "github.com/ethereum/go-ethereum/eth/protocols/snap" - "github.com/ethereum/go-ethereum/eth/tracers" - "github.com/ethereum/go-ethereum/ethdb" - "github.com/ethereum/go-ethereum/event" - "github.com/ethereum/go-ethereum/internal/ethapi" - "github.com/ethereum/go-ethereum/internal/shutdowncheck" - "github.com/ethereum/go-ethereum/internal/version" - "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" - gethversion "github.com/ethereum/go-ethereum/version" + "github.com/YehorDudukin/go-ethereum/accounts" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/consensus" + "github.com/YehorDudukin/go-ethereum/core" + "github.com/YehorDudukin/go-ethereum/core/filtermaps" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/core/state/pruner" + "github.com/YehorDudukin/go-ethereum/core/txpool" + "github.com/YehorDudukin/go-ethereum/core/txpool/blobpool" + "github.com/YehorDudukin/go-ethereum/core/txpool/legacypool" + "github.com/YehorDudukin/go-ethereum/core/txpool/locals" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/core/vm" + "github.com/YehorDudukin/go-ethereum/eth/downloader" + "github.com/YehorDudukin/go-ethereum/eth/ethconfig" + "github.com/YehorDudukin/go-ethereum/eth/gasprice" + "github.com/YehorDudukin/go-ethereum/eth/protocols/eth" + "github.com/YehorDudukin/go-ethereum/eth/protocols/snap" + "github.com/YehorDudukin/go-ethereum/eth/tracers" + "github.com/YehorDudukin/go-ethereum/ethdb" + "github.com/YehorDudukin/go-ethereum/event" + "github.com/YehorDudukin/go-ethereum/internal/ethapi" + "github.com/YehorDudukin/go-ethereum/internal/shutdowncheck" + "github.com/YehorDudukin/go-ethereum/internal/version" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/miner" + "github.com/YehorDudukin/go-ethereum/node" + "github.com/YehorDudukin/go-ethereum/p2p" + "github.com/YehorDudukin/go-ethereum/p2p/dnsdisc" + "github.com/YehorDudukin/go-ethereum/p2p/enode" + "github.com/YehorDudukin/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/rlp" + "github.com/YehorDudukin/go-ethereum/rpc" + gethversion "github.com/YehorDudukin/go-ethereum/version" ) // Config contains the configuration options of the ETH protocol. diff --git a/eth/catalyst/api.go b/eth/catalyst/api.go index e6f29c970b..6b8da777ed 100644 --- a/eth/catalyst/api.go +++ b/eth/catalyst/api.go @@ -24,23 +24,23 @@ import ( "sync" "time" - "github.com/ethereum/go-ethereum/beacon/engine" - "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/stateless" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/core/vm" - "github.com/ethereum/go-ethereum/eth" - "github.com/ethereum/go-ethereum/eth/ethconfig" - "github.com/ethereum/go-ethereum/internal/version" - "github.com/ethereum/go-ethereum/log" - "github.com/ethereum/go-ethereum/miner" - "github.com/ethereum/go-ethereum/node" - "github.com/ethereum/go-ethereum/params/forks" - "github.com/ethereum/go-ethereum/rlp" - "github.com/ethereum/go-ethereum/rpc" + "github.com/YehorDudukin/go-ethereum/beacon/engine" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/core" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/core/stateless" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/core/vm" + "github.com/YehorDudukin/go-ethereum/eth" + "github.com/YehorDudukin/go-ethereum/eth/ethconfig" + "github.com/YehorDudukin/go-ethereum/internal/version" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/miner" + "github.com/YehorDudukin/go-ethereum/node" + "github.com/YehorDudukin/go-ethereum/params/forks" + "github.com/YehorDudukin/go-ethereum/rlp" + "github.com/YehorDudukin/go-ethereum/rpc" ) // Register adds the engine API to the full node. diff --git a/eth/catalyst/api_test.go b/eth/catalyst/api_test.go index cb6ae053b6..a5f4f9d3cc 100644 --- a/eth/catalyst/api_test.go +++ b/eth/catalyst/api_test.go @@ -29,24 +29,24 @@ import ( "testing" "time" - "github.com/ethereum/go-ethereum/beacon/engine" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/common/hexutil" - "github.com/ethereum/go-ethereum/consensus/beacon" - "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/crypto/kzg4844" - "github.com/ethereum/go-ethereum/eth" - "github.com/ethereum/go-ethereum/eth/ethconfig" - "github.com/ethereum/go-ethereum/internal/version" - "github.com/ethereum/go-ethereum/miner" - "github.com/ethereum/go-ethereum/node" - "github.com/ethereum/go-ethereum/p2p" - "github.com/ethereum/go-ethereum/params" - "github.com/ethereum/go-ethereum/rpc" - "github.com/ethereum/go-ethereum/trie" + "github.com/YehorDudukin/go-ethereum/beacon/engine" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/consensus/beacon" + "github.com/YehorDudukin/go-ethereum/consensus/ethash" + "github.com/YehorDudukin/go-ethereum/core" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/crypto/kzg4844" + "github.com/YehorDudukin/go-ethereum/eth" + "github.com/YehorDudukin/go-ethereum/eth/ethconfig" + "github.com/YehorDudukin/go-ethereum/internal/version" + "github.com/YehorDudukin/go-ethereum/miner" + "github.com/YehorDudukin/go-ethereum/node" + "github.com/YehorDudukin/go-ethereum/p2p" + "github.com/YehorDudukin/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/rpc" + "github.com/YehorDudukin/go-ethereum/trie" ) var ( diff --git a/eth/catalyst/queue.go b/eth/catalyst/queue.go index 634dc1b2e6..f568cc13f3 100644 --- a/eth/catalyst/queue.go +++ b/eth/catalyst/queue.go @@ -19,10 +19,10 @@ package catalyst import ( "sync" - "github.com/ethereum/go-ethereum/beacon/engine" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/miner" + "github.com/YehorDudukin/go-ethereum/beacon/engine" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/miner" ) // maxTrackedPayloads is the maximum number of prepared payloads the execution diff --git a/eth/catalyst/simulated_beacon.go b/eth/catalyst/simulated_beacon.go index b84df9a4d6..570df94985 100644 --- a/eth/catalyst/simulated_beacon.go +++ b/eth/catalyst/simulated_beacon.go @@ -25,18 +25,18 @@ import ( "sync" "time" - "github.com/ethereum/go-ethereum/beacon/engine" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/txpool" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/crypto/kzg4844" - "github.com/ethereum/go-ethereum/eth" - "github.com/ethereum/go-ethereum/event" - "github.com/ethereum/go-ethereum/log" - "github.com/ethereum/go-ethereum/node" - "github.com/ethereum/go-ethereum/params" - "github.com/ethereum/go-ethereum/params/forks" - "github.com/ethereum/go-ethereum/rpc" + "github.com/YehorDudukin/go-ethereum/beacon/engine" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/txpool" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/crypto/kzg4844" + "github.com/YehorDudukin/go-ethereum/eth" + "github.com/YehorDudukin/go-ethereum/event" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/node" + "github.com/YehorDudukin/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/params/forks" + "github.com/YehorDudukin/go-ethereum/rpc" ) const devEpochLength = 32 diff --git a/eth/catalyst/simulated_beacon_api.go b/eth/catalyst/simulated_beacon_api.go index 6687805315..e8901f6d6f 100644 --- a/eth/catalyst/simulated_beacon_api.go +++ b/eth/catalyst/simulated_beacon_api.go @@ -19,9 +19,9 @@ package catalyst import ( "context" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core" - "github.com/ethereum/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core" + "github.com/YehorDudukin/go-ethereum/core/types" ) // simulatedBeaconAPI provides a RPC API for SimulatedBeacon. diff --git a/eth/catalyst/simulated_beacon_test.go b/eth/catalyst/simulated_beacon_test.go index 24eee6e925..f9d199bf16 100644 --- a/eth/catalyst/simulated_beacon_test.go +++ b/eth/catalyst/simulated_beacon_test.go @@ -23,16 +23,16 @@ import ( "testing" "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/crypto" - "github.com/ethereum/go-ethereum/eth" - "github.com/ethereum/go-ethereum/eth/ethconfig" - "github.com/ethereum/go-ethereum/miner" - "github.com/ethereum/go-ethereum/node" - "github.com/ethereum/go-ethereum/p2p" - "github.com/ethereum/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/eth" + "github.com/YehorDudukin/go-ethereum/eth/ethconfig" + "github.com/YehorDudukin/go-ethereum/miner" + "github.com/YehorDudukin/go-ethereum/node" + "github.com/YehorDudukin/go-ethereum/p2p" + "github.com/YehorDudukin/go-ethereum/params" ) func startSimulatedBeaconEthService(t *testing.T, genesis *core.Genesis, period uint64) (*node.Node, *eth.Ethereum, *SimulatedBeacon) { diff --git a/eth/catalyst/tester.go b/eth/catalyst/tester.go index db2d638701..5e306546bd 100644 --- a/eth/catalyst/tester.go +++ b/eth/catalyst/tester.go @@ -20,11 +20,11 @@ import ( "sync" "time" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/eth" - "github.com/ethereum/go-ethereum/eth/ethconfig" - "github.com/ethereum/go-ethereum/log" - "github.com/ethereum/go-ethereum/node" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/eth" + "github.com/YehorDudukin/go-ethereum/eth/ethconfig" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/node" ) // FullSyncTester is an auxiliary service that allows Geth to perform full sync diff --git a/eth/downloader/api.go b/eth/downloader/api.go index ac175672a0..38a0045b4e 100644 --- a/eth/downloader/api.go +++ b/eth/downloader/api.go @@ -21,10 +21,10 @@ import ( "sync" "time" - "github.com/ethereum/go-ethereum" - "github.com/ethereum/go-ethereum/core" - "github.com/ethereum/go-ethereum/event" - "github.com/ethereum/go-ethereum/rpc" + "github.com/YehorDudukin/go-ethereum" + "github.com/YehorDudukin/go-ethereum/core" + "github.com/YehorDudukin/go-ethereum/event" + "github.com/YehorDudukin/go-ethereum/rpc" ) // DownloaderAPI provides an API which gives information about the current diff --git a/eth/downloader/beacondevsync.go b/eth/downloader/beacondevsync.go index 9a38fedd46..d9b0c3ebba 100644 --- a/eth/downloader/beacondevsync.go +++ b/eth/downloader/beacondevsync.go @@ -20,8 +20,8 @@ import ( "errors" "time" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/log" ) // BeaconDevSync is a development helper to test synchronization by providing diff --git a/eth/downloader/beaconsync.go b/eth/downloader/beaconsync.go index 33ad0f8971..76f8a80ebb 100644 --- a/eth/downloader/beaconsync.go +++ b/eth/downloader/beaconsync.go @@ -21,11 +21,11 @@ import ( "sync" "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/ethconfig" - "github.com/ethereum/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/eth/ethconfig" + "github.com/YehorDudukin/go-ethereum/log" ) // beaconBackfiller is the chain and state backfilling that can be commenced once diff --git a/eth/downloader/downloader.go b/eth/downloader/downloader.go index 4d13ae304c..33c799234a 100644 --- a/eth/downloader/downloader.go +++ b/eth/downloader/downloader.go @@ -25,18 +25,18 @@ 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/ethconfig" - "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/params" - "github.com/ethereum/go-ethereum/triedb" + "github.com/YehorDudukin/go-ethereum" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/core/state/snapshot" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/eth/ethconfig" + "github.com/YehorDudukin/go-ethereum/eth/protocols/snap" + "github.com/YehorDudukin/go-ethereum/ethdb" + "github.com/YehorDudukin/go-ethereum/event" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/triedb" ) var ( diff --git a/eth/downloader/downloader_test.go b/eth/downloader/downloader_test.go index 3a145b1958..3ec309f0f2 100644 --- a/eth/downloader/downloader_test.go +++ b/eth/downloader/downloader_test.go @@ -24,20 +24,20 @@ 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/core/vm" - "github.com/ethereum/go-ethereum/eth/protocols/eth" - "github.com/ethereum/go-ethereum/eth/protocols/snap" - "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/ethereum/go-ethereum/trie" + "github.com/YehorDudukin/go-ethereum" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/consensus/ethash" + "github.com/YehorDudukin/go-ethereum/core" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/core/vm" + "github.com/YehorDudukin/go-ethereum/eth/protocols/eth" + "github.com/YehorDudukin/go-ethereum/eth/protocols/snap" + "github.com/YehorDudukin/go-ethereum/event" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/rlp" + "github.com/YehorDudukin/go-ethereum/trie" ) // downloadTester is a test simulator for mocking out local block chain. diff --git a/eth/downloader/events.go b/eth/downloader/events.go index 25255a3a72..610691139a 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/YehorDudukin/go-ethereum/core/types" type DoneEvent struct { Latest *types.Header diff --git a/eth/downloader/fetchers.go b/eth/downloader/fetchers.go index 4ebb9bbc98..929e9234f2 100644 --- a/eth/downloader/fetchers.go +++ b/eth/downloader/fetchers.go @@ -19,9 +19,9 @@ package downloader import ( "time" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/eth/protocols/eth" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/eth/protocols/eth" ) // fetchHeadersByHash is a blocking version of Peer.RequestHeadersByHash which diff --git a/eth/downloader/fetchers_concurrent.go b/eth/downloader/fetchers_concurrent.go index 9d8cd114c1..6a3a66ce78 100644 --- a/eth/downloader/fetchers_concurrent.go +++ b/eth/downloader/fetchers_concurrent.go @@ -21,10 +21,10 @@ import ( "sort" "time" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/common/prque" - "github.com/ethereum/go-ethereum/eth/protocols/eth" - "github.com/ethereum/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/prque" + "github.com/YehorDudukin/go-ethereum/eth/protocols/eth" + "github.com/YehorDudukin/go-ethereum/log" ) // timeoutGracePeriod is the amount of time to allow for a peer to deliver a diff --git a/eth/downloader/fetchers_concurrent_bodies.go b/eth/downloader/fetchers_concurrent_bodies.go index 56359b33c9..58ff798695 100644 --- a/eth/downloader/fetchers_concurrent_bodies.go +++ b/eth/downloader/fetchers_concurrent_bodies.go @@ -19,9 +19,9 @@ package downloader import ( "time" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/eth/protocols/eth" - "github.com/ethereum/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/eth/protocols/eth" + "github.com/YehorDudukin/go-ethereum/log" ) // bodyQueue implements typedQueue and is a type adapter between the generic diff --git a/eth/downloader/fetchers_concurrent_receipts.go b/eth/downloader/fetchers_concurrent_receipts.go index 3169f030ba..e7e8486cdc 100644 --- a/eth/downloader/fetchers_concurrent_receipts.go +++ b/eth/downloader/fetchers_concurrent_receipts.go @@ -19,9 +19,9 @@ package downloader import ( "time" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/eth/protocols/eth" - "github.com/ethereum/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/eth/protocols/eth" + "github.com/YehorDudukin/go-ethereum/log" ) // receiptQueue implements typedQueue and is a type adapter between the generic diff --git a/eth/downloader/metrics.go b/eth/downloader/metrics.go index bfe80ddbf1..c295f1992b 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/YehorDudukin/go-ethereum/metrics" ) var ( diff --git a/eth/downloader/peer.go b/eth/downloader/peer.go index 0848e92a26..8c8df7f9fd 100644 --- a/eth/downloader/peer.go +++ b/eth/downloader/peer.go @@ -24,11 +24,11 @@ import ( "sync" "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/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/eth/protocols/eth" + "github.com/YehorDudukin/go-ethereum/event" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/p2p/msgrate" ) const ( diff --git a/eth/downloader/queue.go b/eth/downloader/queue.go index 000ad97ca9..48147a64dd 100644 --- a/eth/downloader/queue.go +++ b/eth/downloader/queue.go @@ -26,14 +26,14 @@ 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/crypto/kzg4844" - "github.com/ethereum/go-ethereum/eth/ethconfig" - "github.com/ethereum/go-ethereum/log" - "github.com/ethereum/go-ethereum/metrics" - "github.com/ethereum/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/prque" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/crypto/kzg4844" + "github.com/YehorDudukin/go-ethereum/eth/ethconfig" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/metrics" + "github.com/YehorDudukin/go-ethereum/params" ) const ( diff --git a/eth/downloader/queue_test.go b/eth/downloader/queue_test.go index 857ac4813a..8b084b4875 100644 --- a/eth/downloader/queue_test.go +++ b/eth/downloader/queue_test.go @@ -26,13 +26,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/types" - "github.com/ethereum/go-ethereum/log" - "github.com/ethereum/go-ethereum/params" - "github.com/ethereum/go-ethereum/trie" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/consensus/ethash" + "github.com/YehorDudukin/go-ethereum/core" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/trie" ) // makeChain creates a chain of n blocks starting at and including parent. diff --git a/eth/downloader/resultstore.go b/eth/downloader/resultstore.go index 36c382fefc..c3ba8619b7 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/YehorDudukin/go-ethereum/core/types" ) // resultStore implements a structure for maintaining fetchResults, tracking their diff --git a/eth/downloader/skeleton.go b/eth/downloader/skeleton.go index ad74dab844..c387123836 100644 --- a/eth/downloader/skeleton.go +++ b/eth/downloader/skeleton.go @@ -24,12 +24,12 @@ import ( "sort" "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/protocols/eth" - "github.com/ethereum/go-ethereum/ethdb" - "github.com/ethereum/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/eth/protocols/eth" + "github.com/YehorDudukin/go-ethereum/ethdb" + "github.com/YehorDudukin/go-ethereum/log" ) // scratchHeaders is the number of headers to store in a scratch space to allow diff --git a/eth/downloader/skeleton_test.go b/eth/downloader/skeleton_test.go index 4aa97cf1f7..1079cae2e6 100644 --- a/eth/downloader/skeleton_test.go +++ b/eth/downloader/skeleton_test.go @@ -25,12 +25,12 @@ 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/eth/protocols/eth" - "github.com/ethereum/go-ethereum/ethdb" - "github.com/ethereum/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/eth/protocols/eth" + "github.com/YehorDudukin/go-ethereum/ethdb" + "github.com/YehorDudukin/go-ethereum/log" ) // hookedBackfiller is a tester backfiller with all interface methods mocked and diff --git a/eth/downloader/statesync.go b/eth/downloader/statesync.go index 501af63ed5..089ff4a6e9 100644 --- a/eth/downloader/statesync.go +++ b/eth/downloader/statesync.go @@ -19,8 +19,8 @@ package downloader import ( "sync" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/log" ) // syncState starts downloading state with the given root hash. diff --git a/eth/downloader/testchain_test.go b/eth/downloader/testchain_test.go index 8fa2e83413..6a6667a78f 100644 --- a/eth/downloader/testchain_test.go +++ b/eth/downloader/testchain_test.go @@ -22,15 +22,15 @@ import ( "sync" "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/crypto" - "github.com/ethereum/go-ethereum/params" - "github.com/ethereum/go-ethereum/triedb" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/consensus/ethash" + "github.com/YehorDudukin/go-ethereum/core" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/core/vm" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/triedb" ) // Test chain parameters. diff --git a/eth/dropper.go b/eth/dropper.go index 51f2a7a95a..1dd1e1c376 100644 --- a/eth/dropper.go +++ b/eth/dropper.go @@ -22,11 +22,11 @@ import ( "sync" "time" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/common/mclock" - "github.com/ethereum/go-ethereum/log" - "github.com/ethereum/go-ethereum/metrics" - "github.com/ethereum/go-ethereum/p2p" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/mclock" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/metrics" + "github.com/YehorDudukin/go-ethereum/p2p" ) const ( diff --git a/eth/ethconfig/config.go b/eth/ethconfig/config.go index 5e19824135..947f63aa5d 100644 --- a/eth/ethconfig/config.go +++ b/eth/ethconfig/config.go @@ -21,20 +21,20 @@ import ( "fmt" "time" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/consensus" - "github.com/ethereum/go-ethereum/consensus/beacon" - "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/history" - "github.com/ethereum/go-ethereum/core/txpool/blobpool" - "github.com/ethereum/go-ethereum/core/txpool/legacypool" - "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/params" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/consensus" + "github.com/YehorDudukin/go-ethereum/consensus/beacon" + "github.com/YehorDudukin/go-ethereum/consensus/clique" + "github.com/YehorDudukin/go-ethereum/consensus/ethash" + "github.com/YehorDudukin/go-ethereum/core" + "github.com/YehorDudukin/go-ethereum/core/history" + "github.com/YehorDudukin/go-ethereum/core/txpool/blobpool" + "github.com/YehorDudukin/go-ethereum/core/txpool/legacypool" + "github.com/YehorDudukin/go-ethereum/eth/gasprice" + "github.com/YehorDudukin/go-ethereum/ethdb" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/miner" + "github.com/YehorDudukin/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 cdcddcc772..b863e7a6fc 100644 --- a/eth/ethconfig/gen_config.go +++ b/eth/ethconfig/gen_config.go @@ -5,13 +5,13 @@ package ethconfig import ( "time" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core" - "github.com/ethereum/go-ethereum/core/history" - "github.com/ethereum/go-ethereum/core/txpool/blobpool" - "github.com/ethereum/go-ethereum/core/txpool/legacypool" - "github.com/ethereum/go-ethereum/eth/gasprice" - "github.com/ethereum/go-ethereum/miner" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core" + "github.com/YehorDudukin/go-ethereum/core/history" + "github.com/YehorDudukin/go-ethereum/core/txpool/blobpool" + "github.com/YehorDudukin/go-ethereum/core/txpool/legacypool" + "github.com/YehorDudukin/go-ethereum/eth/gasprice" + "github.com/YehorDudukin/go-ethereum/miner" ) // MarshalTOML marshals as TOML. diff --git a/eth/fetcher/tx_fetcher.go b/eth/fetcher/tx_fetcher.go index ff17ae4945..34a7fdc073 100644 --- a/eth/fetcher/tx_fetcher.go +++ b/eth/fetcher/tx_fetcher.go @@ -24,13 +24,13 @@ import ( "sort" "time" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/common/lru" - "github.com/ethereum/go-ethereum/common/mclock" - "github.com/ethereum/go-ethereum/core/txpool" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/log" - "github.com/ethereum/go-ethereum/metrics" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/lru" + "github.com/YehorDudukin/go-ethereum/common/mclock" + "github.com/YehorDudukin/go-ethereum/core/txpool" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/metrics" ) const ( diff --git a/eth/fetcher/tx_fetcher_test.go b/eth/fetcher/tx_fetcher_test.go index c4c8cac56e..566c0e28c6 100644 --- a/eth/fetcher/tx_fetcher_test.go +++ b/eth/fetcher/tx_fetcher_test.go @@ -24,11 +24,11 @@ import ( "testing" "time" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/common/mclock" - "github.com/ethereum/go-ethereum/core/txpool" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/mclock" + "github.com/YehorDudukin/go-ethereum/core/txpool" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/params" ) var ( diff --git a/eth/filters/api.go b/eth/filters/api.go index 864dfd3746..9ab870e218 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/history" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/internal/ethapi" - "github.com/ethereum/go-ethereum/rpc" + "github.com/YehorDudukin/go-ethereum" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/core/history" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/internal/ethapi" + "github.com/YehorDudukin/go-ethereum/rpc" ) var ( diff --git a/eth/filters/api_test.go b/eth/filters/api_test.go index 822bc826f6..5f51a87ec1 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/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/rpc" ) func TestUnmarshalJSONNewFilterArgs(t *testing.T) { diff --git a/eth/filters/filter.go b/eth/filters/filter.go index 78c80d8f26..9e381e1353 100644 --- a/eth/filters/filter.go +++ b/eth/filters/filter.go @@ -24,12 +24,12 @@ import ( "slices" "time" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/filtermaps" - "github.com/ethereum/go-ethereum/core/history" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/log" - "github.com/ethereum/go-ethereum/rpc" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/filtermaps" + "github.com/YehorDudukin/go-ethereum/core/history" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/rpc" ) // Filter can be used to retrieve and filter logs. diff --git a/eth/filters/filter_system.go b/eth/filters/filter_system.go index b787f1067b..3bfafad719 100644 --- a/eth/filters/filter_system.go +++ b/eth/filters/filter_system.go @@ -25,18 +25,18 @@ import ( "sync/atomic" "time" - "github.com/ethereum/go-ethereum" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/common/lru" - "github.com/ethereum/go-ethereum/core" - "github.com/ethereum/go-ethereum/core/filtermaps" - "github.com/ethereum/go-ethereum/core/history" - "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/rpc" + "github.com/YehorDudukin/go-ethereum" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/lru" + "github.com/YehorDudukin/go-ethereum/core" + "github.com/YehorDudukin/go-ethereum/core/filtermaps" + "github.com/YehorDudukin/go-ethereum/core/history" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/ethdb" + "github.com/YehorDudukin/go-ethereum/event" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/rpc" ) // Config represents the configuration of the filter system. diff --git a/eth/filters/filter_system_test.go b/eth/filters/filter_system_test.go index 3bb019d105..46bfe39a0d 100644 --- a/eth/filters/filter_system_test.go +++ b/eth/filters/filter_system_test.go @@ -25,17 +25,17 @@ 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/filtermaps" - "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/internal/ethapi" - "github.com/ethereum/go-ethereum/params" - "github.com/ethereum/go-ethereum/rpc" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/consensus/ethash" + "github.com/YehorDudukin/go-ethereum/core" + "github.com/YehorDudukin/go-ethereum/core/filtermaps" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/ethdb" + "github.com/YehorDudukin/go-ethereum/event" + "github.com/YehorDudukin/go-ethereum/internal/ethapi" + "github.com/YehorDudukin/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/rpc" ) type testBackend struct { diff --git a/eth/filters/filter_test.go b/eth/filters/filter_test.go index 4026c03e89..8a6241b15d 100644 --- a/eth/filters/filter_test.go +++ b/eth/filters/filter_test.go @@ -24,18 +24,18 @@ import ( "testing" "time" - "github.com/ethereum/go-ethereum/accounts/abi" - "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/filtermaps" - "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/rpc" - "github.com/ethereum/go-ethereum/triedb" + "github.com/YehorDudukin/go-ethereum/accounts/abi" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/consensus/ethash" + "github.com/YehorDudukin/go-ethereum/core" + "github.com/YehorDudukin/go-ethereum/core/filtermaps" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/core/vm" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/rpc" + "github.com/YehorDudukin/go-ethereum/triedb" ) func makeReceipt(addr common.Address) *types.Receipt { diff --git a/eth/gasestimator/gasestimator.go b/eth/gasestimator/gasestimator.go index fc8e3a2e42..58da3566d1 100644 --- a/eth/gasestimator/gasestimator.go +++ b/eth/gasestimator/gasestimator.go @@ -23,14 +23,14 @@ import ( "math" "math/big" - "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/internal/ethapi/override" - "github.com/ethereum/go-ethereum/log" - "github.com/ethereum/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core" + "github.com/YehorDudukin/go-ethereum/core/state" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/core/vm" + "github.com/YehorDudukin/go-ethereum/internal/ethapi/override" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/params" ) // Options are the contextual parameters to execute the requested call. diff --git a/eth/gasprice/feehistory.go b/eth/gasprice/feehistory.go index 59830e9fe8..92dced1cad 100644 --- a/eth/gasprice/feehistory.go +++ b/eth/gasprice/feehistory.go @@ -26,12 +26,12 @@ import ( "slices" "sync/atomic" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/consensus/misc/eip1559" - "github.com/ethereum/go-ethereum/consensus/misc/eip4844" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/log" - "github.com/ethereum/go-ethereum/rpc" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/consensus/misc/eip1559" + "github.com/YehorDudukin/go-ethereum/consensus/misc/eip4844" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/rpc" ) var ( diff --git a/eth/gasprice/feehistory_test.go b/eth/gasprice/feehistory_test.go index d220027e69..e0481216cd 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/YehorDudukin/go-ethereum/rpc" ) func TestFeeHistory(t *testing.T) { diff --git a/eth/gasprice/gasprice.go b/eth/gasprice/gasprice.go index 4fd3df7428..cfc9c96267 100644 --- a/eth/gasprice/gasprice.go +++ b/eth/gasprice/gasprice.go @@ -22,15 +22,15 @@ import ( "slices" "sync" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/common/lru" - "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/rpc" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/lru" + "github.com/YehorDudukin/go-ethereum/core" + "github.com/YehorDudukin/go-ethereum/core/state" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/event" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/rpc" ) const sampleNumber = 3 // Number of transactions sampled in a block diff --git a/eth/gasprice/gasprice_test.go b/eth/gasprice/gasprice_test.go index 8e6524446f..8f9755b777 100644 --- a/eth/gasprice/gasprice_test.go +++ b/eth/gasprice/gasprice_test.go @@ -24,18 +24,18 @@ import ( "math/big" "testing" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/consensus/beacon" - "github.com/ethereum/go-ethereum/consensus/ethash" - "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/crypto/kzg4844" - "github.com/ethereum/go-ethereum/event" - "github.com/ethereum/go-ethereum/params" - "github.com/ethereum/go-ethereum/rpc" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/consensus/beacon" + "github.com/YehorDudukin/go-ethereum/consensus/ethash" + "github.com/YehorDudukin/go-ethereum/core" + "github.com/YehorDudukin/go-ethereum/core/state" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/core/vm" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/crypto/kzg4844" + "github.com/YehorDudukin/go-ethereum/event" + "github.com/YehorDudukin/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/rpc" "github.com/holiman/uint256" ) diff --git a/eth/handler.go b/eth/handler.go index 8283d7d02f..e01d76ca5f 100644 --- a/eth/handler.go +++ b/eth/handler.go @@ -24,23 +24,23 @@ 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/txpool" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/crypto" - "github.com/ethereum/go-ethereum/eth/downloader" - "github.com/ethereum/go-ethereum/eth/ethconfig" - "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/metrics" - "github.com/ethereum/go-ethereum/p2p" - "github.com/ethereum/go-ethereum/p2p/enode" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core" + "github.com/YehorDudukin/go-ethereum/core/forkid" + "github.com/YehorDudukin/go-ethereum/core/txpool" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/eth/downloader" + "github.com/YehorDudukin/go-ethereum/eth/ethconfig" + "github.com/YehorDudukin/go-ethereum/eth/fetcher" + "github.com/YehorDudukin/go-ethereum/eth/protocols/eth" + "github.com/YehorDudukin/go-ethereum/eth/protocols/snap" + "github.com/YehorDudukin/go-ethereum/ethdb" + "github.com/YehorDudukin/go-ethereum/event" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/metrics" + "github.com/YehorDudukin/go-ethereum/p2p" + "github.com/YehorDudukin/go-ethereum/p2p/enode" ) const ( diff --git a/eth/handler_eth.go b/eth/handler_eth.go index 11742b14ad..d0a99c97f5 100644 --- a/eth/handler_eth.go +++ b/eth/handler_eth.go @@ -20,10 +20,10 @@ import ( "errors" "fmt" - "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/p2p/enode" + "github.com/YehorDudukin/go-ethereum/core" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/eth/protocols/eth" + "github.com/YehorDudukin/go-ethereum/p2p/enode" ) // 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 8d572ca966..3da247ab74 100644 --- a/eth/handler_eth_test.go +++ b/eth/handler_eth_test.go @@ -22,19 +22,19 @@ 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/ethconfig" - "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/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/consensus/ethash" + "github.com/YehorDudukin/go-ethereum/core" + "github.com/YehorDudukin/go-ethereum/core/forkid" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/core/vm" + "github.com/YehorDudukin/go-ethereum/eth/ethconfig" + "github.com/YehorDudukin/go-ethereum/eth/protocols/eth" + "github.com/YehorDudukin/go-ethereum/event" + "github.com/YehorDudukin/go-ethereum/p2p" + "github.com/YehorDudukin/go-ethereum/p2p/enode" + "github.com/YehorDudukin/go-ethereum/params" ) // 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..1f2598e692 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/YehorDudukin/go-ethereum/core" + "github.com/YehorDudukin/go-ethereum/eth/protocols/snap" + "github.com/YehorDudukin/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 fb3103f241..f9cf291bbe 100644 --- a/eth/handler_test.go +++ b/eth/handler_test.go @@ -21,19 +21,19 @@ 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/txpool" - "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/ethconfig" - "github.com/ethereum/go-ethereum/ethdb" - "github.com/ethereum/go-ethereum/event" - "github.com/ethereum/go-ethereum/params" - "github.com/ethereum/go-ethereum/rlp" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/consensus/ethash" + "github.com/YehorDudukin/go-ethereum/core" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/core/txpool" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/core/vm" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/eth/ethconfig" + "github.com/YehorDudukin/go-ethereum/ethdb" + "github.com/YehorDudukin/go-ethereum/event" + "github.com/YehorDudukin/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/rlp" "github.com/holiman/uint256" ) diff --git a/eth/peer.go b/eth/peer.go index 7618777716..bb701019ea 100644 --- a/eth/peer.go +++ b/eth/peer.go @@ -17,8 +17,8 @@ package eth import ( - "github.com/ethereum/go-ethereum/eth/protocols/eth" - "github.com/ethereum/go-ethereum/eth/protocols/snap" + "github.com/YehorDudukin/go-ethereum/eth/protocols/eth" + "github.com/YehorDudukin/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 6b0aff226c..7a7f29052a 100644 --- a/eth/peerset.go +++ b/eth/peerset.go @@ -21,10 +21,10 @@ import ( "fmt" "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/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/eth/protocols/eth" + "github.com/YehorDudukin/go-ethereum/eth/protocols/snap" + "github.com/YehorDudukin/go-ethereum/p2p" ) var ( diff --git a/eth/protocols/eth/broadcast.go b/eth/protocols/eth/broadcast.go index 21cea0d4ef..09ff7379a2 100644 --- a/eth/protocols/eth/broadcast.go +++ b/eth/protocols/eth/broadcast.go @@ -17,8 +17,8 @@ package eth import ( - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/types" ) const ( diff --git a/eth/protocols/eth/discovery.go b/eth/protocols/eth/discovery.go index f43e6f864d..9883ce4996 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/YehorDudukin/go-ethereum/core" + "github.com/YehorDudukin/go-ethereum/core/forkid" + "github.com/YehorDudukin/go-ethereum/p2p/enode" + "github.com/YehorDudukin/go-ethereum/rlp" ) // enrEntry is the ENR entry which advertises `eth` protocol on the discovery. diff --git a/eth/protocols/eth/dispatcher.go b/eth/protocols/eth/dispatcher.go index cba40596fc..b6888e1872 100644 --- a/eth/protocols/eth/dispatcher.go +++ b/eth/protocols/eth/dispatcher.go @@ -21,7 +21,7 @@ import ( "fmt" "time" - "github.com/ethereum/go-ethereum/p2p" + "github.com/YehorDudukin/go-ethereum/p2p" ) var ( diff --git a/eth/protocols/eth/handler.go b/eth/protocols/eth/handler.go index f2a3cb0292..4699241fbd 100644 --- a/eth/protocols/eth/handler.go +++ b/eth/protocols/eth/handler.go @@ -20,15 +20,15 @@ import ( "fmt" "time" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core" - "github.com/ethereum/go-ethereum/core/txpool" - "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/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core" + "github.com/YehorDudukin/go-ethereum/core/txpool" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/metrics" + "github.com/YehorDudukin/go-ethereum/p2p" + "github.com/YehorDudukin/go-ethereum/p2p/enode" + "github.com/YehorDudukin/go-ethereum/p2p/enr" + "github.com/YehorDudukin/go-ethereum/params" ) const ( diff --git a/eth/protocols/eth/handler_test.go b/eth/protocols/eth/handler_test.go index fa031d9899..22f53f522a 100644 --- a/eth/protocols/eth/handler_test.go +++ b/eth/protocols/eth/handler_test.go @@ -26,23 +26,23 @@ import ( "testing" "time" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/consensus/beacon" - "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/txpool" - "github.com/ethereum/go-ethereum/core/txpool/blobpool" - "github.com/ethereum/go-ethereum/core/txpool/legacypool" - "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/crypto/kzg4844" - "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/rlp" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/consensus/beacon" + "github.com/YehorDudukin/go-ethereum/consensus/ethash" + "github.com/YehorDudukin/go-ethereum/core" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/core/txpool" + "github.com/YehorDudukin/go-ethereum/core/txpool/blobpool" + "github.com/YehorDudukin/go-ethereum/core/txpool/legacypool" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/core/vm" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/crypto/kzg4844" + "github.com/YehorDudukin/go-ethereum/ethdb" + "github.com/YehorDudukin/go-ethereum/p2p" + "github.com/YehorDudukin/go-ethereum/p2p/enode" + "github.com/YehorDudukin/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/rlp" "github.com/holiman/uint256" ) diff --git a/eth/protocols/eth/handlers.go b/eth/protocols/eth/handlers.go index fda650da1c..6c3e049c43 100644 --- a/eth/protocols/eth/handlers.go +++ b/eth/protocols/eth/handlers.go @@ -21,12 +21,12 @@ import ( "errors" "fmt" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core" - "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/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/rlp" + "github.com/YehorDudukin/go-ethereum/trie" ) func handleGetBlockHeaders(backend Backend, msg Decoder, peer *Peer) error { diff --git a/eth/protocols/eth/handshake.go b/eth/protocols/eth/handshake.go index 0b6f110e3d..4818004e8d 100644 --- a/eth/protocols/eth/handshake.go +++ b/eth/protocols/eth/handshake.go @@ -22,10 +22,10 @@ import ( "math/big" "time" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/forkid" - "github.com/ethereum/go-ethereum/metrics" - "github.com/ethereum/go-ethereum/p2p" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/forkid" + "github.com/YehorDudukin/go-ethereum/metrics" + "github.com/YehorDudukin/go-ethereum/p2p" ) const ( diff --git a/eth/protocols/eth/handshake_test.go b/eth/protocols/eth/handshake_test.go index 1d1de3ec16..ddb2cc7583 100644 --- a/eth/protocols/eth/handshake_test.go +++ b/eth/protocols/eth/handshake_test.go @@ -21,10 +21,10 @@ import ( "math/big" "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/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/forkid" + "github.com/YehorDudukin/go-ethereum/p2p" + "github.com/YehorDudukin/go-ethereum/p2p/enode" ) // Tests that handshake failures are detected and reported correctly. diff --git a/eth/protocols/eth/metrics.go b/eth/protocols/eth/metrics.go index adfa84936d..dd08572aff 100644 --- a/eth/protocols/eth/metrics.go +++ b/eth/protocols/eth/metrics.go @@ -16,7 +16,7 @@ package eth -import "github.com/ethereum/go-ethereum/metrics" +import "github.com/YehorDudukin/go-ethereum/metrics" // meters stores ingress and egress handshake meters. var meters bidirectionalMeters diff --git a/eth/protocols/eth/peer.go b/eth/protocols/eth/peer.go index 31a35eb186..2355d99911 100644 --- a/eth/protocols/eth/peer.go +++ b/eth/protocols/eth/peer.go @@ -19,11 +19,11 @@ package eth import ( "math/rand" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/p2p" + "github.com/YehorDudukin/go-ethereum/rlp" mapset "github.com/deckarep/golang-set/v2" - "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" ) const ( diff --git a/eth/protocols/eth/peer_test.go b/eth/protocols/eth/peer_test.go index efbbbc6fff..e045be676a 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/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/p2p" + "github.com/YehorDudukin/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 aeef4330ff..f9be7f5464 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/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/forkid" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/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 bc2545dea2..0d39e9bd9d 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/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/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..3e51a0ae24 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/YehorDudukin/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..0fcd495957 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/YehorDudukin/go-ethereum/rlp" ) // enrEntry is the ENR entry which advertises `snap` protocol on the discovery. diff --git a/eth/protocols/snap/gentrie.go b/eth/protocols/snap/gentrie.go index 5126d26777..85c7909ac3 100644 --- a/eth/protocols/snap/gentrie.go +++ b/eth/protocols/snap/gentrie.go @@ -19,10 +19,10 @@ package snap import ( "bytes" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/rawdb" - "github.com/ethereum/go-ethereum/ethdb" - "github.com/ethereum/go-ethereum/trie" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/ethdb" + "github.com/YehorDudukin/go-ethereum/trie" ) // genTrie interface is used by the snap syncer to generate merkle tree nodes diff --git a/eth/protocols/snap/gentrie_test.go b/eth/protocols/snap/gentrie_test.go index 2da4f3c866..94aa8f51d0 100644 --- a/eth/protocols/snap/gentrie_test.go +++ b/eth/protocols/snap/gentrie_test.go @@ -22,12 +22,12 @@ import ( "slices" "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/ethereum/go-ethereum/internal/testrand" - "github.com/ethereum/go-ethereum/trie" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/ethdb" + "github.com/YehorDudukin/go-ethereum/internal/testrand" + "github.com/YehorDudukin/go-ethereum/trie" ) type replayer struct { diff --git a/eth/protocols/snap/handler.go b/eth/protocols/snap/handler.go index 924aff7ac9..314dce4415 100644 --- a/eth/protocols/snap/handler.go +++ b/eth/protocols/snap/handler.go @@ -21,16 +21,16 @@ 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/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/trie" - "github.com/ethereum/go-ethereum/trie/trienode" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/metrics" + "github.com/YehorDudukin/go-ethereum/p2p" + "github.com/YehorDudukin/go-ethereum/p2p/enode" + "github.com/YehorDudukin/go-ethereum/p2p/enr" + "github.com/YehorDudukin/go-ethereum/trie" + "github.com/YehorDudukin/go-ethereum/trie/trienode" ) const ( diff --git a/eth/protocols/snap/handler_fuzzing_test.go b/eth/protocols/snap/handler_fuzzing_test.go index 777db6387c..d79aa25918 100644 --- a/eth/protocols/snap/handler_fuzzing_test.go +++ b/eth/protocols/snap/handler_fuzzing_test.go @@ -24,16 +24,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/rawdb" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/core/vm" - "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/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/consensus/ethash" + "github.com/YehorDudukin/go-ethereum/core" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/core/vm" + "github.com/YehorDudukin/go-ethereum/p2p" + "github.com/YehorDudukin/go-ethereum/p2p/enode" + "github.com/YehorDudukin/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/rlp" fuzz "github.com/google/gofuzz" ) diff --git a/eth/protocols/snap/metrics.go b/eth/protocols/snap/metrics.go index 6878e5b280..e18c90b5a6 100644 --- a/eth/protocols/snap/metrics.go +++ b/eth/protocols/snap/metrics.go @@ -17,7 +17,7 @@ package snap import ( - "github.com/ethereum/go-ethereum/metrics" + "github.com/YehorDudukin/go-ethereum/metrics" ) var ( diff --git a/eth/protocols/snap/peer.go b/eth/protocols/snap/peer.go index c57931678c..1836acbe20 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/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/p2p" ) // Peer is a collection of relevant information we have about a `snap` peer. diff --git a/eth/protocols/snap/progress_test.go b/eth/protocols/snap/progress_test.go index 1d9a6b8474..a8b9c2d4f6 100644 --- a/eth/protocols/snap/progress_test.go +++ b/eth/protocols/snap/progress_test.go @@ -20,7 +20,7 @@ import ( "encoding/json" "testing" - "github.com/ethereum/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common" ) // Legacy sync progress definitions diff --git a/eth/protocols/snap/protocol.go b/eth/protocols/snap/protocol.go index 0db206b081..71fe50c10c 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/types" - "github.com/ethereum/go-ethereum/rlp" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/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 8c98c71d50..6a643b1803 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/YehorDudukin/go-ethereum/common" "github.com/holiman/uint256" ) diff --git a/eth/protocols/snap/range_test.go b/eth/protocols/snap/range_test.go index ea643f1361..15f946d8e6 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/YehorDudukin/go-ethereum/common" ) // Tests that given a starting hash and a density, the hash ranger can correctly diff --git a/eth/protocols/snap/sort_test.go b/eth/protocols/snap/sort_test.go index be0a8c5706..1d78b51e44 100644 --- a/eth/protocols/snap/sort_test.go +++ b/eth/protocols/snap/sort_test.go @@ -21,7 +21,7 @@ import ( "fmt" "testing" - "github.com/ethereum/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common" ) func hexToNibbles(s string) []byte { diff --git a/eth/protocols/snap/sync.go b/eth/protocols/snap/sync.go index 9e079f540f..6d9e87edc6 100644 --- a/eth/protocols/snap/sync.go +++ b/eth/protocols/snap/sync.go @@ -29,19 +29,19 @@ import ( "sync/atomic" "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/types" - "github.com/ethereum/go-ethereum/crypto" - "github.com/ethereum/go-ethereum/ethdb" - "github.com/ethereum/go-ethereum/event" - "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/ethereum/go-ethereum/trie/trienode" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/math" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/core/state" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/ethdb" + "github.com/YehorDudukin/go-ethereum/event" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/p2p/msgrate" + "github.com/YehorDudukin/go-ethereum/rlp" + "github.com/YehorDudukin/go-ethereum/trie" + "github.com/YehorDudukin/go-ethereum/trie/trienode" ) const ( diff --git a/eth/protocols/snap/sync_test.go b/eth/protocols/snap/sync_test.go index d318077d99..ad1ad9dd14 100644 --- a/eth/protocols/snap/sync_test.go +++ b/eth/protocols/snap/sync_test.go @@ -28,18 +28,18 @@ 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/internal/testrand" - "github.com/ethereum/go-ethereum/log" - "github.com/ethereum/go-ethereum/rlp" - "github.com/ethereum/go-ethereum/trie" - "github.com/ethereum/go-ethereum/trie/trienode" - "github.com/ethereum/go-ethereum/triedb" - "github.com/ethereum/go-ethereum/triedb/pathdb" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/ethdb" + "github.com/YehorDudukin/go-ethereum/internal/testrand" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/rlp" + "github.com/YehorDudukin/go-ethereum/trie" + "github.com/YehorDudukin/go-ethereum/trie/trienode" + "github.com/YehorDudukin/go-ethereum/triedb" + "github.com/YehorDudukin/go-ethereum/triedb/pathdb" "github.com/holiman/uint256" "golang.org/x/crypto/sha3" ) diff --git a/eth/protocols/snap/tracker.go b/eth/protocols/snap/tracker.go index 2cf59cc23a..85f7a3e8b9 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/YehorDudukin/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 99ed28d96a..ade0ded513 100644 --- a/eth/state_accessor.go +++ b/eth/state_accessor.go @@ -22,16 +22,16 @@ import ( "fmt" "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/core/vm" - "github.com/ethereum/go-ethereum/eth/tracers" - "github.com/ethereum/go-ethereum/log" - "github.com/ethereum/go-ethereum/trie" - "github.com/ethereum/go-ethereum/triedb" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/core/state" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/core/vm" + "github.com/YehorDudukin/go-ethereum/eth/tracers" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/trie" + "github.com/YehorDudukin/go-ethereum/triedb" ) // noopReleaser is returned in case there is no operation expected diff --git a/eth/sync.go b/eth/sync.go index 61f2b2b376..aee3cc2b14 100644 --- a/eth/sync.go +++ b/eth/sync.go @@ -17,9 +17,9 @@ package eth import ( - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/txpool" - "github.com/ethereum/go-ethereum/eth/protocols/eth" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/txpool" + "github.com/YehorDudukin/go-ethereum/eth/protocols/eth" ) // syncTransactions starts sending all currently pending transactions to the given peer. diff --git a/eth/sync_test.go b/eth/sync_test.go index cad3a4732e..f5866d03b8 100644 --- a/eth/sync_test.go +++ b/eth/sync_test.go @@ -20,11 +20,11 @@ import ( "testing" "time" - "github.com/ethereum/go-ethereum/eth/ethconfig" - "github.com/ethereum/go-ethereum/eth/protocols/eth" - "github.com/ethereum/go-ethereum/eth/protocols/snap" - "github.com/ethereum/go-ethereum/p2p" - "github.com/ethereum/go-ethereum/p2p/enode" + "github.com/YehorDudukin/go-ethereum/eth/ethconfig" + "github.com/YehorDudukin/go-ethereum/eth/protocols/eth" + "github.com/YehorDudukin/go-ethereum/eth/protocols/snap" + "github.com/YehorDudukin/go-ethereum/p2p" + "github.com/YehorDudukin/go-ethereum/p2p/enode" ) // Tests that snap sync is disabled after a successful sync cycle. diff --git a/eth/tracers/api.go b/eth/tracers/api.go index 3cb86c80e2..c0f7e51658 100644 --- a/eth/tracers/api.go +++ b/eth/tracers/api.go @@ -28,22 +28,22 @@ 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/eth/tracers/logger" - "github.com/ethereum/go-ethereum/ethdb" - "github.com/ethereum/go-ethereum/internal/ethapi" - "github.com/ethereum/go-ethereum/internal/ethapi/override" - "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/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/consensus" + "github.com/YehorDudukin/go-ethereum/core" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/core/state" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/core/vm" + "github.com/YehorDudukin/go-ethereum/eth/tracers/logger" + "github.com/YehorDudukin/go-ethereum/ethdb" + "github.com/YehorDudukin/go-ethereum/internal/ethapi" + "github.com/YehorDudukin/go-ethereum/internal/ethapi/override" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/rlp" + "github.com/YehorDudukin/go-ethereum/rpc" ) const ( @@ -674,7 +674,7 @@ func (api *API) traceBlockParallel(ctx context.Context, block *types.Block, stat // Reconstruct the block context for each transaction // as the GetHash function of BlockContext is not safe for // concurrent use. - // See: https://github.com/ethereum/go-ethereum/issues/29114 + // See: https://github.com/YehorDudukin/go-ethereum/issues/29114 blockCtx := core.NewEVMBlockContext(block.Header(), api.chainContext(ctx), nil) res, err := api.traceTx(ctx, txs[task.index], msg, txctx, blockCtx, task.statedb, config, nil) if err != nil { diff --git a/eth/tracers/api_test.go b/eth/tracers/api_test.go index 529448e397..1548875945 100644 --- a/eth/tracers/api_test.go +++ b/eth/tracers/api_test.go @@ -29,24 +29,24 @@ 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/beacon" - "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/tracing" - "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/logger" - "github.com/ethereum/go-ethereum/ethdb" - "github.com/ethereum/go-ethereum/internal/ethapi" - "github.com/ethereum/go-ethereum/internal/ethapi/override" - "github.com/ethereum/go-ethereum/params" - "github.com/ethereum/go-ethereum/rpc" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/consensus" + "github.com/YehorDudukin/go-ethereum/consensus/beacon" + "github.com/YehorDudukin/go-ethereum/consensus/ethash" + "github.com/YehorDudukin/go-ethereum/core" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/core/state" + "github.com/YehorDudukin/go-ethereum/core/tracing" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/core/vm" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/eth/tracers/logger" + "github.com/YehorDudukin/go-ethereum/ethdb" + "github.com/YehorDudukin/go-ethereum/internal/ethapi" + "github.com/YehorDudukin/go-ethereum/internal/ethapi/override" + "github.com/YehorDudukin/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/rpc" ) var ( diff --git a/eth/tracers/dir.go b/eth/tracers/dir.go index 05c76bceb7..e24ce21b96 100644 --- a/eth/tracers/dir.go +++ b/eth/tracers/dir.go @@ -20,9 +20,9 @@ import ( "encoding/json" "math/big" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/tracing" - "github.com/ethereum/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/tracing" + "github.com/YehorDudukin/go-ethereum/params" ) // Context contains some contextual infos for a transaction execution that is not diff --git a/eth/tracers/internal/tracetest/calltrace_test.go b/eth/tracers/internal/tracetest/calltrace_test.go index b2486661e4..ae4fee70df 100644 --- a/eth/tracers/internal/tracetest/calltrace_test.go +++ b/eth/tracers/internal/tracetest/calltrace_test.go @@ -25,17 +25,17 @@ import ( "strings" "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/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/eth/tracers" - "github.com/ethereum/go-ethereum/params" - "github.com/ethereum/go-ethereum/tests" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/core" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/core/state" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/core/vm" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/eth/tracers" + "github.com/YehorDudukin/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/tests" ) // callLog is the result of LOG opCode diff --git a/eth/tracers/internal/tracetest/flat_calltrace_test.go b/eth/tracers/internal/tracetest/flat_calltrace_test.go index d1fa44e9d8..be2b13921e 100644 --- a/eth/tracers/internal/tracetest/flat_calltrace_test.go +++ b/eth/tracers/internal/tracetest/flat_calltrace_test.go @@ -26,15 +26,15 @@ import ( "strings" "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/eth/tracers" - "github.com/ethereum/go-ethereum/rlp" - "github.com/ethereum/go-ethereum/tests" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/core" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/core/vm" + "github.com/YehorDudukin/go-ethereum/eth/tracers" + "github.com/YehorDudukin/go-ethereum/rlp" + "github.com/YehorDudukin/go-ethereum/tests" ) // flatCallTrace is the result of a callTracerParity run. diff --git a/eth/tracers/internal/tracetest/prestate_test.go b/eth/tracers/internal/tracetest/prestate_test.go index 29c2834ba2..9fee7f1d58 100644 --- a/eth/tracers/internal/tracetest/prestate_test.go +++ b/eth/tracers/internal/tracetest/prestate_test.go @@ -24,13 +24,13 @@ import ( "strings" "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/eth/tracers" - "github.com/ethereum/go-ethereum/tests" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/core/vm" + "github.com/YehorDudukin/go-ethereum/eth/tracers" + "github.com/YehorDudukin/go-ethereum/tests" ) // prestateTrace is the result of a prestateTrace run. diff --git a/eth/tracers/internal/tracetest/supply_test.go b/eth/tracers/internal/tracetest/supply_test.go index 57ba628b78..a3adff3607 100644 --- a/eth/tracers/internal/tracetest/supply_test.go +++ b/eth/tracers/internal/tracetest/supply_test.go @@ -27,20 +27,20 @@ import ( "path/filepath" "testing" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/common/hexutil" - "github.com/ethereum/go-ethereum/consensus/beacon" - "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/tracers" - "github.com/ethereum/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/consensus/beacon" + "github.com/YehorDudukin/go-ethereum/consensus/ethash" + "github.com/YehorDudukin/go-ethereum/core" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/core/vm" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/eth/tracers" + "github.com/YehorDudukin/go-ethereum/params" // Force-load live packages, to trigger registration - _ "github.com/ethereum/go-ethereum/eth/tracers/live" + _ "github.com/YehorDudukin/go-ethereum/eth/tracers/live" ) type supplyInfoIssuance struct { diff --git a/eth/tracers/internal/tracetest/util.go b/eth/tracers/internal/tracetest/util.go index 04fff12fe5..f314d809be 100644 --- a/eth/tracers/internal/tracetest/util.go +++ b/eth/tracers/internal/tracetest/util.go @@ -22,16 +22,16 @@ import ( "strings" "unicode" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/common/math" - "github.com/ethereum/go-ethereum/consensus/misc/eip4844" - "github.com/ethereum/go-ethereum/core" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/core/vm" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/math" + "github.com/YehorDudukin/go-ethereum/consensus/misc/eip4844" + "github.com/YehorDudukin/go-ethereum/core" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/core/vm" // Force-load native and js packages, to trigger registration - _ "github.com/ethereum/go-ethereum/eth/tracers/js" - _ "github.com/ethereum/go-ethereum/eth/tracers/native" + _ "github.com/YehorDudukin/go-ethereum/eth/tracers/js" + _ "github.com/YehorDudukin/go-ethereum/eth/tracers/native" ) // camel converts a snake cased input string into a camel cased output. diff --git a/eth/tracers/internal/util_test.go b/eth/tracers/internal/util_test.go index d6b51c4d86..309fd05c3c 100644 --- a/eth/tracers/internal/util_test.go +++ b/eth/tracers/internal/util_test.go @@ -19,7 +19,7 @@ package internal import ( "testing" - "github.com/ethereum/go-ethereum/core/vm" + "github.com/YehorDudukin/go-ethereum/core/vm" ) func TestMemCopying(t *testing.T) { diff --git a/eth/tracers/js/goja.go b/eth/tracers/js/goja.go index 227ea57226..b4fbfdb538 100644 --- a/eth/tracers/js/goja.go +++ b/eth/tracers/js/goja.go @@ -24,19 +24,19 @@ import ( "slices" "sync" + "github.com/YehorDudukin/go-ethereum/core/tracing" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/eth/tracers" + "github.com/YehorDudukin/go-ethereum/eth/tracers/internal" + "github.com/YehorDudukin/go-ethereum/params" "github.com/dop251/goja" - "github.com/ethereum/go-ethereum/core/tracing" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/eth/tracers" - "github.com/ethereum/go-ethereum/eth/tracers/internal" - "github.com/ethereum/go-ethereum/params" "github.com/holiman/uint256" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/common/hexutil" - "github.com/ethereum/go-ethereum/core/vm" - "github.com/ethereum/go-ethereum/crypto" - jsassets "github.com/ethereum/go-ethereum/eth/tracers/js/internal/tracers" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/core/vm" + "github.com/YehorDudukin/go-ethereum/crypto" + jsassets "github.com/YehorDudukin/go-ethereum/eth/tracers/js/internal/tracers" ) var assetTracers = make(map[string]string) diff --git a/eth/tracers/js/tracer_test.go b/eth/tracers/js/tracer_test.go index dbfc7308f7..e66e2a4d60 100644 --- a/eth/tracers/js/tracer_test.go +++ b/eth/tracers/js/tracer_test.go @@ -24,12 +24,12 @@ import ( "testing" "time" - "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/core/vm" - "github.com/ethereum/go-ethereum/eth/tracers" - "github.com/ethereum/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/state" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/core/vm" + "github.com/YehorDudukin/go-ethereum/eth/tracers" + "github.com/YehorDudukin/go-ethereum/params" "github.com/holiman/uint256" ) diff --git a/eth/tracers/live.go b/eth/tracers/live.go index 8b222d2e6c..ada93da44e 100644 --- a/eth/tracers/live.go +++ b/eth/tracers/live.go @@ -20,7 +20,7 @@ import ( "encoding/json" "errors" - "github.com/ethereum/go-ethereum/core/tracing" + "github.com/YehorDudukin/go-ethereum/core/tracing" ) type ctorFunc func(config json.RawMessage) (*tracing.Hooks, error) diff --git a/eth/tracers/live/gen_supplyinfoburn.go b/eth/tracers/live/gen_supplyinfoburn.go index d01eda3975..e92e29f276 100644 --- a/eth/tracers/live/gen_supplyinfoburn.go +++ b/eth/tracers/live/gen_supplyinfoburn.go @@ -6,7 +6,7 @@ import ( "encoding/json" "math/big" - "github.com/ethereum/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/common/hexutil" ) var _ = (*supplyInfoBurnMarshaling)(nil) diff --git a/eth/tracers/live/gen_supplyinfoissuance.go b/eth/tracers/live/gen_supplyinfoissuance.go index e2536ee325..8c7716dda3 100644 --- a/eth/tracers/live/gen_supplyinfoissuance.go +++ b/eth/tracers/live/gen_supplyinfoissuance.go @@ -6,7 +6,7 @@ import ( "encoding/json" "math/big" - "github.com/ethereum/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/common/hexutil" ) var _ = (*supplyInfoIssuanceMarshaling)(nil) diff --git a/eth/tracers/live/noop.go b/eth/tracers/live/noop.go index f3def85606..2b6341c2c8 100644 --- a/eth/tracers/live/noop.go +++ b/eth/tracers/live/noop.go @@ -20,11 +20,11 @@ import ( "encoding/json" "math/big" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/tracing" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/eth/tracers" - "github.com/ethereum/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/tracing" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/eth/tracers" + "github.com/YehorDudukin/go-ethereum/params" ) func init() { diff --git a/eth/tracers/live/supply.go b/eth/tracers/live/supply.go index bae7445cb4..b311c189b9 100644 --- a/eth/tracers/live/supply.go +++ b/eth/tracers/live/supply.go @@ -23,15 +23,15 @@ import ( "math/big" "path/filepath" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/common/hexutil" - "github.com/ethereum/go-ethereum/consensus/misc/eip4844" - "github.com/ethereum/go-ethereum/core/tracing" - "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/log" - "github.com/ethereum/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/consensus/misc/eip4844" + "github.com/YehorDudukin/go-ethereum/core/tracing" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/core/vm" + "github.com/YehorDudukin/go-ethereum/eth/tracers" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/params" "gopkg.in/natefinch/lumberjack.v2" ) diff --git a/eth/tracers/logger/access_list_tracer.go b/eth/tracers/logger/access_list_tracer.go index 0d51f40522..f2f265bc37 100644 --- a/eth/tracers/logger/access_list_tracer.go +++ b/eth/tracers/logger/access_list_tracer.go @@ -19,10 +19,10 @@ package logger import ( "maps" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/tracing" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/core/vm" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/tracing" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/core/vm" ) // accessList is an accumulator for the set of accounts and storage slots an EVM diff --git a/eth/tracers/logger/gen_callframe.go b/eth/tracers/logger/gen_callframe.go index b7b2cc2881..3a3a99699f 100644 --- a/eth/tracers/logger/gen_callframe.go +++ b/eth/tracers/logger/gen_callframe.go @@ -6,9 +6,9 @@ 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/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/common/math" ) var _ = (*callFrameMarshaling)(nil) diff --git a/eth/tracers/logger/gen_structlog.go b/eth/tracers/logger/gen_structlog.go index b406cb3445..793740065c 100644 --- a/eth/tracers/logger/gen_structlog.go +++ b/eth/tracers/logger/gen_structlog.go @@ -5,10 +5,10 @@ package logger 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/ethereum/go-ethereum/core/vm" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/common/math" + "github.com/YehorDudukin/go-ethereum/core/vm" "github.com/holiman/uint256" ) diff --git a/eth/tracers/logger/logger.go b/eth/tracers/logger/logger.go index a28cecf138..afc7133d85 100644 --- a/eth/tracers/logger/logger.go +++ b/eth/tracers/logger/logger.go @@ -27,13 +27,13 @@ import ( "strings" "sync/atomic" - "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/tracing" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/core/vm" - "github.com/ethereum/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/common/math" + "github.com/YehorDudukin/go-ethereum/core/tracing" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/core/vm" + "github.com/YehorDudukin/go-ethereum/params" "github.com/holiman/uint256" ) diff --git a/eth/tracers/logger/logger_json.go b/eth/tracers/logger/logger_json.go index 52ac3945d4..05ab5ce7d7 100644 --- a/eth/tracers/logger/logger_json.go +++ b/eth/tracers/logger/logger_json.go @@ -21,12 +21,12 @@ import ( "io" "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/tracing" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/core/vm" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/common/math" + "github.com/YehorDudukin/go-ethereum/core/tracing" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/core/vm" ) //go:generate go run github.com/fjl/gencodec -type callFrame -field-override callFrameMarshaling -out gen_callframe.go diff --git a/eth/tracers/logger/logger_test.go b/eth/tracers/logger/logger_test.go index b1e38bf627..c575edaf6b 100644 --- a/eth/tracers/logger/logger_test.go +++ b/eth/tracers/logger/logger_test.go @@ -22,10 +22,10 @@ import ( "math/big" "testing" - "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/params" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/state" + "github.com/YehorDudukin/go-ethereum/core/vm" + "github.com/YehorDudukin/go-ethereum/params" "github.com/holiman/uint256" ) @@ -63,7 +63,7 @@ func TestStoreCapture(t *testing.T) { } // Tests that blank fields don't appear in logs when JSON marshalled, to reduce -// logs bloat and confusion. See https://github.com/ethereum/go-ethereum/issues/24487 +// logs bloat and confusion. See https://github.com/YehorDudukin/go-ethereum/issues/24487 func TestStructLogMarshalingOmitEmpty(t *testing.T) { tests := []struct { name string diff --git a/eth/tracers/native/4byte.go b/eth/tracers/native/4byte.go index cec45a1e7a..9b3dbb3501 100644 --- a/eth/tracers/native/4byte.go +++ b/eth/tracers/native/4byte.go @@ -22,12 +22,12 @@ import ( "strconv" "sync/atomic" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/tracing" - "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/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/tracing" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/core/vm" + "github.com/YehorDudukin/go-ethereum/eth/tracers" + "github.com/YehorDudukin/go-ethereum/params" ) func init() { diff --git a/eth/tracers/native/call.go b/eth/tracers/native/call.go index c2247d1ce4..d967e93831 100644 --- a/eth/tracers/native/call.go +++ b/eth/tracers/native/call.go @@ -22,14 +22,14 @@ import ( "math/big" "sync/atomic" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/common/hexutil" - "github.com/ethereum/go-ethereum/core/tracing" - "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/YehorDudukin/go-ethereum/accounts/abi" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/core/tracing" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/core/vm" + "github.com/YehorDudukin/go-ethereum/eth/tracers" + "github.com/YehorDudukin/go-ethereum/params" ) //go:generate go run github.com/fjl/gencodec -type callFrame -field-override callFrameMarshaling -out gen_callframe_json.go @@ -43,7 +43,7 @@ type callLog struct { Topics []common.Hash `json:"topics"` Data hexutil.Bytes `json:"data"` // Position of the log relative to subcalls within the same trace - // See https://github.com/ethereum/go-ethereum/pull/28389 for details + // See https://github.com/YehorDudukin/go-ethereum/pull/28389 for details Position hexutil.Uint `json:"position"` } diff --git a/eth/tracers/native/call_flat.go b/eth/tracers/native/call_flat.go index 4e7fc31a9c..f6bfcee12e 100644 --- a/eth/tracers/native/call_flat.go +++ b/eth/tracers/native/call_flat.go @@ -25,13 +25,13 @@ import ( "strings" "sync/atomic" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/common/hexutil" - "github.com/ethereum/go-ethereum/core/tracing" - "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/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/core/tracing" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/core/vm" + "github.com/YehorDudukin/go-ethereum/eth/tracers" + "github.com/YehorDudukin/go-ethereum/params" ) //go:generate go run github.com/fjl/gencodec -type flatCallAction -field-override flatCallActionMarshaling -out gen_flatcallaction_json.go diff --git a/eth/tracers/native/call_flat_test.go b/eth/tracers/native/call_flat_test.go index a81af6d6bc..2629413a29 100644 --- a/eth/tracers/native/call_flat_test.go +++ b/eth/tracers/native/call_flat_test.go @@ -21,12 +21,12 @@ import ( "math/big" "testing" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/tracing" - "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/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/tracing" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/core/vm" + "github.com/YehorDudukin/go-ethereum/eth/tracers" + "github.com/YehorDudukin/go-ethereum/params" "github.com/stretchr/testify/require" ) diff --git a/eth/tracers/native/gen_account_json.go b/eth/tracers/native/gen_account_json.go index 4c39cbc38c..4ecbf22e33 100644 --- a/eth/tracers/native/gen_account_json.go +++ b/eth/tracers/native/gen_account_json.go @@ -6,8 +6,8 @@ import ( "encoding/json" "math/big" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/hexutil" ) var _ = (*accountMarshaling)(nil) diff --git a/eth/tracers/native/gen_callframe_json.go b/eth/tracers/native/gen_callframe_json.go index c44f38390d..72056377e2 100644 --- a/eth/tracers/native/gen_callframe_json.go +++ b/eth/tracers/native/gen_callframe_json.go @@ -6,9 +6,9 @@ import ( "encoding/json" "math/big" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/common/hexutil" - "github.com/ethereum/go-ethereum/core/vm" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/core/vm" ) var _ = (*callFrameMarshaling)(nil) diff --git a/eth/tracers/native/gen_flatcallaction_json.go b/eth/tracers/native/gen_flatcallaction_json.go index c075606983..10ef21e47a 100644 --- a/eth/tracers/native/gen_flatcallaction_json.go +++ b/eth/tracers/native/gen_flatcallaction_json.go @@ -6,8 +6,8 @@ import ( "encoding/json" "math/big" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/hexutil" ) var _ = (*flatCallActionMarshaling)(nil) diff --git a/eth/tracers/native/gen_flatcallresult_json.go b/eth/tracers/native/gen_flatcallresult_json.go index e9fa5e44da..33e294141b 100644 --- a/eth/tracers/native/gen_flatcallresult_json.go +++ b/eth/tracers/native/gen_flatcallresult_json.go @@ -5,8 +5,8 @@ package native import ( "encoding/json" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/hexutil" ) var _ = (*flatCallResultMarshaling)(nil) diff --git a/eth/tracers/native/mux.go b/eth/tracers/native/mux.go index 77ab254568..95b185981e 100644 --- a/eth/tracers/native/mux.go +++ b/eth/tracers/native/mux.go @@ -20,11 +20,11 @@ import ( "encoding/json" "math/big" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/tracing" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/eth/tracers" - "github.com/ethereum/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/tracing" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/eth/tracers" + "github.com/YehorDudukin/go-ethereum/params" ) func init() { diff --git a/eth/tracers/native/noop.go b/eth/tracers/native/noop.go index ac174cc25e..7499847d35 100644 --- a/eth/tracers/native/noop.go +++ b/eth/tracers/native/noop.go @@ -20,11 +20,11 @@ import ( "encoding/json" "math/big" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/tracing" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/eth/tracers" - "github.com/ethereum/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/tracing" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/eth/tracers" + "github.com/YehorDudukin/go-ethereum/params" ) func init() { diff --git a/eth/tracers/native/prestate.go b/eth/tracers/native/prestate.go index e04b77f61f..96f897df83 100644 --- a/eth/tracers/native/prestate.go +++ b/eth/tracers/native/prestate.go @@ -22,16 +22,16 @@ import ( "math/big" "sync/atomic" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/common/hexutil" - "github.com/ethereum/go-ethereum/core/tracing" - "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/eth/tracers/internal" - "github.com/ethereum/go-ethereum/log" - "github.com/ethereum/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/core/tracing" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/core/vm" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/eth/tracers" + "github.com/YehorDudukin/go-ethereum/eth/tracers/internal" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/params" ) //go:generate go run github.com/fjl/gencodec -type account -field-override accountMarshaling -out gen_account_json.go diff --git a/eth/tracers/tracers_test.go b/eth/tracers/tracers_test.go index a72dbf6ee6..49ce047f99 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/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/logger" - "github.com/ethereum/go-ethereum/params" - "github.com/ethereum/go-ethereum/tests" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/core/vm" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/eth/tracers/logger" + "github.com/YehorDudukin/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/tests" ) func BenchmarkTransactionTraceV2(b *testing.B) { diff --git a/ethclient/ethclient.go b/ethclient/ethclient.go index 872b3b03dc..358f283a5c 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/YehorDudukin/go-ethereum" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/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 29e311c1b4..b2862f08ae 100644 --- a/ethclient/ethclient_test.go +++ b/ethclient/ethclient_test.go @@ -26,20 +26,20 @@ import ( "testing" "time" - "github.com/ethereum/go-ethereum" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/consensus/beacon" - "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/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/YehorDudukin/go-ethereum" + "github.com/YehorDudukin/go-ethereum/accounts/abi" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/consensus/beacon" + "github.com/YehorDudukin/go-ethereum/consensus/ethash" + "github.com/YehorDudukin/go-ethereum/core" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/eth" + "github.com/YehorDudukin/go-ethereum/eth/ethconfig" + "github.com/YehorDudukin/go-ethereum/ethclient" + "github.com/YehorDudukin/go-ethereum/node" + "github.com/YehorDudukin/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/rpc" ) // Verify that Client implements the ethereum interfaces. diff --git a/ethclient/example_test.go b/ethclient/example_test.go index 5d0038f0c7..3a6c9ec42d 100644 --- a/ethclient/example_test.go +++ b/ethclient/example_test.go @@ -17,7 +17,7 @@ package ethclient_test import ( - "github.com/ethereum/go-ethereum/node" + "github.com/YehorDudukin/go-ethereum/node" ) var exampleNode *node.Node diff --git a/ethclient/gethclient/gethclient.go b/ethclient/gethclient/gethclient.go index 02b2598b37..9ee23316eb 100644 --- a/ethclient/gethclient/gethclient.go +++ b/ethclient/gethclient/gethclient.go @@ -25,12 +25,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/YehorDudukin/go-ethereum" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/p2p" + "github.com/YehorDudukin/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 65d006d1e6..7b2ef1d8ab 100644 --- a/ethclient/gethclient/gethclient_test.go +++ b/ethclient/gethclient/gethclient_test.go @@ -24,19 +24,19 @@ import ( "strings" "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/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/eth/filters" - "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/YehorDudukin/go-ethereum" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/consensus/ethash" + "github.com/YehorDudukin/go-ethereum/core" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/eth" + "github.com/YehorDudukin/go-ethereum/eth/ethconfig" + "github.com/YehorDudukin/go-ethereum/eth/filters" + "github.com/YehorDudukin/go-ethereum/ethclient" + "github.com/YehorDudukin/go-ethereum/node" + "github.com/YehorDudukin/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/rpc" ) var ( diff --git a/ethclient/signer.go b/ethclient/signer.go index f827d4eb56..72fc343891 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/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/types" ) // senderFromServer is a types.Signer that remembers the sender address returned by the RPC diff --git a/ethclient/simulated/backend.go b/ethclient/simulated/backend.go index d573c7e750..5029c4811e 100644 --- a/ethclient/simulated/backend.go +++ b/ethclient/simulated/backend.go @@ -20,19 +20,19 @@ import ( "errors" "time" - "github.com/ethereum/go-ethereum" - "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" - "github.com/ethereum/go-ethereum/eth/catalyst" - "github.com/ethereum/go-ethereum/eth/ethconfig" - "github.com/ethereum/go-ethereum/eth/filters" - "github.com/ethereum/go-ethereum/ethclient" - "github.com/ethereum/go-ethereum/node" - "github.com/ethereum/go-ethereum/p2p" - "github.com/ethereum/go-ethereum/params" - "github.com/ethereum/go-ethereum/rpc" + "github.com/YehorDudukin/go-ethereum" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/eth" + "github.com/YehorDudukin/go-ethereum/eth/catalyst" + "github.com/YehorDudukin/go-ethereum/eth/ethconfig" + "github.com/YehorDudukin/go-ethereum/eth/filters" + "github.com/YehorDudukin/go-ethereum/ethclient" + "github.com/YehorDudukin/go-ethereum/node" + "github.com/YehorDudukin/go-ethereum/p2p" + "github.com/YehorDudukin/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/rpc" ) // Client exposes the methods provided by the Ethereum RPC client. diff --git a/ethclient/simulated/backend_test.go b/ethclient/simulated/backend_test.go index 303e480a09..bce3a0b4a8 100644 --- a/ethclient/simulated/backend_test.go +++ b/ethclient/simulated/backend_test.go @@ -25,12 +25,12 @@ import ( "testing" "time" - "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/crypto" - "github.com/ethereum/go-ethereum/crypto/kzg4844" - "github.com/ethereum/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/accounts/abi/bind" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/crypto/kzg4844" + "github.com/YehorDudukin/go-ethereum/params" "github.com/holiman/uint256" "go.uber.org/goleak" ) diff --git a/ethclient/simulated/options.go b/ethclient/simulated/options.go index 40bcb37bd1..5a9ff638ca 100644 --- a/ethclient/simulated/options.go +++ b/ethclient/simulated/options.go @@ -19,8 +19,8 @@ package simulated import ( "math/big" - "github.com/ethereum/go-ethereum/eth/ethconfig" - "github.com/ethereum/go-ethereum/node" + "github.com/YehorDudukin/go-ethereum/eth/ethconfig" + "github.com/YehorDudukin/go-ethereum/node" ) // WithBlockGasLimit configures the simulated backend to target a specific gas limit diff --git a/ethclient/simulated/options_test.go b/ethclient/simulated/options_test.go index 9ff2be5ff9..a90ecf4779 100644 --- a/ethclient/simulated/options_test.go +++ b/ethclient/simulated/options_test.go @@ -22,10 +22,10 @@ import ( "strings" "testing" - "github.com/ethereum/go-ethereum" - "github.com/ethereum/go-ethereum/core" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum" + "github.com/YehorDudukin/go-ethereum/core" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/params" ) // Tests that the simulator starts with the initial gas limit in the genesis block, diff --git a/ethclient/simulated/rollback_test.go b/ethclient/simulated/rollback_test.go index 57c59496d5..df92b42030 100644 --- a/ethclient/simulated/rollback_test.go +++ b/ethclient/simulated/rollback_test.go @@ -23,7 +23,7 @@ import ( "testing" "time" - "github.com/ethereum/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/core/types" ) // TestTransactionRollbackBehavior tests that calling Rollback on the simulated backend doesn't prevent subsequent diff --git a/ethclient/types_test.go b/ethclient/types_test.go index 02f9f21758..1475f9489a 100644 --- a/ethclient/types_test.go +++ b/ethclient/types_test.go @@ -22,8 +22,8 @@ import ( "reflect" "testing" - "github.com/ethereum/go-ethereum" - "github.com/ethereum/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum" + "github.com/YehorDudukin/go-ethereum/common" ) func TestToFilterArg(t *testing.T) { diff --git a/ethdb/dbtest/testsuite.go b/ethdb/dbtest/testsuite.go index 52e6b287cf..e94c83da52 100644 --- a/ethdb/dbtest/testsuite.go +++ b/ethdb/dbtest/testsuite.go @@ -24,7 +24,7 @@ import ( "strconv" "testing" - "github.com/ethereum/go-ethereum/ethdb" + "github.com/YehorDudukin/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 ef02e91822..7b62b7977e 100644 --- a/ethdb/leveldb/leveldb.go +++ b/ethdb/leveldb/leveldb.go @@ -26,10 +26,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/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/ethdb" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/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 d8c6386016..ec255e25f5 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/YehorDudukin/go-ethereum/ethdb" + "github.com/YehorDudukin/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 a797275e92..e3948aa460 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/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/ethdb" ) var ( diff --git a/ethdb/memorydb/memorydb_test.go b/ethdb/memorydb/memorydb_test.go index 51499c3b1f..49003d7fbb 100644 --- a/ethdb/memorydb/memorydb_test.go +++ b/ethdb/memorydb/memorydb_test.go @@ -20,8 +20,8 @@ import ( "encoding/binary" "testing" - "github.com/ethereum/go-ethereum/ethdb" - "github.com/ethereum/go-ethereum/ethdb/dbtest" + "github.com/YehorDudukin/go-ethereum/ethdb" + "github.com/YehorDudukin/go-ethereum/ethdb/dbtest" ) func TestMemoryDB(t *testing.T) { diff --git a/ethdb/pebble/pebble.go b/ethdb/pebble/pebble.go index 969e67af5a..5b10b6c1ad 100644 --- a/ethdb/pebble/pebble.go +++ b/ethdb/pebble/pebble.go @@ -25,12 +25,12 @@ import ( "sync/atomic" "time" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/ethdb" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/metrics" "github.com/cockroachdb/pebble" "github.com/cockroachdb/pebble/bloom" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/ethdb" - "github.com/ethereum/go-ethereum/log" - "github.com/ethereum/go-ethereum/metrics" ) const ( @@ -229,7 +229,7 @@ func New(file string, cache int, handles int, namespace string, readonly bool, e }, Logger: panicLogger{}, // TODO(karalabe): Delete when this is upstreamed in Pebble } - // Disable seek compaction explicitly. Check https://github.com/ethereum/go-ethereum/pull/20130 + // Disable seek compaction explicitly. Check https://github.com/YehorDudukin/go-ethereum/pull/20130 // for more details. opt.Experimental.ReadSamplingMultiplier = -1 diff --git a/ethdb/pebble/pebble_test.go b/ethdb/pebble/pebble_test.go index 3265491d4a..c809e1a8ae 100644 --- a/ethdb/pebble/pebble_test.go +++ b/ethdb/pebble/pebble_test.go @@ -19,10 +19,10 @@ package pebble import ( "testing" + "github.com/YehorDudukin/go-ethereum/ethdb" + "github.com/YehorDudukin/go-ethereum/ethdb/dbtest" "github.com/cockroachdb/pebble" "github.com/cockroachdb/pebble/vfs" - "github.com/ethereum/go-ethereum/ethdb" - "github.com/ethereum/go-ethereum/ethdb/dbtest" ) func TestPebbleDB(t *testing.T) { diff --git a/ethdb/remotedb/remotedb.go b/ethdb/remotedb/remotedb.go index 8a91fdbcf2..8652268c6e 100644 --- a/ethdb/remotedb/remotedb.go +++ b/ethdb/remotedb/remotedb.go @@ -22,9 +22,9 @@ package remotedb import ( - "github.com/ethereum/go-ethereum/common/hexutil" - "github.com/ethereum/go-ethereum/ethdb" - "github.com/ethereum/go-ethereum/rpc" + "github.com/YehorDudukin/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/ethdb" + "github.com/YehorDudukin/go-ethereum/rpc" ) // Database is a key-value lookup for a remote database via debug_dbGet. diff --git a/ethstats/ethstats.go b/ethstats/ethstats.go index 0090a7d4c1..5e31ae8bb9 100644 --- a/ethstats/ethstats.go +++ b/ethstats/ethstats.go @@ -30,18 +30,18 @@ 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/log" - "github.com/ethereum/go-ethereum/node" - "github.com/ethereum/go-ethereum/p2p" - "github.com/ethereum/go-ethereum/rpc" + "github.com/YehorDudukin/go-ethereum" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/mclock" + "github.com/YehorDudukin/go-ethereum/consensus" + "github.com/YehorDudukin/go-ethereum/core" + "github.com/YehorDudukin/go-ethereum/core/types" + ethproto "github.com/YehorDudukin/go-ethereum/eth/protocols/eth" + "github.com/YehorDudukin/go-ethereum/event" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/node" + "github.com/YehorDudukin/go-ethereum/p2p" + "github.com/YehorDudukin/go-ethereum/rpc" "github.com/gorilla/websocket" ) diff --git a/event/example_feed_test.go b/event/example_feed_test.go index 9b5ad50df5..611b04f600 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/YehorDudukin/go-ethereum/event" ) func ExampleFeed_acknowledgedEvents() { diff --git a/event/example_scope_test.go b/event/example_scope_test.go index 825a8deeac..7270a52bc8 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/YehorDudukin/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..6f51ad255b 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/YehorDudukin/go-ethereum/event" ) func ExampleNewSubscription() { diff --git a/event/subscription.go b/event/subscription.go index 07e059c6db..548cc26ea7 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/YehorDudukin/go-ethereum/common/mclock" ) // Subscription represents a stream of events. The carrier of the events is typically a diff --git a/graphql/graphiql.go b/graphql/graphiql.go index 823df0c641..abb4cd5cd4 100644 --- a/graphql/graphiql.go +++ b/graphql/graphiql.go @@ -27,8 +27,8 @@ import ( "net/http" "path/filepath" - "github.com/ethereum/go-ethereum/graphql/internal/graphiql" - "github.com/ethereum/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/graphql/internal/graphiql" + "github.com/YehorDudukin/go-ethereum/log" ) // GraphiQL is an in-browser IDE for exploring GraphiQL APIs. diff --git a/graphql/graphql.go b/graphql/graphql.go index 7af1adbb4a..7a687e610b 100644 --- a/graphql/graphql.go +++ b/graphql/graphql.go @@ -27,16 +27,16 @@ import ( "strings" "sync" - "github.com/ethereum/go-ethereum" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/common/hexutil" - "github.com/ethereum/go-ethereum/consensus/misc/eip1559" - "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/rlp" - "github.com/ethereum/go-ethereum/rpc" + "github.com/YehorDudukin/go-ethereum" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/consensus/misc/eip1559" + "github.com/YehorDudukin/go-ethereum/core/state" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/eth/filters" + "github.com/YehorDudukin/go-ethereum/internal/ethapi" + "github.com/YehorDudukin/go-ethereum/rlp" + "github.com/YehorDudukin/go-ethereum/rpc" ) var ( diff --git a/graphql/graphql_test.go b/graphql/graphql_test.go index 0f6ba10b90..73d93838c4 100644 --- a/graphql/graphql_test.go +++ b/graphql/graphql_test.go @@ -27,19 +27,19 @@ import ( "testing" "time" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/consensus/beacon" - "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" - "github.com/ethereum/go-ethereum/eth/ethconfig" - "github.com/ethereum/go-ethereum/eth/filters" - "github.com/ethereum/go-ethereum/node" - "github.com/ethereum/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/consensus/beacon" + "github.com/YehorDudukin/go-ethereum/consensus/ethash" + "github.com/YehorDudukin/go-ethereum/core" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/core/vm" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/eth" + "github.com/YehorDudukin/go-ethereum/eth/ethconfig" + "github.com/YehorDudukin/go-ethereum/eth/filters" + "github.com/YehorDudukin/go-ethereum/node" + "github.com/YehorDudukin/go-ethereum/params" "github.com/stretchr/testify/assert" ) diff --git a/graphql/service.go b/graphql/service.go index 584165bdb8..b1e6afc7e3 100644 --- a/graphql/service.go +++ b/graphql/service.go @@ -24,10 +24,10 @@ import ( "sync" "time" - "github.com/ethereum/go-ethereum/eth/filters" - "github.com/ethereum/go-ethereum/internal/ethapi" - "github.com/ethereum/go-ethereum/node" - "github.com/ethereum/go-ethereum/rpc" + "github.com/YehorDudukin/go-ethereum/eth/filters" + "github.com/YehorDudukin/go-ethereum/internal/ethapi" + "github.com/YehorDudukin/go-ethereum/node" + "github.com/YehorDudukin/go-ethereum/rpc" "github.com/graph-gophers/graphql-go" gqlErrors "github.com/graph-gophers/graphql-go/errors" ) diff --git a/interfaces.go b/interfaces.go index 53e2e3ae16..c94b93a8bb 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/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/types" ) // NotFound is returned by API methods if the requested item does not exist. diff --git a/internal/blocktest/test_hash.go b/internal/blocktest/test_hash.go index 4d2b077e89..13a3037a86 100644 --- a/internal/blocktest/test_hash.go +++ b/internal/blocktest/test_hash.go @@ -25,7 +25,7 @@ package blocktest import ( "hash" - "github.com/ethereum/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common" "golang.org/x/crypto/sha3" ) diff --git a/internal/cmdtest/test_cmd.go b/internal/cmdtest/test_cmd.go index 4890d0b7c6..3f3f5b460b 100644 --- a/internal/cmdtest/test_cmd.go +++ b/internal/cmdtest/test_cmd.go @@ -32,7 +32,7 @@ import ( "text/template" "time" - "github.com/ethereum/go-ethereum/internal/reexec" + "github.com/YehorDudukin/go-ethereum/internal/reexec" ) func NewTestCmd(t *testing.T, data interface{}) *TestCmd { diff --git a/internal/debug/api.go b/internal/debug/api.go index 5e93585bf8..69a64f7145 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/YehorDudukin/go-ethereum/log" "github.com/hashicorp/go-bexpr" ) diff --git a/internal/debug/flags.go b/internal/debug/flags.go index adb652d59b..51f0da6748 100644 --- a/internal/debug/flags.go +++ b/internal/debug/flags.go @@ -27,10 +27,10 @@ import ( "path/filepath" "runtime" - "github.com/ethereum/go-ethereum/internal/flags" - "github.com/ethereum/go-ethereum/log" - "github.com/ethereum/go-ethereum/metrics" - "github.com/ethereum/go-ethereum/metrics/exp" + "github.com/YehorDudukin/go-ethereum/internal/flags" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/metrics" + "github.com/YehorDudukin/go-ethereum/metrics/exp" "github.com/mattn/go-colorable" "github.com/mattn/go-isatty" "github.com/urfave/cli/v2" diff --git a/internal/debug/trace.go b/internal/debug/trace.go index e291030b82..9fbf9f4036 100644 --- a/internal/debug/trace.go +++ b/internal/debug/trace.go @@ -21,7 +21,7 @@ import ( "os" "runtime/trace" - "github.com/ethereum/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/log" ) // StartGoTrace turns on tracing, writing to the given file. diff --git a/internal/era/accumulator.go b/internal/era/accumulator.go index cb383d8e63..49da594f78 100644 --- a/internal/era/accumulator.go +++ b/internal/era/accumulator.go @@ -21,7 +21,7 @@ import ( "fmt" "math/big" - "github.com/ethereum/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common" ssz "github.com/ferranbt/fastssz" ) diff --git a/internal/era/builder.go b/internal/era/builder.go index 975561564c..f82e640ba0 100644 --- a/internal/era/builder.go +++ b/internal/era/builder.go @@ -24,10 +24,10 @@ import ( "io" "math/big" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/internal/era/e2store" - "github.com/ethereum/go-ethereum/rlp" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/internal/era/e2store" + "github.com/YehorDudukin/go-ethereum/rlp" "github.com/golang/snappy" ) diff --git a/internal/era/e2store/e2store_test.go b/internal/era/e2store/e2store_test.go index cdaefc484e..29824bc9d0 100644 --- a/internal/era/e2store/e2store_test.go +++ b/internal/era/e2store/e2store_test.go @@ -22,7 +22,7 @@ import ( "io" "testing" - "github.com/ethereum/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common" ) func TestEncode(t *testing.T) { diff --git a/internal/era/era.go b/internal/era/era.go index 5129186fe7..e91a696c21 100644 --- a/internal/era/era.go +++ b/internal/era/era.go @@ -28,10 +28,10 @@ import ( "strings" "sync" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/internal/era/e2store" - "github.com/ethereum/go-ethereum/rlp" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/internal/era/e2store" + "github.com/YehorDudukin/go-ethereum/rlp" "github.com/golang/snappy" ) diff --git a/internal/era/era_test.go b/internal/era/era_test.go index 46fc2e91f3..8b761400da 100644 --- a/internal/era/era_test.go +++ b/internal/era/era_test.go @@ -24,9 +24,9 @@ import ( "os" "testing" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/rlp" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/rlp" ) type testchain struct { diff --git a/internal/era/iterator.go b/internal/era/iterator.go index 3c4f82d850..68c8fe6f53 100644 --- a/internal/era/iterator.go +++ b/internal/era/iterator.go @@ -21,8 +21,8 @@ import ( "io" "math/big" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/rlp" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/rlp" ) // Iterator wraps RawIterator and returns decoded Era1 entries. diff --git a/internal/ethapi/addrlock.go b/internal/ethapi/addrlock.go index 61ddff688c..403b3f1e2d 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/YehorDudukin/go-ethereum/common" ) type AddrLocker struct { diff --git a/internal/ethapi/api.go b/internal/ethapi/api.go index 3b699748b8..6f715fbb68 100644 --- a/internal/ethapi/api.go +++ b/internal/ethapi/api.go @@ -26,27 +26,27 @@ import ( "strings" "time" + "github.com/YehorDudukin/go-ethereum/accounts" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/common/math" + "github.com/YehorDudukin/go-ethereum/consensus" + "github.com/YehorDudukin/go-ethereum/consensus/misc/eip1559" + "github.com/YehorDudukin/go-ethereum/core" + "github.com/YehorDudukin/go-ethereum/core/state" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/core/vm" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/eth/gasestimator" + "github.com/YehorDudukin/go-ethereum/eth/tracers/logger" + "github.com/YehorDudukin/go-ethereum/internal/ethapi/override" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/p2p" + "github.com/YehorDudukin/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/rlp" + "github.com/YehorDudukin/go-ethereum/rpc" + "github.com/YehorDudukin/go-ethereum/trie" "github.com/davecgh/go-spew/spew" - "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" - "github.com/ethereum/go-ethereum/consensus/misc/eip1559" - "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/eth/gasestimator" - "github.com/ethereum/go-ethereum/eth/tracers/logger" - "github.com/ethereum/go-ethereum/internal/ethapi/override" - "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/ethereum/go-ethereum/trie" ) // estimateGasErrorRatio is the amount of overestimation eth_estimateGas is diff --git a/internal/ethapi/api_test.go b/internal/ethapi/api_test.go index 3fbf32e22e..41917e9adc 100644 --- a/internal/ethapi/api_test.go +++ b/internal/ethapi/api_test.go @@ -34,30 +34,30 @@ import ( "testing" "time" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/internal/ethapi/override" + "github.com/YehorDudukin/go-ethereum/accounts/abi" + "github.com/YehorDudukin/go-ethereum/internal/ethapi/override" - "github.com/ethereum/go-ethereum" - "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/consensus" - "github.com/ethereum/go-ethereum/consensus/beacon" - "github.com/ethereum/go-ethereum/consensus/ethash" - "github.com/ethereum/go-ethereum/core" - "github.com/ethereum/go-ethereum/core/filtermaps" - "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/crypto/kzg4844" - "github.com/ethereum/go-ethereum/ethdb" - "github.com/ethereum/go-ethereum/event" - "github.com/ethereum/go-ethereum/internal/blocktest" - "github.com/ethereum/go-ethereum/params" - "github.com/ethereum/go-ethereum/rpc" + "github.com/YehorDudukin/go-ethereum" + "github.com/YehorDudukin/go-ethereum/accounts" + "github.com/YehorDudukin/go-ethereum/accounts/keystore" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/consensus" + "github.com/YehorDudukin/go-ethereum/consensus/beacon" + "github.com/YehorDudukin/go-ethereum/consensus/ethash" + "github.com/YehorDudukin/go-ethereum/core" + "github.com/YehorDudukin/go-ethereum/core/filtermaps" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/core/state" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/core/vm" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/crypto/kzg4844" + "github.com/YehorDudukin/go-ethereum/ethdb" + "github.com/YehorDudukin/go-ethereum/event" + "github.com/YehorDudukin/go-ethereum/internal/blocktest" + "github.com/YehorDudukin/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/rpc" "github.com/holiman/uint256" "github.com/stretchr/testify/require" ) diff --git a/internal/ethapi/backend.go b/internal/ethapi/backend.go index c4bf2e0591..ebee402cfe 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/filtermaps" - "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/YehorDudukin/go-ethereum" + "github.com/YehorDudukin/go-ethereum/accounts" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/consensus" + "github.com/YehorDudukin/go-ethereum/core" + "github.com/YehorDudukin/go-ethereum/core/filtermaps" + "github.com/YehorDudukin/go-ethereum/core/state" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/core/vm" + "github.com/YehorDudukin/go-ethereum/ethdb" + "github.com/YehorDudukin/go-ethereum/event" + "github.com/YehorDudukin/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/rpc" ) // Backend interface provides the common API services (that are provided by diff --git a/internal/ethapi/dbapi.go b/internal/ethapi/dbapi.go index 33fda936dc..8a8a6cfef7 100644 --- a/internal/ethapi/dbapi.go +++ b/internal/ethapi/dbapi.go @@ -17,8 +17,8 @@ package ethapi import ( - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/hexutil" ) // DbGet returns the raw value of a key stored in the database. diff --git a/internal/ethapi/errors.go b/internal/ethapi/errors.go index ae38061234..c9b0a09cc9 100644 --- a/internal/ethapi/errors.go +++ b/internal/ethapi/errors.go @@ -20,10 +20,10 @@ import ( "errors" "fmt" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/common/hexutil" - "github.com/ethereum/go-ethereum/core" - "github.com/ethereum/go-ethereum/core/vm" + "github.com/YehorDudukin/go-ethereum/accounts/abi" + "github.com/YehorDudukin/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/core" + "github.com/YehorDudukin/go-ethereum/core/vm" ) // revertError is an API error that encompasses an EVM revert with JSON error diff --git a/internal/ethapi/logtracer.go b/internal/ethapi/logtracer.go index 456aa93736..bcefae325e 100644 --- a/internal/ethapi/logtracer.go +++ b/internal/ethapi/logtracer.go @@ -19,10 +19,10 @@ package ethapi import ( "math/big" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/tracing" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/core/vm" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/tracing" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/core/vm" ) var ( diff --git a/internal/ethapi/override/override.go b/internal/ethapi/override/override.go index 0bcf3c444d..940ab77309 100644 --- a/internal/ethapi/override/override.go +++ b/internal/ethapi/override/override.go @@ -21,12 +21,12 @@ import ( "fmt" "math/big" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/common/hexutil" - "github.com/ethereum/go-ethereum/core/state" - "github.com/ethereum/go-ethereum/core/tracing" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/core/vm" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/core/state" + "github.com/YehorDudukin/go-ethereum/core/tracing" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/core/vm" "github.com/holiman/uint256" ) diff --git a/internal/ethapi/override/override_test.go b/internal/ethapi/override/override_test.go index 02a17c1331..d9994714a6 100644 --- a/internal/ethapi/override/override_test.go +++ b/internal/ethapi/override/override_test.go @@ -20,13 +20,13 @@ import ( "maps" "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/core/types" - "github.com/ethereum/go-ethereum/core/vm" - "github.com/ethereum/go-ethereum/triedb" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/core/state" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/core/vm" + "github.com/YehorDudukin/go-ethereum/triedb" ) type precompileContract struct{} diff --git a/internal/ethapi/simulate.go b/internal/ethapi/simulate.go index 9241b509da..7db1a36bec 100644 --- a/internal/ethapi/simulate.go +++ b/internal/ethapi/simulate.go @@ -24,18 +24,18 @@ import ( "math/big" "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/misc/eip1559" - "github.com/ethereum/go-ethereum/consensus/misc/eip4844" - "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/internal/ethapi/override" - "github.com/ethereum/go-ethereum/params" - "github.com/ethereum/go-ethereum/rpc" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/consensus" + "github.com/YehorDudukin/go-ethereum/consensus/misc/eip1559" + "github.com/YehorDudukin/go-ethereum/consensus/misc/eip4844" + "github.com/YehorDudukin/go-ethereum/core" + "github.com/YehorDudukin/go-ethereum/core/state" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/core/vm" + "github.com/YehorDudukin/go-ethereum/internal/ethapi/override" + "github.com/YehorDudukin/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/rpc" ) const ( diff --git a/internal/ethapi/simulate_test.go b/internal/ethapi/simulate_test.go index c747b76477..ac6a34ab4a 100644 --- a/internal/ethapi/simulate_test.go +++ b/internal/ethapi/simulate_test.go @@ -20,9 +20,9 @@ import ( "math/big" "testing" - "github.com/ethereum/go-ethereum/common/hexutil" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/internal/ethapi/override" + "github.com/YehorDudukin/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/internal/ethapi/override" ) func TestSimulateSanitizeBlockOrder(t *testing.T) { diff --git a/internal/ethapi/transaction_args.go b/internal/ethapi/transaction_args.go index 7a7d63c535..d8c8c67bd9 100644 --- a/internal/ethapi/transaction_args.go +++ b/internal/ethapi/transaction_args.go @@ -25,15 +25,15 @@ import ( "math" "math/big" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/common/hexutil" - "github.com/ethereum/go-ethereum/consensus/misc/eip4844" - "github.com/ethereum/go-ethereum/core" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/crypto/kzg4844" - "github.com/ethereum/go-ethereum/log" - "github.com/ethereum/go-ethereum/params" - "github.com/ethereum/go-ethereum/rpc" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/consensus/misc/eip4844" + "github.com/YehorDudukin/go-ethereum/core" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/crypto/kzg4844" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/rpc" "github.com/holiman/uint256" ) @@ -51,7 +51,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/YehorDudukin/go-ethereum/issues/15628 Data *hexutil.Bytes `json:"data"` Input *hexutil.Bytes `json:"input"` @@ -197,7 +197,7 @@ func (args *TransactionArgs) setFeeDefaults(ctx context.Context, b Backend, head } // If the tx has completely specified a fee mechanism, no default is needed. // This allows users who are not yet synced past London to get defaults for - // other tx values. See https://github.com/ethereum/go-ethereum/pull/23274 + // other tx values. See https://github.com/YehorDudukin/go-ethereum/pull/23274 // for more information. eip1559ParamsSet := args.MaxFeePerGas != nil && args.MaxPriorityFeePerGas != nil // Sanity check the EIP-1559 fee parameters if present. diff --git a/internal/ethapi/transaction_args_test.go b/internal/ethapi/transaction_args_test.go index b4d11a3033..0833ba9e3c 100644 --- a/internal/ethapi/transaction_args_test.go +++ b/internal/ethapi/transaction_args_test.go @@ -24,20 +24,20 @@ import ( "testing" "time" - "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/consensus" - "github.com/ethereum/go-ethereum/core" - "github.com/ethereum/go-ethereum/core/filtermaps" - "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/YehorDudukin/go-ethereum" + "github.com/YehorDudukin/go-ethereum/accounts" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/consensus" + "github.com/YehorDudukin/go-ethereum/core" + "github.com/YehorDudukin/go-ethereum/core/filtermaps" + "github.com/YehorDudukin/go-ethereum/core/state" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/core/vm" + "github.com/YehorDudukin/go-ethereum/ethdb" + "github.com/YehorDudukin/go-ethereum/event" + "github.com/YehorDudukin/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/rpc" ) // TestSetFeeDefaults tests the logic for filling in default fee values works as expected. diff --git a/internal/flags/flags.go b/internal/flags/flags.go index b858e73d04..8ce501ed63 100644 --- a/internal/flags/flags.go +++ b/internal/flags/flags.go @@ -27,7 +27,7 @@ import ( "strings" "syscall" - "github.com/ethereum/go-ethereum/common/math" + "github.com/YehorDudukin/go-ethereum/common/math" "github.com/urfave/cli/v2" ) diff --git a/internal/flags/helpers.go b/internal/flags/helpers.go index fc84ae85da..4f87e5905d 100644 --- a/internal/flags/helpers.go +++ b/internal/flags/helpers.go @@ -23,8 +23,8 @@ import ( "sort" "strings" - "github.com/ethereum/go-ethereum/internal/version" - "github.com/ethereum/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/internal/version" + "github.com/YehorDudukin/go-ethereum/log" "github.com/mattn/go-isatty" "github.com/urfave/cli/v2" ) diff --git a/internal/guide/guide_test.go b/internal/guide/guide_test.go index 71614c125d..f746f51575 100644 --- a/internal/guide/guide_test.go +++ b/internal/guide/guide_test.go @@ -28,9 +28,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/YehorDudukin/go-ethereum/accounts/keystore" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/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 a4141bac43..eb6c77b25e 100644 --- a/internal/jsre/deps/web3.js +++ b/internal/jsre/deps/web3.js @@ -5901,7 +5901,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/YehorDudukin/go-ethereum/blob/swarm/internal/web3ext/web3ext.go#L33 */ "use strict"; diff --git a/internal/jsre/jsre.go b/internal/jsre/jsre.go index 0dfeae8e1b..b3cc840529 100644 --- a/internal/jsre/jsre.go +++ b/internal/jsre/jsre.go @@ -27,8 +27,8 @@ import ( "os" "time" + "github.com/YehorDudukin/go-ethereum/common" "github.com/dop251/goja" - "github.com/ethereum/go-ethereum/common" ) // JSRE is a JS runtime environment embedding the goja interpreter. diff --git a/internal/shutdowncheck/shutdown_tracker.go b/internal/shutdowncheck/shutdown_tracker.go index c95b4f02f4..bdfe4d0c6d 100644 --- a/internal/shutdowncheck/shutdown_tracker.go +++ b/internal/shutdowncheck/shutdown_tracker.go @@ -19,10 +19,10 @@ package shutdowncheck import ( "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/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/ethdb" + "github.com/YehorDudukin/go-ethereum/log" ) // ShutdownTracker is a service that reports previous unclean shutdowns diff --git a/internal/testlog/testlog.go b/internal/testlog/testlog.go index 8a3ea85438..3c54311687 100644 --- a/internal/testlog/testlog.go +++ b/internal/testlog/testlog.go @@ -24,7 +24,7 @@ import ( "log/slog" "sync" - "github.com/ethereum/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/log" ) const ( diff --git a/internal/testlog/testlog_test.go b/internal/testlog/testlog_test.go index 7789a47270..6e2b8de8f0 100644 --- a/internal/testlog/testlog_test.go +++ b/internal/testlog/testlog_test.go @@ -7,7 +7,7 @@ import ( "strings" "testing" - "github.com/ethereum/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/log" ) type mockT struct { diff --git a/internal/testrand/rand.go b/internal/testrand/rand.go index 690993de05..d7a1b86439 100644 --- a/internal/testrand/rand.go +++ b/internal/testrand/rand.go @@ -21,7 +21,7 @@ import ( "encoding/binary" mrand "math/rand" - "github.com/ethereum/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common" ) // prng is a pseudo random number generator seeded by strong randomness. diff --git a/internal/version/version.go b/internal/version/version.go index a667827273..bf07ce7db7 100644 --- a/internal/version/version.go +++ b/internal/version/version.go @@ -23,10 +23,10 @@ import ( "runtime/debug" "strings" - "github.com/ethereum/go-ethereum/version" + "github.com/YehorDudukin/go-ethereum/version" ) -const ourPath = "github.com/ethereum/go-ethereum" // Path to our module +const ourPath = "github.com/YehorDudukin/go-ethereum" // Path to our module // Family holds the textual version string for major.minor var Family = fmt.Sprintf("%d.%d", version.Major, version.Minor) diff --git a/metrics/cpu_enabled.go b/metrics/cpu_enabled.go index 838c32fad8..b57a0ef13a 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/YehorDudukin/go-ethereum/log" "github.com/shirou/gopsutil/cpu" ) diff --git a/metrics/cputime_unix.go b/metrics/cputime_unix.go index a44bf80876..256fe575cf 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/YehorDudukin/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 85cabca6b1..a4d4879332 100644 --- a/metrics/exp/exp.go +++ b/metrics/exp/exp.go @@ -9,9 +9,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/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/metrics" + "github.com/YehorDudukin/go-ethereum/metrics/prometheus" ) type exp struct { diff --git a/metrics/influxdb/influxdb.go b/metrics/influxdb/influxdb.go index 11f6c3ad22..e267195c49 100644 --- a/metrics/influxdb/influxdb.go +++ b/metrics/influxdb/influxdb.go @@ -3,7 +3,7 @@ package influxdb import ( "fmt" - "github.com/ethereum/go-ethereum/metrics" + "github.com/YehorDudukin/go-ethereum/metrics" ) func readMeter(namespace, name string, i interface{}) (string, map[string]interface{}) { diff --git a/metrics/influxdb/influxdb_test.go b/metrics/influxdb/influxdb_test.go index 547da138b8..731e58c66f 100644 --- a/metrics/influxdb/influxdb_test.go +++ b/metrics/influxdb/influxdb_test.go @@ -27,8 +27,8 @@ import ( "strings" "testing" - "github.com/ethereum/go-ethereum/metrics" - "github.com/ethereum/go-ethereum/metrics/internal" + "github.com/YehorDudukin/go-ethereum/metrics" + "github.com/YehorDudukin/go-ethereum/metrics/internal" influxdb2 "github.com/influxdata/influxdb-client-go/v2" ) diff --git a/metrics/influxdb/influxdbv1.go b/metrics/influxdb/influxdbv1.go index ac58280803..716247c470 100644 --- a/metrics/influxdb/influxdbv1.go +++ b/metrics/influxdb/influxdbv1.go @@ -5,8 +5,8 @@ import ( uurl "net/url" "time" - "github.com/ethereum/go-ethereum/log" - "github.com/ethereum/go-ethereum/metrics" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/metrics" client "github.com/influxdata/influxdb1-client/v2" ) diff --git a/metrics/influxdb/influxdbv2.go b/metrics/influxdb/influxdbv2.go index 114d57ae07..771fe3ca8b 100644 --- a/metrics/influxdb/influxdbv2.go +++ b/metrics/influxdb/influxdbv2.go @@ -4,8 +4,8 @@ import ( "context" "time" - "github.com/ethereum/go-ethereum/log" - "github.com/ethereum/go-ethereum/metrics" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/metrics" influxdb2 "github.com/influxdata/influxdb-client-go/v2" "github.com/influxdata/influxdb-client-go/v2/api" ) diff --git a/metrics/internal/sampledata.go b/metrics/internal/sampledata.go index de9b207b6d..53310cfb7f 100644 --- a/metrics/internal/sampledata.go +++ b/metrics/internal/sampledata.go @@ -22,7 +22,7 @@ import ( metrics2 "runtime/metrics" "time" - "github.com/ethereum/go-ethereum/metrics" + "github.com/YehorDudukin/go-ethereum/metrics" ) // ExampleMetrics returns an ordered registry populated with a sample of metrics. diff --git a/metrics/internal/sampledata_test.go b/metrics/internal/sampledata_test.go index 0013299406..dcb12b854d 100644 --- a/metrics/internal/sampledata_test.go +++ b/metrics/internal/sampledata_test.go @@ -8,7 +8,7 @@ import ( "testing" "time" - "github.com/ethereum/go-ethereum/metrics" + "github.com/YehorDudukin/go-ethereum/metrics" ) func TestCollectRuntimeMetrics(t *testing.T) { diff --git a/metrics/prometheus/collector.go b/metrics/prometheus/collector.go index 31b8c51b65..36a42b955d 100644 --- a/metrics/prometheus/collector.go +++ b/metrics/prometheus/collector.go @@ -23,7 +23,7 @@ import ( "strconv" "strings" - "github.com/ethereum/go-ethereum/metrics" + "github.com/YehorDudukin/go-ethereum/metrics" ) var ( diff --git a/metrics/prometheus/collector_test.go b/metrics/prometheus/collector_test.go index a8585d1226..1dff7a9899 100644 --- a/metrics/prometheus/collector_test.go +++ b/metrics/prometheus/collector_test.go @@ -22,8 +22,8 @@ import ( "strings" "testing" - "github.com/ethereum/go-ethereum/metrics" - "github.com/ethereum/go-ethereum/metrics/internal" + "github.com/YehorDudukin/go-ethereum/metrics" + "github.com/YehorDudukin/go-ethereum/metrics/internal" ) func TestMain(m *testing.M) { diff --git a/metrics/prometheus/prometheus.go b/metrics/prometheus/prometheus.go index dbdeae6c7f..bff51c3141 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/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/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 595ef8081c..5a9bc491b9 100644 --- a/miner/miner.go +++ b/miner/miner.go @@ -23,14 +23,14 @@ 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/txpool" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/consensus" + "github.com/YehorDudukin/go-ethereum/core" + "github.com/YehorDudukin/go-ethereum/core/state" + "github.com/YehorDudukin/go-ethereum/core/txpool" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/params" ) // Backend wraps all methods required for mining. Only full node is capable diff --git a/miner/miner_test.go b/miner/miner_test.go index 04d84e2e1d..a070b49957 100644 --- a/miner/miner_test.go +++ b/miner/miner_test.go @@ -22,20 +22,20 @@ import ( "sync" "testing" - "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/txpool" - "github.com/ethereum/go-ethereum/core/txpool/legacypool" - "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/trie" - "github.com/ethereum/go-ethereum/triedb" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/consensus/clique" + "github.com/YehorDudukin/go-ethereum/core" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/core/state" + "github.com/YehorDudukin/go-ethereum/core/txpool" + "github.com/YehorDudukin/go-ethereum/core/txpool/legacypool" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/core/vm" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/event" + "github.com/YehorDudukin/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/trie" + "github.com/YehorDudukin/go-ethereum/triedb" ) type mockBackend struct { diff --git a/miner/ordering.go b/miner/ordering.go index bcf7af46e8..b2270b9e65 100644 --- a/miner/ordering.go +++ b/miner/ordering.go @@ -20,9 +20,9 @@ import ( "container/heap" "math/big" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/txpool" - "github.com/ethereum/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/txpool" + "github.com/YehorDudukin/go-ethereum/core/types" "github.com/holiman/uint256" ) diff --git a/miner/ordering_test.go b/miner/ordering_test.go index 3587a835c8..2388f1537c 100644 --- a/miner/ordering_test.go +++ b/miner/ordering_test.go @@ -23,10 +23,10 @@ import ( "testing" "time" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/txpool" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/txpool" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/crypto" "github.com/holiman/uint256" ) diff --git a/miner/payload_building.go b/miner/payload_building.go index 6b010186bf..461ce58273 100644 --- a/miner/payload_building.go +++ b/miner/payload_building.go @@ -23,14 +23,14 @@ import ( "sync" "time" - "github.com/ethereum/go-ethereum/beacon/engine" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/common/hexutil" - "github.com/ethereum/go-ethereum/core/stateless" - "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/YehorDudukin/go-ethereum/beacon/engine" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/core/stateless" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/rlp" ) // BuildPayloadArgs contains the provided parameters for building payload. diff --git a/miner/payload_building_test.go b/miner/payload_building_test.go index e0791921d6..63ecf7882e 100644 --- a/miner/payload_building_test.go +++ b/miner/payload_building_test.go @@ -22,20 +22,20 @@ import ( "testing" "time" - "github.com/ethereum/go-ethereum/beacon/engine" - "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/txpool" - "github.com/ethereum/go-ethereum/core/txpool/legacypool" - "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/YehorDudukin/go-ethereum/beacon/engine" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/consensus" + "github.com/YehorDudukin/go-ethereum/consensus/clique" + "github.com/YehorDudukin/go-ethereum/consensus/ethash" + "github.com/YehorDudukin/go-ethereum/core" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/core/txpool" + "github.com/YehorDudukin/go-ethereum/core/txpool/legacypool" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/core/vm" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/ethdb" + "github.com/YehorDudukin/go-ethereum/params" ) var ( diff --git a/miner/pending.go b/miner/pending.go index 9480f9cae8..f244fcbf82 100644 --- a/miner/pending.go +++ b/miner/pending.go @@ -20,7 +20,7 @@ import ( "sync" "time" - "github.com/ethereum/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common" ) // pendingTTL indicates the period of time a generated pending block should diff --git a/miner/worker.go b/miner/worker.go index d80cb8913b..cfc3bda062 100644 --- a/miner/worker.go +++ b/miner/worker.go @@ -23,17 +23,17 @@ import ( "sync/atomic" "time" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/consensus/misc/eip1559" - "github.com/ethereum/go-ethereum/consensus/misc/eip4844" - "github.com/ethereum/go-ethereum/core" - "github.com/ethereum/go-ethereum/core/state" - "github.com/ethereum/go-ethereum/core/stateless" - "github.com/ethereum/go-ethereum/core/txpool" - "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/params" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/consensus/misc/eip1559" + "github.com/YehorDudukin/go-ethereum/consensus/misc/eip4844" + "github.com/YehorDudukin/go-ethereum/core" + "github.com/YehorDudukin/go-ethereum/core/state" + "github.com/YehorDudukin/go-ethereum/core/stateless" + "github.com/YehorDudukin/go-ethereum/core/txpool" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/core/vm" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/params" "github.com/holiman/uint256" ) diff --git a/node/api.go b/node/api.go index 33dfb3a1cc..a7f7bce0fe 100644 --- a/node/api.go +++ b/node/api.go @@ -21,14 +21,14 @@ 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/discover" - "github.com/ethereum/go-ethereum/p2p/enode" - "github.com/ethereum/go-ethereum/rpc" + "github.com/YehorDudukin/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/internal/debug" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/p2p" + "github.com/YehorDudukin/go-ethereum/p2p/discover" + "github.com/YehorDudukin/go-ethereum/p2p/enode" + "github.com/YehorDudukin/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 4033c85871..9ff07dcee0 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/YehorDudukin/go-ethereum/rpc" "github.com/stretchr/testify/assert" ) diff --git a/node/config.go b/node/config.go index dc436876cc..a642c20453 100644 --- a/node/config.go +++ b/node/config.go @@ -25,11 +25,11 @@ import ( "runtime" "strings" - "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/rpc" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/p2p" + "github.com/YehorDudukin/go-ethereum/rpc" ) const ( diff --git a/node/config_test.go b/node/config_test.go index 067796d665..b51b0e7584 100644 --- a/node/config_test.go +++ b/node/config_test.go @@ -23,8 +23,8 @@ import ( "runtime" "testing" - "github.com/ethereum/go-ethereum/crypto" - "github.com/ethereum/go-ethereum/p2p" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/p2p" ) // Tests that datadirs can be successfully created, be them manually configured diff --git a/node/database.go b/node/database.go index b7d0d856cb..dc3f190c18 100644 --- a/node/database.go +++ b/node/database.go @@ -19,11 +19,11 @@ package node import ( "fmt" - "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/pebble" - "github.com/ethereum/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/ethdb" + "github.com/YehorDudukin/go-ethereum/ethdb/leveldb" + "github.com/YehorDudukin/go-ethereum/ethdb/pebble" + "github.com/YehorDudukin/go-ethereum/log" ) // openOptions contains the options to apply when opening a database. diff --git a/node/defaults.go b/node/defaults.go index 307d9e186a..96fc2e0abb 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/YehorDudukin/go-ethereum/p2p" + "github.com/YehorDudukin/go-ethereum/p2p/nat" + "github.com/YehorDudukin/go-ethereum/rpc" ) const ( diff --git a/node/endpoints.go b/node/endpoints.go index 14c12fd1f1..3a87b3b358 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/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/rpc" ) // StartHTTPEndpoint starts the HTTP RPC endpoint. diff --git a/node/jwt_auth.go b/node/jwt_auth.go index d4f8193ca7..7324749521 100644 --- a/node/jwt_auth.go +++ b/node/jwt_auth.go @@ -21,7 +21,7 @@ import ( "net/http" "time" - "github.com/ethereum/go-ethereum/rpc" + "github.com/YehorDudukin/go-ethereum/rpc" "github.com/golang-jwt/jwt/v4" ) diff --git a/node/node.go b/node/node.go index ec7382e725..b266c6f0d7 100644 --- a/node/node.go +++ b/node/node.go @@ -29,16 +29,16 @@ import ( "strings" "sync" - "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/rawdb" - "github.com/ethereum/go-ethereum/ethdb" - "github.com/ethereum/go-ethereum/ethdb/memorydb" - "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/YehorDudukin/go-ethereum/accounts" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/ethdb" + "github.com/YehorDudukin/go-ethereum/ethdb/memorydb" + "github.com/YehorDudukin/go-ethereum/event" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/p2p" + "github.com/YehorDudukin/go-ethereum/rpc" "github.com/gofrs/flock" ) diff --git a/node/node_auth_test.go b/node/node_auth_test.go index 900f53440c..add26e3995 100644 --- a/node/node_auth_test.go +++ b/node/node_auth_test.go @@ -26,8 +26,8 @@ import ( "testing" "time" - "github.com/ethereum/go-ethereum/common/hexutil" - "github.com/ethereum/go-ethereum/rpc" + "github.com/YehorDudukin/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/rpc" "github.com/golang-jwt/jwt/v4" ) diff --git a/node/node_example_test.go b/node/node_example_test.go index e45ee49a25..0add3998e9 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/YehorDudukin/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 1552728d04..8d4f7355a8 100644 --- a/node/node_test.go +++ b/node/node_test.go @@ -27,10 +27,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/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/ethdb" + "github.com/YehorDudukin/go-ethereum/p2p" + "github.com/YehorDudukin/go-ethereum/rpc" "github.com/stretchr/testify/assert" ) diff --git a/node/rpcstack.go b/node/rpcstack.go index 6d3828ec2b..c318e85d0a 100644 --- a/node/rpcstack.go +++ b/node/rpcstack.go @@ -31,8 +31,8 @@ import ( "sync/atomic" "time" - "github.com/ethereum/go-ethereum/log" - "github.com/ethereum/go-ethereum/rpc" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/rpc" "github.com/rs/cors" ) diff --git a/node/rpcstack_test.go b/node/rpcstack_test.go index eb0bbac93f..1d35463ec9 100644 --- a/node/rpcstack_test.go +++ b/node/rpcstack_test.go @@ -28,9 +28,9 @@ import ( "testing" "time" - "github.com/ethereum/go-ethereum/internal/testlog" - "github.com/ethereum/go-ethereum/log" - "github.com/ethereum/go-ethereum/rpc" + "github.com/YehorDudukin/go-ethereum/internal/testlog" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/rpc" "github.com/golang-jwt/jwt/v4" "github.com/gorilla/websocket" "github.com/stretchr/testify/assert" diff --git a/node/utils_test.go b/node/utils_test.go index 681f3a8b28..59b9b89749 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/YehorDudukin/go-ethereum/p2p" + "github.com/YehorDudukin/go-ethereum/rpc" ) // NoopLifecycle is a trivial implementation of the Service interface. diff --git a/oss-fuzz.sh b/oss-fuzz.sh index 4db245a781..abd770a99d 100644 --- a/oss-fuzz.sh +++ b/oss-fuzz.sh @@ -16,7 +16,7 @@ ################################################################################ # 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/YehorDudukin/go-ethereum/..." function coverbuild { path=$1 @@ -81,142 +81,142 @@ function compile_fuzzer() { } go install github.com/holiman/gofuzz-shim@latest -repo=$GOPATH/src/github.com/ethereum/go-ethereum -compile_fuzzer github.com/ethereum/go-ethereum/accounts/abi \ +repo=$GOPATH/src/github.com/YehorDudukin/go-ethereum +compile_fuzzer github.com/YehorDudukin/go-ethereum/accounts/abi \ FuzzABI fuzzAbi \ $repo/accounts/abi/abifuzzer_test.go -compile_fuzzer github.com/ethereum/go-ethereum/common/bitutil \ +compile_fuzzer github.com/YehorDudukin/go-ethereum/common/bitutil \ FuzzEncoder fuzzBitutilEncoder \ $repo/common/bitutil/compress_test.go -compile_fuzzer github.com/ethereum/go-ethereum/common/bitutil \ +compile_fuzzer github.com/YehorDudukin/go-ethereum/common/bitutil \ FuzzDecoder fuzzBitutilDecoder \ $repo/common/bitutil/compress_test.go -compile_fuzzer github.com/ethereum/go-ethereum/core/vm/runtime \ +compile_fuzzer github.com/YehorDudukin/go-ethereum/core/vm/runtime \ FuzzVmRuntime fuzzVmRuntime\ $repo/core/vm/runtime/runtime_fuzz_test.go -compile_fuzzer github.com/ethereum/go-ethereum/core/vm \ +compile_fuzzer github.com/YehorDudukin/go-ethereum/core/vm \ FuzzPrecompiledContracts fuzzPrecompiledContracts\ $repo/core/vm/contracts_fuzz_test.go,$repo/core/vm/contracts_test.go -compile_fuzzer github.com/ethereum/go-ethereum/core/types \ +compile_fuzzer github.com/YehorDudukin/go-ethereum/core/types \ FuzzRLP fuzzRlp \ $repo/core/types/rlp_fuzzer_test.go -compile_fuzzer github.com/ethereum/go-ethereum/crypto/blake2b \ +compile_fuzzer github.com/YehorDudukin/go-ethereum/crypto/blake2b \ Fuzz fuzzBlake2b \ $repo/crypto/blake2b/blake2b_f_fuzz_test.go -compile_fuzzer github.com/ethereum/go-ethereum/accounts/keystore \ +compile_fuzzer github.com/YehorDudukin/go-ethereum/accounts/keystore \ FuzzPassword fuzzKeystore \ $repo/accounts/keystore/keystore_fuzzing_test.go pkg=$repo/trie/ -compile_fuzzer github.com/ethereum/go-ethereum/trie \ +compile_fuzzer github.com/YehorDudukin/go-ethereum/trie \ FuzzTrie fuzzTrie \ $pkg/trie_test.go,$pkg/database_test.go,$pkg/tracer_test.go,$pkg/proof_test.go,$pkg/iterator_test.go,$pkg/sync_test.go -compile_fuzzer github.com/ethereum/go-ethereum/trie \ +compile_fuzzer github.com/YehorDudukin/go-ethereum/trie \ FuzzStackTrie fuzzStackTrie \ $pkg/stacktrie_fuzzer_test.go,$pkg/iterator_test.go,$pkg/trie_test.go,$pkg/database_test.go,$pkg/tracer_test.go,$pkg/proof_test.go,$pkg/sync_test.go #compile_fuzzer tests/fuzzers/snap FuzzARange fuzz_account_range -compile_fuzzer github.com/ethereum/go-ethereum/eth/protocols/snap \ +compile_fuzzer github.com/YehorDudukin/go-ethereum/eth/protocols/snap \ FuzzARange fuzz_account_range \ $repo/eth/protocols/snap/handler_fuzzing_test.go -compile_fuzzer github.com/ethereum/go-ethereum/eth/protocols/snap \ +compile_fuzzer github.com/YehorDudukin/go-ethereum/eth/protocols/snap \ FuzzSRange fuzz_storage_range \ $repo/eth/protocols/snap/handler_fuzzing_test.go -compile_fuzzer github.com/ethereum/go-ethereum/eth/protocols/snap \ +compile_fuzzer github.com/YehorDudukin/go-ethereum/eth/protocols/snap \ FuzzByteCodes fuzz_byte_codes \ $repo/eth/protocols/snap/handler_fuzzing_test.go -compile_fuzzer github.com/ethereum/go-ethereum/eth/protocols/snap \ +compile_fuzzer github.com/YehorDudukin/go-ethereum/eth/protocols/snap \ FuzzTrieNodes fuzz_trie_nodes\ $repo/eth/protocols/snap/handler_fuzzing_test.go -compile_fuzzer github.com/ethereum/go-ethereum/tests/fuzzers/bn256 \ +compile_fuzzer github.com/YehorDudukin/go-ethereum/tests/fuzzers/bn256 \ FuzzAdd fuzzBn256Add\ $repo/tests/fuzzers/bn256/bn256_test.go -compile_fuzzer github.com/ethereum/go-ethereum/tests/fuzzers/bn256 \ +compile_fuzzer github.com/YehorDudukin/go-ethereum/tests/fuzzers/bn256 \ FuzzMul fuzzBn256Mul \ $repo/tests/fuzzers/bn256/bn256_test.go -compile_fuzzer github.com/ethereum/go-ethereum/tests/fuzzers/bn256 \ +compile_fuzzer github.com/YehorDudukin/go-ethereum/tests/fuzzers/bn256 \ FuzzPair fuzzBn256Pair \ $repo/tests/fuzzers/bn256/bn256_test.go -compile_fuzzer github.com/ethereum/go-ethereum/tests/fuzzers/txfetcher \ +compile_fuzzer github.com/YehorDudukin/go-ethereum/tests/fuzzers/txfetcher \ Fuzz fuzzTxfetcher \ $repo/tests/fuzzers/txfetcher/txfetcher_test.go -compile_fuzzer github.com/ethereum/go-ethereum/tests/fuzzers/bls12381 \ +compile_fuzzer github.com/YehorDudukin/go-ethereum/tests/fuzzers/bls12381 \ FuzzG1Add fuzz_g1_add\ $repo/tests/fuzzers/bls12381/bls12381_test.go -compile_fuzzer github.com/ethereum/go-ethereum/tests/fuzzers/bls12381 \ +compile_fuzzer github.com/YehorDudukin/go-ethereum/tests/fuzzers/bls12381 \ FuzzG1MultiExp fuzz_g1_multiexp \ $repo/tests/fuzzers/bls12381/bls12381_test.go -compile_fuzzer github.com/ethereum/go-ethereum/tests/fuzzers/bls12381 \ +compile_fuzzer github.com/YehorDudukin/go-ethereum/tests/fuzzers/bls12381 \ FuzzG2Add fuzz_g2_add \ $repo/tests/fuzzers/bls12381/bls12381_test.go -compile_fuzzer github.com/ethereum/go-ethereum/tests/fuzzers/bls12381 \ +compile_fuzzer github.com/YehorDudukin/go-ethereum/tests/fuzzers/bls12381 \ FuzzG2MultiExp fuzz_g2_multiexp \ $repo/tests/fuzzers/bls12381/bls12381_test.go -compile_fuzzer github.com/ethereum/go-ethereum/tests/fuzzers/bls12381 \ +compile_fuzzer github.com/YehorDudukin/go-ethereum/tests/fuzzers/bls12381 \ FuzzPairing fuzz_pairing \ $repo/tests/fuzzers/bls12381/bls12381_test.go -compile_fuzzer github.com/ethereum/go-ethereum/tests/fuzzers/bls12381 \ +compile_fuzzer github.com/YehorDudukin/go-ethereum/tests/fuzzers/bls12381 \ FuzzMapG1 fuzz_map_g1\ $repo/tests/fuzzers/bls12381/bls12381_test.go -compile_fuzzer github.com/ethereum/go-ethereum/tests/fuzzers/bls12381 \ +compile_fuzzer github.com/YehorDudukin/go-ethereum/tests/fuzzers/bls12381 \ FuzzMapG2 fuzz_map_g2 \ $repo/tests/fuzzers/bls12381/bls12381_test.go -compile_fuzzer github.com/ethereum/go-ethereum/tests/fuzzers/bls12381 \ +compile_fuzzer github.com/YehorDudukin/go-ethereum/tests/fuzzers/bls12381 \ FuzzCrossG1Add fuzz_cross_g1_add \ $repo/tests/fuzzers/bls12381/bls12381_test.go -compile_fuzzer github.com/ethereum/go-ethereum/tests/fuzzers/bls12381 \ +compile_fuzzer github.com/YehorDudukin/go-ethereum/tests/fuzzers/bls12381 \ FuzzCrossG1MultiExp fuzz_cross_g1_multiexp \ $repo/tests/fuzzers/bls12381/bls12381_test.go -compile_fuzzer github.com/ethereum/go-ethereum/tests/fuzzers/bls12381 \ +compile_fuzzer github.com/YehorDudukin/go-ethereum/tests/fuzzers/bls12381 \ FuzzCrossG2Add fuzz_cross_g2_add \ $repo/tests/fuzzers/bls12381/bls12381_test.go -compile_fuzzer github.com/ethereum/go-ethereum/tests/fuzzers/bls12381 \ +compile_fuzzer github.com/YehorDudukin/go-ethereum/tests/fuzzers/bls12381 \ FuzzCrossG2MultiExp fuzz_cross_g2_multiexp \ $repo/tests/fuzzers/bls12381/bls12381_test.go -compile_fuzzer github.com/ethereum/go-ethereum/tests/fuzzers/bls12381 \ +compile_fuzzer github.com/YehorDudukin/go-ethereum/tests/fuzzers/bls12381 \ FuzzCrossPairing fuzz_cross_pairing\ $repo/tests/fuzzers/bls12381/bls12381_test.go -compile_fuzzer github.com/ethereum/go-ethereum/tests/fuzzers/bls12381 \ +compile_fuzzer github.com/YehorDudukin/go-ethereum/tests/fuzzers/bls12381 \ FuzzG1SubgroupChecks fuzz_g1_subgroup_checks\ $repo/tests/fuzzers/bls12381/bls12381_test.go -compile_fuzzer github.com/ethereum/go-ethereum/tests/fuzzers/bls12381 \ +compile_fuzzer github.com/YehorDudukin/go-ethereum/tests/fuzzers/bls12381 \ FuzzG2SubgroupChecks fuzz_g2_subgroup_checks\ $repo/tests/fuzzers/bls12381/bls12381_test.go -compile_fuzzer github.com/ethereum/go-ethereum/tests/fuzzers/secp256k1 \ +compile_fuzzer github.com/YehorDudukin/go-ethereum/tests/fuzzers/secp256k1 \ Fuzz fuzzSecp256k1\ $repo/tests/fuzzers/secp256k1/secp_test.go -compile_fuzzer github.com/ethereum/go-ethereum/eth/protocols/eth \ +compile_fuzzer github.com/YehorDudukin/go-ethereum/eth/protocols/eth \ FuzzEthProtocolHandlers fuzz_eth_protocol_handlers \ $repo/eth/protocols/eth/handler_test.go,$repo/eth/protocols/eth/peer_test.go diff --git a/p2p/config.go b/p2p/config.go index 68a9c0bb5f..a9e4f86dff 100644 --- a/p2p/config.go +++ b/p2p/config.go @@ -21,11 +21,11 @@ import ( "encoding" "fmt" - "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/nat" - "github.com/ethereum/go-ethereum/p2p/netutil" + "github.com/YehorDudukin/go-ethereum/common/mclock" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/p2p/enode" + "github.com/YehorDudukin/go-ethereum/p2p/nat" + "github.com/YehorDudukin/go-ethereum/p2p/netutil" ) //go:generate go run github.com/fjl/gencodec -type Config -field-override configMarshaling -formats toml -out config_toml.go diff --git a/p2p/config_toml.go b/p2p/config_toml.go index 8a255e62fb..2a3f448cf4 100644 --- a/p2p/config_toml.go +++ b/p2p/config_toml.go @@ -5,10 +5,10 @@ package p2p import ( "crypto/ecdsa" - "github.com/ethereum/go-ethereum/log" - "github.com/ethereum/go-ethereum/p2p/enode" - "github.com/ethereum/go-ethereum/p2p/nat" - "github.com/ethereum/go-ethereum/p2p/netutil" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/p2p/enode" + "github.com/YehorDudukin/go-ethereum/p2p/nat" + "github.com/YehorDudukin/go-ethereum/p2p/netutil" ) var _ = (*configMarshaling)(nil) diff --git a/p2p/dial.go b/p2p/dial.go index 225709427c..1369c38f09 100644 --- a/p2p/dial.go +++ b/p2p/dial.go @@ -29,11 +29,11 @@ import ( "sync/atomic" "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/enr" - "github.com/ethereum/go-ethereum/p2p/netutil" + "github.com/YehorDudukin/go-ethereum/common/mclock" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/p2p/enode" + "github.com/YehorDudukin/go-ethereum/p2p/enr" + "github.com/YehorDudukin/go-ethereum/p2p/netutil" ) const ( diff --git a/p2p/dial_test.go b/p2p/dial_test.go index f18dacce2a..9a033ed92a 100644 --- a/p2p/dial_test.go +++ b/p2p/dial_test.go @@ -28,11 +28,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/YehorDudukin/go-ethereum/common/mclock" + "github.com/YehorDudukin/go-ethereum/internal/testlog" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/p2p/enode" + "github.com/YehorDudukin/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 767cc23b92..ca86bd6d7f 100644 --- a/p2p/discover/common.go +++ b/p2p/discover/common.go @@ -26,11 +26,11 @@ 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/enr" - "github.com/ethereum/go-ethereum/p2p/netutil" + "github.com/YehorDudukin/go-ethereum/common/mclock" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/p2p/enode" + "github.com/YehorDudukin/go-ethereum/p2p/enr" + "github.com/YehorDudukin/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 09808b71e0..c63c09bd40 100644 --- a/p2p/discover/lookup.go +++ b/p2p/discover/lookup.go @@ -21,7 +21,7 @@ import ( "errors" "time" - "github.com/ethereum/go-ethereum/p2p/enode" + "github.com/YehorDudukin/go-ethereum/p2p/enode" ) // lookup performs a network search for nodes close to the given target. It approaches the diff --git a/p2p/discover/metrics.go b/p2p/discover/metrics.go index 5d4c953c90..962f315864 100644 --- a/p2p/discover/metrics.go +++ b/p2p/discover/metrics.go @@ -21,7 +21,7 @@ import ( "net" "net/netip" - "github.com/ethereum/go-ethereum/metrics" + "github.com/YehorDudukin/go-ethereum/metrics" ) const ( diff --git a/p2p/discover/node.go b/p2p/discover/node.go index ac34b7c5b2..95002382c4 100644 --- a/p2p/discover/node.go +++ b/p2p/discover/node.go @@ -21,7 +21,7 @@ import ( "sort" "time" - "github.com/ethereum/go-ethereum/p2p/enode" + "github.com/YehorDudukin/go-ethereum/p2p/enode" ) type BucketNode struct { diff --git a/p2p/discover/ntp.go b/p2p/discover/ntp.go index c8b82ef7e8..64478e6ace 100644 --- a/p2p/discover/ntp.go +++ b/p2p/discover/ntp.go @@ -25,7 +25,7 @@ import ( "slices" "time" - "github.com/ethereum/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/log" ) const ( diff --git a/p2p/discover/table.go b/p2p/discover/table.go index 6a3d1af3af..8b68c4c5f7 100644 --- a/p2p/discover/table.go +++ b/p2p/discover/table.go @@ -30,12 +30,12 @@ import ( "sync" "time" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/common/mclock" - "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/netutil" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/mclock" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/metrics" + "github.com/YehorDudukin/go-ethereum/p2p/enode" + "github.com/YehorDudukin/go-ethereum/p2p/netutil" ) const ( diff --git a/p2p/discover/table_reval.go b/p2p/discover/table_reval.go index 1519313d19..f76ce1c91a 100644 --- a/p2p/discover/table_reval.go +++ b/p2p/discover/table_reval.go @@ -22,8 +22,8 @@ import ( "slices" "time" - "github.com/ethereum/go-ethereum/common/mclock" - "github.com/ethereum/go-ethereum/p2p/enode" + "github.com/YehorDudukin/go-ethereum/common/mclock" + "github.com/YehorDudukin/go-ethereum/p2p/enode" ) const never = mclock.AbsTime(math.MaxInt64) diff --git a/p2p/discover/table_reval_test.go b/p2p/discover/table_reval_test.go index 3605443934..8bdb33b477 100644 --- a/p2p/discover/table_reval_test.go +++ b/p2p/discover/table_reval_test.go @@ -21,9 +21,9 @@ 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/YehorDudukin/go-ethereum/common/mclock" + "github.com/YehorDudukin/go-ethereum/p2p/enode" + "github.com/YehorDudukin/go-ethereum/p2p/enr" ) // This test checks that revalidation can handle a node disappearing while diff --git a/p2p/discover/table_test.go b/p2p/discover/table_test.go index 8cc4ae33b2..ed9e1c3020 100644 --- a/p2p/discover/table_test.go +++ b/p2p/discover/table_test.go @@ -27,13 +27,13 @@ import ( "testing/quick" "time" - "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/ethereum/go-ethereum/p2p/netutil" + "github.com/YehorDudukin/go-ethereum/common/mclock" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/internal/testlog" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/p2p/enode" + "github.com/YehorDudukin/go-ethereum/p2p/enr" + "github.com/YehorDudukin/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 fe10883fe6..cb995b4a01 100644 --- a/p2p/discover/table_util_test.go +++ b/p2p/discover/table_util_test.go @@ -29,10 +29,10 @@ import ( "sync/atomic" "time" - "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/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/p2p/discover/v4wire" + "github.com/YehorDudukin/go-ethereum/p2p/enode" + "github.com/YehorDudukin/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 29a9dd6645..3d80765f81 100644 --- a/p2p/discover/v4_lookup_test.go +++ b/p2p/discover/v4_lookup_test.go @@ -24,10 +24,10 @@ import ( "sync" "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/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/p2p/discover/v4wire" + "github.com/YehorDudukin/go-ethereum/p2p/enode" + "github.com/YehorDudukin/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 dd3f363f7e..864b941d2a 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/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/p2p/discover/v4wire" + "github.com/YehorDudukin/go-ethereum/p2p/enode" + "github.com/YehorDudukin/go-ethereum/p2p/netutil" ) // Errors diff --git a/p2p/discover/v4_udp_test.go b/p2p/discover/v4_udp_test.go index 1af31f4f1b..54a40ceb08 100644 --- a/p2p/discover/v4_udp_test.go +++ b/p2p/discover/v4_udp_test.go @@ -32,11 +32,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/YehorDudukin/go-ethereum/internal/testlog" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/p2p/discover/v4wire" + "github.com/YehorDudukin/go-ethereum/p2p/enode" + "github.com/YehorDudukin/go-ethereum/p2p/enr" ) // shared test variables diff --git a/p2p/discover/v4wire/v4wire.go b/p2p/discover/v4wire/v4wire.go index 958cca324d..c4fe254945 100644 --- a/p2p/discover/v4wire/v4wire.go +++ b/p2p/discover/v4wire/v4wire.go @@ -28,11 +28,11 @@ import ( "net/netip" "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/YehorDudukin/go-ethereum/common/math" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/p2p/enode" + "github.com/YehorDudukin/go-ethereum/p2p/enr" + "github.com/YehorDudukin/go-ethereum/rlp" ) // RPC packet types diff --git a/p2p/discover/v4wire/v4wire_test.go b/p2p/discover/v4wire/v4wire_test.go index 38820f3b48..bda8635207 100644 --- a/p2p/discover/v4wire/v4wire_test.go +++ b/p2p/discover/v4wire/v4wire_test.go @@ -22,9 +22,9 @@ import ( "reflect" "testing" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/rlp" "github.com/davecgh/go-spew/spew" - "github.com/ethereum/go-ethereum/crypto" - "github.com/ethereum/go-ethereum/rlp" ) // EIP-8 test vectors. diff --git a/p2p/discover/v5_talk.go b/p2p/discover/v5_talk.go index dca09870d8..20fd29efa4 100644 --- a/p2p/discover/v5_talk.go +++ b/p2p/discover/v5_talk.go @@ -22,9 +22,9 @@ import ( "sync" "time" - "github.com/ethereum/go-ethereum/log" - "github.com/ethereum/go-ethereum/p2p/discover/v5wire" - "github.com/ethereum/go-ethereum/p2p/enode" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/p2p/discover/v5wire" + "github.com/YehorDudukin/go-ethereum/p2p/enode" ) // This is a limit for the number of concurrent talk requests. diff --git a/p2p/discover/v5_udp.go b/p2p/discover/v5_udp.go index 9679f5c61a..eba9b876da 100644 --- a/p2p/discover/v5_udp.go +++ b/p2p/discover/v5_udp.go @@ -30,12 +30,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/YehorDudukin/go-ethereum/common/mclock" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/p2p/discover/v5wire" + "github.com/YehorDudukin/go-ethereum/p2p/enode" + "github.com/YehorDudukin/go-ethereum/p2p/enr" + "github.com/YehorDudukin/go-ethereum/p2p/netutil" ) const ( diff --git a/p2p/discover/v5_udp_test.go b/p2p/discover/v5_udp_test.go index 3a384aab12..3affd21fe4 100644 --- a/p2p/discover/v5_udp_test.go +++ b/p2p/discover/v5_udp_test.go @@ -29,13 +29,13 @@ 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/discover/v5wire" - "github.com/ethereum/go-ethereum/p2p/enode" - "github.com/ethereum/go-ethereum/p2p/enr" - "github.com/ethereum/go-ethereum/rlp" + "github.com/YehorDudukin/go-ethereum/internal/testlog" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/p2p/discover/v4wire" + "github.com/YehorDudukin/go-ethereum/p2p/discover/v5wire" + "github.com/YehorDudukin/go-ethereum/p2p/enode" + "github.com/YehorDudukin/go-ethereum/p2p/enr" + "github.com/YehorDudukin/go-ethereum/rlp" "github.com/stretchr/testify/require" ) diff --git a/p2p/discover/v5wire/crypto.go b/p2p/discover/v5wire/crypto.go index 00fc3b4564..504bcfc50c 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/YehorDudukin/go-ethereum/common/math" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/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..028d6b2533 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/YehorDudukin/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/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 ec5ef8a261..e11f1f240d 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/YehorDudukin/go-ethereum/common/mclock" + "github.com/YehorDudukin/go-ethereum/p2p/enode" + "github.com/YehorDudukin/go-ethereum/p2p/enr" + "github.com/YehorDudukin/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 2304d0f132..698ba9c523 100644 --- a/p2p/discover/v5wire/encoding_test.go +++ b/p2p/discover/v5wire/encoding_test.go @@ -31,10 +31,10 @@ import ( "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/YehorDudukin/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/common/mclock" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/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 089fd4ebdc..ef0913bd8a 100644 --- a/p2p/discover/v5wire/msg.go +++ b/p2p/discover/v5wire/msg.go @@ -20,11 +20,11 @@ import ( "fmt" "net" - "github.com/ethereum/go-ethereum/common/hexutil" - "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/YehorDudukin/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/common/mclock" + "github.com/YehorDudukin/go-ethereum/p2p/enode" + "github.com/YehorDudukin/go-ethereum/p2p/enr" + "github.com/YehorDudukin/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 5a2166b143..adcc7fe128 100644 --- a/p2p/discover/v5wire/session.go +++ b/p2p/discover/v5wire/session.go @@ -22,10 +22,10 @@ import ( "encoding/binary" "time" - "github.com/ethereum/go-ethereum/common/lru" - "github.com/ethereum/go-ethereum/common/mclock" - "github.com/ethereum/go-ethereum/crypto" - "github.com/ethereum/go-ethereum/p2p/enode" + "github.com/YehorDudukin/go-ethereum/common/lru" + "github.com/YehorDudukin/go-ethereum/common/mclock" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/p2p/enode" ) const handshakeTimeout = time.Second diff --git a/p2p/dnsdisc/client.go b/p2p/dnsdisc/client.go index ac369ce07d..6e1de6afe3 100644 --- a/p2p/dnsdisc/client.go +++ b/p2p/dnsdisc/client.go @@ -27,12 +27,12 @@ import ( "sync" "time" - "github.com/ethereum/go-ethereum/common/lru" - "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/YehorDudukin/go-ethereum/common/lru" + "github.com/YehorDudukin/go-ethereum/common/mclock" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/p2p/enode" + "github.com/YehorDudukin/go-ethereum/p2p/enr" "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 01912e1eab..9453d6572a 100644 --- a/p2p/dnsdisc/client_test.go +++ b/p2p/dnsdisc/client_test.go @@ -25,14 +25,14 @@ import ( "testing" "time" + "github.com/YehorDudukin/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/common/mclock" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/internal/testlog" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/p2p/enode" + "github.com/YehorDudukin/go-ethereum/p2p/enr" "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/internal/testlog" - "github.com/ethereum/go-ethereum/log" - "github.com/ethereum/go-ethereum/p2p/enode" - "github.com/ethereum/go-ethereum/p2p/enr" ) var signingKeyForTesting, _ = crypto.ToECDSA(hexutil.MustDecode("0xdc599867fc513f8f5e2c2c9c489cde5e71362d1d9ec6e693e0de063236ed1240")) diff --git a/p2p/dnsdisc/sync.go b/p2p/dnsdisc/sync.go index 073547c90d..f10d00552e 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/YehorDudukin/go-ethereum/common/mclock" + "github.com/YehorDudukin/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 a8295ac9eb..18b10630d6 100644 --- a/p2p/dnsdisc/tree.go +++ b/p2p/dnsdisc/tree.go @@ -27,10 +27,10 @@ import ( "slices" "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/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/p2p/enode" + "github.com/YehorDudukin/go-ethereum/p2p/enr" + "github.com/YehorDudukin/go-ethereum/rlp" "golang.org/x/crypto/sha3" ) diff --git a/p2p/dnsdisc/tree_test.go b/p2p/dnsdisc/tree_test.go index 9ed17aa4b3..eb065eea0c 100644 --- a/p2p/dnsdisc/tree_test.go +++ b/p2p/dnsdisc/tree_test.go @@ -20,9 +20,9 @@ import ( "reflect" "testing" + "github.com/YehorDudukin/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/p2p/enode" "github.com/davecgh/go-spew/spew" - "github.com/ethereum/go-ethereum/common/hexutil" - "github.com/ethereum/go-ethereum/p2p/enode" ) func TestParseRoot(t *testing.T) { diff --git a/p2p/enode/idscheme.go b/p2p/enode/idscheme.go index db7841c047..278eb2a139 100644 --- a/p2p/enode/idscheme.go +++ b/p2p/enode/idscheme.go @@ -21,10 +21,10 @@ import ( "errors" "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/YehorDudukin/go-ethereum/common/math" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/p2p/enr" + "github.com/YehorDudukin/go-ethereum/rlp" "golang.org/x/crypto/sha3" ) diff --git a/p2p/enode/idscheme_test.go b/p2p/enode/idscheme_test.go index 0910e6e83f..ed274314f2 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/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/p2p/enr" + "github.com/YehorDudukin/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 b736ed450a..f6d13cf6ce 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/YehorDudukin/go-ethereum/p2p/enr" ) func TestReadNodes(t *testing.T) { diff --git a/p2p/enode/localnode.go b/p2p/enode/localnode.go index 6e79c9cbdc..36fa4a5f5f 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/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/p2p/enr" + "github.com/YehorDudukin/go-ethereum/p2p/netutil" ) const ( diff --git a/p2p/enode/localnode_test.go b/p2p/enode/localnode_test.go index 86b962a74e..4025a89942 100644 --- a/p2p/enode/localnode_test.go +++ b/p2p/enode/localnode_test.go @@ -22,9 +22,9 @@ import ( "net/netip" "testing" - "github.com/ethereum/go-ethereum/crypto" - "github.com/ethereum/go-ethereum/p2p/enr" - "github.com/ethereum/go-ethereum/p2p/netutil" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/p2p/enr" + "github.com/YehorDudukin/go-ethereum/p2p/netutil" "github.com/stretchr/testify/assert" ) diff --git a/p2p/enode/node.go b/p2p/enode/node.go index d6f2ac7ff5..e28c9dd5ac 100644 --- a/p2p/enode/node.go +++ b/p2p/enode/node.go @@ -27,8 +27,8 @@ import ( "net/netip" "strings" - "github.com/ethereum/go-ethereum/p2p/enr" - "github.com/ethereum/go-ethereum/rlp" + "github.com/YehorDudukin/go-ethereum/p2p/enr" + "github.com/YehorDudukin/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 e9fe631f34..47976d6679 100644 --- a/p2p/enode/node_test.go +++ b/p2p/enode/node_test.go @@ -25,8 +25,8 @@ import ( "testing" "testing/quick" - "github.com/ethereum/go-ethereum/p2p/enr" - "github.com/ethereum/go-ethereum/rlp" + "github.com/YehorDudukin/go-ethereum/p2p/enr" + "github.com/YehorDudukin/go-ethereum/rlp" "github.com/stretchr/testify/assert" ) diff --git a/p2p/enode/nodedb.go b/p2p/enode/nodedb.go index 51e554e68a..ad051e0088 100644 --- a/p2p/enode/nodedb.go +++ b/p2p/enode/nodedb.go @@ -26,8 +26,8 @@ import ( "sync" "time" - "github.com/ethereum/go-ethereum/p2p/enr" - "github.com/ethereum/go-ethereum/rlp" + "github.com/YehorDudukin/go-ethereum/p2p/enr" + "github.com/YehorDudukin/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 b455cd4533..459d6604b9 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/YehorDudukin/go-ethereum/common/math" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/p2p/enr" ) var ( diff --git a/p2p/enode/urlv4_test.go b/p2p/enode/urlv4_test.go index f39d5a2deb..fd8d8e1a43 100644 --- a/p2p/enode/urlv4_test.go +++ b/p2p/enode/urlv4_test.go @@ -23,8 +23,8 @@ import ( "strings" "testing" - "github.com/ethereum/go-ethereum/crypto" - "github.com/ethereum/go-ethereum/p2p/enr" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/p2p/enr" ) var parseNodeTests = []struct { diff --git a/p2p/enr/enr.go b/p2p/enr/enr.go index 2b093b2f1a..ee98439748 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/YehorDudukin/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 4fccb0cce9..a0447cf488 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/YehorDudukin/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 58e660c154..db4039843a 100644 --- a/p2p/enr/entries.go +++ b/p2p/enr/entries.go @@ -23,7 +23,7 @@ import ( "net" "net/netip" - "github.com/ethereum/go-ethereum/rlp" + "github.com/YehorDudukin/go-ethereum/rlp" ) // Entry is implemented by known node record entry types. diff --git a/p2p/message.go b/p2p/message.go index 3ab56ee350..98c20b732e 100644 --- a/p2p/message.go +++ b/p2p/message.go @@ -24,9 +24,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/YehorDudukin/go-ethereum/event" + "github.com/YehorDudukin/go-ethereum/p2p/enode" + "github.com/YehorDudukin/go-ethereum/rlp" ) // Msg defines the structure of a p2p message. diff --git a/p2p/metrics.go b/p2p/metrics.go index 29c2acb0cb..66efae5d29 100644 --- a/p2p/metrics.go +++ b/p2p/metrics.go @@ -22,7 +22,7 @@ import ( "errors" "net" - "github.com/ethereum/go-ethereum/metrics" + "github.com/YehorDudukin/go-ethereum/metrics" ) const ( diff --git a/p2p/msgrate/msgrate.go b/p2p/msgrate/msgrate.go index de1a3177db..94bd4fdb58 100644 --- a/p2p/msgrate/msgrate.go +++ b/p2p/msgrate/msgrate.go @@ -25,7 +25,7 @@ import ( "sync" "time" - "github.com/ethereum/go-ethereum/log" + "github.com/YehorDudukin/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 a0ddb3b29b..f1eba22dd5 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/YehorDudukin/go-ethereum/log" natpmp "github.com/jackpal/go-nat-pmp" ) diff --git a/p2p/nat/natupnp.go b/p2p/nat/natupnp.go index d79677db55..e32131fa41 100644 --- a/p2p/nat/natupnp.go +++ b/p2p/nat/natupnp.go @@ -26,7 +26,7 @@ import ( "sync" "time" - "github.com/ethereum/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/log" "github.com/huin/goupnp" "github.com/huin/goupnp/dcps/internetgateway1" "github.com/huin/goupnp/dcps/internetgateway2" diff --git a/p2p/nat/natupnp_test.go b/p2p/nat/natupnp_test.go index 9072451d50..681ec889c6 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/YehorDudukin/go-ethereum/issues/21476)") } } upnp, _ := discovered.(*upnp) diff --git a/p2p/nat/stun.go b/p2p/nat/stun.go index 36d54398b5..2aa797e2e7 100644 --- a/p2p/nat/stun.go +++ b/p2p/nat/stun.go @@ -25,7 +25,7 @@ import ( "strings" "time" - "github.com/ethereum/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/log" stunV2 "github.com/pion/stun/v2" ) diff --git a/p2p/netutil/iptrack.go b/p2p/netutil/iptrack.go index 5140ac7539..c562cfc5cf 100644 --- a/p2p/netutil/iptrack.go +++ b/p2p/netutil/iptrack.go @@ -20,7 +20,7 @@ import ( "net/netip" "time" - "github.com/ethereum/go-ethereum/common/mclock" + "github.com/YehorDudukin/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 81653a2733..3e17eab005 100644 --- a/p2p/netutil/iptrack_test.go +++ b/p2p/netutil/iptrack_test.go @@ -23,7 +23,7 @@ import ( "testing" "time" - "github.com/ethereum/go-ethereum/common/mclock" + "github.com/YehorDudukin/go-ethereum/common/mclock" ) const ( diff --git a/p2p/peer.go b/p2p/peer.go index 9a0a750ac8..969a3cd302 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/YehorDudukin/go-ethereum/common/mclock" + "github.com/YehorDudukin/go-ethereum/event" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/metrics" + "github.com/YehorDudukin/go-ethereum/p2p/enode" + "github.com/YehorDudukin/go-ethereum/p2p/enr" + "github.com/YehorDudukin/go-ethereum/rlp" ) var ( diff --git a/p2p/peer_test.go b/p2p/peer_test.go index dea72875fe..c0c071b4a1 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/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/p2p/enode" + "github.com/YehorDudukin/go-ethereum/p2p/enr" ) var discard = Protocol{ diff --git a/p2p/protocol.go b/p2p/protocol.go index de3127e233..8e18785e1e 100644 --- a/p2p/protocol.go +++ b/p2p/protocol.go @@ -21,8 +21,8 @@ import ( "fmt" "strings" - "github.com/ethereum/go-ethereum/p2p/enode" - "github.com/ethereum/go-ethereum/p2p/enr" + "github.com/YehorDudukin/go-ethereum/p2p/enode" + "github.com/YehorDudukin/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..0a614f50b4 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/YehorDudukin/go-ethereum/common/hexutil" "github.com/stretchr/testify/assert" ) diff --git a/p2p/rlpx/rlpx.go b/p2p/rlpx/rlpx.go index dd14822dee..f0db39a969 100644 --- a/p2p/rlpx/rlpx.go +++ b/p2p/rlpx/rlpx.go @@ -33,9 +33,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/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/crypto/ecies" + "github.com/YehorDudukin/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 27d51546e7..6d5415d053 100644 --- a/p2p/rlpx/rlpx_test.go +++ b/p2p/rlpx/rlpx_test.go @@ -28,11 +28,11 @@ import ( "strings" "testing" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/crypto/ecies" + "github.com/YehorDudukin/go-ethereum/p2p/pipes" + "github.com/YehorDudukin/go-ethereum/rlp" "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/pipes" - "github.com/ethereum/go-ethereum/rlp" "github.com/stretchr/testify/assert" ) diff --git a/p2p/server.go b/p2p/server.go index d9105976dd..638defd746 100644 --- a/p2p/server.go +++ b/p2p/server.go @@ -31,15 +31,15 @@ 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/netutil" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/mclock" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/event" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/p2p/discover" + "github.com/YehorDudukin/go-ethereum/p2p/enode" + "github.com/YehorDudukin/go-ethereum/p2p/enr" + "github.com/YehorDudukin/go-ethereum/p2p/netutil" ) const ( diff --git a/p2p/server_nat.go b/p2p/server_nat.go index 298c454a4a..267436a2d2 100644 --- a/p2p/server_nat.go +++ b/p2p/server_nat.go @@ -20,10 +20,10 @@ import ( "net" "time" - "github.com/ethereum/go-ethereum/common/mclock" - "github.com/ethereum/go-ethereum/log" - "github.com/ethereum/go-ethereum/p2p/enr" - "github.com/ethereum/go-ethereum/p2p/nat" + "github.com/YehorDudukin/go-ethereum/common/mclock" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/p2p/enr" + "github.com/YehorDudukin/go-ethereum/p2p/nat" ) const ( diff --git a/p2p/server_nat_test.go b/p2p/server_nat_test.go index 7e19387210..fb4c448f64 100644 --- a/p2p/server_nat_test.go +++ b/p2p/server_nat_test.go @@ -23,9 +23,9 @@ 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/YehorDudukin/go-ethereum/common/mclock" + "github.com/YehorDudukin/go-ethereum/internal/testlog" + "github.com/YehorDudukin/go-ethereum/log" ) func TestServerPortMapping(t *testing.T) { diff --git a/p2p/server_test.go b/p2p/server_test.go index d42926cf4c..debbc819ec 100644 --- a/p2p/server_test.go +++ b/p2p/server_test.go @@ -29,12 +29,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/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/internal/testlog" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/p2p/enode" + "github.com/YehorDudukin/go-ethereum/p2p/enr" + "github.com/YehorDudukin/go-ethereum/p2p/rlpx" ) type testTransport struct { diff --git a/p2p/tracker/tracker.go b/p2p/tracker/tracker.go index 5b72eb2b88..896f9699a9 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/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/metrics" ) const ( diff --git a/p2p/transport.go b/p2p/transport.go index 87d3013f11..128d21cf7b 100644 --- a/p2p/transport.go +++ b/p2p/transport.go @@ -26,11 +26,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/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/bitutil" + "github.com/YehorDudukin/go-ethereum/metrics" + "github.com/YehorDudukin/go-ethereum/p2p/rlpx" + "github.com/YehorDudukin/go-ethereum/rlp" ) const ( diff --git a/p2p/transport_test.go b/p2p/transport_test.go index 777be1bd0d..2c45eab395 100644 --- a/p2p/transport_test.go +++ b/p2p/transport_test.go @@ -22,9 +22,9 @@ import ( "sync" "testing" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/p2p/pipes" "github.com/davecgh/go-spew/spew" - "github.com/ethereum/go-ethereum/crypto" - "github.com/ethereum/go-ethereum/p2p/pipes" ) func TestProtocolHandshake(t *testing.T) { diff --git a/p2p/util.go b/p2p/util.go index 2c8f322a66..4476b09093 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/YehorDudukin/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..d7b1430909 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/YehorDudukin/go-ethereum/common/mclock" ) func TestExpHeap(t *testing.T) { diff --git a/params/bootnodes.go b/params/bootnodes.go index 28e3395540..be39b45590 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/YehorDudukin/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 67aa6b2225..4b506420fc 100644 --- a/params/config.go +++ b/params/config.go @@ -22,8 +22,8 @@ import ( "math" "math/big" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/params/forks" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/params/forks" ) // Genesis hashes to enforce below configs on. diff --git a/params/dao.go b/params/dao.go index da3c8dfc99..4304a24c8b 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/YehorDudukin/go-ethereum/common" ) // DAOForkBlockExtra is the block header extra-data field to set for the DAO fork diff --git a/params/protocol_params.go b/params/protocol_params.go index 6b06dadaef..c1efaf6ba1 100644 --- a/params/protocol_params.go +++ b/params/protocol_params.go @@ -19,7 +19,7 @@ package params import ( "math/big" - "github.com/ethereum/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common" ) const ( diff --git a/rlp/decode.go b/rlp/decode.go index 0fbca243ee..b9f1403311 100644 --- a/rlp/decode.go +++ b/rlp/decode.go @@ -28,7 +28,7 @@ import ( "strings" "sync" - "github.com/ethereum/go-ethereum/rlp/internal/rlpstruct" + "github.com/YehorDudukin/go-ethereum/rlp/internal/rlpstruct" "github.com/holiman/uint256" ) diff --git a/rlp/decode_test.go b/rlp/decode_test.go index 3e492188e8..13af6f5268 100644 --- a/rlp/decode_test.go +++ b/rlp/decode_test.go @@ -28,7 +28,7 @@ import ( "strings" "testing" - "github.com/ethereum/go-ethereum/common/math" + "github.com/YehorDudukin/go-ethereum/common/math" "github.com/holiman/uint256" ) diff --git a/rlp/encbuffer_example_test.go b/rlp/encbuffer_example_test.go index ee15d82a77..c6e0d259b6 100644 --- a/rlp/encbuffer_example_test.go +++ b/rlp/encbuffer_example_test.go @@ -20,7 +20,7 @@ import ( "bytes" "fmt" - "github.com/ethereum/go-ethereum/rlp" + "github.com/YehorDudukin/go-ethereum/rlp" ) func ExampleEncoderBuffer() { diff --git a/rlp/encode.go b/rlp/encode.go index 3645bbfda0..0896348efd 100644 --- a/rlp/encode.go +++ b/rlp/encode.go @@ -23,7 +23,7 @@ import ( "math/big" "reflect" - "github.com/ethereum/go-ethereum/rlp/internal/rlpstruct" + "github.com/YehorDudukin/go-ethereum/rlp/internal/rlpstruct" "github.com/holiman/uint256" ) diff --git a/rlp/encode_test.go b/rlp/encode_test.go index 314958eb56..7ae98d6bd2 100644 --- a/rlp/encode_test.go +++ b/rlp/encode_test.go @@ -26,7 +26,7 @@ import ( "sync" "testing" - "github.com/ethereum/go-ethereum/common/math" + "github.com/YehorDudukin/go-ethereum/common/math" "github.com/holiman/uint256" ) diff --git a/rlp/encoder_example_test.go b/rlp/encoder_example_test.go index 4cd3cb8673..37ae1a56ae 100644 --- a/rlp/encoder_example_test.go +++ b/rlp/encoder_example_test.go @@ -20,7 +20,7 @@ import ( "fmt" "io" - "github.com/ethereum/go-ethereum/rlp" + "github.com/YehorDudukin/go-ethereum/rlp" ) type MyCoolType struct { diff --git a/rlp/iterator_test.go b/rlp/iterator_test.go index a22aaec862..220414f34f 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/YehorDudukin/go-ethereum/common/hexutil" ) // TestIterator tests some basic things about the ListIterator. A more diff --git a/rlp/rlpgen/gen.go b/rlp/rlpgen/gen.go index ff39874737..f4b5e0711b 100644 --- a/rlp/rlpgen/gen.go +++ b/rlp/rlpgen/gen.go @@ -23,7 +23,7 @@ import ( "go/types" "sort" - "github.com/ethereum/go-ethereum/rlp/internal/rlpstruct" + "github.com/YehorDudukin/go-ethereum/rlp/internal/rlpstruct" ) // buildContext keeps the data needed for make*Op. diff --git a/rlp/rlpgen/main.go b/rlp/rlpgen/main.go index b3a74b9df1..19114d751b 100644 --- a/rlp/rlpgen/main.go +++ b/rlp/rlpgen/main.go @@ -27,7 +27,7 @@ import ( "golang.org/x/tools/go/packages" ) -const pathOfPackageRLP = "github.com/ethereum/go-ethereum/rlp" +const pathOfPackageRLP = "github.com/YehorDudukin/go-ethereum/rlp" func main() { var ( diff --git a/rlp/rlpgen/testdata/bigint.out.txt b/rlp/rlpgen/testdata/bigint.out.txt index f54d1faa15..a4d110f1e1 100644 --- a/rlp/rlpgen/testdata/bigint.out.txt +++ b/rlp/rlpgen/testdata/bigint.out.txt @@ -1,6 +1,6 @@ package test -import "github.com/ethereum/go-ethereum/rlp" +import "github.com/YehorDudukin/go-ethereum/rlp" import "io" func (obj *Test) EncodeRLP(_w io.Writer) error { diff --git a/rlp/rlpgen/testdata/nil.out.txt b/rlp/rlpgen/testdata/nil.out.txt index e0d5dcebad..9c2a23b780 100644 --- a/rlp/rlpgen/testdata/nil.out.txt +++ b/rlp/rlpgen/testdata/nil.out.txt @@ -1,6 +1,6 @@ package test -import "github.com/ethereum/go-ethereum/rlp" +import "github.com/YehorDudukin/go-ethereum/rlp" import "io" func (obj *Test) EncodeRLP(_w io.Writer) error { diff --git a/rlp/rlpgen/testdata/optional.out.txt b/rlp/rlpgen/testdata/optional.out.txt index 02df8e457f..ea24b36792 100644 --- a/rlp/rlpgen/testdata/optional.out.txt +++ b/rlp/rlpgen/testdata/optional.out.txt @@ -1,6 +1,6 @@ package test -import "github.com/ethereum/go-ethereum/rlp" +import "github.com/YehorDudukin/go-ethereum/rlp" import "io" func (obj *Test) EncodeRLP(_w io.Writer) error { diff --git a/rlp/rlpgen/testdata/rawvalue.in.txt b/rlp/rlpgen/testdata/rawvalue.in.txt index 3a657bc907..11dfa1d7f8 100644 --- a/rlp/rlpgen/testdata/rawvalue.in.txt +++ b/rlp/rlpgen/testdata/rawvalue.in.txt @@ -2,7 +2,7 @@ package test -import "github.com/ethereum/go-ethereum/rlp" +import "github.com/YehorDudukin/go-ethereum/rlp" type Test struct { RawValue rlp.RawValue diff --git a/rlp/rlpgen/testdata/rawvalue.out.txt b/rlp/rlpgen/testdata/rawvalue.out.txt index 3607c98636..eb53d74324 100644 --- a/rlp/rlpgen/testdata/rawvalue.out.txt +++ b/rlp/rlpgen/testdata/rawvalue.out.txt @@ -1,6 +1,6 @@ package test -import "github.com/ethereum/go-ethereum/rlp" +import "github.com/YehorDudukin/go-ethereum/rlp" import "io" func (obj *Test) EncodeRLP(_w io.Writer) error { diff --git a/rlp/rlpgen/testdata/uint256.out.txt b/rlp/rlpgen/testdata/uint256.out.txt index 5e6d3ed992..c37d322930 100644 --- a/rlp/rlpgen/testdata/uint256.out.txt +++ b/rlp/rlpgen/testdata/uint256.out.txt @@ -1,6 +1,6 @@ package test -import "github.com/ethereum/go-ethereum/rlp" +import "github.com/YehorDudukin/go-ethereum/rlp" import "github.com/holiman/uint256" import "io" diff --git a/rlp/rlpgen/testdata/uints.out.txt b/rlp/rlpgen/testdata/uints.out.txt index 1a354956a4..dfed773bc5 100644 --- a/rlp/rlpgen/testdata/uints.out.txt +++ b/rlp/rlpgen/testdata/uints.out.txt @@ -1,6 +1,6 @@ package test -import "github.com/ethereum/go-ethereum/rlp" +import "github.com/YehorDudukin/go-ethereum/rlp" import "io" func (obj *Test) EncodeRLP(_w io.Writer) error { diff --git a/rlp/typecache.go b/rlp/typecache.go index eebf4cd611..e2e4f6e320 100644 --- a/rlp/typecache.go +++ b/rlp/typecache.go @@ -23,7 +23,7 @@ import ( "sync" "sync/atomic" - "github.com/ethereum/go-ethereum/rlp/internal/rlpstruct" + "github.com/YehorDudukin/go-ethereum/rlp/internal/rlpstruct" ) // typeinfo is an entry in the type cache. diff --git a/rpc/client.go b/rpc/client.go index f9a8f1116b..fcda934ea9 100644 --- a/rpc/client.go +++ b/rpc/client.go @@ -28,7 +28,7 @@ import ( "sync/atomic" "time" - "github.com/ethereum/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/log" ) var ( diff --git a/rpc/client_example_test.go b/rpc/client_example_test.go index 044b57a9c4..c704b6ad98 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/YehorDudukin/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/rpc" ) // In this example, our client wishes to track the latest 'block number' diff --git a/rpc/client_opt_test.go b/rpc/client_opt_test.go index f62f689f6a..7a9bbdd313 100644 --- a/rpc/client_opt_test.go +++ b/rpc/client_opt_test.go @@ -21,7 +21,7 @@ import ( "net/http" "time" - "github.com/ethereum/go-ethereum/rpc" + "github.com/YehorDudukin/go-ethereum/rpc" ) // This example configures a HTTP-based RPC client with two options - one setting the diff --git a/rpc/client_test.go b/rpc/client_test.go index 6c1a4f8f6c..d4fe76a3ad 100644 --- a/rpc/client_test.go +++ b/rpc/client_test.go @@ -33,8 +33,8 @@ import ( "testing" "time" + "github.com/YehorDudukin/go-ethereum/log" "github.com/davecgh/go-spew/spew" - "github.com/ethereum/go-ethereum/log" ) func TestClientRequest(t *testing.T) { @@ -521,7 +521,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/YehorDudukin/go-ethereum/issues/17837 where the // client hangs during shutdown when Unsubscribe races with Client.Close. func TestClientCloseUnsubscribeRace(t *testing.T) { t.Parallel() @@ -566,7 +566,7 @@ func (b *unsubscribeBlocker) readBatch() ([]*jsonrpcMessage, bool, error) { // TestUnsubscribeTimeout verifies that calling the client's Unsubscribe // function will eventually timeout and not block forever in case the serve does // not respond. -// It reproducers the issue https://github.com/ethereum/go-ethereum/issues/30156 +// It reproducers the issue https://github.com/YehorDudukin/go-ethereum/issues/30156 func TestUnsubscribeTimeout(t *testing.T) { t.Parallel() @@ -674,7 +674,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/YehorDudukin/go-ethereum/issues/22322 func TestClientSubscriptionChannelClose(t *testing.T) { t.Parallel() diff --git a/rpc/doc.go b/rpc/doc.go index 7c87793dca..3fea264fb2 100644 --- a/rpc/doc.go +++ b/rpc/doc.go @@ -98,7 +98,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/YehorDudukin/go-ethereum/wiki/RPC-PUB-SUB. # Reverse Calls diff --git a/rpc/endpoints.go b/rpc/endpoints.go index d78ebe2858..cf5171a7a2 100644 --- a/rpc/endpoints.go +++ b/rpc/endpoints.go @@ -20,7 +20,7 @@ import ( "net" "strings" - "github.com/ethereum/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/log" ) // StartIPCEndpoint starts an IPC endpoint. diff --git a/rpc/handler.go b/rpc/handler.go index f23b544b58..661b19a159 100644 --- a/rpc/handler.go +++ b/rpc/handler.go @@ -28,7 +28,7 @@ import ( "sync" "time" - "github.com/ethereum/go-ethereum/log" + "github.com/YehorDudukin/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 a08245b270..ba5a380d20 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/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/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 588bf62605..3f8df76b90 100644 --- a/rpc/ipc_unix.go +++ b/rpc/ipc_unix.go @@ -27,7 +27,7 @@ import ( "path/filepath" "syscall" - "github.com/ethereum/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/log" ) const ( diff --git a/rpc/metrics.go b/rpc/metrics.go index ef7449ce05..aff90eddc0 100644 --- a/rpc/metrics.go +++ b/rpc/metrics.go @@ -20,7 +20,7 @@ import ( "fmt" "time" - "github.com/ethereum/go-ethereum/metrics" + "github.com/YehorDudukin/go-ethereum/metrics" ) var ( diff --git a/rpc/server.go b/rpc/server.go index 42b59f8f6f..8a18269ab3 100644 --- a/rpc/server.go +++ b/rpc/server.go @@ -24,7 +24,7 @@ import ( "sync" "sync/atomic" - "github.com/ethereum/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/log" ) const MetadataApi = "rpc" diff --git a/rpc/service.go b/rpc/service.go index d50090e9fb..1449edc42c 100644 --- a/rpc/service.go +++ b/rpc/service.go @@ -25,7 +25,7 @@ import ( "sync" "unicode" - "github.com/ethereum/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/log" ) var ( diff --git a/rpc/subscription_test.go b/rpc/subscription_test.go index e52f390adb..bcfc61e89e 100644 --- a/rpc/subscription_test.go +++ b/rpc/subscription_test.go @@ -28,8 +28,8 @@ import ( "testing" "time" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/types" ) func TestNewID(t *testing.T) { diff --git a/rpc/types.go b/rpc/types.go index 85f15344e8..097951b951 100644 --- a/rpc/types.go +++ b/rpc/types.go @@ -24,8 +24,8 @@ import ( "math" "strings" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/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 9dd6fa6508..95b22f5876 100644 --- a/rpc/types_test.go +++ b/rpc/types_test.go @@ -22,7 +22,7 @@ import ( "reflect" "testing" - "github.com/ethereum/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common" ) func TestBlockNumberJSONUnmarshal(t *testing.T) { diff --git a/rpc/websocket.go b/rpc/websocket.go index 9f67caf859..50f187f734 100644 --- a/rpc/websocket.go +++ b/rpc/websocket.go @@ -27,8 +27,8 @@ import ( "sync" "time" + "github.com/YehorDudukin/go-ethereum/log" mapset "github.com/deckarep/golang-set/v2" - "github.com/ethereum/go-ethereum/log" "github.com/gorilla/websocket" ) diff --git a/rpc/websocket_test.go b/rpc/websocket_test.go index 10a998b351..cd310e245f 100644 --- a/rpc/websocket_test.go +++ b/rpc/websocket_test.go @@ -238,7 +238,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/YehorDudukin/go-ethereum/issues/19798 <-ctx.Done() close(sendPing) diff --git a/signer/core/api.go b/signer/core/api.go index 12acf925f0..801731ec53 100644 --- a/signer/core/api.go +++ b/signer/core/api.go @@ -26,18 +26,18 @@ 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/common/math" - "github.com/ethereum/go-ethereum/internal/ethapi" - "github.com/ethereum/go-ethereum/log" - "github.com/ethereum/go-ethereum/rpc" - "github.com/ethereum/go-ethereum/signer/core/apitypes" - "github.com/ethereum/go-ethereum/signer/storage" + "github.com/YehorDudukin/go-ethereum/accounts" + "github.com/YehorDudukin/go-ethereum/accounts/keystore" + "github.com/YehorDudukin/go-ethereum/accounts/scwallet" + "github.com/YehorDudukin/go-ethereum/accounts/usbwallet" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/common/math" + "github.com/YehorDudukin/go-ethereum/internal/ethapi" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/rpc" + "github.com/YehorDudukin/go-ethereum/signer/core/apitypes" + "github.com/YehorDudukin/go-ethereum/signer/storage" ) const ( diff --git a/signer/core/api_test.go b/signer/core/api_test.go index 69229dadaf..7d80d3fbcc 100644 --- a/signer/core/api_test.go +++ b/signer/core/api_test.go @@ -26,17 +26,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/YehorDudukin/go-ethereum/accounts" + "github.com/YehorDudukin/go-ethereum/accounts/keystore" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/internal/ethapi" + "github.com/YehorDudukin/go-ethereum/rlp" + "github.com/YehorDudukin/go-ethereum/signer/core" + "github.com/YehorDudukin/go-ethereum/signer/core/apitypes" + "github.com/YehorDudukin/go-ethereum/signer/fourbyte" + "github.com/YehorDudukin/go-ethereum/signer/storage" ) // Used for testing diff --git a/signer/core/apitypes/signed_data_internal_test.go b/signer/core/apitypes/signed_data_internal_test.go index bee9f1c351..4ee7042c84 100644 --- a/signer/core/apitypes/signed_data_internal_test.go +++ b/signer/core/apitypes/signed_data_internal_test.go @@ -24,10 +24,10 @@ import ( "os" "testing" - "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/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/common/math" + "github.com/YehorDudukin/go-ethereum/crypto" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/signer/core/apitypes/types.go b/signer/core/apitypes/types.go index b8b96bef92..7dd36ae240 100644 --- a/signer/core/apitypes/types.go +++ b/signer/core/apitypes/types.go @@ -30,13 +30,13 @@ import ( "strconv" "strings" - "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/core/types" - "github.com/ethereum/go-ethereum/crypto" - "github.com/ethereum/go-ethereum/crypto/kzg4844" + "github.com/YehorDudukin/go-ethereum/accounts" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/common/math" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/crypto/kzg4844" "github.com/holiman/uint256" ) @@ -95,7 +95,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/YehorDudukin/go-ethereum/issues/15628 Data *hexutil.Bytes `json:"data,omitempty"` Input *hexutil.Bytes `json:"input,omitempty"` diff --git a/signer/core/apitypes/types_test.go b/signer/core/apitypes/types_test.go index 22bbeba19e..66f0a6e1a6 100644 --- a/signer/core/apitypes/types_test.go +++ b/signer/core/apitypes/types_test.go @@ -21,9 +21,9 @@ import ( "encoding/json" "testing" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/crypto/kzg4844" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/crypto/kzg4844" "github.com/holiman/uint256" ) diff --git a/signer/core/auditlog.go b/signer/core/auditlog.go index 78785a3b02..9d1e644721 100644 --- a/signer/core/auditlog.go +++ b/signer/core/auditlog.go @@ -22,11 +22,11 @@ import ( "log/slog" "os" - "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/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/internal/ethapi" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/signer/core/apitypes" ) type AuditLogger struct { diff --git a/signer/core/cliui.go b/signer/core/cliui.go index e04077865d..ed37c1d38d 100644 --- a/signer/core/cliui.go +++ b/signer/core/cliui.go @@ -25,10 +25,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/YehorDudukin/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/console/prompt" + "github.com/YehorDudukin/go-ethereum/internal/ethapi" + "github.com/YehorDudukin/go-ethereum/log" ) type CommandlineUI struct { diff --git a/signer/core/gnosis_safe.go b/signer/core/gnosis_safe.go index 01724e5383..bcc153314b 100644 --- a/signer/core/gnosis_safe.go +++ b/signer/core/gnosis_safe.go @@ -20,10 +20,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/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/common/math" + "github.com/YehorDudukin/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 c62b513145..77039506ab 100644 --- a/signer/core/signed_data.go +++ b/signer/core/signed_data.go @@ -23,14 +23,14 @@ import ( "fmt" "mime" - "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/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/YehorDudukin/go-ethereum/accounts" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/consensus/clique" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/rlp" + "github.com/YehorDudukin/go-ethereum/signer/core/apitypes" ) // sign receives a request and produces a signature diff --git a/signer/core/signed_data_test.go b/signer/core/signed_data_test.go index 001f6b6838..044abbe049 100644 --- a/signer/core/signed_data_test.go +++ b/signer/core/signed_data_test.go @@ -27,13 +27,13 @@ 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/ethereum/go-ethereum/signer/core/apitypes" + "github.com/YehorDudukin/go-ethereum/accounts/keystore" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/common/math" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/signer/core" + "github.com/YehorDudukin/go-ethereum/signer/core/apitypes" ) var typesStandard = apitypes.Types{ diff --git a/signer/core/stdioui.go b/signer/core/stdioui.go index a0ce684417..7f2bb4fa81 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/YehorDudukin/go-ethereum/internal/ethapi" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/rpc" ) type StdIOUI struct { diff --git a/signer/core/uiapi.go b/signer/core/uiapi.go index 2f511c7e19..589f3dadc4 100644 --- a/signer/core/uiapi.go +++ b/signer/core/uiapi.go @@ -24,11 +24,11 @@ import ( "math/big" "os" - "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/YehorDudukin/go-ethereum/accounts" + "github.com/YehorDudukin/go-ethereum/accounts/keystore" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/math" + "github.com/YehorDudukin/go-ethereum/crypto" ) // UIServerAPI 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 bdfbd05a1e..b2499653a4 100644 --- a/signer/fourbyte/abi.go +++ b/signer/fourbyte/abi.go @@ -22,8 +22,8 @@ import ( "fmt" "strings" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/accounts/abi" + "github.com/YehorDudukin/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 9656732dff..71933d7e00 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/YehorDudukin/go-ethereum/accounts/abi" + "github.com/YehorDudukin/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 a3dc3b5117..bdd7f991e2 100644 --- a/signer/fourbyte/fourbyte_test.go +++ b/signer/fourbyte/fourbyte_test.go @@ -21,8 +21,8 @@ import ( "fmt" "testing" - "github.com/ethereum/go-ethereum/accounts/abi" - "github.com/ethereum/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/accounts/abi" + "github.com/YehorDudukin/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 8bff011925..6baec65445 100644 --- a/signer/fourbyte/validation.go +++ b/signer/fourbyte/validation.go @@ -21,8 +21,8 @@ import ( "errors" "fmt" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/signer/core/apitypes" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/signer/core/apitypes" ) // ValidateTransaction does a number of checks on the supplied transaction, and @@ -53,7 +53,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/YehorDudukin/go-ethereum/issues/16106. if len(data) == 0 { // Prevent sending ether into black hole (show stopper) if tx.Value.ToInt().Sign() > 0 { diff --git a/signer/fourbyte/validation_test.go b/signer/fourbyte/validation_test.go index 74fed9fe01..3d44c5bd80 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/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/hexutil" + "github.com/YehorDudukin/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 c9921e57a9..0d5c6c50ea 100644 --- a/signer/rules/rules.go +++ b/signer/rules/rules.go @@ -23,12 +23,12 @@ import ( "os" "strings" + "github.com/YehorDudukin/go-ethereum/internal/ethapi" + "github.com/YehorDudukin/go-ethereum/internal/jsre/deps" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/signer/core" + "github.com/YehorDudukin/go-ethereum/signer/storage" "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" ) // consoleOutput is an override for the console.log and console.error methods to diff --git a/signer/rules/rules_test.go b/signer/rules/rules_test.go index d27de22b29..cd0c716b9f 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/YehorDudukin/go-ethereum/accounts" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/internal/ethapi" + "github.com/YehorDudukin/go-ethereum/signer/core" + "github.com/YehorDudukin/go-ethereum/signer/core/apitypes" + "github.com/YehorDudukin/go-ethereum/signer/storage" ) const JS = ` diff --git a/signer/storage/aes_gcm_storage.go b/signer/storage/aes_gcm_storage.go index 928d643dd6..cdbadbee81 100644 --- a/signer/storage/aes_gcm_storage.go +++ b/signer/storage/aes_gcm_storage.go @@ -24,7 +24,7 @@ import ( "io" "os" - "github.com/ethereum/go-ethereum/log" + "github.com/YehorDudukin/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 b895269f95..2bac5ae6b2 100644 --- a/signer/storage/aes_gcm_storage_test.go +++ b/signer/storage/aes_gcm_storage_test.go @@ -24,8 +24,8 @@ import ( "os" "testing" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/log" "github.com/mattn/go-colorable" ) diff --git a/tests/block_test.go b/tests/block_test.go index f146e4ee6a..90de3b2318 100644 --- a/tests/block_test.go +++ b/tests/block_test.go @@ -20,8 +20,8 @@ import ( "math/rand" "testing" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/rawdb" ) func TestBlockchain(t *testing.T) { diff --git a/tests/block_test_util.go b/tests/block_test_util.go index 77bf945e40..fcc92f8535 100644 --- a/tests/block_test_util.go +++ b/tests/block_test_util.go @@ -27,23 +27,23 @@ import ( "os" "reflect" - "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/beacon" - "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/tracing" - "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/params" - "github.com/ethereum/go-ethereum/rlp" - "github.com/ethereum/go-ethereum/triedb" - "github.com/ethereum/go-ethereum/triedb/hashdb" - "github.com/ethereum/go-ethereum/triedb/pathdb" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/common/math" + "github.com/YehorDudukin/go-ethereum/consensus/beacon" + "github.com/YehorDudukin/go-ethereum/consensus/ethash" + "github.com/YehorDudukin/go-ethereum/core" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/core/state" + "github.com/YehorDudukin/go-ethereum/core/tracing" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/core/vm" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/rlp" + "github.com/YehorDudukin/go-ethereum/triedb" + "github.com/YehorDudukin/go-ethereum/triedb/hashdb" + "github.com/YehorDudukin/go-ethereum/triedb/pathdb" ) // A BlockTest checks handling of entire blocks. diff --git a/tests/difficulty_test.go b/tests/difficulty_test.go index 74ac28363b..ce843e9bfc 100644 --- a/tests/difficulty_test.go +++ b/tests/difficulty_test.go @@ -20,7 +20,7 @@ import ( "math/big" "testing" - "github.com/ethereum/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/params" ) var ( diff --git a/tests/difficulty_test_util.go b/tests/difficulty_test_util.go index 62b978f9ef..00124e8c61 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/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/math" + "github.com/YehorDudukin/go-ethereum/consensus/ethash" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/params" ) //go:generate go run github.com/fjl/gencodec -type DifficultyTest -field-override difficultyTestMarshaling -out gen_difficultytest.go diff --git a/tests/fuzzers/bls12381/bls12381_fuzz.go b/tests/fuzzers/bls12381/bls12381_fuzz.go index a17c128b7f..8ffc5bbd61 100644 --- a/tests/fuzzers/bls12381/bls12381_fuzz.go +++ b/tests/fuzzers/bls12381/bls12381_fuzz.go @@ -26,11 +26,11 @@ import ( "io" "math/big" + "github.com/YehorDudukin/go-ethereum/common" "github.com/consensys/gnark-crypto/ecc" 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/common" blst "github.com/supranational/blst/bindings/go" ) diff --git a/tests/fuzzers/bls12381/precompile_fuzzer.go b/tests/fuzzers/bls12381/precompile_fuzzer.go index 33b2ca7988..e9b0730654 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/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/vm" ) const ( diff --git a/tests/fuzzers/bn256/bn256_fuzz.go b/tests/fuzzers/bn256/bn256_fuzz.go index 4521f6b0db..e2adb87285 100644 --- a/tests/fuzzers/bn256/bn256_fuzz.go +++ b/tests/fuzzers/bn256/bn256_fuzz.go @@ -22,9 +22,9 @@ import ( "io" "math/big" - cloudflare "github.com/ethereum/go-ethereum/crypto/bn256/cloudflare" - gnark "github.com/ethereum/go-ethereum/crypto/bn256/gnark" - google "github.com/ethereum/go-ethereum/crypto/bn256/google" + cloudflare "github.com/YehorDudukin/go-ethereum/crypto/bn256/cloudflare" + gnark "github.com/YehorDudukin/go-ethereum/crypto/bn256/gnark" + google "github.com/YehorDudukin/go-ethereum/crypto/bn256/google" ) func getG1Points(input io.Reader) (*cloudflare.G1, *google.G1, *gnark.G1) { diff --git a/tests/fuzzers/difficulty/difficulty-fuzz.go b/tests/fuzzers/difficulty/difficulty-fuzz.go index fbbd7f6876..c5d4b8d56b 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/YehorDudukin/go-ethereum/consensus/ethash" + "github.com/YehorDudukin/go-ethereum/core/types" ) type fuzzer struct { diff --git a/tests/fuzzers/rangeproof/rangeproof-fuzzer.go b/tests/fuzzers/rangeproof/rangeproof-fuzzer.go index 4d94d31c0c..294b4e4c09 100644 --- a/tests/fuzzers/rangeproof/rangeproof-fuzzer.go +++ b/tests/fuzzers/rangeproof/rangeproof-fuzzer.go @@ -23,11 +23,11 @@ import ( "io" "slices" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/rawdb" - "github.com/ethereum/go-ethereum/ethdb/memorydb" - "github.com/ethereum/go-ethereum/trie" - "github.com/ethereum/go-ethereum/triedb" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/ethdb/memorydb" + "github.com/YehorDudukin/go-ethereum/trie" + "github.com/YehorDudukin/go-ethereum/triedb" ) type kv struct { diff --git a/tests/fuzzers/secp256k1/secp_test.go b/tests/fuzzers/secp256k1/secp_test.go index 3345a66a67..ae0832a03b 100644 --- a/tests/fuzzers/secp256k1/secp_test.go +++ b/tests/fuzzers/secp256k1/secp_test.go @@ -20,8 +20,8 @@ import ( "fmt" "testing" + "github.com/YehorDudukin/go-ethereum/crypto/secp256k1" dcred_secp256k1 "github.com/decred/dcrd/dcrec/secp256k1/v4" - "github.com/ethereum/go-ethereum/crypto/secp256k1" ) func TestFuzzer(t *testing.T) { diff --git a/tests/fuzzers/txfetcher/txfetcher_fuzzer.go b/tests/fuzzers/txfetcher/txfetcher_fuzzer.go index c136253a62..e70bc20e16 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/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/mclock" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/eth/fetcher" ) var ( diff --git a/tests/gen_btheader.go b/tests/gen_btheader.go index 80ad89e03b..35bc119679 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/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/common/math" + "github.com/YehorDudukin/go-ethereum/core/types" ) var _ = (*btHeaderMarshaling)(nil) diff --git a/tests/gen_difficultytest.go b/tests/gen_difficultytest.go index cd15ae31b5..4125c81ea4 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/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/math" ) var _ = (*difficultyTestMarshaling)(nil) diff --git a/tests/gen_stauthorization.go b/tests/gen_stauthorization.go index 4f2c50bd9f..a5c293ea34 100644 --- a/tests/gen_stauthorization.go +++ b/tests/gen_stauthorization.go @@ -7,8 +7,8 @@ import ( "errors" "math/big" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/common/math" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/math" ) var _ = (*stAuthorizationMarshaling)(nil) diff --git a/tests/gen_stenv.go b/tests/gen_stenv.go index a5bd0d5fcb..eac1aac0fc 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/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/math" ) var _ = (*stEnvMarshaling)(nil) diff --git a/tests/gen_sttransaction.go b/tests/gen_sttransaction.go index b25ce76166..ac905901a1 100644 --- a/tests/gen_sttransaction.go +++ b/tests/gen_sttransaction.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/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/common/math" + "github.com/YehorDudukin/go-ethereum/core/types" ) var _ = (*stTransactionMarshaling)(nil) diff --git a/tests/init.go b/tests/init.go index a8bc424fa2..ce05c2d22b 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/YehorDudukin/go-ethereum/params" ) func u64(val uint64) *uint64 { return &val } diff --git a/tests/init_test.go b/tests/init_test.go index b933c9808c..18544159fb 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/YehorDudukin/go-ethereum/params" ) var ( diff --git a/tests/rlp_test_util.go b/tests/rlp_test_util.go index e4bd5450a8..352f618586 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/YehorDudukin/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 301bc3a7a9..b3c68dc3c5 100644 --- a/tests/state_test.go +++ b/tests/state_test.go @@ -29,12 +29,12 @@ import ( "testing" "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/core/vm" - "github.com/ethereum/go-ethereum/eth/tracers/logger" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/core/vm" + "github.com/YehorDudukin/go-ethereum/eth/tracers/logger" "github.com/holiman/uint256" ) diff --git a/tests/state_test_util.go b/tests/state_test_util.go index a22e470ad8..b169272545 100644 --- a/tests/state_test_util.go +++ b/tests/state_test_util.go @@ -25,25 +25,25 @@ 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/consensus" - "github.com/ethereum/go-ethereum/consensus/misc/eip4844" - "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/tracing" - "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/triedb" - "github.com/ethereum/go-ethereum/triedb/hashdb" - "github.com/ethereum/go-ethereum/triedb/pathdb" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/common/math" + "github.com/YehorDudukin/go-ethereum/consensus" + "github.com/YehorDudukin/go-ethereum/consensus/misc/eip4844" + "github.com/YehorDudukin/go-ethereum/core" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/core/state" + "github.com/YehorDudukin/go-ethereum/core/state/snapshot" + "github.com/YehorDudukin/go-ethereum/core/tracing" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/core/vm" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/ethdb" + "github.com/YehorDudukin/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/rlp" + "github.com/YehorDudukin/go-ethereum/triedb" + "github.com/YehorDudukin/go-ethereum/triedb/hashdb" + "github.com/YehorDudukin/go-ethereum/triedb/pathdb" "github.com/holiman/uint256" "golang.org/x/crypto/sha3" ) diff --git a/tests/transaction_test.go b/tests/transaction_test.go index 6260df0f3f..05d12bf8a0 100644 --- a/tests/transaction_test.go +++ b/tests/transaction_test.go @@ -19,7 +19,7 @@ package tests import ( "testing" - "github.com/ethereum/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common" ) func TestTransaction(t *testing.T) { diff --git a/tests/transaction_test_util.go b/tests/transaction_test_util.go index b2efabe82e..69b642c835 100644 --- a/tests/transaction_test_util.go +++ b/tests/transaction_test_util.go @@ -20,12 +20,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" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/common/math" + "github.com/YehorDudukin/go-ethereum/core" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/params" ) // TransactionTest checks RLP decoding and sender derivation of transactions. diff --git a/trie/committer.go b/trie/committer.go index 0939a07abb..e86f2b15ec 100644 --- a/trie/committer.go +++ b/trie/committer.go @@ -20,8 +20,8 @@ import ( "fmt" "sync" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/trie/trienode" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/trie/trienode" ) // committer is the tool used for the trie Commit operation. The committer will diff --git a/trie/database_test.go b/trie/database_test.go index 729d9f699b..7aace0dd0d 100644 --- a/trie/database_test.go +++ b/trie/database_test.go @@ -17,12 +17,12 @@ package trie import ( - "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/trienode" - "github.com/ethereum/go-ethereum/triedb/database" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/ethdb" + "github.com/YehorDudukin/go-ethereum/trie/trienode" + "github.com/YehorDudukin/go-ethereum/triedb/database" ) // testReader implements database.Reader interface, providing function to diff --git a/trie/errors.go b/trie/errors.go index ce5cb13423..356e2bb365 100644 --- a/trie/errors.go +++ b/trie/errors.go @@ -20,7 +20,7 @@ import ( "errors" "fmt" - "github.com/ethereum/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common" ) // ErrCommitted is returned when an already committed trie is requested for usage. diff --git a/trie/hasher.go b/trie/hasher.go index 614640ae3a..860341fc45 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/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/rlp" ) // hasher is a type used for the trie Hash operation. A hasher has some diff --git a/trie/iterator.go b/trie/iterator.go index fa01611063..e17e8a0075 100644 --- a/trie/iterator.go +++ b/trie/iterator.go @@ -21,8 +21,8 @@ import ( "container/heap" "errors" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/types" ) // NodeResolver is used for looking up trie nodes before reaching into the real diff --git a/trie/iterator_test.go b/trie/iterator_test.go index 74a1aa378c..cf34246f20 100644 --- a/trie/iterator_test.go +++ b/trie/iterator_test.go @@ -22,11 +22,11 @@ import ( "math/rand" "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/trie/trienode" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/trie/trienode" ) func TestEmptyIterator(t *testing.T) { diff --git a/trie/node.go b/trie/node.go index 96f077ebbb..1d2749a425 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/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/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_enc.go b/trie/node_enc.go index c95587eeab..e66cf7c6b6 100644 --- a/trie/node_enc.go +++ b/trie/node_enc.go @@ -17,7 +17,7 @@ package trie import ( - "github.com/ethereum/go-ethereum/rlp" + "github.com/YehorDudukin/go-ethereum/rlp" ) func nodeToBytes(n node) []byte { diff --git a/trie/node_test.go b/trie/node_test.go index 9b8b33748f..6cbd27561e 100644 --- a/trie/node_test.go +++ b/trie/node_test.go @@ -20,8 +20,8 @@ import ( "bytes" "testing" - "github.com/ethereum/go-ethereum/crypto" - "github.com/ethereum/go-ethereum/rlp" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/rlp" ) func newTestFullNode(v []byte) []interface{} { @@ -96,7 +96,7 @@ func TestDecodeFullNode(t *testing.T) { // goos: darwin // goarch: arm64 -// pkg: github.com/ethereum/go-ethereum/trie +// pkg: github.com/YehorDudukin/go-ethereum/trie // BenchmarkEncodeShortNode // BenchmarkEncodeShortNode-8 16878850 70.81 ns/op 48 B/op 1 allocs/op func BenchmarkEncodeShortNode(b *testing.B) { @@ -114,7 +114,7 @@ func BenchmarkEncodeShortNode(b *testing.B) { // goos: darwin // goarch: arm64 -// pkg: github.com/ethereum/go-ethereum/trie +// pkg: github.com/YehorDudukin/go-ethereum/trie // BenchmarkEncodeFullNode // BenchmarkEncodeFullNode-8 4323273 284.4 ns/op 576 B/op 1 allocs/op func BenchmarkEncodeFullNode(b *testing.B) { @@ -132,7 +132,7 @@ func BenchmarkEncodeFullNode(b *testing.B) { // goos: darwin // goarch: arm64 -// pkg: github.com/ethereum/go-ethereum/trie +// pkg: github.com/YehorDudukin/go-ethereum/trie // BenchmarkDecodeShortNode // BenchmarkDecodeShortNode-8 7925638 151.0 ns/op 157 B/op 4 allocs/op func BenchmarkDecodeShortNode(b *testing.B) { @@ -153,7 +153,7 @@ func BenchmarkDecodeShortNode(b *testing.B) { // goos: darwin // goarch: arm64 -// pkg: github.com/ethereum/go-ethereum/trie +// pkg: github.com/YehorDudukin/go-ethereum/trie // BenchmarkDecodeShortNodeUnsafe // BenchmarkDecodeShortNodeUnsafe-8 9027476 128.6 ns/op 109 B/op 3 allocs/op func BenchmarkDecodeShortNodeUnsafe(b *testing.B) { @@ -174,7 +174,7 @@ func BenchmarkDecodeShortNodeUnsafe(b *testing.B) { // goos: darwin // goarch: arm64 -// pkg: github.com/ethereum/go-ethereum/trie +// pkg: github.com/YehorDudukin/go-ethereum/trie // BenchmarkDecodeFullNode // BenchmarkDecodeFullNode-8 1597462 761.9 ns/op 1280 B/op 18 allocs/op func BenchmarkDecodeFullNode(b *testing.B) { @@ -195,7 +195,7 @@ func BenchmarkDecodeFullNode(b *testing.B) { // goos: darwin // goarch: arm64 -// pkg: github.com/ethereum/go-ethereum/trie +// pkg: github.com/YehorDudukin/go-ethereum/trie // BenchmarkDecodeFullNodeUnsafe // BenchmarkDecodeFullNodeUnsafe-8 1789070 687.1 ns/op 704 B/op 17 allocs/op func BenchmarkDecodeFullNodeUnsafe(b *testing.B) { diff --git a/trie/proof.go b/trie/proof.go index 2e527348bf..c0af4d8946 100644 --- a/trie/proof.go +++ b/trie/proof.go @@ -21,9 +21,9 @@ import ( "errors" "fmt" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/ethdb" - "github.com/ethereum/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/ethdb" + "github.com/YehorDudukin/go-ethereum/log" ) // 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 fab3a97650..7da856b623 100644 --- a/trie/proof_test.go +++ b/trie/proof_test.go @@ -25,10 +25,10 @@ import ( "slices" "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/memorydb" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/ethdb/memorydb" ) // Prng is a pseudo random number generator seeded by strong randomness. diff --git a/trie/secure_trie.go b/trie/secure_trie.go index 45d5fd63e7..d91f51bd10 100644 --- a/trie/secure_trie.go +++ b/trie/secure_trie.go @@ -17,11 +17,11 @@ package trie import ( - "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/trienode" - "github.com/ethereum/go-ethereum/triedb/database" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/rlp" + "github.com/YehorDudukin/go-ethereum/trie/trienode" + "github.com/YehorDudukin/go-ethereum/triedb/database" ) // preimageStore wraps the methods of a backing store for reading and writing diff --git a/trie/secure_trie_test.go b/trie/secure_trie_test.go index 59958d33f4..8b851b5dae 100644 --- a/trie/secure_trie_test.go +++ b/trie/secure_trie_test.go @@ -23,11 +23,11 @@ import ( "sync" "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/trie/trienode" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/trie/trienode" ) func newEmptySecure() *StateTrie { diff --git a/trie/stacktrie.go b/trie/stacktrie.go index 2b7366c3c5..421cc87e99 100644 --- a/trie/stacktrie.go +++ b/trie/stacktrie.go @@ -21,8 +21,8 @@ import ( "errors" "sync" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/types" ) var ( diff --git a/trie/stacktrie_fuzzer_test.go b/trie/stacktrie_fuzzer_test.go index 7ff6ef0235..ad4dcfd28f 100644 --- a/trie/stacktrie_fuzzer_test.go +++ b/trie/stacktrie_fuzzer_test.go @@ -23,11 +23,11 @@ import ( "slices" "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/trie/trienode" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/trie/trienode" ) func FuzzStackTrie(f *testing.F) { diff --git a/trie/stacktrie_test.go b/trie/stacktrie_test.go index 7e342e64bf..2f94af8e15 100644 --- a/trie/stacktrie_test.go +++ b/trie/stacktrie_test.go @@ -22,9 +22,9 @@ 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/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/crypto" "github.com/stretchr/testify/assert" ) diff --git a/trie/sync.go b/trie/sync.go index 3b7caae5b1..085daff7a7 100644 --- a/trie/sync.go +++ b/trie/sync.go @@ -21,15 +21,15 @@ import ( "fmt" "sync" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/common/hexutil" - "github.com/ethereum/go-ethereum/common/prque" - "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/log" - "github.com/ethereum/go-ethereum/metrics" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/common/prque" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/ethdb" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/metrics" ) // ErrNotRequested is returned by the trie sync when it's requested to process a diff --git a/trie/sync_test.go b/trie/sync_test.go index 2ff02576d4..56752139b8 100644 --- a/trie/sync_test.go +++ b/trie/sync_test.go @@ -23,13 +23,13 @@ import ( "math/rand" "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/trie/trienode" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/ethdb" + "github.com/YehorDudukin/go-ethereum/ethdb/memorydb" + "github.com/YehorDudukin/go-ethereum/trie/trienode" ) // makeTestTrie create a sample test trie to test node-wise reconstruction. diff --git a/trie/tracer.go b/trie/tracer.go index 90b9666f0b..3b4138c44c 100644 --- a/trie/tracer.go +++ b/trie/tracer.go @@ -19,7 +19,7 @@ package trie import ( "maps" - "github.com/ethereum/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common" ) // tracer tracks the changes of trie nodes. During the trie operations, diff --git a/trie/tracer_test.go b/trie/tracer_test.go index 852a706021..89cd673bb5 100644 --- a/trie/tracer_test.go +++ b/trie/tracer_test.go @@ -20,10 +20,10 @@ import ( "bytes" "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/trie/trienode" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/trie/trienode" ) var ( diff --git a/trie/trie.go b/trie/trie.go index fdb4da9be4..9338eb6972 100644 --- a/trie/trie.go +++ b/trie/trie.go @@ -22,11 +22,11 @@ import ( "errors" "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/trie/trienode" - "github.com/ethereum/go-ethereum/triedb/database" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/trie/trienode" + "github.com/YehorDudukin/go-ethereum/triedb/database" ) // Trie represents a Merkle Patricia Trie. Use New to create a trie that operates diff --git a/trie/trie_id.go b/trie/trie_id.go index 7ac371b53e..9f0ff2e95b 100644 --- a/trie/trie_id.go +++ b/trie/trie_id.go @@ -16,7 +16,7 @@ package trie -import "github.com/ethereum/go-ethereum/common" +import "github.com/YehorDudukin/go-ethereum/common" // ID is the identifier for uniquely identifying a trie. type ID struct { diff --git a/trie/trie_reader.go b/trie/trie_reader.go index a42cdb0cf9..63cb1c7e6c 100644 --- a/trie/trie_reader.go +++ b/trie/trie_reader.go @@ -17,9 +17,9 @@ package trie import ( - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/triedb/database" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/triedb/database" ) // trieReader is a wrapper of the underlying node reader. It's not safe diff --git a/trie/trie_test.go b/trie/trie_test.go index 54d1b083d8..8ea6e5235b 100644 --- a/trie/trie_test.go +++ b/trie/trie_test.go @@ -30,15 +30,15 @@ import ( "testing" "testing/quick" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/ethdb" + "github.com/YehorDudukin/go-ethereum/internal/testrand" + "github.com/YehorDudukin/go-ethereum/rlp" + "github.com/YehorDudukin/go-ethereum/trie/trienode" "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/types" - "github.com/ethereum/go-ethereum/crypto" - "github.com/ethereum/go-ethereum/ethdb" - "github.com/ethereum/go-ethereum/internal/testrand" - "github.com/ethereum/go-ethereum/rlp" - "github.com/ethereum/go-ethereum/trie/trienode" "github.com/holiman/uint256" "golang.org/x/crypto/sha3" ) diff --git a/trie/trienode/node.go b/trie/trienode/node.go index b09ec66374..3f4d41fda3 100644 --- a/trie/trienode/node.go +++ b/trie/trienode/node.go @@ -22,7 +22,7 @@ import ( "sort" "strings" - "github.com/ethereum/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common" ) // Node is a wrapper which contains the encoded blob of the trie node and its diff --git a/trie/trienode/node_test.go b/trie/trienode/node_test.go index bcb3a2202b..537adc5930 100644 --- a/trie/trienode/node_test.go +++ b/trie/trienode/node_test.go @@ -20,8 +20,8 @@ import ( "crypto/rand" "testing" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/crypto" ) func BenchmarkMerge(b *testing.B) { diff --git a/trie/trienode/proof.go b/trie/trienode/proof.go index 01a07c05b0..aaa5949fcf 100644 --- a/trie/trienode/proof.go +++ b/trie/trienode/proof.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/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/ethdb" + "github.com/YehorDudukin/go-ethereum/rlp" ) // ProofSet stores a set of trie nodes. It implements trie.Database and can also diff --git a/trie/utils/verkle.go b/trie/utils/verkle.go index dea210c046..1bbf215acc 100644 --- a/trie/utils/verkle.go +++ b/trie/utils/verkle.go @@ -20,9 +20,9 @@ import ( "encoding/binary" "sync" + "github.com/YehorDudukin/go-ethereum/common/lru" + "github.com/YehorDudukin/go-ethereum/metrics" "github.com/crate-crypto/go-ipa/bandersnatch/fr" - "github.com/ethereum/go-ethereum/common/lru" - "github.com/ethereum/go-ethereum/metrics" "github.com/ethereum/go-verkle" "github.com/holiman/uint256" ) diff --git a/trie/utils/verkle_test.go b/trie/utils/verkle_test.go index 44c67ba03e..bbb93b93f6 100644 --- a/trie/utils/verkle_test.go +++ b/trie/utils/verkle_test.go @@ -55,7 +55,7 @@ func TestTreeKey(t *testing.T) { // goos: darwin // goarch: amd64 -// pkg: github.com/ethereum/go-ethereum/trie/utils +// pkg: github.com/YehorDudukin/go-ethereum/trie/utils // cpu: VirtualApple @ 2.50GHz // BenchmarkTreeKey // BenchmarkTreeKey-8 398731 2961 ns/op 32 B/op 1 allocs/op @@ -73,7 +73,7 @@ func BenchmarkTreeKey(b *testing.B) { // goos: darwin // goarch: amd64 -// pkg: github.com/ethereum/go-ethereum/trie/utils +// pkg: github.com/YehorDudukin/go-ethereum/trie/utils // cpu: VirtualApple @ 2.50GHz // BenchmarkTreeKeyWithEvaluation // BenchmarkTreeKeyWithEvaluation-8 513855 2324 ns/op 32 B/op 1 allocs/op @@ -93,7 +93,7 @@ func BenchmarkTreeKeyWithEvaluation(b *testing.B) { // goos: darwin // goarch: amd64 -// pkg: github.com/ethereum/go-ethereum/trie/utils +// pkg: github.com/YehorDudukin/go-ethereum/trie/utils // cpu: VirtualApple @ 2.50GHz // BenchmarkStorageKey // BenchmarkStorageKey-8 230516 4584 ns/op 96 B/op 3 allocs/op @@ -111,7 +111,7 @@ func BenchmarkStorageKey(b *testing.B) { // goos: darwin // goarch: amd64 -// pkg: github.com/ethereum/go-ethereum/trie/utils +// pkg: github.com/YehorDudukin/go-ethereum/trie/utils // cpu: VirtualApple @ 2.50GHz // BenchmarkStorageKeyWithEvaluation // BenchmarkStorageKeyWithEvaluation-8 320125 3753 ns/op 96 B/op 3 allocs/op diff --git a/trie/verkle.go b/trie/verkle.go index 015b8f6590..216d1f807e 100644 --- a/trie/verkle.go +++ b/trie/verkle.go @@ -22,12 +22,12 @@ import ( "errors" "fmt" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" - "github.com/ethereum/go-ethereum/ethdb" - "github.com/ethereum/go-ethereum/trie/trienode" - "github.com/ethereum/go-ethereum/trie/utils" - "github.com/ethereum/go-ethereum/triedb/database" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/ethdb" + "github.com/YehorDudukin/go-ethereum/trie/trienode" + "github.com/YehorDudukin/go-ethereum/trie/utils" + "github.com/YehorDudukin/go-ethereum/triedb/database" "github.com/ethereum/go-verkle" "github.com/holiman/uint256" ) diff --git a/trie/verkle_test.go b/trie/verkle_test.go index f31ab02df9..146dd7fc56 100644 --- a/trie/verkle_test.go +++ b/trie/verkle_test.go @@ -21,11 +21,11 @@ import ( "reflect" "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/trie/utils" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/trie/utils" "github.com/holiman/uint256" ) diff --git a/triedb/database.go b/triedb/database.go index f8ccc5ad33..2796d2ac5f 100644 --- a/triedb/database.go +++ b/triedb/database.go @@ -19,14 +19,14 @@ package triedb import ( "errors" - "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/trie/trienode" - "github.com/ethereum/go-ethereum/triedb/database" - "github.com/ethereum/go-ethereum/triedb/hashdb" - "github.com/ethereum/go-ethereum/triedb/pathdb" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/ethdb" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/trie/trienode" + "github.com/YehorDudukin/go-ethereum/triedb/database" + "github.com/YehorDudukin/go-ethereum/triedb/hashdb" + "github.com/YehorDudukin/go-ethereum/triedb/pathdb" ) // Config defines all necessary options for database. diff --git a/triedb/database/database.go b/triedb/database/database.go index 8c61ea0293..dd53201900 100644 --- a/triedb/database/database.go +++ b/triedb/database/database.go @@ -17,8 +17,8 @@ package database import ( - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/types" ) // NodeReader wraps the Node method of a backing trie reader. diff --git a/triedb/hashdb/database.go b/triedb/hashdb/database.go index 38392aa519..c3e76d29ed 100644 --- a/triedb/hashdb/database.go +++ b/triedb/hashdb/database.go @@ -24,16 +24,16 @@ import ( "time" "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/log" - "github.com/ethereum/go-ethereum/metrics" - "github.com/ethereum/go-ethereum/rlp" - "github.com/ethereum/go-ethereum/trie" - "github.com/ethereum/go-ethereum/trie/trienode" - "github.com/ethereum/go-ethereum/triedb/database" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/ethdb" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/metrics" + "github.com/YehorDudukin/go-ethereum/rlp" + "github.com/YehorDudukin/go-ethereum/trie" + "github.com/YehorDudukin/go-ethereum/trie/trienode" + "github.com/YehorDudukin/go-ethereum/triedb/database" ) var ( diff --git a/triedb/history.go b/triedb/history.go index f663cdd7c2..3c19f8a6c1 100644 --- a/triedb/history.go +++ b/triedb/history.go @@ -19,8 +19,8 @@ package triedb import ( "errors" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/triedb/pathdb" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/triedb/pathdb" ) // AccountHistory inspects the account history within the specified range. diff --git a/triedb/pathdb/buffer.go b/triedb/pathdb/buffer.go index dea8875bda..8b3fe6ab1f 100644 --- a/triedb/pathdb/buffer.go +++ b/triedb/pathdb/buffer.go @@ -21,11 +21,11 @@ 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/trie/trienode" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/ethdb" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/trie/trienode" ) // buffer is a collection of modified states along with the modified trie nodes. diff --git a/triedb/pathdb/database.go b/triedb/pathdb/database.go index d48850c102..3899e6f9ae 100644 --- a/triedb/pathdb/database.go +++ b/triedb/pathdb/database.go @@ -23,14 +23,14 @@ import ( "sync" "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/log" - "github.com/ethereum/go-ethereum/params" - "github.com/ethereum/go-ethereum/trie/trienode" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/ethdb" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/params" + "github.com/YehorDudukin/go-ethereum/trie/trienode" "github.com/ethereum/go-verkle" ) diff --git a/triedb/pathdb/database_test.go b/triedb/pathdb/database_test.go index c85d7832ee..d553f77c17 100644 --- a/triedb/pathdb/database_test.go +++ b/triedb/pathdb/database_test.go @@ -23,14 +23,14 @@ import ( "math/rand" "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/internal/testrand" - "github.com/ethereum/go-ethereum/rlp" - "github.com/ethereum/go-ethereum/trie" - "github.com/ethereum/go-ethereum/trie/trienode" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/internal/testrand" + "github.com/YehorDudukin/go-ethereum/rlp" + "github.com/YehorDudukin/go-ethereum/trie" + "github.com/YehorDudukin/go-ethereum/trie/trienode" "github.com/holiman/uint256" ) diff --git a/triedb/pathdb/difflayer.go b/triedb/pathdb/difflayer.go index 2e1d83c74a..23c0d4b6c9 100644 --- a/triedb/pathdb/difflayer.go +++ b/triedb/pathdb/difflayer.go @@ -20,8 +20,8 @@ import ( "fmt" "sync" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/log" ) // diffLayer represents a collection of modifications made to the in-memory tries diff --git a/triedb/pathdb/difflayer_test.go b/triedb/pathdb/difflayer_test.go index 83ed833486..287fbfd410 100644 --- a/triedb/pathdb/difflayer_test.go +++ b/triedb/pathdb/difflayer_test.go @@ -20,11 +20,11 @@ import ( "bytes" "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/internal/testrand" - "github.com/ethereum/go-ethereum/trie/trienode" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/internal/testrand" + "github.com/YehorDudukin/go-ethereum/trie/trienode" ) func emptyLayer() *diskLayer { @@ -36,21 +36,21 @@ func emptyLayer() *diskLayer { // goos: darwin // goarch: arm64 -// pkg: github.com/ethereum/go-ethereum/trie +// pkg: github.com/YehorDudukin/go-ethereum/trie // BenchmarkSearch128Layers // BenchmarkSearch128Layers-8 243826 4755 ns/op func BenchmarkSearch128Layers(b *testing.B) { benchmarkSearch(b, 0, 128) } // goos: darwin // goarch: arm64 -// pkg: github.com/ethereum/go-ethereum/trie +// pkg: github.com/YehorDudukin/go-ethereum/trie // BenchmarkSearch512Layers // BenchmarkSearch512Layers-8 49686 24256 ns/op func BenchmarkSearch512Layers(b *testing.B) { benchmarkSearch(b, 0, 512) } // goos: darwin // goarch: arm64 -// pkg: github.com/ethereum/go-ethereum/trie +// pkg: github.com/YehorDudukin/go-ethereum/trie // BenchmarkSearch1Layer // BenchmarkSearch1Layer-8 14062725 88.40 ns/op func BenchmarkSearch1Layer(b *testing.B) { benchmarkSearch(b, 127, 128) } @@ -102,7 +102,7 @@ func benchmarkSearch(b *testing.B, depth int, total int) { // goos: darwin // goarch: arm64 -// pkg: github.com/ethereum/go-ethereum/trie +// pkg: github.com/YehorDudukin/go-ethereum/trie // BenchmarkPersist // BenchmarkPersist-8 10 111252975 ns/op func BenchmarkPersist(b *testing.B) { diff --git a/triedb/pathdb/disklayer.go b/triedb/pathdb/disklayer.go index 184f6430a2..790232b123 100644 --- a/triedb/pathdb/disklayer.go +++ b/triedb/pathdb/disklayer.go @@ -22,10 +22,10 @@ import ( "sync" "github.com/VictoriaMetrics/fastcache" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/rawdb" - "github.com/ethereum/go-ethereum/crypto" - "github.com/ethereum/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/log" ) // diskLayer is a low level persistent layer built on top of a key-value store. diff --git a/triedb/pathdb/execute.go b/triedb/pathdb/execute.go index 2400f280a3..cef94c4c47 100644 --- a/triedb/pathdb/execute.go +++ b/triedb/pathdb/execute.go @@ -20,12 +20,12 @@ import ( "errors" "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/ethereum/go-ethereum/trie/trienode" - "github.com/ethereum/go-ethereum/triedb/database" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/rlp" + "github.com/YehorDudukin/go-ethereum/trie" + "github.com/YehorDudukin/go-ethereum/trie/trienode" + "github.com/YehorDudukin/go-ethereum/triedb/database" ) // context wraps all fields for executing state diffs. diff --git a/triedb/pathdb/flush.go b/triedb/pathdb/flush.go index baa0bfb292..84937a0e72 100644 --- a/triedb/pathdb/flush.go +++ b/triedb/pathdb/flush.go @@ -18,10 +18,10 @@ package pathdb import ( "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/trie/trienode" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/ethdb" + "github.com/YehorDudukin/go-ethereum/trie/trienode" ) // nodeCacheKey constructs the unique key of clean cache. The assumption is held diff --git a/triedb/pathdb/history.go b/triedb/pathdb/history.go index c063e45371..aba7f8729c 100644 --- a/triedb/pathdb/history.go +++ b/triedb/pathdb/history.go @@ -25,11 +25,11 @@ import ( "slices" "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/log" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/ethdb" + "github.com/YehorDudukin/go-ethereum/log" ) // State history records the state changes involved in executing a block. The diff --git a/triedb/pathdb/history_inspect.go b/triedb/pathdb/history_inspect.go index 9458e2478b..94f2075f20 100644 --- a/triedb/pathdb/history_inspect.go +++ b/triedb/pathdb/history_inspect.go @@ -20,10 +20,10 @@ import ( "fmt" "time" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/crypto" - "github.com/ethereum/go-ethereum/ethdb" - "github.com/ethereum/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/ethdb" + "github.com/YehorDudukin/go-ethereum/log" ) // HistoryStats wraps the history inspection statistics. diff --git a/triedb/pathdb/history_test.go b/triedb/pathdb/history_test.go index 2928d19d74..c63efc4537 100644 --- a/triedb/pathdb/history_test.go +++ b/triedb/pathdb/history_test.go @@ -22,12 +22,12 @@ import ( "reflect" "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/ethdb" - "github.com/ethereum/go-ethereum/internal/testrand" - "github.com/ethereum/go-ethereum/rlp" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/ethdb" + "github.com/YehorDudukin/go-ethereum/internal/testrand" + "github.com/YehorDudukin/go-ethereum/rlp" ) // randomStateSet generates a random state change set. diff --git a/triedb/pathdb/holdable_iterator.go b/triedb/pathdb/holdable_iterator.go index 1f8e6b7068..9f977ed48b 100644 --- a/triedb/pathdb/holdable_iterator.go +++ b/triedb/pathdb/holdable_iterator.go @@ -17,8 +17,8 @@ package pathdb import ( - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/ethdb" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/ethdb" ) // holdableIterator is a wrapper of underlying database iterator. It extends diff --git a/triedb/pathdb/holdable_iterator_test.go b/triedb/pathdb/holdable_iterator_test.go index 2abc92e154..1a42e93bf6 100644 --- a/triedb/pathdb/holdable_iterator_test.go +++ b/triedb/pathdb/holdable_iterator_test.go @@ -20,10 +20,10 @@ import ( "bytes" "testing" - "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/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/ethdb" + "github.com/YehorDudukin/go-ethereum/ethdb/memorydb" ) func TestIteratorHold(t *testing.T) { diff --git a/triedb/pathdb/iterator.go b/triedb/pathdb/iterator.go index 980f228cf5..98986a9ee5 100644 --- a/triedb/pathdb/iterator.go +++ b/triedb/pathdb/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/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/ethdb" ) // Iterator is an iterator to step over all the accounts or the specific diff --git a/triedb/pathdb/iterator_binary.go b/triedb/pathdb/iterator_binary.go index dec31e8f3f..f6edc55b47 100644 --- a/triedb/pathdb/iterator_binary.go +++ b/triedb/pathdb/iterator_binary.go @@ -19,7 +19,7 @@ package pathdb import ( "bytes" - "github.com/ethereum/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common" ) // binaryIterator is a simplistic iterator to step over the accounts or storage diff --git a/triedb/pathdb/iterator_fast.go b/triedb/pathdb/iterator_fast.go index 966e37a7cb..f31291ae95 100644 --- a/triedb/pathdb/iterator_fast.go +++ b/triedb/pathdb/iterator_fast.go @@ -23,7 +23,7 @@ import ( "slices" "sort" - "github.com/ethereum/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common" ) // weightedIterator is an iterator with an assigned weight. It is used to prioritise diff --git a/triedb/pathdb/iterator_test.go b/triedb/pathdb/iterator_test.go index 3894118034..e5ba777ac4 100644 --- a/triedb/pathdb/iterator_test.go +++ b/triedb/pathdb/iterator_test.go @@ -23,12 +23,12 @@ import ( "math/rand" "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/internal/testrand" - "github.com/ethereum/go-ethereum/rlp" - "github.com/ethereum/go-ethereum/trie/trienode" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/internal/testrand" + "github.com/YehorDudukin/go-ethereum/rlp" + "github.com/YehorDudukin/go-ethereum/trie/trienode" "github.com/holiman/uint256" ) diff --git a/triedb/pathdb/journal.go b/triedb/pathdb/journal.go index 79a7a22e0b..dc50b398fc 100644 --- a/triedb/pathdb/journal.go +++ b/triedb/pathdb/journal.go @@ -23,11 +23,11 @@ import ( "io" "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/log" - "github.com/ethereum/go-ethereum/rlp" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/rlp" ) var ( diff --git a/triedb/pathdb/layertree.go b/triedb/pathdb/layertree.go index 85a5e470e7..012a82f2bf 100644 --- a/triedb/pathdb/layertree.go +++ b/triedb/pathdb/layertree.go @@ -21,8 +21,8 @@ import ( "fmt" "sync" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/trie/trienode" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/trie/trienode" ) // layerTree is a group of state layers identified by the state root. diff --git a/triedb/pathdb/metrics.go b/triedb/pathdb/metrics.go index 45dad6f1ae..23a132e073 100644 --- a/triedb/pathdb/metrics.go +++ b/triedb/pathdb/metrics.go @@ -16,7 +16,7 @@ package pathdb -import "github.com/ethereum/go-ethereum/metrics" +import "github.com/YehorDudukin/go-ethereum/metrics" var ( cleanNodeHitMeter = metrics.NewRegisteredMeter("pathdb/clean/node/hit", nil) diff --git a/triedb/pathdb/nodes.go b/triedb/pathdb/nodes.go index f90bd0f01c..c2b5759d83 100644 --- a/triedb/pathdb/nodes.go +++ b/triedb/pathdb/nodes.go @@ -23,13 +23,13 @@ import ( "maps" "github.com/VictoriaMetrics/fastcache" - "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/log" - "github.com/ethereum/go-ethereum/rlp" - "github.com/ethereum/go-ethereum/trie/trienode" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/crypto" + "github.com/YehorDudukin/go-ethereum/ethdb" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/rlp" + "github.com/YehorDudukin/go-ethereum/trie/trienode" ) // nodeSet represents a collection of modified trie nodes resulting from a state diff --git a/triedb/pathdb/reader.go b/triedb/pathdb/reader.go index 30f75d1058..dacc85d7c4 100644 --- a/triedb/pathdb/reader.go +++ b/triedb/pathdb/reader.go @@ -19,12 +19,12 @@ package pathdb import ( "fmt" - "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/triedb/database" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/common/hexutil" + "github.com/YehorDudukin/go-ethereum/core/types" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/rlp" + "github.com/YehorDudukin/go-ethereum/triedb/database" ) // The types of locations where the node is found. diff --git a/triedb/pathdb/states.go b/triedb/pathdb/states.go index 0a83b2f2cc..695e40d689 100644 --- a/triedb/pathdb/states.go +++ b/triedb/pathdb/states.go @@ -23,11 +23,11 @@ import ( "slices" "sync" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/rawdb" - "github.com/ethereum/go-ethereum/log" - "github.com/ethereum/go-ethereum/metrics" - "github.com/ethereum/go-ethereum/rlp" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/log" + "github.com/YehorDudukin/go-ethereum/metrics" + "github.com/YehorDudukin/go-ethereum/rlp" ) // counter helps in tracking items and their corresponding sizes. diff --git a/triedb/pathdb/states_test.go b/triedb/pathdb/states_test.go index 4d181cc914..9b3d28cc63 100644 --- a/triedb/pathdb/states_test.go +++ b/triedb/pathdb/states_test.go @@ -21,8 +21,8 @@ import ( "reflect" "testing" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/rlp" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/rlp" ) func TestStatesMerge(t *testing.T) { diff --git a/triedb/preimages.go b/triedb/preimages.go index a5384910f7..e6d2869adb 100644 --- a/triedb/preimages.go +++ b/triedb/preimages.go @@ -19,9 +19,9 @@ package triedb import ( "sync" - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/core/rawdb" - "github.com/ethereum/go-ethereum/ethdb" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/core/rawdb" + "github.com/YehorDudukin/go-ethereum/ethdb" ) // preimageStore is the store for caching preimages of node key. diff --git a/triedb/states.go b/triedb/states.go index c5aa7c64b4..53d363cd46 100644 --- a/triedb/states.go +++ b/triedb/states.go @@ -17,8 +17,8 @@ package triedb import ( - "github.com/ethereum/go-ethereum/common" - "github.com/ethereum/go-ethereum/triedb/pathdb" + "github.com/YehorDudukin/go-ethereum/common" + "github.com/YehorDudukin/go-ethereum/triedb/pathdb" ) // StateSet represents a collection of mutated states during a state transition.