From 9551b26a89fc334e637f8d03ae79301b2ae01f46 Mon Sep 17 00:00:00 2001
From: siddharth0a
Date: Wed, 3 Apr 2024 11:06:26 +0900
Subject: [PATCH] fix all the package from ethereum/go-ethereum to
cryptoecc/ETH-ECC
---
.travis.yml | 4 +-
README.md | 2 +-
accounts/abi/abi.go | 4 +-
accounts/abi/abi_test.go | 40 +--
accounts/abi/bind/auth.go | 14 +-
accounts/abi/bind/backend.go | 6 +-
accounts/abi/bind/backends/simulated.go | 38 +--
accounts/abi/bind/backends/simulated_test.go | 49 ++--
accounts/abi/bind/base.go | 10 +-
accounts/abi/bind/base_test.go | 14 +-
accounts/abi/bind/bind.go | 6 +-
accounts/abi/bind/bind_test.go | 234 +++++++++---------
accounts/abi/bind/template.go | 14 +-
accounts/abi/bind/util.go | 8 +-
accounts/abi/bind/util_test.go | 12 +-
accounts/abi/error.go | 4 +-
accounts/abi/event.go | 4 +-
accounts/abi/event_test.go | 4 +-
accounts/abi/method.go | 2 +-
accounts/abi/pack.go | 4 +-
accounts/abi/pack_test.go | 2 +-
accounts/abi/packing_test.go | 2 +-
accounts/abi/topics.go | 4 +-
accounts/abi/topics_test.go | 4 +-
accounts/abi/type.go | 2 +-
accounts/abi/type_test.go | 2 +-
accounts/abi/unpack.go | 2 +-
accounts/abi/unpack_test.go | 2 +-
accounts/accounts.go | 14 +-
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 | 15 +-
accounts/usbwallet/hub.go | 6 +-
accounts/usbwallet/ledger.go | 176 +++++++------
accounts/usbwallet/trezor.go | 30 +--
accounts/usbwallet/wallet.go | 12 +-
build/ci.go | 33 ++-
build/deb/ethereum/deb.control | 4 +-
build/mvn.pom | 6 +-
build/nsis.install.nsh | 6 +-
build/pod.podspec | 4 +-
build/update-license.go | 2 +-
cmd/abidump/main.go | 4 +-
cmd/abigen/main.go | 12 +-
cmd/bootnode/main.go | 14 +-
cmd/checkpoint-admin/README.md | 6 +-
cmd/checkpoint-admin/common.go | 18 +-
cmd/checkpoint-admin/exec.go | 22 +-
cmd/checkpoint-admin/main.go | 6 +-
cmd/checkpoint-admin/status.go | 2 +-
cmd/clef/main.go | 40 +--
cmd/clef/tutorial.md | 6 +-
cmd/devp2p/crawl.go | 4 +-
cmd/devp2p/discv4cmd.go | 14 +-
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 | 12 +-
cmd/devp2p/internal/ethtest/chain_test.go | 6 +-
cmd/devp2p/internal/ethtest/helpers.go | 14 +-
cmd/devp2p/internal/ethtest/large.go | 6 +-
cmd/devp2p/internal/ethtest/snap.go | 12 +-
cmd/devp2p/internal/ethtest/snapTypes.go | 2 +-
cmd/devp2p/internal/ethtest/suite.go | 8 +-
cmd/devp2p/internal/ethtest/suite_test.go | 10 +-
cmd/devp2p/internal/ethtest/transaction.go | 12 +-
cmd/devp2p/internal/ethtest/types.go | 8 +-
cmd/devp2p/internal/v4test/discv4tests.go | 6 +-
cmd/devp2p/internal/v4test/framework.go | 6 +-
cmd/devp2p/internal/v5test/discv5tests.go | 8 +-
cmd/devp2p/internal/v5test/framework.go | 10 +-
cmd/devp2p/keycmd.go | 4 +-
cmd/devp2p/main.go | 8 +-
cmd/devp2p/nodeset.go | 4 +-
cmd/devp2p/nodesetcmd.go | 8 +-
cmd/devp2p/rlpxcmd.go | 10 +-
cmd/devp2p/runtest.go | 6 +-
cmd/ethkey/changepassword.go | 4 +-
cmd/ethkey/generate.go | 6 +-
cmd/ethkey/inspect.go | 6 +-
cmd/ethkey/main.go | 2 +-
cmd/ethkey/message.go | 10 +-
cmd/ethkey/run_test.go | 2 +-
cmd/ethkey/utils.go | 2 +-
cmd/evm/compiler.go | 2 +-
cmd/evm/disasm.go | 2 +-
cmd/evm/internal/compiler/compiler.go | 2 +-
cmd/evm/internal/t8ntool/block.go | 18 +-
cmd/evm/internal/t8ntool/execution.go | 30 +--
cmd/evm/internal/t8ntool/flags.go | 4 +-
cmd/evm/internal/t8ntool/gen_header.go | 8 +-
cmd/evm/internal/t8ntool/gen_stenv.go | 4 +-
cmd/evm/internal/t8ntool/transaction.go | 16 +-
cmd/evm/internal/t8ntool/transition.go | 29 +--
cmd/evm/main.go | 4 +-
cmd/evm/runner.go | 24 +-
cmd/evm/staterunner.go | 10 +-
cmd/evm/t8n_test.go | 4 +-
cmd/faucet/faucet.go | 36 +--
cmd/faucet/faucet_test.go | 2 +-
cmd/p2psim/main.go | 35 ++-
cmd/puppeth/module.go | 2 +-
cmd/puppeth/module_dashboard.go | 8 +-
cmd/puppeth/module_ethstats.go | 2 +-
cmd/puppeth/module_explorer.go | 2 +-
cmd/puppeth/module_faucet.go | 4 +-
cmd/puppeth/module_nginx.go | 2 +-
cmd/puppeth/module_node.go | 4 +-
cmd/puppeth/puppeth.go | 2 +-
cmd/puppeth/ssh.go | 2 +-
cmd/puppeth/wizard.go | 8 +-
cmd/puppeth/wizard_dashboard.go | 2 +-
cmd/puppeth/wizard_ethstats.go | 2 +-
cmd/puppeth/wizard_explorer.go | 2 +-
cmd/puppeth/wizard_faucet.go | 4 +-
cmd/puppeth/wizard_genesis.go | 8 +-
cmd/puppeth/wizard_intro.go | 2 +-
cmd/puppeth/wizard_netstats.go | 4 +-
cmd/puppeth/wizard_network.go | 2 +-
cmd/puppeth/wizard_nginx.go | 2 +-
cmd/puppeth/wizard_node.go | 6 +-
cmd/rlpdump/main.go | 4 +-
cmd/rlpdump/rlpdump_test.go | 4 +-
cmd/utils/cmd.go | 22 +-
cmd/utils/export_test.go | 4 +-
cmd/utils/flags.go | 72 +++---
cmd/utils/flags_legacy.go | 4 +-
cmd/utils/prompt.go | 2 +-
common/bitutil/compress_test.go | 2 +-
common/bytes.go | 2 +-
common/debug.go | 2 +-
common/hexutil/json_example_test.go | 2 +-
common/math/big_test.go | 2 +-
common/prque/lazyqueue.go | 9 +-
common/prque/lazyqueue_test.go | 2 +-
common/types.go | 2 +-
consensus/beacon/consensus.go | 23 +-
consensus/beacon/consensus_test.go | 8 +-
consensus/clique/api.go | 12 +-
consensus/clique/clique.go | 28 +--
consensus/clique/clique_test.go | 14 +-
consensus/clique/snapshot.go | 10 +-
consensus/clique/snapshot_test.go | 16 +-
consensus/consensus.go | 10 +-
consensus/ethash/algorithm.go | 8 +-
consensus/ethash/algorithm_test.go | 6 +-
consensus/ethash/api.go | 15 +-
consensus/ethash/consensus.go | 18 +-
consensus/ethash/consensus_test.go | 8 +-
consensus/ethash/difficulty.go | 2 +-
consensus/ethash/ethash.go | 8 +-
consensus/ethash/ethash_test.go | 8 +-
consensus/ethash/sealer.go | 17 +-
consensus/ethash/sealer_test.go | 8 +-
consensus/merger.go | 8 +-
consensus/misc/dao.go | 15 +-
consensus/misc/eip1559.go | 8 +-
consensus/misc/eip1559_test.go | 6 +-
consensus/misc/forks.go | 6 +-
consensus/misc/gaslimit.go | 2 +-
console/bridge.go | 12 +-
console/bridge_test.go | 2 +-
console/console.go | 10 +-
console/console_test.go | 18 +-
contracts/checkpointoracle/contract/oracle.go | 12 +-
contracts/checkpointoracle/oracle.go | 8 +-
contracts/checkpointoracle/oracle_test.go | 14 +-
core/asm/asm.go | 2 +-
core/asm/compiler.go | 4 +-
core/beacon/errors.go | 4 +-
core/beacon/gen_blockparams.go | 4 +-
core/beacon/gen_ed.go | 4 +-
core/beacon/types.go | 16 +-
core/bench_test.go | 18 +-
core/block_validator.go | 10 +-
core/block_validator_test.go | 20 +-
core/blockchain.go | 32 +--
core/blockchain_insert.go | 8 +-
core/blockchain_reader.go | 20 +-
core/blockchain_repair_test.go | 14 +-
core/blockchain_sethead_test.go | 12 +-
core/blockchain_snapshot_test.go | 14 +-
core/blockchain_test.go | 74 +++---
core/blocks.go | 2 +-
core/bloom_indexer.go | 12 +-
core/bloombits/generator.go | 2 +-
core/bloombits/generator_test.go | 2 +-
core/bloombits/matcher.go | 4 +-
core/bloombits/matcher_test.go | 4 +-
core/chain_indexer.go | 12 +-
core/chain_indexer_test.go | 6 +-
core/chain_makers.go | 16 +-
core/chain_makers_test.go | 12 +-
core/dao_test.go | 8 +-
core/error.go | 2 +-
core/events.go | 4 +-
core/evm.go | 8 +-
core/forkchoice.go | 10 +-
core/forkid/forkid.go | 8 +-
core/forkid/forkid_test.go | 6 +-
core/gen_genesis.go | 8 +-
core/gen_genesis_account.go | 6 +-
core/genesis.go | 32 +--
core/genesis_test.go | 12 +-
core/headerchain.go | 16 +-
core/headerchain_test.go | 12 +-
core/mkalloc.go | 12 +-
core/rawdb/accessors_chain.go | 14 +-
core/rawdb/accessors_chain_test.go | 10 +-
core/rawdb/accessors_indexes.go | 12 +-
core/rawdb/accessors_indexes_test.go | 10 +-
core/rawdb/accessors_metadata.go | 10 +-
core/rawdb/accessors_snapshot.go | 6 +-
core/rawdb/accessors_state.go | 6 +-
core/rawdb/accessors_sync.go | 8 +-
core/rawdb/chain_freezer.go | 8 +-
core/rawdb/chain_iterator.go | 12 +-
core/rawdb/chain_iterator_test.go | 4 +-
core/rawdb/database.go | 10 +-
core/rawdb/freezer.go | 22 +-
core/rawdb/freezer_batch.go | 4 +-
core/rawdb/freezer_meta.go | 4 +-
core/rawdb/freezer_table.go | 6 +-
core/rawdb/freezer_table_test.go | 2 +-
core/rawdb/freezer_test.go | 4 +-
core/rawdb/key_length_iterator.go | 2 +-
core/rawdb/schema.go | 4 +-
core/rawdb/table.go | 2 +-
core/rawdb/table_test.go | 2 +-
core/rlp_test.go | 14 +-
core/state/access_list.go | 2 +-
core/state/database.go | 10 +-
core/state/dump.go | 12 +-
core/state/iterator.go | 8 +-
core/state/iterator_test.go | 4 +-
core/state/journal.go | 2 +-
core/state/metrics.go | 2 +-
core/state/pruner/bloom.go | 6 +-
core/state/pruner/pruner.go | 24 +-
core/state/snapshot/account.go | 4 +-
core/state/snapshot/context.go | 12 +-
core/state/snapshot/conversion.go | 12 +-
core/state/snapshot/difflayer.go | 4 +-
core/state/snapshot/difflayer_test.go | 6 +-
core/state/snapshot/disklayer.go | 10 +-
core/state/snapshot/disklayer_test.go | 8 +-
core/state/snapshot/generate.go | 18 +-
core/state/snapshot/generate_test.go | 14 +-
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 | 22 +-
core/state/snapshot/snapshot_test.go | 6 +-
core/state/snapshot/sort.go | 2 +-
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 | 24 +-
core/state/statedb_test.go | 14 +-
core/state/sync.go | 10 +-
core/state/sync_test.go | 14 +-
core/state/trie_prefetcher.go | 6 +-
core/state/trie_prefetcher_test.go | 4 +-
core/state_prefetcher.go | 10 +-
core/state_processor.go | 16 +-
core/state_processor_test.go | 22 +-
core/state_transition.go | 32 +--
core/tx_cacher.go | 2 +-
core/tx_journal.go | 8 +-
core/tx_list.go | 4 +-
core/tx_list_test.go | 4 +-
core/tx_noncer.go | 4 +-
core/tx_pool.go | 18 +-
core/tx_pool_test.go | 16 +-
core/types.go | 6 +-
core/types/access_list_tx.go | 2 +-
core/types/block.go | 6 +-
core/types/block_test.go | 10 +-
core/types/bloom9.go | 4 +-
core/types/bloom9_test.go | 4 +-
core/types/dynamic_fee_tx.go | 2 +-
core/types/gen_access_tuple.go | 2 +-
core/types/gen_account_rlp.go | 2 +-
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/hashing.go | 6 +-
core/types/hashing_test.go | 14 +-
core/types/legacy.go | 2 +-
core/types/legacy_tx.go | 2 +-
core/types/log.go | 6 +-
core/types/log_test.go | 4 +-
core/types/receipt.go | 10 +-
core/types/receipt_test.go | 8 +-
core/types/state_account.go | 2 +-
core/types/transaction.go | 8 +-
core/types/transaction_marshalling.go | 4 +-
core/types/transaction_signing.go | 6 +-
core/types/transaction_signing_test.go | 6 +-
core/types/transaction_test.go | 6 +-
core/types/types_test.go | 6 +-
core/vm/analysis_test.go | 2 +-
core/vm/common.go | 4 +-
core/vm/contract.go | 2 +-
core/vm/contracts.go | 21 +-
core/vm/contracts_test.go | 2 +-
core/vm/eips.go | 2 +-
core/vm/evm.go | 6 +-
core/vm/gas_table.go | 24 +-
core/vm/gas_table_test.go | 10 +-
core/vm/instructions.go | 25 +-
core/vm/instructions_test.go | 6 +-
core/vm/interface.go | 4 +-
core/vm/interpreter.go | 6 +-
core/vm/interpreter_test.go | 10 +-
core/vm/jump_table.go | 2 +-
core/vm/logger.go | 2 +-
core/vm/operations_acl.go | 6 +-
core/vm/runtime/env.go | 4 +-
core/vm/runtime/runtime.go | 12 +-
core/vm/runtime/runtime_example_test.go | 4 +-
core/vm/runtime/runtime_test.go | 28 +--
core/vm/stack_table.go | 2 +-
crypto/bls12381/g1_test.go | 2 +-
crypto/bls12381/g2_test.go | 2 +-
crypto/bls12381/pairing_test.go | 2 +-
crypto/bls12381/utils.go | 2 +-
crypto/bn256/bn256_fast.go | 2 +-
crypto/bn256/bn256_slow.go | 2 +-
crypto/crypto.go | 8 +-
crypto/crypto_test.go | 4 +-
crypto/ecies/ecies_test.go | 2 +-
crypto/ecies/params.go | 2 +-
crypto/secp256k1/dummy.go | 6 +-
crypto/signature_cgo.go | 4 +-
crypto/signature_test.go | 6 +-
eth/api.go | 22 +-
eth/api_backend.go | 32 +--
eth/api_test.go | 10 +-
eth/backend.go | 60 ++---
eth/bloombits.go | 4 +-
eth/catalyst/api.go | 35 +--
eth/catalyst/api_test.go | 41 +--
eth/catalyst/queue.go | 6 +-
eth/downloader/api.go | 4 +-
eth/downloader/beaconsync.go | 6 +-
eth/downloader/downloader.go | 26 +-
eth/downloader/downloader_test.go | 26 +-
eth/downloader/events.go | 2 +-
eth/downloader/fetchers.go | 6 +-
eth/downloader/fetchers_concurrent.go | 8 +-
eth/downloader/fetchers_concurrent_bodies.go | 6 +-
eth/downloader/fetchers_concurrent_headers.go | 6 +-
.../fetchers_concurrent_receipts.go | 6 +-
eth/downloader/metrics.go | 2 +-
eth/downloader/peer.go | 10 +-
eth/downloader/queue.go | 17 +-
eth/downloader/queue_test.go | 14 +-
eth/downloader/resultstore.go | 11 +-
eth/downloader/skeleton.go | 12 +-
eth/downloader/skeleton_test.go | 10 +-
eth/downloader/statesync.go | 4 +-
eth/downloader/testchain_test.go | 16 +-
eth/ethconfig/config.go | 26 +-
eth/ethconfig/gen_config.go | 14 +-
eth/fetcher/block_fetcher.go | 16 +-
eth/fetcher/block_fetcher_test.go | 18 +-
eth/fetcher/tx_fetcher.go | 12 +-
eth/fetcher/tx_fetcher_test.go | 8 +-
eth/filters/api.go | 8 +-
eth/filters/api_test.go | 4 +-
eth/filters/bench_test.go | 14 +-
eth/filters/filter.go | 8 +-
eth/filters/filter_system.go | 18 +-
eth/filters/filter_system_test.go | 20 +-
eth/filters/filter_test.go | 14 +-
eth/gasprice/feehistory.go | 19 +-
eth/gasprice/feehistory_test.go | 2 +-
eth/gasprice/gasprice.go | 14 +-
eth/gasprice/gasprice_test.go | 20 +-
eth/handler.go | 30 +--
eth/handler_eth.go | 10 +-
eth/handler_eth_test.go | 30 +--
eth/handler_snap.go | 6 +-
eth/handler_test.go | 24 +-
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 | 16 +-
eth/protocols/eth/handler_test.go | 24 +-
eth/protocols/eth/handlers.go | 12 +-
eth/protocols/eth/handshake.go | 6 +-
eth/protocols/eth/handshake_test.go | 8 +-
eth/protocols/eth/peer.go | 8 +-
eth/protocols/eth/peer_test.go | 6 +-
eth/protocols/eth/protocol.go | 8 +-
eth/protocols/eth/protocol_test.go | 6 +-
eth/protocols/eth/tracker.go | 2 +-
eth/protocols/snap/discovery.go | 2 +-
eth/protocols/snap/handler.go | 18 +-
eth/protocols/snap/peer.go | 6 +-
eth/protocols/snap/protocol.go | 6 +-
eth/protocols/snap/range.go | 2 +-
eth/protocols/snap/range_test.go | 2 +-
eth/protocols/snap/sort_test.go | 2 +-
eth/protocols/snap/sync.go | 28 +--
eth/protocols/snap/sync_test.go | 21 +-
eth/protocols/snap/tracker.go | 2 +-
eth/state_accessor.go | 32 +--
eth/sync.go | 12 +-
eth/sync_test.go | 10 +-
eth/tracers/api.go | 30 +--
eth/tracers/api_test.go | 30 +--
.../internal/tracetest/calltrace_test.go | 28 +--
eth/tracers/js/goja.go | 12 +-
eth/tracers/js/tracer_test.go | 10 +-
eth/tracers/logger/access_list_tracer.go | 6 +-
eth/tracers/logger/gen_structlog.go | 8 +-
eth/tracers/logger/logger.go | 12 +-
eth/tracers/logger/logger_json.go | 6 +-
eth/tracers/logger/logger_test.go | 10 +-
eth/tracers/native/4byte.go | 23 +-
eth/tracers/native/call.go | 6 +-
eth/tracers/native/noop.go | 6 +-
eth/tracers/native/prestate.go | 10 +-
eth/tracers/native/revertreason.go | 10 +-
eth/tracers/native/tracer.go | 10 +-
eth/tracers/tracers.go | 4 +-
eth/tracers/tracers_test.go | 18 +-
ethclient/ethclient.go | 10 +-
ethclient/ethclient_test.go | 24 +-
ethclient/gethclient/gethclient.go | 12 +-
ethclient/gethclient/gethclient_test.go | 26 +-
ethclient/signer.go | 4 +-
ethdb/dbtest/testsuite.go | 2 +-
ethdb/leveldb/leveldb.go | 23 +-
ethdb/leveldb/leveldb_test.go | 4 +-
ethdb/memorydb/memorydb.go | 4 +-
ethdb/memorydb/memorydb_test.go | 4 +-
ethdb/remotedb/remotedb.go | 6 +-
ethstats/ethstats.go | 43 ++--
event/example_feed_test.go | 2 +-
event/example_scope_test.go | 2 +-
event/example_subscription_test.go | 2 +-
event/subscription.go | 2 +-
go.mod | 2 +-
graphql/graphql.go | 22 +-
graphql/graphql_test.go | 22 +-
graphql/service.go | 6 +-
interfaces.go | 4 +-
internal/debug/api.go | 2 +-
internal/debug/flags.go | 8 +-
internal/debug/trace.go | 2 +-
internal/ethapi/addrlock.go | 2 +-
internal/ethapi/api.go | 52 ++--
internal/ethapi/backend.go | 26 +-
internal/ethapi/dbapi.go | 4 +-
internal/ethapi/transaction_args.go | 16 +-
internal/ethapi/transaction_args_test.go | 26 +-
internal/flags/flags.go | 2 +-
internal/flags/helpers.go | 6 +-
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 +-
les/api.go | 24 +-
les/api_backend.go | 32 +--
les/api_test.go | 28 +--
les/benchmark.go | 22 +-
les/bloombits.go | 4 +-
les/catalyst/api.go | 27 +-
les/catalyst/api_test.go | 26 +-
les/checkpointoracle/oracle.go | 12 +-
les/client.go | 52 ++--
les/client_handler.go | 20 +-
les/commons.go | 28 +--
les/costtracker.go | 12 +-
les/distributor.go | 4 +-
les/distributor_test.go | 2 +-
les/downloader/api.go | 4 +-
les/downloader/downloader.go | 62 ++---
les/downloader/downloader_test.go | 16 +-
les/downloader/events.go | 2 +-
les/downloader/metrics.go | 2 +-
les/downloader/peer.go | 10 +-
les/downloader/queue.go | 19 +-
les/downloader/queue_test.go | 12 +-
les/downloader/resultstore.go | 11 +-
les/downloader/statesync.go | 12 +-
les/downloader/testchain_test.go | 14 +-
les/downloader/types.go | 2 +-
les/enr_entry.go | 8 +-
les/fetcher.go | 41 +--
les/fetcher/block_fetcher.go | 14 +-
les/fetcher/block_fetcher_test.go | 16 +-
les/fetcher_test.go | 14 +-
les/flowcontrol/control.go | 4 +-
les/flowcontrol/logger.go | 2 +-
les/flowcontrol/manager.go | 4 +-
les/flowcontrol/manager_test.go | 2 +-
les/handler_test.go | 26 +-
les/metrics.go | 4 +-
les/odr.go | 8 +-
les/odr_requests.go | 18 +-
les/odr_test.go | 22 +-
les/peer.go | 28 +--
les/peer_test.go | 14 +-
les/protocol.go | 12 +-
les/pruner.go | 8 +-
les/pruner_test.go | 4 +-
les/request_test.go | 10 +-
les/retrieve.go | 2 +-
les/server.go | 28 +--
les/server_handler.go | 28 +--
les/server_requests.go | 18 +-
les/servingqueue.go | 4 +-
les/state_accessor.go | 10 +-
les/sync.go | 12 +-
les/sync_test.go | 14 +-
les/test_helper.go | 44 ++--
les/txrelay.go | 6 +-
les/ulc.go | 4 +-
les/ulc_test.go | 6 +-
les/utils/expiredvalue.go | 2 +-
les/utils/expiredvalue_test.go | 2 +-
les/utils/limiter.go | 2 +-
les/utils/limiter_test.go | 2 +-
les/utils/timeutils.go | 2 +-
les/utils/timeutils_test.go | 2 +-
les/utils/weighted_select.go | 2 +-
les/vflux/client/api.go | 6 +-
les/vflux/client/fillset.go | 4 +-
les/vflux/client/fillset_test.go | 8 +-
les/vflux/client/queueiterator.go | 4 +-
les/vflux/client/queueiterator_test.go | 8 +-
les/vflux/client/requestbasket.go | 4 +-
les/vflux/client/requestbasket_test.go | 2 +-
les/vflux/client/serverpool.go | 18 +-
les/vflux/client/serverpool_test.go | 10 +-
les/vflux/client/timestats.go | 4 +-
les/vflux/client/timestats_test.go | 2 +-
les/vflux/client/valuetracker.go | 12 +-
les/vflux/client/valuetracker_test.go | 8 +-
les/vflux/client/wrsiterator.go | 6 +-
les/vflux/client/wrsiterator_test.go | 4 +-
les/vflux/requests.go | 2 +-
les/vflux/server/balance.go | 8 +-
les/vflux/server/balance_test.go | 14 +-
les/vflux/server/balance_tracker.go | 12 +-
les/vflux/server/clientdb.go | 14 +-
les/vflux/server/clientdb_test.go | 8 +-
les/vflux/server/clientpool.go | 16 +-
les/vflux/server/clientpool_test.go | 10 +-
les/vflux/server/metrics.go | 2 +-
les/vflux/server/prioritypool.go | 10 +-
les/vflux/server/prioritypool_test.go | 8 +-
les/vflux/server/service.go | 10 +-
les/vflux/server/status.go | 2 +-
light/lightchain.go | 22 +-
light/lightchain_test.go | 14 +-
light/nodeset.go | 8 +-
light/odr.go | 10 +-
light/odr_test.go | 26 +-
light/odr_util.go | 10 +-
light/postprocess.go | 20 +-
light/trie.go | 16 +-
light/trie_test.go | 14 +-
light/txpool.go | 27 +-
light/txpool_test.go | 14 +-
log/format.go | 8 +-
metrics/cpu_enabled.go | 2 +-
metrics/cputime_unix.go | 2 +-
metrics/exp/exp.go | 6 +-
metrics/influxdb/influxdb.go | 4 +-
metrics/influxdb/influxdbv2.go | 5 +-
metrics/librato/librato.go | 2 +-
metrics/metrics.go | 2 +-
metrics/prometheus/collector.go | 2 +-
metrics/prometheus/collector_test.go | 2 +-
metrics/prometheus/prometheus.go | 4 +-
miner/miner.go | 20 +-
miner/miner_test.go | 22 +-
miner/stress/1559/main.go | 30 +--
miner/stress/beacon/main.go | 40 +--
miner/stress/clique/main.go | 30 +--
miner/stress/ethash/main.go | 30 +--
miner/unconfirmed.go | 6 +-
miner/unconfirmed_test.go | 2 +-
miner/worker.go | 22 +-
miner/worker_test.go | 28 +--
mobile/accounts.go | 8 +-
mobile/android_test.go | 2 +-
mobile/big.go | 3 +-
mobile/bind.go | 10 +-
mobile/common.go | 4 +-
mobile/discover.go | 8 +-
mobile/ethclient.go | 4 +-
mobile/ethereum.go | 4 +-
mobile/geth.go | 22 +-
mobile/init.go | 2 +-
mobile/interface.go | 2 +-
mobile/interface_test.go | 2 +-
mobile/logger.go | 2 +-
mobile/p2p.go | 2 +-
mobile/params.go | 6 +-
mobile/primitives.go | 2 +-
mobile/types.go | 6 +-
mobile/vm.go | 2 +-
node/api.go | 14 +-
node/api_test.go | 2 +-
node/config.go | 12 +-
node/config_test.go | 4 +-
node/defaults.go | 6 +-
node/endpoints.go | 4 +-
node/node.go | 18 +-
node/node_example_test.go | 6 +-
node/node_test.go | 8 +-
node/rpcstack.go | 4 +-
node/rpcstack_test.go | 6 +-
node/utils_test.go | 4 +-
oss-fuzz.sh | 4 +-
p2p/dial.go | 19 +-
p2p/dial_test.go | 10 +-
p2p/discover/common.go | 10 +-
p2p/discover/lookup.go | 2 +-
p2p/discover/node.go | 6 +-
p2p/discover/ntp.go | 2 +-
p2p/discover/table.go | 8 +-
p2p/discover/table_test.go | 8 +-
p2p/discover/table_util_test.go | 8 +-
p2p/discover/v4_lookup_test.go | 8 +-
p2p/discover/v4_udp.go | 10 +-
p2p/discover/v4_udp_test.go | 10 +-
p2p/discover/v4wire/v4wire.go | 10 +-
p2p/discover/v4wire/v4wire_test.go | 4 +-
p2p/discover/v5_udp.go | 12 +-
p2p/discover/v5_udp_test.go | 12 +-
p2p/discover/v5wire/crypto.go | 6 +-
p2p/discover/v5wire/crypto_test.go | 6 +-
p2p/discover/v5wire/encoding.go | 8 +-
p2p/discover/v5wire/encoding_test.go | 11 +-
p2p/discover/v5wire/msg.go | 8 +-
p2p/discover/v5wire/session.go | 6 +-
p2p/dnsdisc/client.go | 10 +-
p2p/dnsdisc/client_test.go | 12 +-
p2p/dnsdisc/sync.go | 4 +-
p2p/dnsdisc/tree.go | 38 +--
p2p/dnsdisc/tree_test.go | 4 +-
p2p/enode/idscheme.go | 8 +-
p2p/enode/idscheme_test.go | 6 +-
p2p/enode/iter_test.go | 2 +-
p2p/enode/localnode.go | 6 +-
p2p/enode/localnode_test.go | 4 +-
p2p/enode/node.go | 4 +-
p2p/enode/node_test.go | 4 +-
p2p/enode/nodedb.go | 2 +-
p2p/enode/urlv4.go | 12 +-
p2p/enode/urlv4_test.go | 4 +-
p2p/enr/enr.go | 4 +-
p2p/enr/enr_test.go | 2 +-
p2p/enr/entries.go | 2 +-
p2p/message.go | 11 +-
p2p/metrics.go | 2 +-
p2p/msgrate/msgrate.go | 2 +-
p2p/nat/nat.go | 14 +-
p2p/nat/natupnp_test.go | 2 +-
p2p/netutil/iptrack.go | 2 +-
p2p/netutil/iptrack_test.go | 2 +-
p2p/nodestate/nodestate.go | 14 +-
p2p/nodestate/nodestate_test.go | 10 +-
p2p/peer.go | 14 +-
p2p/peer_test.go | 6 +-
p2p/protocol.go | 4 +-
p2p/rlpx/buffer_test.go | 2 +-
p2p/rlpx/rlpx.go | 6 +-
p2p/rlpx/rlpx_test.go | 8 +-
p2p/server.go | 20 +-
p2p/server_test.go | 12 +-
p2p/simulations/adapters/exec.go | 10 +-
p2p/simulations/adapters/inproc.go | 14 +-
p2p/simulations/adapters/inproc_test.go | 2 +-
p2p/simulations/adapters/types.go | 15 +-
p2p/simulations/connect.go | 2 +-
p2p/simulations/connect_test.go | 6 +-
p2p/simulations/examples/ping-pong.go | 12 +-
p2p/simulations/http.go | 10 +-
p2p/simulations/http_test.go | 14 +-
p2p/simulations/mocker.go | 28 +--
p2p/simulations/mocker_test.go | 2 +-
p2p/simulations/network.go | 10 +-
p2p/simulations/network_test.go | 8 +-
p2p/simulations/simulation.go | 2 +-
p2p/simulations/test.go | 8 +-
p2p/tracker/tracker.go | 4 +-
p2p/transport.go | 10 +-
p2p/transport_test.go | 4 +-
p2p/util.go | 2 +-
p2p/util_test.go | 2 +-
params/bootnodes.go | 2 +-
params/config.go | 2 +-
params/dao.go | 2 +-
rlp/decode.go | 4 +-
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/uints.out.txt | 2 +-
rlp/typecache.go | 2 +-
rpc/client.go | 2 +-
rpc/client_example_test.go | 4 +-
rpc/client_test.go | 6 +-
rpc/doc.go | 59 +++--
rpc/endpoints.go | 2 +-
rpc/handler.go | 17 +-
rpc/ipc.go | 4 +-
rpc/ipc_unix.go | 2 +-
rpc/metrics.go | 2 +-
rpc/server.go | 2 +-
rpc/service.go | 2 +-
rpc/types.go | 4 +-
rpc/types_test.go | 4 +-
rpc/websocket.go | 2 +-
rpc/websocket_test.go | 2 +-
signer/core/api.go | 22 +-
signer/core/api_test.go | 24 +-
.../apitypes/signed_data_internal_test.go | 2 +-
signer/core/apitypes/types.go | 16 +-
signer/core/auditlog.go | 10 +-
signer/core/cliui.go | 8 +-
signer/core/gnosis_safe.go | 8 +-
signer/core/signed_data.go | 18 +-
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_util.go | 41 +--
tests/difficulty_test.go | 4 +-
tests/difficulty_test_util.go | 10 +-
tests/fuzzers/abi/abifuzzer.go | 2 +-
tests/fuzzers/bitutil/compress_fuzz.go | 2 +-
tests/fuzzers/bls12381/bls12381_fuzz.go | 4 +-
tests/fuzzers/bls12381/precompile_fuzzer.go | 10 +-
tests/fuzzers/bn256/bn256_fuzz.go | 4 +-
tests/fuzzers/difficulty/debug/main.go | 2 +-
tests/fuzzers/difficulty/difficulty-fuzz.go | 10 +-
tests/fuzzers/keystore/keystore-fuzzer.go | 2 +-
tests/fuzzers/les/debug/main.go | 2 +-
tests/fuzzers/les/les-fuzzer.go | 22 +-
tests/fuzzers/rangeproof/debug/main.go | 2 +-
tests/fuzzers/rangeproof/rangeproof-fuzzer.go | 14 +-
tests/fuzzers/rlp/rlp_fuzzer.go | 4 +-
tests/fuzzers/runtime/runtime_fuzz.go | 2 +-
tests/fuzzers/secp256k1/secp_fuzzer.go | 2 +-
tests/fuzzers/snap/debug/main.go | 2 +-
tests/fuzzers/snap/fuzz_handler.go | 20 +-
tests/fuzzers/stacktrie/debug/main.go | 2 +-
tests/fuzzers/stacktrie/trie_fuzzer.go | 10 +-
tests/fuzzers/trie/trie-fuzzer.go | 12 +-
tests/fuzzers/txfetcher/txfetcher_fuzzer.go | 8 +-
tests/fuzzers/vflux/clientpool-fuzzer.go | 16 +-
tests/fuzzers/vflux/debug/main.go | 4 +-
tests/gen_btheader.go | 8 +-
tests/gen_difficultytest.go | 4 +-
tests/gen_stenv.go | 4 +-
tests/gen_sttransaction.go | 6 +-
tests/init.go | 2 +-
tests/init_test.go | 3 +-
tests/rlp_test_util.go | 2 +-
tests/state_test.go | 10 +-
tests/state_test_util.go | 26 +-
tests/transaction_test.go | 2 +-
tests/transaction_test_util.go | 12 +-
trie/committer.go | 2 +-
trie/database.go | 14 +-
trie/database_test.go | 4 +-
trie/errors.go | 2 +-
trie/hasher.go | 8 +-
trie/iterator.go | 4 +-
trie/iterator_test.go | 10 +-
trie/node.go | 4 +-
trie/node_enc.go | 2 +-
trie/node_test.go | 16 +-
trie/nodeset.go | 2 +-
trie/preimages.go | 6 +-
trie/proof.go | 28 +--
trie/proof_test.go | 8 +-
trie/secure_trie.go | 8 +-
trie/secure_trie_test.go | 6 +-
trie/stacktrie.go | 15 +-
trie/stacktrie_test.go | 6 +-
trie/sync.go | 10 +-
trie/sync_test.go | 6 +-
trie/trie.go | 6 +-
trie/trie_test.go | 14 +-
trie/util_test.go | 4 +-
841 files changed, 4212 insertions(+), 4145 deletions(-)
diff --git a/.travis.yml b/.travis.yml
index e08e271f3f..c13d7075ea 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/cryptoecc/ETH-ECC
sudo: false
jobs:
allow_failures:
@@ -155,7 +155,7 @@ jobs:
script:
# Build the Android archive and upload it to Maven Central and Azure
- mkdir -p $GOPATH/src/github.com/ethereum
- - ln -s `pwd` $GOPATH/src/github.com/ethereum/go-ethereum
+ - ln -s `pwd` $GOPATH/src/github.com/cryptoecc/ETH-ECC
- go run build/ci.go aar -signer ANDROID_SIGNING_KEY -signify SIGNIFY_KEY -deploy https://oss.sonatype.org -upload gethstore/builds
# This builder does the OSX Azure, iOS CocoaPods and iOS Azure uploads
diff --git a/README.md b/README.md
index 60bbb028a1..403ac8c38f 100644
--- a/README.md
+++ b/README.md
@@ -6,7 +6,7 @@ https://camo.githubusercontent.com/915b7be44ada53c290eb157634330494ebe3e30a/6874
[](https://goreportcard.com/report/github.com/cryptoecc/ETH-ECC).
> Development client of the WorldLand blockchain.
-> It is a fork of [ethereum/go-ethereum](https://github.com/ethereum/go-ethereum)
+> It is a fork of [ethereum/go-ethereum](https://github.com/cryptoecc/ETH-ECC)
## What is Worldland?
diff --git a/accounts/abi/abi.go b/accounts/abi/abi.go
index 81bbee2f2b..184ef8962e 100644
--- a/accounts/abi/abi.go
+++ b/accounts/abi/abi.go
@@ -23,8 +23,8 @@ import (
"fmt"
"io"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/crypto"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/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 cd9433ca7f..33ff0bec35 100644
--- a/accounts/abi/abi_test.go
+++ b/accounts/abi/abi_test.go
@@ -26,9 +26,9 @@ import (
"strings"
"testing"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/math"
- "github.com/ethereum/go-ethereum/crypto"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/math"
+ "github.com/cryptoecc/ETH-ECC/crypto"
)
const jsondata = `
@@ -165,8 +165,9 @@ func TestInvalidABI(t *testing.T) {
// TestConstructor tests a constructor function.
// The test is based on the following contract:
-// contract TestConstructor {
-// constructor(uint256 a, uint256 b) public{}
+//
+// contract TestConstructor {
+// constructor(uint256 a, uint256 b) public{}
// }
func TestConstructor(t *testing.T) {
json := `[{ "inputs": [{"internalType": "uint256","name": "a","type": "uint256" },{ "internalType": "uint256","name": "b","type": "uint256"}],"stateMutability": "nonpayable","type": "constructor"}]`
@@ -724,16 +725,19 @@ func TestBareEvents(t *testing.T) {
}
// TestUnpackEvent is based on this contract:
-// contract T {
-// event received(address sender, uint amount, bytes memo);
-// event receivedAddr(address sender);
-// function receive(bytes memo) external payable {
-// received(msg.sender, msg.value, memo);
-// receivedAddr(msg.sender);
-// }
-// }
+//
+// contract T {
+// event received(address sender, uint amount, bytes memo);
+// event receivedAddr(address sender);
+// function receive(bytes memo) external payable {
+// received(msg.sender, msg.value, memo);
+// receivedAddr(msg.sender);
+// }
+// }
+//
// When receive("X") is called with sender 0x00... and value 1, it produces this tx receipt:
-// receipt{status=1 cgas=23949 bloom=00000000004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000040200000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 logs=[log: b6818c8064f645cd82d99b59a1a267d6d61117ef [75fd880d39c1daf53b6547ab6cb59451fc6452d27caa90e5b6649dd8293b9eed] 000000000000000000000000376c47978271565f56deb45495afa69e59c16ab200000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000000158 9ae378b6d4409eada347a5dc0c180f186cb62dc68fcc0f043425eb917335aa28 0 95d429d309bb9d753954195fe2d69bd140b4ae731b9b5b605c34323de162cf00 0]}
+//
+// receipt{status=1 cgas=23949 bloom=00000000004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000040200000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 logs=[log: b6818c8064f645cd82d99b59a1a267d6d61117ef [75fd880d39c1daf53b6547ab6cb59451fc6452d27caa90e5b6649dd8293b9eed] 000000000000000000000000376c47978271565f56deb45495afa69e59c16ab200000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000000158 9ae378b6d4409eada347a5dc0c180f186cb62dc68fcc0f043425eb917335aa28 0 95d429d309bb9d753954195fe2d69bd140b4ae731b9b5b605c34323de162cf00 0]}
func TestUnpackEvent(t *testing.T) {
const abiJSON = `[{"constant":false,"inputs":[{"name":"memo","type":"bytes"}],"name":"receive","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"anonymous":false,"inputs":[{"indexed":false,"name":"sender","type":"address"},{"indexed":false,"name":"amount","type":"uint256"},{"indexed":false,"name":"memo","type":"bytes"}],"name":"received","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"name":"sender","type":"address"}],"name":"receivedAddr","type":"event"}]`
abi, err := JSON(strings.NewReader(abiJSON))
@@ -1078,8 +1082,9 @@ func TestDoubleDuplicateMethodNames(t *testing.T) {
// TestDoubleDuplicateEventNames checks that if send0 already exists, there won't be a name
// conflict and that the second send event will be renamed send1.
// The test runs the abi of the following contract.
-// contract DuplicateEvent {
-// event send(uint256 a);
+//
+// contract DuplicateEvent {
+// event send(uint256 a);
// event send0();
// event send();
// }
@@ -1106,7 +1111,8 @@ func TestDoubleDuplicateEventNames(t *testing.T) {
// TestUnnamedEventParam checks that an event with unnamed parameters is
// correctly handled.
// The test runs the abi of the following contract.
-// contract TestEvent {
+//
+// contract TestEvent {
// event send(uint256, uint256);
// }
func TestUnnamedEventParam(t *testing.T) {
diff --git a/accounts/abi/bind/auth.go b/accounts/abi/bind/auth.go
index 494dc88a57..236bca4b53 100644
--- a/accounts/abi/bind/auth.go
+++ b/accounts/abi/bind/auth.go
@@ -23,13 +23,13 @@ import (
"io"
"math/big"
- "github.com/ethereum/go-ethereum/accounts"
- "github.com/ethereum/go-ethereum/accounts/external"
- "github.com/ethereum/go-ethereum/accounts/keystore"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/cryptoecc/ETH-ECC/accounts"
+ "github.com/cryptoecc/ETH-ECC/accounts/external"
+ "github.com/cryptoecc/ETH-ECC/accounts/keystore"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/log"
)
// ErrNoChainID is returned whenever the user failed to specify a chain id.
diff --git a/accounts/abi/bind/backend.go b/accounts/abi/bind/backend.go
index c16990f395..0e587c2207 100644
--- a/accounts/abi/bind/backend.go
+++ b/accounts/abi/bind/backend.go
@@ -21,9 +21,9 @@ import (
"errors"
"math/big"
- "github.com/ethereum/go-ethereum"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/types"
+ ethereum "github.com/cryptoecc/ETH-ECC"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core/types"
)
var (
diff --git a/accounts/abi/bind/backends/simulated.go b/accounts/abi/bind/backends/simulated.go
index 0095edbdb4..9f4f8b9d33 100644
--- a/accounts/abi/bind/backends/simulated.go
+++ b/accounts/abi/bind/backends/simulated.go
@@ -24,25 +24,25 @@ import (
"sync"
"time"
- "github.com/ethereum/go-ethereum"
- "github.com/ethereum/go-ethereum/accounts/abi"
- "github.com/ethereum/go-ethereum/accounts/abi/bind"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/common/math"
- "github.com/ethereum/go-ethereum/consensus/ethash"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/bloombits"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/state"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/core/vm"
- "github.com/ethereum/go-ethereum/eth/filters"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/event"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/rpc"
+ ethereum "github.com/cryptoecc/ETH-ECC"
+ "github.com/cryptoecc/ETH-ECC/accounts/abi"
+ "github.com/cryptoecc/ETH-ECC/accounts/abi/bind"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/hexutil"
+ "github.com/cryptoecc/ETH-ECC/common/math"
+ "github.com/cryptoecc/ETH-ECC/consensus/ethash"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/core/bloombits"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/core/state"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/core/vm"
+ "github.com/cryptoecc/ETH-ECC/eth/filters"
+ "github.com/cryptoecc/ETH-ECC/ethdb"
+ "github.com/cryptoecc/ETH-ECC/event"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/params"
+ "github.com/cryptoecc/ETH-ECC/rpc"
)
// This nil assignment ensures at compile time that SimulatedBackend implements bind.ContractBackend.
diff --git a/accounts/abi/bind/backends/simulated_test.go b/accounts/abi/bind/backends/simulated_test.go
index 83367f0985..3d36a31af3 100644
--- a/accounts/abi/bind/backends/simulated_test.go
+++ b/accounts/abi/bind/backends/simulated_test.go
@@ -27,14 +27,14 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum"
- "github.com/ethereum/go-ethereum/accounts/abi"
- "github.com/ethereum/go-ethereum/accounts/abi/bind"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/params"
+ ethereum "github.com/cryptoecc/ETH-ECC"
+ "github.com/cryptoecc/ETH-ECC/accounts/abi"
+ "github.com/cryptoecc/ETH-ECC/accounts/abi/bind"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/params"
)
func TestSimulatedBackend(t *testing.T) {
@@ -93,17 +93,17 @@ func TestSimulatedBackend(t *testing.T) {
var testKey, _ = crypto.HexToECDSA("b71c71a67e1177ad4e901695e1b4b9ee17ae16c6668d313eac2f96dbcda3f291")
-// the following is based on this contract:
-// contract T {
-// event received(address sender, uint amount, bytes memo);
-// event receivedAddr(address sender);
+// the following is based on this contract:
+// contract T {
+// event received(address sender, uint amount, bytes memo);
+// event receivedAddr(address sender);
//
-// function receive(bytes calldata memo) external payable returns (string memory res) {
-// emit received(msg.sender, msg.value, memo);
-// emit receivedAddr(msg.sender);
-// return "hello world";
-// }
-// }
+// function receive(bytes calldata memo) external payable returns (string memory res) {
+// emit received(msg.sender, msg.value, memo);
+// emit receivedAddr(msg.sender);
+// return "hello world";
+// }
+// }
const abiJSON = `[ { "constant": false, "inputs": [ { "name": "memo", "type": "bytes" } ], "name": "receive", "outputs": [ { "name": "res", "type": "string" } ], "payable": true, "stateMutability": "payable", "type": "function" }, { "anonymous": false, "inputs": [ { "indexed": false, "name": "sender", "type": "address" }, { "indexed": false, "name": "amount", "type": "uint256" }, { "indexed": false, "name": "memo", "type": "bytes" } ], "name": "received", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "name": "sender", "type": "address" } ], "name": "receivedAddr", "type": "event" } ]`
const abiBin = `0x608060405234801561001057600080fd5b506102a0806100206000396000f3fe60806040526004361061003b576000357c010000000000000000000000000000000000000000000000000000000090048063a69b6ed014610040575b600080fd5b6100b76004803603602081101561005657600080fd5b810190808035906020019064010000000081111561007357600080fd5b82018360208201111561008557600080fd5b803590602001918460018302840111640100000000831117156100a757600080fd5b9091929391929390505050610132565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156100f75780820151818401526020810190506100dc565b50505050905090810190601f1680156101245780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b60607f75fd880d39c1daf53b6547ab6cb59451fc6452d27caa90e5b6649dd8293b9eed33348585604051808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001848152602001806020018281038252848482818152602001925080828437600081840152601f19601f8201169050808301925050509550505050505060405180910390a17f46923992397eac56cf13058aced2a1871933622717e27b24eabc13bf9dd329c833604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390a16040805190810160405280600b81526020017f68656c6c6f20776f726c6400000000000000000000000000000000000000000081525090509291505056fea165627a7a72305820ff0c57dad254cfeda48c9cfb47f1353a558bccb4d1bc31da1dae69315772d29e0029`
const deployedCode = `60806040526004361061003b576000357c010000000000000000000000000000000000000000000000000000000090048063a69b6ed014610040575b600080fd5b6100b76004803603602081101561005657600080fd5b810190808035906020019064010000000081111561007357600080fd5b82018360208201111561008557600080fd5b803590602001918460018302840111640100000000831117156100a757600080fd5b9091929391929390505050610132565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156100f75780820151818401526020810190506100dc565b50505050905090810190601f1680156101245780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b60607f75fd880d39c1daf53b6547ab6cb59451fc6452d27caa90e5b6649dd8293b9eed33348585604051808573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001848152602001806020018281038252848482818152602001925080828437600081840152601f19601f8201169050808301925050509550505050505060405180910390a17f46923992397eac56cf13058aced2a1871933622717e27b24eabc13bf9dd329c833604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390a16040805190810160405280600b81526020017f68656c6c6f20776f726c6400000000000000000000000000000000000000000081525090509291505056fea165627a7a72305820ff0c57dad254cfeda48c9cfb47f1353a558bccb4d1bc31da1dae69315772d29e0029`
@@ -994,7 +994,8 @@ func TestCodeAt(t *testing.T) {
}
// When receive("X") is called with sender 0x00... and value 1, it produces this tx receipt:
-// receipt{status=1 cgas=23949 bloom=00000000004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000040200000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 logs=[log: b6818c8064f645cd82d99b59a1a267d6d61117ef [75fd880d39c1daf53b6547ab6cb59451fc6452d27caa90e5b6649dd8293b9eed] 000000000000000000000000376c47978271565f56deb45495afa69e59c16ab200000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000000158 9ae378b6d4409eada347a5dc0c180f186cb62dc68fcc0f043425eb917335aa28 0 95d429d309bb9d753954195fe2d69bd140b4ae731b9b5b605c34323de162cf00 0]}
+//
+// receipt{status=1 cgas=23949 bloom=00000000004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000040200000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 logs=[log: b6818c8064f645cd82d99b59a1a267d6d61117ef [75fd880d39c1daf53b6547ab6cb59451fc6452d27caa90e5b6649dd8293b9eed] 000000000000000000000000376c47978271565f56deb45495afa69e59c16ab200000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000000158 9ae378b6d4409eada347a5dc0c180f186cb62dc68fcc0f043425eb917335aa28 0 95d429d309bb9d753954195fe2d69bd140b4ae731b9b5b605c34323de162cf00 0]}
func TestPendingAndCallContract(t *testing.T) {
testAddr := crypto.PubkeyToAddress(testKey.PublicKey)
sim := simTestBackend(testAddr)
@@ -1205,10 +1206,11 @@ func TestFork(t *testing.T) {
Example contract to test event emission:
pragma solidity >=0.7.0 <0.9.0;
-contract Callable {
- event Called();
- function Call() public { emit Called(); }
-}
+
+ contract Callable {
+ event Called();
+ function Call() public { emit Called(); }
+ }
*/
const callableAbi = "[{\"anonymous\":false,\"inputs\":[],\"name\":\"Called\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"Call\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]"
@@ -1226,6 +1228,7 @@ const callableBin = "6080604052348015600f57600080fd5b5060998061001e6000396000f3f
// 7. Mine two blocks to trigger a reorg.
// 8. Check that the event was removed.
// 9. Re-send the transaction and mine a block.
+//
// 10. Check that the event was reborn.
func TestForkLogsReborn(t *testing.T) {
testAddr := crypto.PubkeyToAddress(testKey.PublicKey)
diff --git a/accounts/abi/bind/base.go b/accounts/abi/bind/base.go
index 88b997684a..6d65f819b8 100644
--- a/accounts/abi/bind/base.go
+++ b/accounts/abi/bind/base.go
@@ -24,12 +24,12 @@ import (
"strings"
"sync"
+ "github.com/cryptoecc/ETH-ECC/accounts/abi"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/event"
"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"
)
const basefeeWiggleMultiplier = 2
diff --git a/accounts/abi/bind/base_test.go b/accounts/abi/bind/base_test.go
index 2307b9874b..58323fe9d0 100644
--- a/accounts/abi/bind/base_test.go
+++ b/accounts/abi/bind/base_test.go
@@ -24,14 +24,14 @@ import (
"strings"
"testing"
+ "github.com/cryptoecc/ETH-ECC/accounts/abi"
+ "github.com/cryptoecc/ETH-ECC/accounts/abi/bind"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/hexutil"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/rlp"
"github.com/ethereum/go-ethereum"
- "github.com/ethereum/go-ethereum/accounts/abi"
- "github.com/ethereum/go-ethereum/accounts/abi/bind"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/rlp"
"github.com/stretchr/testify/assert"
)
diff --git a/accounts/abi/bind/bind.go b/accounts/abi/bind/bind.go
index dac43f70e2..13c6571197 100644
--- a/accounts/abi/bind/bind.go
+++ b/accounts/abi/bind/bind.go
@@ -17,7 +17,7 @@
// Package bind generates Ethereum contract Go bindings.
//
// Detailed usage document and tutorial available on the go-ethereum Wiki page:
-// https://github.com/ethereum/go-ethereum/wiki/Native-DApps:-Go-bindings-to-Ethereum-contracts
+// https://github.com/cryptoecc/ETH-ECC/wiki/Native-DApps:-Go-bindings-to-Ethereum-contracts
package bind
import (
@@ -30,8 +30,8 @@ import (
"text/template"
"unicode"
- "github.com/ethereum/go-ethereum/accounts/abi"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/cryptoecc/ETH-ECC/accounts/abi"
+ "github.com/cryptoecc/ETH-ECC/log"
)
// Lang is a target programming language selector to generate bindings for.
diff --git a/accounts/abi/bind/bind_test.go b/accounts/abi/bind/bind_test.go
index 5fa803849d..1557062623 100644
--- a/accounts/abi/bind/bind_test.go
+++ b/accounts/abi/bind/bind_test.go
@@ -25,7 +25,7 @@ import (
"strings"
"testing"
- "github.com/ethereum/go-ethereum/common"
+ "github.com/cryptoecc/ETH-ECC/common"
)
var bindTests = []struct {
@@ -46,7 +46,7 @@ var bindTests = []struct {
`contract NilContract {}`,
[]string{`606060405260068060106000396000f3606060405200`},
[]string{`[]`},
- `"github.com/ethereum/go-ethereum/common"`,
+ `"github.com/cryptoecc/ETH-ECC/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/cryptoecc/ETH-ECC/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/cryptoecc/ETH-ECC/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/cryptoecc/ETH-ECC/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/cryptoecc/ETH-ECC/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/cryptoecc/ETH-ECC/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/cryptoecc/ETH-ECC/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"
- "github.com/ethereum/go-ethereum/crypto"
+ "github.com/cryptoecc/ETH-ECC/accounts/abi/bind"
+ "github.com/cryptoecc/ETH-ECC/accounts/abi/bind/backends"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/crypto"
`,
`
// Generate a new random account and a funded simulator
@@ -342,10 +342,10 @@ var bindTests = []struct {
`
"math/big"
- "github.com/ethereum/go-ethereum/accounts/abi/bind"
- "github.com/ethereum/go-ethereum/accounts/abi/bind/backends"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/crypto"
+ "github.com/cryptoecc/ETH-ECC/accounts/abi/bind"
+ "github.com/cryptoecc/ETH-ECC/accounts/abi/bind/backends"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/crypto"
`,
`
// Generate a new random account and a funded simulator
@@ -388,10 +388,10 @@ var bindTests = []struct {
`
"math/big"
- "github.com/ethereum/go-ethereum/accounts/abi/bind"
- "github.com/ethereum/go-ethereum/accounts/abi/bind/backends"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/crypto"
+ "github.com/cryptoecc/ETH-ECC/accounts/abi/bind"
+ "github.com/cryptoecc/ETH-ECC/accounts/abi/bind/backends"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/crypto"
`,
`
// Generate a new random account and a funded simulator
@@ -445,11 +445,11 @@ var bindTests = []struct {
"math/big"
"reflect"
- "github.com/ethereum/go-ethereum/accounts/abi/bind"
- "github.com/ethereum/go-ethereum/accounts/abi/bind/backends"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/crypto"
+ "github.com/cryptoecc/ETH-ECC/accounts/abi/bind"
+ "github.com/cryptoecc/ETH-ECC/accounts/abi/bind/backends"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/crypto"
`,
`
// Generate a new random account and a funded simulator
@@ -494,10 +494,10 @@ var bindTests = []struct {
`
"math/big"
- "github.com/ethereum/go-ethereum/accounts/abi/bind"
- "github.com/ethereum/go-ethereum/accounts/abi/bind/backends"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/crypto"
+ "github.com/cryptoecc/ETH-ECC/accounts/abi/bind"
+ "github.com/cryptoecc/ETH-ECC/accounts/abi/bind/backends"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/crypto"
`,
`
// Generate a new random account and a funded simulator
@@ -560,10 +560,10 @@ var bindTests = []struct {
`
"math/big"
- "github.com/ethereum/go-ethereum/accounts/abi/bind"
- "github.com/ethereum/go-ethereum/accounts/abi/bind/backends"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/crypto"
+ "github.com/cryptoecc/ETH-ECC/accounts/abi/bind"
+ "github.com/cryptoecc/ETH-ECC/accounts/abi/bind/backends"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/crypto"
`,
`
// Generate a new random account and a funded simulator
@@ -605,10 +605,10 @@ var bindTests = []struct {
[]string{`6060604052609f8060106000396000f3606060405260e060020a6000350463f97a60058114601a575b005b600060605260c0604052600d60809081527f4920646f6e27742065786973740000000000000000000000000000000000000060a052602060c0908152600d60e081905281906101009060a09080838184600060046012f15050815172ffffffffffffffffffffffffffffffffffffff1916909152505060405161012081900392509050f3`},
[]string{`[{"constant":true,"inputs":[],"name":"String","outputs":[{"name":"","type":"string"}],"type":"function"}]`},
`
- "github.com/ethereum/go-ethereum/accounts/abi/bind"
- "github.com/ethereum/go-ethereum/accounts/abi/bind/backends"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core"
+ "github.com/cryptoecc/ETH-ECC/accounts/abi/bind"
+ "github.com/cryptoecc/ETH-ECC/accounts/abi/bind/backends"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core"
`,
`
// Create a simulator and wrap a non-deployed contract
@@ -644,10 +644,10 @@ var bindTests = []struct {
[]string{`6080604052348015600f57600080fd5b5060888061001e6000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c8063d5f6622514602d575b600080fd5b6033604c565b6040805192835260208301919091528051918290030190f35b600a809156fea264697066735822beefbeefbeefbeefbeefbeefbeefbeefbeefbeefbeefbeefbeefbeefbeefbeefbeef64736f6c6343decafe0033`},
[]string{`[{"inputs":[],"name":"Struct","outputs":[{"internalType":"uint256","name":"a","type":"uint256"},{"internalType":"uint256","name":"b","type":"uint256"}],"stateMutability":"pure","type":"function"}]`},
`
- "github.com/ethereum/go-ethereum/accounts/abi/bind"
- "github.com/ethereum/go-ethereum/accounts/abi/bind/backends"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core"
+ "github.com/cryptoecc/ETH-ECC/accounts/abi/bind"
+ "github.com/cryptoecc/ETH-ECC/accounts/abi/bind/backends"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core"
`,
`
// Create a simulator and wrap a non-deployed contract
@@ -692,10 +692,10 @@ var bindTests = []struct {
`
"math/big"
- "github.com/ethereum/go-ethereum/accounts/abi/bind"
- "github.com/ethereum/go-ethereum/accounts/abi/bind/backends"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/crypto"
+ "github.com/cryptoecc/ETH-ECC/accounts/abi/bind"
+ "github.com/cryptoecc/ETH-ECC/accounts/abi/bind/backends"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/crypto"
`,
`
// Generate a new random account and a funded simulator
@@ -741,11 +741,11 @@ var bindTests = []struct {
`
"math/big"
- "github.com/ethereum/go-ethereum/accounts/abi/bind"
- "github.com/ethereum/go-ethereum/accounts/abi/bind/backends"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/crypto"
+ "github.com/cryptoecc/ETH-ECC/accounts/abi/bind"
+ "github.com/cryptoecc/ETH-ECC/accounts/abi/bind/backends"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/crypto"
`,
`
// Generate a new random account and a funded simulator
@@ -817,10 +817,10 @@ var bindTests = []struct {
"fmt"
"math/big"
- "github.com/ethereum/go-ethereum/accounts/abi/bind"
- "github.com/ethereum/go-ethereum/accounts/abi/bind/backends"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/crypto"
+ "github.com/cryptoecc/ETH-ECC/accounts/abi/bind"
+ "github.com/cryptoecc/ETH-ECC/accounts/abi/bind/backends"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/crypto"
`,
`
// Generate a new random account and a funded simulator
@@ -910,11 +910,11 @@ var bindTests = []struct {
"math/big"
"time"
- "github.com/ethereum/go-ethereum/accounts/abi/bind"
- "github.com/ethereum/go-ethereum/accounts/abi/bind/backends"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/crypto"
+ "github.com/cryptoecc/ETH-ECC/accounts/abi/bind"
+ "github.com/cryptoecc/ETH-ECC/accounts/abi/bind/backends"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/crypto"
`,
`
// Generate a new random account and a funded simulator
@@ -1101,10 +1101,10 @@ var bindTests = []struct {
`
"math/big"
- "github.com/ethereum/go-ethereum/accounts/abi/bind"
- "github.com/ethereum/go-ethereum/accounts/abi/bind/backends"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/crypto"
+ "github.com/cryptoecc/ETH-ECC/accounts/abi/bind"
+ "github.com/cryptoecc/ETH-ECC/accounts/abi/bind/backends"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/crypto"
`,
`
// Generate a new random account and a funded simulator
@@ -1236,10 +1236,10 @@ var bindTests = []struct {
"math/big"
"reflect"
- "github.com/ethereum/go-ethereum/accounts/abi/bind"
- "github.com/ethereum/go-ethereum/accounts/abi/bind/backends"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/crypto"
+ "github.com/cryptoecc/ETH-ECC/accounts/abi/bind"
+ "github.com/cryptoecc/ETH-ECC/accounts/abi/bind/backends"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/crypto"
`,
`
@@ -1378,10 +1378,10 @@ var bindTests = []struct {
`
"math/big"
- "github.com/ethereum/go-ethereum/accounts/abi/bind"
- "github.com/ethereum/go-ethereum/accounts/abi/bind/backends"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/crypto"
+ "github.com/cryptoecc/ETH-ECC/accounts/abi/bind"
+ "github.com/cryptoecc/ETH-ECC/accounts/abi/bind/backends"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/crypto"
`,
`
// Generate a new random account and a funded simulator
@@ -1444,10 +1444,10 @@ var bindTests = []struct {
"math/big"
"time"
- "github.com/ethereum/go-ethereum/accounts/abi/bind"
- "github.com/ethereum/go-ethereum/accounts/abi/bind/backends"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/crypto"
+ "github.com/cryptoecc/ETH-ECC/accounts/abi/bind"
+ "github.com/cryptoecc/ETH-ECC/accounts/abi/bind/backends"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/crypto"
`,
`
// Initialize test accounts
@@ -1532,10 +1532,10 @@ var bindTests = []struct {
`
"math/big"
- "github.com/ethereum/go-ethereum/accounts/abi/bind"
- "github.com/ethereum/go-ethereum/accounts/abi/bind/backends"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/core"
+ "github.com/cryptoecc/ETH-ECC/accounts/abi/bind"
+ "github.com/cryptoecc/ETH-ECC/accounts/abi/bind/backends"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/core"
`,
`
// Initialize test accounts
@@ -1595,10 +1595,10 @@ var bindTests = []struct {
`
"math/big"
- "github.com/ethereum/go-ethereum/accounts/abi/bind"
- "github.com/ethereum/go-ethereum/accounts/abi/bind/backends"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/core"
+ "github.com/cryptoecc/ETH-ECC/accounts/abi/bind"
+ "github.com/cryptoecc/ETH-ECC/accounts/abi/bind/backends"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/core"
`,
`
key, _ := crypto.GenerateKey()
@@ -1657,10 +1657,10 @@ var bindTests = []struct {
`
"math/big"
- "github.com/ethereum/go-ethereum/accounts/abi/bind"
- "github.com/ethereum/go-ethereum/accounts/abi/bind/backends"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/crypto"
+ "github.com/cryptoecc/ETH-ECC/accounts/abi/bind"
+ "github.com/cryptoecc/ETH-ECC/accounts/abi/bind/backends"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/crypto"
`,
`
// Generate a new random account and a funded simulator
@@ -1718,10 +1718,10 @@ var bindTests = []struct {
"bytes"
"math/big"
- "github.com/ethereum/go-ethereum/accounts/abi/bind"
- "github.com/ethereum/go-ethereum/accounts/abi/bind/backends"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/crypto"
+ "github.com/cryptoecc/ETH-ECC/accounts/abi/bind"
+ "github.com/cryptoecc/ETH-ECC/accounts/abi/bind/backends"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/crypto"
`,
`
key, _ := crypto.GenerateKey()
@@ -1806,11 +1806,11 @@ var bindTests = []struct {
`
"math/big"
- "github.com/ethereum/go-ethereum/accounts/abi/bind"
- "github.com/ethereum/go-ethereum/accounts/abi/bind/backends"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/eth/ethconfig"
+ "github.com/cryptoecc/ETH-ECC/accounts/abi/bind"
+ "github.com/cryptoecc/ETH-ECC/accounts/abi/bind/backends"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/eth/ethconfig"
`,
`
var (
@@ -1876,11 +1876,11 @@ var bindTests = []struct {
`
"math/big"
- "github.com/ethereum/go-ethereum/accounts/abi/bind"
- "github.com/ethereum/go-ethereum/accounts/abi/bind/backends"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/eth/ethconfig"
+ "github.com/cryptoecc/ETH-ECC/accounts/abi/bind"
+ "github.com/cryptoecc/ETH-ECC/accounts/abi/bind/backends"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/eth/ethconfig"
`,
`
var (
@@ -1928,11 +1928,11 @@ var bindTests = []struct {
imports: `
"math/big"
- "github.com/ethereum/go-ethereum/accounts/abi/bind"
- "github.com/ethereum/go-ethereum/accounts/abi/bind/backends"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/eth/ethconfig"
+ "github.com/cryptoecc/ETH-ECC/accounts/abi/bind"
+ "github.com/cryptoecc/ETH-ECC/accounts/abi/bind/backends"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/eth/ethconfig"
`,
tester: `
var (
@@ -1976,11 +1976,11 @@ var bindTests = []struct {
imports: `
"math/big"
- "github.com/ethereum/go-ethereum/accounts/abi/bind"
- "github.com/ethereum/go-ethereum/accounts/abi/bind/backends"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/eth/ethconfig"
+ "github.com/cryptoecc/ETH-ECC/accounts/abi/bind"
+ "github.com/cryptoecc/ETH-ECC/accounts/abi/bind/backends"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/eth/ethconfig"
`,
tester: `
var (
@@ -2016,11 +2016,11 @@ var bindTests = []struct {
imports: `
"math/big"
- "github.com/ethereum/go-ethereum/accounts/abi/bind"
- "github.com/ethereum/go-ethereum/accounts/abi/bind/backends"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/eth/ethconfig"
+ "github.com/cryptoecc/ETH-ECC/accounts/abi/bind"
+ "github.com/cryptoecc/ETH-ECC/accounts/abi/bind/backends"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/eth/ethconfig"
`,
tester: `
var (
@@ -2098,7 +2098,7 @@ func TestGolangBindings(t *testing.T) {
t.Fatalf("failed to convert binding test to modules: %v\n%s", err, out)
}
pwd, _ := os.Getwd()
- replacer := exec.Command(gocmd, "mod", "edit", "-x", "-require", "github.com/ethereum/go-ethereum@v0.0.0", "-replace", "github.com/ethereum/go-ethereum="+filepath.Join(pwd, "..", "..", "..")) // Repo root
+ replacer := exec.Command(gocmd, "mod", "edit", "-x", "-require", "github.com/cryptoecc/ETH-ECC@v0.0.0", "-replace", "github.com/cryptoecc/ETH-ECC="+filepath.Join(pwd, "..", "..", "..")) // Repo root
replacer.Dir = pkg
if out, err := replacer.CombinedOutput(); err != nil {
t.Fatalf("failed to replace binding test dependency to current source tree: %v\n%s", err, out)
diff --git a/accounts/abi/bind/template.go b/accounts/abi/bind/template.go
index c9b001133d..aa23bc0d53 100644
--- a/accounts/abi/bind/template.go
+++ b/accounts/abi/bind/template.go
@@ -16,7 +16,7 @@
package bind
-import "github.com/ethereum/go-ethereum/accounts/abi"
+import "github.com/cryptoecc/ETH-ECC/accounts/abi"
// tmplData is the data structure required to fill the binding template.
type tmplData struct {
@@ -92,12 +92,12 @@ import (
"strings"
"errors"
- ethereum "github.com/ethereum/go-ethereum"
- "github.com/ethereum/go-ethereum/accounts/abi"
- "github.com/ethereum/go-ethereum/accounts/abi/bind"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/event"
+ ethereum "github.com/cryptoecc/ETH-ECC"
+ "github.com/cryptoecc/ETH-ECC/accounts/abi"
+ "github.com/cryptoecc/ETH-ECC/accounts/abi/bind"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/event"
)
// Reference imports to suppress errors if they are not otherwise used.
diff --git a/accounts/abi/bind/util.go b/accounts/abi/bind/util.go
index b931fbb04d..951226f5ce 100644
--- a/accounts/abi/bind/util.go
+++ b/accounts/abi/bind/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"
+ ethereum "github.com/cryptoecc/ETH-ECC"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/log"
)
// WaitMined waits for tx to be mined on the blockchain.
diff --git a/accounts/abi/bind/util_test.go b/accounts/abi/bind/util_test.go
index 75fbc91ceb..23632d6217 100644
--- a/accounts/abi/bind/util_test.go
+++ b/accounts/abi/bind/util_test.go
@@ -23,12 +23,12 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/accounts/abi/bind"
- "github.com/ethereum/go-ethereum/accounts/abi/bind/backends"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/crypto"
+ "github.com/cryptoecc/ETH-ECC/accounts/abi/bind"
+ "github.com/cryptoecc/ETH-ECC/accounts/abi/bind/backends"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/crypto"
)
var testKey, _ = crypto.HexToECDSA("b71c71a67e1177ad4e901695e1b4b9ee17ae16c6668d313eac2f96dbcda3f291")
diff --git a/accounts/abi/error.go b/accounts/abi/error.go
index f53c996def..f304f59698 100644
--- a/accounts/abi/error.go
+++ b/accounts/abi/error.go
@@ -22,8 +22,8 @@ import (
"fmt"
"strings"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/crypto"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/crypto"
)
type Error struct {
diff --git a/accounts/abi/event.go b/accounts/abi/event.go
index f9457b86af..30339c0ff4 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/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/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 8f73419496..12fbb963ca 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/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/crypto"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
diff --git a/accounts/abi/method.go b/accounts/abi/method.go
index f69e3ee9b5..b701e6fa38 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/cryptoecc/ETH-ECC/crypto"
)
// FunctionType represents different types of functions a contract might have.
diff --git a/accounts/abi/pack.go b/accounts/abi/pack.go
index 0cd91cb4fa..27f5f46a2d 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/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/math"
)
// packBytesSlice packs the given bytes as [L, V] as the canonical representation
diff --git a/accounts/abi/pack_test.go b/accounts/abi/pack_test.go
index 5c7cb1cc1a..9073842f09 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/cryptoecc/ETH-ECC/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..59010c55bd 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/cryptoecc/ETH-ECC/common"
)
type packUnpackTest struct {
diff --git a/accounts/abi/topics.go b/accounts/abi/topics.go
index 360df7d5e8..7f4d5753b6 100644
--- a/accounts/abi/topics.go
+++ b/accounts/abi/topics.go
@@ -23,8 +23,8 @@ import (
"math/big"
"reflect"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/crypto"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/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 30cf21d0b8..ec50dde7ac 100644
--- a/accounts/abi/topics_test.go
+++ b/accounts/abi/topics_test.go
@@ -21,8 +21,8 @@ import (
"reflect"
"testing"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/crypto"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/crypto"
)
func TestMakeTopics(t *testing.T) {
diff --git a/accounts/abi/type.go b/accounts/abi/type.go
index 008b665b1a..f59eaaa6cf 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/cryptoecc/ETH-ECC/common"
)
// Type enumerator
diff --git a/accounts/abi/type_test.go b/accounts/abi/type_test.go
index 8c3aedca6a..b1f4a4f107 100644
--- a/accounts/abi/type_test.go
+++ b/accounts/abi/type_test.go
@@ -21,8 +21,8 @@ import (
"reflect"
"testing"
+ "github.com/cryptoecc/ETH-ECC/common"
"github.com/davecgh/go-spew/spew"
- "github.com/ethereum/go-ethereum/common"
)
// typeWithoutStringer is a alias for the Type type which simply doesn't implement
diff --git a/accounts/abi/unpack.go b/accounts/abi/unpack.go
index 800789295c..49f2058f2f 100644
--- a/accounts/abi/unpack.go
+++ b/accounts/abi/unpack.go
@@ -22,7 +22,7 @@ import (
"math/big"
"reflect"
- "github.com/ethereum/go-ethereum/common"
+ "github.com/cryptoecc/ETH-ECC/common"
)
var (
diff --git a/accounts/abi/unpack_test.go b/accounts/abi/unpack_test.go
index 363e0cd594..645a7fb1d4 100644
--- a/accounts/abi/unpack_test.go
+++ b/accounts/abi/unpack_test.go
@@ -26,7 +26,7 @@ import (
"strings"
"testing"
- "github.com/ethereum/go-ethereum/common"
+ "github.com/cryptoecc/ETH-ECC/common"
"github.com/stretchr/testify/require"
)
diff --git a/accounts/accounts.go b/accounts/accounts.go
index 179a33c59f..343088d62b 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"
+ ethereum "github.com/cryptoecc/ETH-ECC"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/event"
"golang.org/x/crypto/sha3"
)
@@ -177,7 +177,8 @@ type Backend interface {
// safely used to calculate a signature from.
//
// The hash is calculated as
-// keccak256("\x19Ethereum Signed Message:\n"${message length}${message}).
+//
+// keccak256("\x19Ethereum Signed Message:\n"${message length}${message}).
//
// This gives context to the signed message and prevents signing of transactions.
func TextHash(data []byte) []byte {
@@ -189,7 +190,8 @@ func TextHash(data []byte) []byte {
// safely used to calculate a signature from.
//
// The hash is calculated as
-// keccak256("\x19Ethereum Signed Message:\n"${message length}${message}).
+//
+// keccak256("\x19Ethereum Signed Message:\n"${message length}${message}).
//
// This gives context to the signed message and prevents signing of transactions.
func TextAndHash(data []byte) ([]byte, string) {
diff --git a/accounts/accounts_test.go b/accounts/accounts_test.go
index e8274f9f04..03f4f3fd51 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/cryptoecc/ETH-ECC/common/hexutil"
)
func TestTextHash(t *testing.T) {
diff --git a/accounts/external/backend.go b/accounts/external/backend.go
index d403b7e562..4b457f29f8 100644
--- a/accounts/external/backend.go
+++ b/accounts/external/backend.go
@@ -21,15 +21,15 @@ import (
"math/big"
"sync"
- "github.com/ethereum/go-ethereum"
- "github.com/ethereum/go-ethereum/accounts"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/event"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/rpc"
- "github.com/ethereum/go-ethereum/signer/core/apitypes"
+ ethereum "github.com/cryptoecc/ETH-ECC"
+ "github.com/cryptoecc/ETH-ECC/accounts"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/hexutil"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/event"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/rpc"
+ "github.com/cryptoecc/ETH-ECC/signer/core/apitypes"
)
type ExternalBackend struct {
diff --git a/accounts/keystore/account_cache.go b/accounts/keystore/account_cache.go
index a3ec6e9c56..2e74dd4df1 100644
--- a/accounts/keystore/account_cache.go
+++ b/accounts/keystore/account_cache.go
@@ -27,10 +27,10 @@ import (
"sync"
"time"
+ "github.com/cryptoecc/ETH-ECC/accounts"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/log"
mapset "github.com/deckarep/golang-set"
- "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 daea497d1a..6045df3070 100644
--- a/accounts/keystore/account_cache_test.go
+++ b/accounts/keystore/account_cache_test.go
@@ -27,9 +27,9 @@ import (
"time"
"github.com/cespare/cp"
+ "github.com/cryptoecc/ETH-ECC/accounts"
+ "github.com/cryptoecc/ETH-ECC/common"
"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 79f9a29637..386a39ea0c 100644
--- a/accounts/keystore/file_cache.go
+++ b/accounts/keystore/file_cache.go
@@ -23,8 +23,8 @@ import (
"sync"
"time"
+ "github.com/cryptoecc/ETH-ECC/log"
mapset "github.com/deckarep/golang-set"
- "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..f6c2d9b5e1 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/cryptoecc/ETH-ECC/accounts"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/crypto"
"github.com/google/uuid"
)
diff --git a/accounts/keystore/keystore.go b/accounts/keystore/keystore.go
index 88dcfbeb69..3da674f929 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/cryptoecc/ETH-ECC/accounts"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/event"
)
var (
diff --git a/accounts/keystore/keystore_test.go b/accounts/keystore/keystore_test.go
index 4cdf0b1ed6..6c0138ea40 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/cryptoecc/ETH-ECC/accounts"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/event"
)
var testSigData = make([]byte, 32)
diff --git a/accounts/keystore/passphrase.go b/accounts/keystore/passphrase.go
index 1701fbf536..f61f018f12 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/cryptoecc/ETH-ECC/accounts"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/math"
+ "github.com/cryptoecc/ETH-ECC/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/cryptoecc/ETH-ECC/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 1356b31780..853dc9a0b9 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/cryptoecc/ETH-ECC/common"
)
const (
diff --git a/accounts/keystore/plain.go b/accounts/keystore/plain.go
index f62a133ce1..d2c1ae0b0d 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/cryptoecc/ETH-ECC/common"
)
type keyStorePlain struct {
diff --git a/accounts/keystore/plain_test.go b/accounts/keystore/plain_test.go
index 93165d5cd3..65dff8ae18 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/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/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..f52f79d0f7 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/cryptoecc/ETH-ECC/accounts"
+ "github.com/cryptoecc/ETH-ECC/crypto"
"github.com/google/uuid"
"golang.org/x/crypto/pbkdf2"
)
diff --git a/accounts/keystore/wallet.go b/accounts/keystore/wallet.go
index 1066095f6d..3779b36b59 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"
+ ethereum "github.com/cryptoecc/ETH-ECC"
+ "github.com/cryptoecc/ETH-ECC/accounts"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/crypto"
)
// keystoreWallet implements the accounts.Wallet interface for the original
diff --git a/accounts/keystore/watch.go b/accounts/keystore/watch.go
index ad176040d6..ad8a08b8a9 100644
--- a/accounts/keystore/watch.go
+++ b/accounts/keystore/watch.go
@@ -22,7 +22,7 @@ package keystore
import (
"time"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/cryptoecc/ETH-ECC/log"
"github.com/rjeczalik/notify"
)
diff --git a/accounts/manager.go b/accounts/manager.go
index 1e111d1948..e2a245d720 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/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/event"
)
// managerSubBufferSize determines how many incoming wallet events
diff --git a/accounts/scwallet/hub.go b/accounts/scwallet/hub.go
index f9dcf58e19..fb3f71cee0 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/cryptoecc/ETH-ECC/accounts"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/event"
+ "github.com/cryptoecc/ETH-ECC/log"
pcsc "github.com/gballet/go-libpcsclite"
)
diff --git a/accounts/scwallet/securechannel.go b/accounts/scwallet/securechannel.go
index b1b533eb72..1c9f327718 100644
--- a/accounts/scwallet/securechannel.go
+++ b/accounts/scwallet/securechannel.go
@@ -26,7 +26,7 @@ import (
"crypto/sha512"
"fmt"
- "github.com/ethereum/go-ethereum/crypto"
+ "github.com/cryptoecc/ETH-ECC/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 5082dec1cb..dbcbaa5304 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"
+ ethereum "github.com/cryptoecc/ETH-ECC"
+ "github.com/cryptoecc/ETH-ECC/accounts"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/log"
pcsc "github.com/gballet/go-libpcsclite"
"github.com/status-im/keycard-go/derivationpath"
)
@@ -879,6 +879,7 @@ func (s *Session) walletStatus() (*walletStatus, error) {
}
// derivationPath fetches the wallet's current derivation path from the card.
+//
//lint:ignore U1000 needs to be added to the console interface
func (s *Session) derivationPath() (accounts.DerivationPath, error) {
response, err := s.Channel.transmitEncrypted(claSCWallet, insStatus, statusP1Path, 0, nil)
@@ -994,6 +995,7 @@ func (s *Session) derive(path accounts.DerivationPath) (accounts.Account, error)
}
// keyExport contains information on an exported keypair.
+//
//lint:ignore U1000 needs to be added to the console interface
type keyExport struct {
PublicKey []byte `asn1:"tag:0"`
@@ -1001,6 +1003,7 @@ type keyExport struct {
}
// publicKey returns the public key for the current derivation path.
+//
//lint:ignore U1000 needs to be added to the console interface
func (s *Session) publicKey() ([]byte, error) {
response, err := s.Channel.transmitEncrypted(claSCWallet, insExportKey, exportP1Any, exportP2Pubkey, nil)
diff --git a/accounts/usbwallet/hub.go b/accounts/usbwallet/hub.go
index 23be98a084..aa36e93bdc 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/cryptoecc/ETH-ECC/accounts"
+ "github.com/cryptoecc/ETH-ECC/event"
+ "github.com/cryptoecc/ETH-ECC/log"
"github.com/karalabe/usb"
)
diff --git a/accounts/usbwallet/ledger.go b/accounts/usbwallet/ledger.go
index 3de3b4091c..3810b15e99 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/cryptoecc/ETH-ECC/accounts"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/hexutil"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/rlp"
)
// ledgerOpcode is an enumeration encoding the supported Ledger opcodes.
@@ -195,18 +195,18 @@ func (w *ledgerDriver) SignTypedMessage(path accounts.DerivationPath, domainHash
//
// The version retrieval protocol is defined as follows:
//
-// CLA | INS | P1 | P2 | Lc | Le
-// ----+-----+----+----+----+---
-// E0 | 06 | 00 | 00 | 00 | 04
+// CLA | INS | P1 | P2 | Lc | Le
+// ----+-----+----+----+----+---
+// E0 | 06 | 00 | 00 | 00 | 04
//
// With no input data, and the output data being:
//
-// Description | Length
-// ---------------------------------------------------+--------
-// Flags 01: arbitrary data signature enabled by user | 1 byte
-// Application major version | 1 byte
-// Application minor version | 1 byte
-// Application patch version | 1 byte
+// Description | Length
+// ---------------------------------------------------+--------
+// Flags 01: arbitrary data signature enabled by user | 1 byte
+// Application major version | 1 byte
+// Application minor version | 1 byte
+// Application patch version | 1 byte
func (w *ledgerDriver) ledgerVersion() ([3]byte, error) {
// Send the request and wait for the response
reply, err := w.ledgerExchange(ledgerOpGetConfiguration, 0, 0, nil)
@@ -227,32 +227,32 @@ func (w *ledgerDriver) ledgerVersion() ([3]byte, error) {
//
// The address derivation protocol is defined as follows:
//
-// CLA | INS | P1 | P2 | Lc | Le
-// ----+-----+----+----+-----+---
-// E0 | 02 | 00 return address
-// 01 display address and confirm before returning
-// | 00: do not return the chain code
-// | 01: return the chain code
-// | var | 00
+// CLA | INS | P1 | P2 | Lc | Le
+// ----+-----+----+----+-----+---
+// E0 | 02 | 00 return address
+// 01 display address and confirm before returning
+// | 00: do not return the chain code
+// | 01: return the chain code
+// | var | 00
//
// Where the input data is:
//
-// Description | Length
-// -------------------------------------------------+--------
-// Number of BIP 32 derivations to perform (max 10) | 1 byte
-// First derivation index (big endian) | 4 bytes
-// ... | 4 bytes
-// Last derivation index (big endian) | 4 bytes
+// Description | Length
+// -------------------------------------------------+--------
+// Number of BIP 32 derivations to perform (max 10) | 1 byte
+// First derivation index (big endian) | 4 bytes
+// ... | 4 bytes
+// Last derivation index (big endian) | 4 bytes
//
// And the output data is:
//
-// Description | Length
-// ------------------------+-------------------
-// Public Key length | 1 byte
-// Uncompressed Public Key | arbitrary
-// Ethereum address length | 1 byte
-// Ethereum address | 40 bytes hex ascii
-// Chain code if requested | 32 bytes
+// Description | Length
+// ------------------------+-------------------
+// Public Key length | 1 byte
+// Uncompressed Public Key | arbitrary
+// Ethereum address length | 1 byte
+// Ethereum address | 40 bytes hex ascii
+// Chain code if requested | 32 bytes
func (w *ledgerDriver) ledgerDerive(derivationPath []uint32) (common.Address, error) {
// Flatten the derivation path into the Ledger request
path := make([]byte, 1+4*len(derivationPath))
@@ -290,35 +290,35 @@ func (w *ledgerDriver) ledgerDerive(derivationPath []uint32) (common.Address, er
//
// The transaction signing protocol is defined as follows:
//
-// CLA | INS | P1 | P2 | Lc | Le
-// ----+-----+----+----+-----+---
-// E0 | 04 | 00: first transaction data block
-// 80: subsequent transaction data block
-// | 00 | variable | variable
+// CLA | INS | P1 | P2 | Lc | Le
+// ----+-----+----+----+-----+---
+// E0 | 04 | 00: first transaction data block
+// 80: subsequent transaction data block
+// | 00 | variable | variable
//
// Where the input for the first transaction block (first 255 bytes) is:
//
-// Description | Length
-// -------------------------------------------------+----------
-// Number of BIP 32 derivations to perform (max 10) | 1 byte
-// First derivation index (big endian) | 4 bytes
-// ... | 4 bytes
-// Last derivation index (big endian) | 4 bytes
-// RLP transaction chunk | arbitrary
+// Description | Length
+// -------------------------------------------------+----------
+// Number of BIP 32 derivations to perform (max 10) | 1 byte
+// First derivation index (big endian) | 4 bytes
+// ... | 4 bytes
+// Last derivation index (big endian) | 4 bytes
+// RLP transaction chunk | arbitrary
//
// And the input for subsequent transaction blocks (first 255 bytes) are:
//
-// Description | Length
-// ----------------------+----------
-// RLP transaction chunk | arbitrary
+// Description | Length
+// ----------------------+----------
+// RLP transaction chunk | arbitrary
//
// And the output data is:
//
-// Description | Length
-// ------------+---------
-// signature V | 1 byte
-// signature R | 32 bytes
-// signature S | 32 bytes
+// Description | Length
+// ------------+---------
+// signature V | 1 byte
+// signature R | 32 bytes
+// signature S | 32 bytes
func (w *ledgerDriver) ledgerSign(derivationPath []uint32, tx *types.Transaction, chainID *big.Int) (common.Address, *types.Transaction, error) {
// Flatten the derivation path into the Ledger request
path := make([]byte, 1+4*len(derivationPath))
@@ -392,30 +392,28 @@ func (w *ledgerDriver) ledgerSign(derivationPath []uint32, tx *types.Transaction
//
// The signing protocol is defined as follows:
//
-// CLA | INS | P1 | P2 | Lc | Le
-// ----+-----+----+-----------------------------+-----+---
-// E0 | 0C | 00 | implementation version : 00 | variable | variable
+// CLA | INS | P1 | P2 | Lc | Le
+// ----+-----+----+-----------------------------+-----+---
+// E0 | 0C | 00 | implementation version : 00 | variable | variable
//
// Where the input is:
//
-// Description | Length
-// -------------------------------------------------+----------
-// Number of BIP 32 derivations to perform (max 10) | 1 byte
-// First derivation index (big endian) | 4 bytes
-// ... | 4 bytes
-// Last derivation index (big endian) | 4 bytes
-// domain hash | 32 bytes
-// message hash | 32 bytes
-//
-//
+// Description | Length
+// -------------------------------------------------+----------
+// Number of BIP 32 derivations to perform (max 10) | 1 byte
+// First derivation index (big endian) | 4 bytes
+// ... | 4 bytes
+// Last derivation index (big endian) | 4 bytes
+// domain hash | 32 bytes
+// message hash | 32 bytes
//
// And the output data is:
//
-// Description | Length
-// ------------+---------
-// signature V | 1 byte
-// signature R | 32 bytes
-// signature S | 32 bytes
+// Description | Length
+// ------------+---------
+// signature V | 1 byte
+// signature R | 32 bytes
+// signature S | 32 bytes
func (w *ledgerDriver) ledgerSignTypedMessage(derivationPath []uint32, domainHash []byte, messageHash []byte) ([]byte, error) {
// Flatten the derivation path into the Ledger request
path := make([]byte, 1+4*len(derivationPath))
@@ -454,12 +452,12 @@ func (w *ledgerDriver) ledgerSignTypedMessage(derivationPath []uint32, domainHas
//
// The common transport header is defined as follows:
//
-// Description | Length
-// --------------------------------------+----------
-// Communication channel ID (big endian) | 2 bytes
-// Command tag | 1 byte
-// Packet sequence index (big endian) | 2 bytes
-// Payload | arbitrary
+// Description | Length
+// --------------------------------------+----------
+// Communication channel ID (big endian) | 2 bytes
+// Command tag | 1 byte
+// Packet sequence index (big endian) | 2 bytes
+// Payload | arbitrary
//
// The Communication channel ID allows commands multiplexing over the same
// physical link. It is not used for the time being, and should be set to 0101
@@ -473,15 +471,15 @@ func (w *ledgerDriver) ledgerSignTypedMessage(derivationPath []uint32, domainHas
//
// APDU Command payloads are encoded as follows:
//
-// Description | Length
-// -----------------------------------
-// APDU length (big endian) | 2 bytes
-// APDU CLA | 1 byte
-// APDU INS | 1 byte
-// APDU P1 | 1 byte
-// APDU P2 | 1 byte
-// APDU length | 1 byte
-// Optional APDU data | arbitrary
+// Description | Length
+// -----------------------------------
+// APDU length (big endian) | 2 bytes
+// APDU CLA | 1 byte
+// APDU INS | 1 byte
+// APDU P1 | 1 byte
+// APDU P2 | 1 byte
+// APDU length | 1 byte
+// Optional APDU data | arbitrary
func (w *ledgerDriver) ledgerExchange(opcode ledgerOpcode, p1 ledgerParam1, p2 ledgerParam2, data []byte) ([]byte, error) {
// Construct the message payload, possibly split into multiple chunks
apdu := make([]byte, 2, 7+len(data))
diff --git a/accounts/usbwallet/trezor.go b/accounts/usbwallet/trezor.go
index e385682a58..81afe7b85d 100644
--- a/accounts/usbwallet/trezor.go
+++ b/accounts/usbwallet/trezor.go
@@ -27,12 +27,12 @@ import (
"io"
"math/big"
- "github.com/ethereum/go-ethereum/accounts"
- "github.com/ethereum/go-ethereum/accounts/usbwallet/trezor"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/cryptoecc/ETH-ECC/accounts"
+ "github.com/cryptoecc/ETH-ECC/accounts/usbwallet/trezor"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/hexutil"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/log"
"github.com/golang/protobuf/proto"
)
@@ -84,15 +84,15 @@ func (w *trezorDriver) Status() (string, error) {
// Open implements usbwallet.driver, attempting to initialize the connection to
// the Trezor hardware wallet. Initializing the Trezor is a two or three phase operation:
-// * The first phase is to initialize the connection and read the wallet's
-// features. This phase is invoked if the provided passphrase is empty. The
-// device will display the pinpad as a result and will return an appropriate
-// error to notify the user that a second open phase is needed.
-// * The second phase is to unlock access to the Trezor, which is done by the
-// user actually providing a passphrase mapping a keyboard keypad to the pin
-// number of the user (shuffled according to the pinpad displayed).
-// * If needed the device will ask for passphrase which will require calling
-// open again with the actual passphrase (3rd phase)
+// - The first phase is to initialize the connection and read the wallet's
+// features. This phase is invoked if the provided passphrase is empty. The
+// device will display the pinpad as a result and will return an appropriate
+// error to notify the user that a second open phase is needed.
+// - The second phase is to unlock access to the Trezor, which is done by the
+// user actually providing a passphrase mapping a keyboard keypad to the pin
+// number of the user (shuffled according to the pinpad displayed).
+// - If needed the device will ask for passphrase which will require calling
+// open again with the actual passphrase (3rd phase)
func (w *trezorDriver) Open(device io.ReadWriter, passphrase string) error {
w.device, w.failure = device, nil
diff --git a/accounts/usbwallet/wallet.go b/accounts/usbwallet/wallet.go
index 0e399a6d09..d849ece7b2 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"
+ ethereum "github.com/cryptoecc/ETH-ECC"
+ "github.com/cryptoecc/ETH-ECC/accounts"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/log"
"github.com/karalabe/usb"
)
diff --git a/build/ci.go b/build/ci.go
index 24f225b720..4569e339f9 100644
--- a/build/ci.go
+++ b/build/ci.go
@@ -24,19 +24,18 @@ Usage: go run build/ci.go
Available commands are:
- install [ -arch architecture ] [ -cc compiler ] [ packages... ] -- builds packages and executables
- test [ -coverage ] [ packages... ] -- runs the tests
- lint -- runs certain pre-selected linters
- archive [ -arch architecture ] [ -type zip|tar ] [ -signer key-envvar ] [ -signify key-envvar ] [ -upload dest ] -- archives build artifacts
- importkeys -- imports signing keys from env
- debsrc [ -signer key-id ] [ -upload dest ] -- creates a debian source package
- nsis -- creates a Windows NSIS installer
- aar [ -local ] [ -sign key-id ] [-deploy repo] [ -upload dest ] -- creates an Android archive
- xcode [ -local ] [ -sign key-id ] [-deploy repo] [ -upload dest ] -- creates an iOS XCode framework
- purge [ -store blobstore ] [ -days threshold ] -- purges old archives from the blobstore
+ install [ -arch architecture ] [ -cc compiler ] [ packages... ] -- builds packages and executables
+ test [ -coverage ] [ packages... ] -- runs the tests
+ lint -- runs certain pre-selected linters
+ archive [ -arch architecture ] [ -type zip|tar ] [ -signer key-envvar ] [ -signify key-envvar ] [ -upload dest ] -- archives build artifacts
+ importkeys -- imports signing keys from env
+ debsrc [ -signer key-id ] [ -upload dest ] -- creates a debian source package
+ nsis -- creates a Windows NSIS installer
+ aar [ -local ] [ -sign key-id ] [-deploy repo] [ -upload dest ] -- creates an Android archive
+ xcode [ -local ] [ -sign key-id ] [-deploy repo] [ -upload dest ] -- creates an iOS XCode framework
+ purge [ -store blobstore ] [ -days threshold ] -- purges old archives from the blobstore
For all commands, -n prevents execution of external programs (dry run mode).
-
*/
package main
@@ -58,10 +57,10 @@ import (
"time"
"github.com/cespare/cp"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/crypto/signify"
- "github.com/ethereum/go-ethereum/internal/build"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/crypto/signify"
+ "github.com/cryptoecc/ETH-ECC/internal/build"
+ "github.com/cryptoecc/ETH-ECC/params"
)
var (
@@ -1029,7 +1028,7 @@ func doAndroidArchive(cmdline []string) {
build.MustRun(tc.Go("mod", "download"))
// Build the Android archive and Maven resources
- build.MustRun(gomobileTool("bind", "-ldflags", "-s -w", "--target", "android", "--javapkg", "org.ethereum", "-v", "github.com/ethereum/go-ethereum/mobile"))
+ build.MustRun(gomobileTool("bind", "-ldflags", "-s -w", "--target", "android", "--javapkg", "org.ethereum", "-v", "github.com/cryptoecc/ETH-ECC/mobile"))
if *local {
// If we're building locally, copy bundle to build dir and skip Maven
@@ -1154,7 +1153,7 @@ func doXCodeFramework(cmdline []string) {
build.MustRun(tc.Install(GOBIN, "golang.org/x/mobile/cmd/gomobile", "golang.org/x/mobile/cmd/gobind"))
// Build the iOS XCode framework
- bind := gomobileTool("bind", "-ldflags", "-s -w", "--target", "ios", "-v", "github.com/ethereum/go-ethereum/mobile")
+ bind := gomobileTool("bind", "-ldflags", "-s -w", "--target", "ios", "-v", "github.com/cryptoecc/ETH-ECC/mobile")
if *local {
// If we're building locally, use the build folder and stop afterwards
diff --git a/build/deb/ethereum/deb.control b/build/deb/ethereum/deb.control
index 3b759f2d04..180f9c5620 100644
--- a/build/deb/ethereum/deb.control
+++ b/build/deb/ethereum/deb.control
@@ -5,8 +5,8 @@ Maintainer: {{.Author}}
Build-Depends: debhelper (>= 8.0.0), {{.GoBootPackage}}
Standards-Version: 3.9.5
Homepage: https://ethereum.org
-Vcs-Git: https://github.com/ethereum/go-ethereum.git
-Vcs-Browser: https://github.com/ethereum/go-ethereum
+Vcs-Git: https://github.com/cryptoecc/ETH-ECC.git
+Vcs-Browser: https://github.com/cryptoecc/ETH-ECC
Package: {{.Name}}
Architecture: any
diff --git a/build/mvn.pom b/build/mvn.pom
index 7670246ba9..aa70cbd058 100644
--- a/build/mvn.pom
+++ b/build/mvn.pom
@@ -11,7 +11,7 @@
Android Ethereum Client
Android port of the go-ethereum libraries and node
- https://github.com/ethereum/go-ethereum
+ https://github.com/cryptoecc/ETH-ECC
2015
@@ -48,10 +48,10 @@
GitHub Issues
- https://github.com/ethereum/go-ethereum/issues/
+ https://github.com/cryptoecc/ETH-ECC/issues/
- https://github.com/ethereum/go-ethereum
+ https://github.com/cryptoecc/ETH-ECC
diff --git a/build/nsis.install.nsh b/build/nsis.install.nsh
index 9b73148a44..c14e0bd1f6 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/cryptoecc/ETH-ECC/issues"
+!define UPDATEURL "https://github.com/cryptoecc/ETH-ECC/releases"
+!define ABOUTURL "https://github.com/cryptoecc/ETH-ECC#ethereum-go"
!define /date NOW "%Y%m%d"
PageEx license
diff --git a/build/pod.podspec b/build/pod.podspec
index 2c14c280c7..7ba7c12da6 100644
--- a/build/pod.podspec
+++ b/build/pod.podspec
@@ -2,12 +2,12 @@ Pod::Spec.new do |spec|
spec.name = 'Geth'
spec.version = '{{.Version}}'
spec.license = { :type => 'GNU Lesser General Public License, Version 3.0' }
- spec.homepage = 'https://github.com/ethereum/go-ethereum'
+ spec.homepage = 'https://github.com/cryptoecc/ETH-ECC'
spec.authors = { {{range .Contributors}}
'{{.Name}}' => '{{.Email}}',{{end}}
}
spec.summary = 'iOS Ethereum Client'
- spec.source = { :git => 'https://github.com/ethereum/go-ethereum.git', :commit => '{{.Commit}}' }
+ spec.source = { :git => 'https://github.com/cryptoecc/ETH-ECC.git', :commit => '{{.Commit}}' }
spec.platform = :ios
spec.ios.deployment_target = '9.0'
diff --git a/build/update-license.go b/build/update-license.go
index f61536470a..891de09f21 100644
--- a/build/update-license.go
+++ b/build/update-license.go
@@ -79,7 +79,7 @@ var (
"signer/rules/deps",
// skip special licenses
- "crypto/secp256k1", // Relicensed to BSD-3 via https://github.com/ethereum/go-ethereum/pull/17225
+ "crypto/secp256k1", // Relicensed to BSD-3 via https://github.com/cryptoecc/ETH-ECC/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..891468e1fb 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/cryptoecc/ETH-ECC/signer/core/apitypes"
+ "github.com/cryptoecc/ETH-ECC/signer/fourbyte"
)
func init() {
diff --git a/cmd/abigen/main.go b/cmd/abigen/main.go
index 56ebfa9e9b..d9d72f15fa 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/bind"
- "github.com/ethereum/go-ethereum/cmd/utils"
- "github.com/ethereum/go-ethereum/common/compiler"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/internal/flags"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/cryptoecc/ETH-ECC/accounts/abi/bind"
+ "github.com/cryptoecc/ETH-ECC/cmd/utils"
+ "github.com/cryptoecc/ETH-ECC/common/compiler"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/internal/flags"
+ "github.com/cryptoecc/ETH-ECC/log"
"github.com/urfave/cli/v2"
)
diff --git a/cmd/bootnode/main.go b/cmd/bootnode/main.go
index 036b968ef8..3b1e65915f 100644
--- a/cmd/bootnode/main.go
+++ b/cmd/bootnode/main.go
@@ -24,13 +24,13 @@ import (
"net"
"os"
- "github.com/ethereum/go-ethereum/cmd/utils"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/p2p/discover"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/nat"
- "github.com/ethereum/go-ethereum/p2p/netutil"
+ "github.com/cryptoecc/ETH-ECC/cmd/utils"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/p2p/discover"
+ "github.com/cryptoecc/ETH-ECC/p2p/enode"
+ "github.com/cryptoecc/ETH-ECC/p2p/nat"
+ "github.com/cryptoecc/ETH-ECC/p2p/netutil"
)
func main() {
diff --git a/cmd/checkpoint-admin/README.md b/cmd/checkpoint-admin/README.md
index 43e3785ec2..6db091c22e 100644
--- a/cmd/checkpoint-admin/README.md
+++ b/cmd/checkpoint-admin/README.md
@@ -18,7 +18,7 @@ However, from a security perspective, the most critical step in a synchronizatio
#### Hardcoded checkpoint
-There are several hardcoded checkpoints in the [source code](https://github.com/ethereum/go-ethereum/blob/master/params/config.go#L38) of the go-ethereum project. These checkpoints are updated by go-ethereum developers when new versions of software are released. Because light client users trust Geth developers to some extent, hardcoded checkpoints in the code can also be considered correct.
+There are several hardcoded checkpoints in the [source code](https://github.com/cryptoecc/ETH-ECC/blob/master/params/config.go#L38) of the go-ethereum project. These checkpoints are updated by go-ethereum developers when new versions of software are released. Because light client users trust Geth developers to some extent, hardcoded checkpoints in the code can also be considered correct.
#### Checkpoint oracle
@@ -35,7 +35,7 @@ Checkpoint-admin is a command line tool designed for checkpoint oracle. Users ca
#### Install
```shell
-go get github.com/ethereum/go-ethereum/cmd/checkpoint-admin
+go get github.com/cryptoecc/ETH-ECC/cmd/checkpoint-admin
```
#### Deploy
@@ -66,7 +66,7 @@ checkpoint-admin sign --clef --signer --signer --index --hash --oracle
```
-*CHECKPOINT_HASH is obtained based on this [calculation method](https://github.com/ethereum/go-ethereum/blob/master/params/config.go#L251).*
+*CHECKPOINT_HASH is obtained based on this [calculation method](https://github.com/cryptoecc/ETH-ECC/blob/master/params/config.go#L251).*
#### Publish
diff --git a/cmd/checkpoint-admin/common.go b/cmd/checkpoint-admin/common.go
index f86ac24f06..e409b852fc 100644
--- a/cmd/checkpoint-admin/common.go
+++ b/cmd/checkpoint-admin/common.go
@@ -19,15 +19,15 @@ package main
import (
"strconv"
- "github.com/ethereum/go-ethereum/accounts"
- "github.com/ethereum/go-ethereum/accounts/abi/bind"
- "github.com/ethereum/go-ethereum/accounts/external"
- "github.com/ethereum/go-ethereum/cmd/utils"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/contracts/checkpointoracle"
- "github.com/ethereum/go-ethereum/ethclient"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/rpc"
+ "github.com/cryptoecc/ETH-ECC/accounts"
+ "github.com/cryptoecc/ETH-ECC/accounts/abi/bind"
+ "github.com/cryptoecc/ETH-ECC/accounts/external"
+ "github.com/cryptoecc/ETH-ECC/cmd/utils"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/contracts/checkpointoracle"
+ "github.com/cryptoecc/ETH-ECC/ethclient"
+ "github.com/cryptoecc/ETH-ECC/params"
+ "github.com/cryptoecc/ETH-ECC/rpc"
"github.com/urfave/cli/v2"
)
diff --git a/cmd/checkpoint-admin/exec.go b/cmd/checkpoint-admin/exec.go
index cb67d0306d..b6399282e9 100644
--- a/cmd/checkpoint-admin/exec.go
+++ b/cmd/checkpoint-admin/exec.go
@@ -25,17 +25,17 @@ import (
"strings"
"time"
- "github.com/ethereum/go-ethereum/accounts"
- "github.com/ethereum/go-ethereum/cmd/utils"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/contracts/checkpointoracle"
- "github.com/ethereum/go-ethereum/contracts/checkpointoracle/contract"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/ethclient"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/rpc"
+ "github.com/cryptoecc/ETH-ECC/accounts"
+ "github.com/cryptoecc/ETH-ECC/cmd/utils"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/hexutil"
+ "github.com/cryptoecc/ETH-ECC/contracts/checkpointoracle"
+ "github.com/cryptoecc/ETH-ECC/contracts/checkpointoracle/contract"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/ethclient"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/params"
+ "github.com/cryptoecc/ETH-ECC/rpc"
"github.com/urfave/cli/v2"
)
diff --git a/cmd/checkpoint-admin/main.go b/cmd/checkpoint-admin/main.go
index 0604ccaad6..01bb4a3d5b 100644
--- a/cmd/checkpoint-admin/main.go
+++ b/cmd/checkpoint-admin/main.go
@@ -22,9 +22,9 @@ import (
"fmt"
"os"
- "github.com/ethereum/go-ethereum/common/fdlimit"
- "github.com/ethereum/go-ethereum/internal/flags"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/cryptoecc/ETH-ECC/common/fdlimit"
+ "github.com/cryptoecc/ETH-ECC/internal/flags"
+ "github.com/cryptoecc/ETH-ECC/log"
"github.com/urfave/cli/v2"
)
diff --git a/cmd/checkpoint-admin/status.go b/cmd/checkpoint-admin/status.go
index bec97aed12..2a67f5881b 100644
--- a/cmd/checkpoint-admin/status.go
+++ b/cmd/checkpoint-admin/status.go
@@ -19,7 +19,7 @@ package main
import (
"fmt"
- "github.com/ethereum/go-ethereum/common"
+ "github.com/cryptoecc/ETH-ECC/common"
"github.com/urfave/cli/v2"
)
diff --git a/cmd/clef/main.go b/cmd/clef/main.go
index 05290f52fe..fd7b8d12d6 100644
--- a/cmd/clef/main.go
+++ b/cmd/clef/main.go
@@ -33,25 +33,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/cryptoecc/ETH-ECC/accounts"
+ "github.com/cryptoecc/ETH-ECC/accounts/keystore"
+ "github.com/cryptoecc/ETH-ECC/cmd/utils"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/hexutil"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/internal/ethapi"
+ "github.com/cryptoecc/ETH-ECC/internal/flags"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/node"
+ "github.com/cryptoecc/ETH-ECC/params"
+ "github.com/cryptoecc/ETH-ECC/rlp"
+ "github.com/cryptoecc/ETH-ECC/rpc"
+ "github.com/cryptoecc/ETH-ECC/signer/core"
+ "github.com/cryptoecc/ETH-ECC/signer/core/apitypes"
+ "github.com/cryptoecc/ETH-ECC/signer/fourbyte"
+ "github.com/cryptoecc/ETH-ECC/signer/rules"
+ "github.com/cryptoecc/ETH-ECC/signer/storage"
"github.com/mattn/go-colorable"
"github.com/mattn/go-isatty"
"github.com/urfave/cli/v2"
@@ -736,7 +736,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/cryptoecc/ETH-ECC/issues/20123
if runtime.GOOS != "windows" && info.Mode().Perm()&0377 != 0 {
return fmt.Errorf("file (%v) has insecure file permissions (%v)", filename, info.Mode().String())
}
diff --git a/cmd/clef/tutorial.md b/cmd/clef/tutorial.md
index 3ea662b5d4..2e0c450a69 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/cryptoecc/ETH-ECC/tree/master/cmd/clef#external-api-1) and the [External API Changelog](https://github.com/cryptoecc/ETH-ECC/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/cryptoecc/ETH-ECC/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/cryptoecc/ETH-ECC/blob/master/cmd/clef/rules.md).
## Geth integration
diff --git a/cmd/devp2p/crawl.go b/cmd/devp2p/crawl.go
index 9259b4894c..63d630eed1 100644
--- a/cmd/devp2p/crawl.go
+++ b/cmd/devp2p/crawl.go
@@ -19,8 +19,8 @@ package main
import (
"time"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/p2p/enode"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/p2p/enode"
)
type crawler struct {
diff --git a/cmd/devp2p/discv4cmd.go b/cmd/devp2p/discv4cmd.go
index 9d35880b12..a91d2f1ec9 100644
--- a/cmd/devp2p/discv4cmd.go
+++ b/cmd/devp2p/discv4cmd.go
@@ -22,13 +22,13 @@ 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/internal/flags"
- "github.com/ethereum/go-ethereum/p2p/discover"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/cryptoecc/ETH-ECC/cmd/devp2p/internal/v4test"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/internal/flags"
+ "github.com/cryptoecc/ETH-ECC/p2p/discover"
+ "github.com/cryptoecc/ETH-ECC/p2p/enode"
+ "github.com/cryptoecc/ETH-ECC/params"
"github.com/urfave/cli/v2"
)
diff --git a/cmd/devp2p/discv5cmd.go b/cmd/devp2p/discv5cmd.go
index 298196034b..06d34d5dd5 100644
--- a/cmd/devp2p/discv5cmd.go
+++ b/cmd/devp2p/discv5cmd.go
@@ -20,9 +20,9 @@ import (
"fmt"
"time"
- "github.com/ethereum/go-ethereum/cmd/devp2p/internal/v5test"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/p2p/discover"
+ "github.com/cryptoecc/ETH-ECC/cmd/devp2p/internal/v5test"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/p2p/discover"
"github.com/urfave/cli/v2"
)
diff --git a/cmd/devp2p/dns_cloudflare.go b/cmd/devp2p/dns_cloudflare.go
index 92c6faf272..023df4f680 100644
--- a/cmd/devp2p/dns_cloudflare.go
+++ b/cmd/devp2p/dns_cloudflare.go
@@ -22,8 +22,8 @@ import (
"strings"
"github.com/cloudflare/cloudflare-go"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/p2p/dnsdisc"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/p2p/dnsdisc"
"github.com/urfave/cli/v2"
)
diff --git a/cmd/devp2p/dns_route53.go b/cmd/devp2p/dns_route53.go
index 4aab0856ff..2c07588b58 100644
--- a/cmd/devp2p/dns_route53.go
+++ b/cmd/devp2p/dns_route53.go
@@ -30,8 +30,8 @@ import (
"github.com/aws/aws-sdk-go-v2/credentials"
"github.com/aws/aws-sdk-go-v2/service/route53"
"github.com/aws/aws-sdk-go-v2/service/route53/types"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/p2p/dnsdisc"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/p2p/dnsdisc"
"github.com/urfave/cli/v2"
)
diff --git a/cmd/devp2p/dnscmd.go b/cmd/devp2p/dnscmd.go
index 58eb6e8db1..6acbe35202 100644
--- a/cmd/devp2p/dnscmd.go
+++ b/cmd/devp2p/dnscmd.go
@@ -24,11 +24,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/cryptoecc/ETH-ECC/accounts/keystore"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/console/prompt"
+ "github.com/cryptoecc/ETH-ECC/p2p/dnsdisc"
+ "github.com/cryptoecc/ETH-ECC/p2p/enode"
"github.com/urfave/cli/v2"
)
diff --git a/cmd/devp2p/enrcmd.go b/cmd/devp2p/enrcmd.go
index 2110437103..f2a7859d2f 100644
--- a/cmd/devp2p/enrcmd.go
+++ b/cmd/devp2p/enrcmd.go
@@ -27,9 +27,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/cryptoecc/ETH-ECC/p2p/enode"
+ "github.com/cryptoecc/ETH-ECC/p2p/enr"
+ "github.com/cryptoecc/ETH-ECC/rlp"
"github.com/urfave/cli/v2"
)
diff --git a/cmd/devp2p/internal/ethtest/chain.go b/cmd/devp2p/internal/ethtest/chain.go
index 83ceb2a4f2..8b3b834cf7 100644
--- a/cmd/devp2p/internal/ethtest/chain.go
+++ b/cmd/devp2p/internal/ethtest/chain.go
@@ -25,12 +25,12 @@ import (
"os"
"strings"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/forkid"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/core/forkid"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/params"
+ "github.com/cryptoecc/ETH-ECC/rlp"
)
type Chain struct {
diff --git a/cmd/devp2p/internal/ethtest/chain_test.go b/cmd/devp2p/internal/ethtest/chain_test.go
index 67221923a6..c5bd254fd1 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/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/eth/protocols/eth"
+ "github.com/cryptoecc/ETH-ECC/p2p"
"github.com/stretchr/testify/assert"
)
diff --git a/cmd/devp2p/internal/ethtest/helpers.go b/cmd/devp2p/internal/ethtest/helpers.go
index eeeb4f93ca..1f3f4b992b 100644
--- a/cmd/devp2p/internal/ethtest/helpers.go
+++ b/cmd/devp2p/internal/ethtest/helpers.go
@@ -23,14 +23,14 @@ import (
"strings"
"time"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/eth/protocols/eth"
+ "github.com/cryptoecc/ETH-ECC/internal/utesting"
+ "github.com/cryptoecc/ETH-ECC/p2p"
+ "github.com/cryptoecc/ETH-ECC/p2p/rlpx"
"github.com/davecgh/go-spew/spew"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/eth/protocols/eth"
- "github.com/ethereum/go-ethereum/internal/utesting"
- "github.com/ethereum/go-ethereum/p2p"
- "github.com/ethereum/go-ethereum/p2p/rlpx"
)
var (
diff --git a/cmd/devp2p/internal/ethtest/large.go b/cmd/devp2p/internal/ethtest/large.go
index 40626c2068..0bbc80e491 100644
--- a/cmd/devp2p/internal/ethtest/large.go
+++ b/cmd/devp2p/internal/ethtest/large.go
@@ -20,9 +20,9 @@ import (
"crypto/rand"
"math/big"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/core/types"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/hexutil"
+ "github.com/cryptoecc/ETH-ECC/core/types"
)
// largeNumber returns a very large big.Int.
diff --git a/cmd/devp2p/internal/ethtest/snap.go b/cmd/devp2p/internal/ethtest/snap.go
index 032afeafcd..4f5579a2ff 100644
--- a/cmd/devp2p/internal/ethtest/snap.go
+++ b/cmd/devp2p/internal/ethtest/snap.go
@@ -22,12 +22,12 @@ import (
"fmt"
"math/rand"
- "github.com/ethereum/go-ethereum/common"
- "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/light"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/eth/protocols/snap"
+ "github.com/cryptoecc/ETH-ECC/internal/utesting"
+ "github.com/cryptoecc/ETH-ECC/light"
+ "github.com/cryptoecc/ETH-ECC/trie"
"golang.org/x/crypto/sha3"
)
diff --git a/cmd/devp2p/internal/ethtest/snapTypes.go b/cmd/devp2p/internal/ethtest/snapTypes.go
index 6bcaa9291a..789f9a269e 100644
--- a/cmd/devp2p/internal/ethtest/snapTypes.go
+++ b/cmd/devp2p/internal/ethtest/snapTypes.go
@@ -16,7 +16,7 @@
package ethtest
-import "github.com/ethereum/go-ethereum/eth/protocols/snap"
+import "github.com/cryptoecc/ETH-ECC/eth/protocols/snap"
// GetAccountRange represents an account range query.
type GetAccountRange snap.GetAccountRangePacket
diff --git a/cmd/devp2p/internal/ethtest/suite.go b/cmd/devp2p/internal/ethtest/suite.go
index 7059b4ba73..5d45d6f9eb 100644
--- a/cmd/devp2p/internal/ethtest/suite.go
+++ b/cmd/devp2p/internal/ethtest/suite.go
@@ -19,10 +19,10 @@ package ethtest
import (
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/eth/protocols/eth"
- "github.com/ethereum/go-ethereum/internal/utesting"
- "github.com/ethereum/go-ethereum/p2p/enode"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/eth/protocols/eth"
+ "github.com/cryptoecc/ETH-ECC/internal/utesting"
+ "github.com/cryptoecc/ETH-ECC/p2p/enode"
)
// Suite represents a structure used to test a node's conformance
diff --git a/cmd/devp2p/internal/ethtest/suite_test.go b/cmd/devp2p/internal/ethtest/suite_test.go
index 8a2b132fa3..8a4737b10f 100644
--- a/cmd/devp2p/internal/ethtest/suite_test.go
+++ b/cmd/devp2p/internal/ethtest/suite_test.go
@@ -21,11 +21,11 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/eth"
- "github.com/ethereum/go-ethereum/eth/ethconfig"
- "github.com/ethereum/go-ethereum/internal/utesting"
- "github.com/ethereum/go-ethereum/node"
- "github.com/ethereum/go-ethereum/p2p"
+ "github.com/cryptoecc/ETH-ECC/eth"
+ "github.com/cryptoecc/ETH-ECC/eth/ethconfig"
+ "github.com/cryptoecc/ETH-ECC/internal/utesting"
+ "github.com/cryptoecc/ETH-ECC/node"
+ "github.com/cryptoecc/ETH-ECC/p2p"
)
var (
diff --git a/cmd/devp2p/internal/ethtest/transaction.go b/cmd/devp2p/internal/ethtest/transaction.go
index c4748bf8f7..cebd3632fe 100644
--- a/cmd/devp2p/internal/ethtest/transaction.go
+++ b/cmd/devp2p/internal/ethtest/transaction.go
@@ -22,14 +22,14 @@ import (
"strings"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/internal/utesting"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/internal/utesting"
+ "github.com/cryptoecc/ETH-ECC/params"
)
-//var faucetAddr = common.HexToAddress("0x71562b71999873DB5b286dF957af199Ec94617F7")
+// var faucetAddr = common.HexToAddress("0x71562b71999873DB5b286dF957af199Ec94617F7")
var faucetKey, _ = crypto.HexToECDSA("b71c71a67e1177ad4e901695e1b4b9ee17ae16c6668d313eac2f96dbcda3f291")
func (s *Suite) sendSuccessfulTxs(t *utesting.T) error {
diff --git a/cmd/devp2p/internal/ethtest/types.go b/cmd/devp2p/internal/ethtest/types.go
index 2c5cb94c69..1cebb4b685 100644
--- a/cmd/devp2p/internal/ethtest/types.go
+++ b/cmd/devp2p/internal/ethtest/types.go
@@ -21,10 +21,10 @@ import (
"fmt"
"time"
- "github.com/ethereum/go-ethereum/eth/protocols/eth"
- "github.com/ethereum/go-ethereum/p2p"
- "github.com/ethereum/go-ethereum/p2p/rlpx"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/cryptoecc/ETH-ECC/eth/protocols/eth"
+ "github.com/cryptoecc/ETH-ECC/p2p"
+ "github.com/cryptoecc/ETH-ECC/p2p/rlpx"
+ "github.com/cryptoecc/ETH-ECC/rlp"
)
type Message interface {
diff --git a/cmd/devp2p/internal/v4test/discv4tests.go b/cmd/devp2p/internal/v4test/discv4tests.go
index 5f340ed94c..79de8f8504 100644
--- a/cmd/devp2p/internal/v4test/discv4tests.go
+++ b/cmd/devp2p/internal/v4test/discv4tests.go
@@ -23,9 +23,9 @@ import (
"net"
"time"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/internal/utesting"
- "github.com/ethereum/go-ethereum/p2p/discover/v4wire"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/internal/utesting"
+ "github.com/cryptoecc/ETH-ECC/p2p/discover/v4wire"
)
const (
diff --git a/cmd/devp2p/internal/v4test/framework.go b/cmd/devp2p/internal/v4test/framework.go
index 9286594181..a88f1a0532 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/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/p2p/discover/v4wire"
+ "github.com/cryptoecc/ETH-ECC/p2p/enode"
)
const waitTime = 300 * time.Millisecond
diff --git a/cmd/devp2p/internal/v5test/discv5tests.go b/cmd/devp2p/internal/v5test/discv5tests.go
index 7866498f73..0123486b0e 100644
--- a/cmd/devp2p/internal/v5test/discv5tests.go
+++ b/cmd/devp2p/internal/v5test/discv5tests.go
@@ -22,10 +22,10 @@ import (
"sync"
"time"
- "github.com/ethereum/go-ethereum/internal/utesting"
- "github.com/ethereum/go-ethereum/p2p/discover/v5wire"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/netutil"
+ "github.com/cryptoecc/ETH-ECC/internal/utesting"
+ "github.com/cryptoecc/ETH-ECC/p2p/discover/v5wire"
+ "github.com/cryptoecc/ETH-ECC/p2p/enode"
+ "github.com/cryptoecc/ETH-ECC/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 6ccbbd075b..0288704135 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/cryptoecc/ETH-ECC/common/mclock"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/p2p/discover/v5wire"
+ "github.com/cryptoecc/ETH-ECC/p2p/enode"
+ "github.com/cryptoecc/ETH-ECC/p2p/enr"
)
// readError represents an error during packet reading.
diff --git a/cmd/devp2p/keycmd.go b/cmd/devp2p/keycmd.go
index e824abe653..4ce55963db 100644
--- a/cmd/devp2p/keycmd.go
+++ b/cmd/devp2p/keycmd.go
@@ -20,8 +20,8 @@ import (
"fmt"
"net"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/p2p/enode"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/p2p/enode"
"github.com/urfave/cli/v2"
)
diff --git a/cmd/devp2p/main.go b/cmd/devp2p/main.go
index 51b9fdb761..5919be9ee0 100644
--- a/cmd/devp2p/main.go
+++ b/cmd/devp2p/main.go
@@ -21,10 +21,10 @@ import (
"os"
"path/filepath"
- "github.com/ethereum/go-ethereum/internal/debug"
- "github.com/ethereum/go-ethereum/internal/flags"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/cryptoecc/ETH-ECC/internal/debug"
+ "github.com/cryptoecc/ETH-ECC/internal/flags"
+ "github.com/cryptoecc/ETH-ECC/p2p/enode"
+ "github.com/cryptoecc/ETH-ECC/params"
"github.com/urfave/cli/v2"
)
diff --git a/cmd/devp2p/nodeset.go b/cmd/devp2p/nodeset.go
index 33c39f4b9e..ccaedfdfd1 100644
--- a/cmd/devp2p/nodeset.go
+++ b/cmd/devp2p/nodeset.go
@@ -24,8 +24,8 @@ import (
"sort"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/p2p/enode"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/p2p/enode"
)
const jsonIndent = " "
diff --git a/cmd/devp2p/nodesetcmd.go b/cmd/devp2p/nodesetcmd.go
index 2cf1045928..4ffdb663a0 100644
--- a/cmd/devp2p/nodesetcmd.go
+++ b/cmd/devp2p/nodesetcmd.go
@@ -25,10 +25,10 @@ import (
"strings"
"time"
- "github.com/ethereum/go-ethereum/core/forkid"
- "github.com/ethereum/go-ethereum/p2p/enr"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/cryptoecc/ETH-ECC/core/forkid"
+ "github.com/cryptoecc/ETH-ECC/p2p/enr"
+ "github.com/cryptoecc/ETH-ECC/params"
+ "github.com/cryptoecc/ETH-ECC/rlp"
"github.com/urfave/cli/v2"
)
diff --git a/cmd/devp2p/rlpxcmd.go b/cmd/devp2p/rlpxcmd.go
index 42b38120c4..6fbf773785 100644
--- a/cmd/devp2p/rlpxcmd.go
+++ b/cmd/devp2p/rlpxcmd.go
@@ -20,11 +20,11 @@ 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/rlpx"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/cryptoecc/ETH-ECC/cmd/devp2p/internal/ethtest"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/p2p"
+ "github.com/cryptoecc/ETH-ECC/p2p/rlpx"
+ "github.com/cryptoecc/ETH-ECC/rlp"
"github.com/urfave/cli/v2"
)
diff --git a/cmd/devp2p/runtest.go b/cmd/devp2p/runtest.go
index f72aa91119..5d4b8a6745 100644
--- a/cmd/devp2p/runtest.go
+++ b/cmd/devp2p/runtest.go
@@ -19,9 +19,9 @@ package main
import (
"os"
- "github.com/ethereum/go-ethereum/cmd/devp2p/internal/v4test"
- "github.com/ethereum/go-ethereum/internal/utesting"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/cryptoecc/ETH-ECC/cmd/devp2p/internal/v4test"
+ "github.com/cryptoecc/ETH-ECC/internal/utesting"
+ "github.com/cryptoecc/ETH-ECC/log"
"github.com/urfave/cli/v2"
)
diff --git a/cmd/ethkey/changepassword.go b/cmd/ethkey/changepassword.go
index 4298e2b834..e14677a620 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/cryptoecc/ETH-ECC/accounts/keystore"
+ "github.com/cryptoecc/ETH-ECC/cmd/utils"
"github.com/urfave/cli/v2"
)
diff --git a/cmd/ethkey/generate.go b/cmd/ethkey/generate.go
index 60d8b3c779..33f8c4128f 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/cryptoecc/ETH-ECC/accounts/keystore"
+ "github.com/cryptoecc/ETH-ECC/cmd/utils"
+ "github.com/cryptoecc/ETH-ECC/crypto"
"github.com/google/uuid"
"github.com/urfave/cli/v2"
)
diff --git a/cmd/ethkey/inspect.go b/cmd/ethkey/inspect.go
index 29b1c13e85..d925f4d8b1 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/cryptoecc/ETH-ECC/accounts/keystore"
+ "github.com/cryptoecc/ETH-ECC/cmd/utils"
+ "github.com/cryptoecc/ETH-ECC/crypto"
"github.com/urfave/cli/v2"
)
diff --git a/cmd/ethkey/main.go b/cmd/ethkey/main.go
index 2b21f3cd70..46c3c2a16f 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/cryptoecc/ETH-ECC/internal/flags"
"github.com/urfave/cli/v2"
)
diff --git a/cmd/ethkey/message.go b/cmd/ethkey/message.go
index 6b8dec03cd..aaff6eb621 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/cryptoecc/ETH-ECC/accounts"
+ "github.com/cryptoecc/ETH-ECC/accounts/keystore"
+ "github.com/cryptoecc/ETH-ECC/cmd/utils"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/crypto"
"github.com/urfave/cli/v2"
)
diff --git a/cmd/ethkey/run_test.go b/cmd/ethkey/run_test.go
index 6006f6b5bb..c7ae94fc2d 100644
--- a/cmd/ethkey/run_test.go
+++ b/cmd/ethkey/run_test.go
@@ -21,8 +21,8 @@ import (
"os"
"testing"
+ "github.com/cryptoecc/ETH-ECC/internal/cmdtest"
"github.com/docker/docker/pkg/reexec"
- "github.com/ethereum/go-ethereum/internal/cmdtest"
)
type testEthkey struct {
diff --git a/cmd/ethkey/utils.go b/cmd/ethkey/utils.go
index 2821145089..024dcb5dea 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/cryptoecc/ETH-ECC/cmd/utils"
"github.com/urfave/cli/v2"
)
diff --git a/cmd/evm/compiler.go b/cmd/evm/compiler.go
index 699d434bb0..eaabc6b881 100644
--- a/cmd/evm/compiler.go
+++ b/cmd/evm/compiler.go
@@ -21,7 +21,7 @@ import (
"fmt"
"os"
- "github.com/ethereum/go-ethereum/cmd/evm/internal/compiler"
+ "github.com/cryptoecc/ETH-ECC/cmd/evm/internal/compiler"
"github.com/urfave/cli/v2"
)
diff --git a/cmd/evm/disasm.go b/cmd/evm/disasm.go
index a6a16fd13b..4660334638 100644
--- a/cmd/evm/disasm.go
+++ b/cmd/evm/disasm.go
@@ -22,7 +22,7 @@ import (
"os"
"strings"
- "github.com/ethereum/go-ethereum/core/asm"
+ "github.com/cryptoecc/ETH-ECC/core/asm"
"github.com/urfave/cli/v2"
)
diff --git a/cmd/evm/internal/compiler/compiler.go b/cmd/evm/internal/compiler/compiler.go
index 54981b6697..2102893b73 100644
--- a/cmd/evm/internal/compiler/compiler.go
+++ b/cmd/evm/internal/compiler/compiler.go
@@ -20,7 +20,7 @@ import (
"errors"
"fmt"
- "github.com/ethereum/go-ethereum/core/asm"
+ "github.com/cryptoecc/ETH-ECC/core/asm"
)
func Compile(fn string, src []byte, debug bool) (string, error) {
diff --git a/cmd/evm/internal/t8ntool/block.go b/cmd/evm/internal/t8ntool/block.go
index 4a070b6c71..544027ab6f 100644
--- a/cmd/evm/internal/t8ntool/block.go
+++ b/cmd/evm/internal/t8ntool/block.go
@@ -24,15 +24,15 @@ import (
"math/big"
"os"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/common/math"
- "github.com/ethereum/go-ethereum/consensus/clique"
- "github.com/ethereum/go-ethereum/consensus/ethash"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/hexutil"
+ "github.com/cryptoecc/ETH-ECC/common/math"
+ "github.com/cryptoecc/ETH-ECC/consensus/clique"
+ "github.com/cryptoecc/ETH-ECC/consensus/ethash"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/rlp"
"github.com/urfave/cli/v2"
)
diff --git a/cmd/evm/internal/t8ntool/execution.go b/cmd/evm/internal/t8ntool/execution.go
index 77f6ec3715..7126a169ad 100644
--- a/cmd/evm/internal/t8ntool/execution.go
+++ b/cmd/evm/internal/t8ntool/execution.go
@@ -21,21 +21,21 @@ import (
"math/big"
"os"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/math"
- "github.com/ethereum/go-ethereum/consensus/ethash"
- "github.com/ethereum/go-ethereum/consensus/misc"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/state"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/core/vm"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/rlp"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/math"
+ "github.com/cryptoecc/ETH-ECC/consensus/ethash"
+ "github.com/cryptoecc/ETH-ECC/consensus/misc"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/core/state"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/core/vm"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/ethdb"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/params"
+ "github.com/cryptoecc/ETH-ECC/rlp"
+ "github.com/cryptoecc/ETH-ECC/trie"
"golang.org/x/crypto/sha3"
)
diff --git a/cmd/evm/internal/t8ntool/flags.go b/cmd/evm/internal/t8ntool/flags.go
index 626220315e..d2280d65af 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/cryptoecc/ETH-ECC/core/vm"
+ "github.com/cryptoecc/ETH-ECC/tests"
"github.com/urfave/cli/v2"
)
diff --git a/cmd/evm/internal/t8ntool/gen_header.go b/cmd/evm/internal/t8ntool/gen_header.go
index 196e49dd71..6609277fdf 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/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/hexutil"
+ "github.com/cryptoecc/ETH-ECC/common/math"
+ "github.com/cryptoecc/ETH-ECC/core/types"
)
var _ = (*headerMarshaling)(nil)
diff --git a/cmd/evm/internal/t8ntool/gen_stenv.go b/cmd/evm/internal/t8ntool/gen_stenv.go
index a6d774cdab..7064bb186f 100644
--- a/cmd/evm/internal/t8ntool/gen_stenv.go
+++ b/cmd/evm/internal/t8ntool/gen_stenv.go
@@ -7,8 +7,8 @@ import (
"errors"
"math/big"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/math"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/math"
)
var _ = (*stEnvMarshaling)(nil)
diff --git a/cmd/evm/internal/t8ntool/transaction.go b/cmd/evm/internal/t8ntool/transaction.go
index 3409c0a3bf..7c2e7cc507 100644
--- a/cmd/evm/internal/t8ntool/transaction.go
+++ b/cmd/evm/internal/t8ntool/transaction.go
@@ -24,14 +24,14 @@ import (
"os"
"strings"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/rlp"
- "github.com/ethereum/go-ethereum/tests"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/hexutil"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/params"
+ "github.com/cryptoecc/ETH-ECC/rlp"
+ "github.com/cryptoecc/ETH-ECC/tests"
"github.com/urfave/cli/v2"
)
diff --git a/cmd/evm/internal/t8ntool/transition.go b/cmd/evm/internal/t8ntool/transition.go
index 73a28e91c0..37117fddda 100644
--- a/cmd/evm/internal/t8ntool/transition.go
+++ b/cmd/evm/internal/t8ntool/transition.go
@@ -26,18 +26,18 @@ import (
"path"
"strings"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/state"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/core/vm"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/eth/tracers/logger"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/rlp"
- "github.com/ethereum/go-ethereum/tests"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/hexutil"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/core/state"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/core/vm"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/eth/tracers/logger"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/params"
+ "github.com/cryptoecc/ETH-ECC/rlp"
+ "github.com/cryptoecc/ETH-ECC/tests"
"github.com/urfave/cli/v2"
)
@@ -334,8 +334,9 @@ func (t *txWithKey) UnmarshalJSON(input []byte) error {
// signUnsignedTransactions converts the input txs to canonical transactions.
//
// The transactions can have two forms, either
-// 1. unsigned or
-// 2. signed
+// 1. unsigned or
+// 2. signed
+//
// For (1), r, s, v, need so be zero, and the `secretKey` needs to be set.
// If so, we sign it here and now, with the given `secretKey`
// If the condition above is not met, then it's considered a signed transaction.
diff --git a/cmd/evm/main.go b/cmd/evm/main.go
index 994b6436ad..810b75d1bc 100644
--- a/cmd/evm/main.go
+++ b/cmd/evm/main.go
@@ -22,8 +22,8 @@ import (
"math/big"
"os"
- "github.com/ethereum/go-ethereum/cmd/evm/internal/t8ntool"
- "github.com/ethereum/go-ethereum/internal/flags"
+ "github.com/cryptoecc/ETH-ECC/cmd/evm/internal/t8ntool"
+ "github.com/cryptoecc/ETH-ECC/internal/flags"
"github.com/urfave/cli/v2"
)
diff --git a/cmd/evm/runner.go b/cmd/evm/runner.go
index 9b1975c050..0aa7900c8f 100644
--- a/cmd/evm/runner.go
+++ b/cmd/evm/runner.go
@@ -28,18 +28,18 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/cmd/evm/internal/compiler"
- "github.com/ethereum/go-ethereum/cmd/utils"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/state"
- "github.com/ethereum/go-ethereum/core/vm"
- "github.com/ethereum/go-ethereum/core/vm/runtime"
- "github.com/ethereum/go-ethereum/eth/tracers/logger"
- "github.com/ethereum/go-ethereum/internal/flags"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/cryptoecc/ETH-ECC/cmd/evm/internal/compiler"
+ "github.com/cryptoecc/ETH-ECC/cmd/utils"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/core/state"
+ "github.com/cryptoecc/ETH-ECC/core/vm"
+ "github.com/cryptoecc/ETH-ECC/core/vm/runtime"
+ "github.com/cryptoecc/ETH-ECC/eth/tracers/logger"
+ "github.com/cryptoecc/ETH-ECC/internal/flags"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/params"
"github.com/urfave/cli/v2"
)
diff --git a/cmd/evm/staterunner.go b/cmd/evm/staterunner.go
index 36f4e19b0b..afbadb7436 100644
--- a/cmd/evm/staterunner.go
+++ b/cmd/evm/staterunner.go
@@ -22,11 +22,11 @@ import (
"fmt"
"os"
- "github.com/ethereum/go-ethereum/core/state"
- "github.com/ethereum/go-ethereum/core/vm"
- "github.com/ethereum/go-ethereum/eth/tracers/logger"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/tests"
+ "github.com/cryptoecc/ETH-ECC/core/state"
+ "github.com/cryptoecc/ETH-ECC/core/vm"
+ "github.com/cryptoecc/ETH-ECC/eth/tracers/logger"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/tests"
"github.com/urfave/cli/v2"
)
diff --git a/cmd/evm/t8n_test.go b/cmd/evm/t8n_test.go
index 72c062e8d9..048821807b 100644
--- a/cmd/evm/t8n_test.go
+++ b/cmd/evm/t8n_test.go
@@ -24,9 +24,9 @@ import (
"strings"
"testing"
+ "github.com/cryptoecc/ETH-ECC/cmd/evm/internal/t8ntool"
+ "github.com/cryptoecc/ETH-ECC/internal/cmdtest"
"github.com/docker/docker/pkg/reexec"
- "github.com/ethereum/go-ethereum/cmd/evm/internal/t8ntool"
- "github.com/ethereum/go-ethereum/internal/cmdtest"
)
func TestMain(m *testing.M) {
diff --git a/cmd/faucet/faucet.go b/cmd/faucet/faucet.go
index dfb7d326dc..3722dbcba6 100644
--- a/cmd/faucet/faucet.go
+++ b/cmd/faucet/faucet.go
@@ -39,23 +39,23 @@ import (
"sync"
"time"
- "github.com/ethereum/go-ethereum/accounts"
- "github.com/ethereum/go-ethereum/accounts/keystore"
- "github.com/ethereum/go-ethereum/cmd/utils"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/eth/downloader"
- "github.com/ethereum/go-ethereum/eth/ethconfig"
- "github.com/ethereum/go-ethereum/ethclient"
- "github.com/ethereum/go-ethereum/ethstats"
- "github.com/ethereum/go-ethereum/les"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/node"
- "github.com/ethereum/go-ethereum/p2p"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/nat"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/cryptoecc/ETH-ECC/accounts"
+ "github.com/cryptoecc/ETH-ECC/accounts/keystore"
+ "github.com/cryptoecc/ETH-ECC/cmd/utils"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/eth/downloader"
+ "github.com/cryptoecc/ETH-ECC/eth/ethconfig"
+ "github.com/cryptoecc/ETH-ECC/ethclient"
+ "github.com/cryptoecc/ETH-ECC/ethstats"
+ "github.com/cryptoecc/ETH-ECC/les"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/node"
+ "github.com/cryptoecc/ETH-ECC/p2p"
+ "github.com/cryptoecc/ETH-ECC/p2p/enode"
+ "github.com/cryptoecc/ETH-ECC/p2p/nat"
+ "github.com/cryptoecc/ETH-ECC/params"
"github.com/gorilla/websocket"
)
@@ -466,7 +466,7 @@ func (f *faucet) apiHandler(w http.ResponseWriter, r *http.Request) {
id = username
default:
//lint:ignore ST1005 This error is to be displayed in the browser
- err = errors.New("Something funky happened, please open an issue at https://github.com/ethereum/go-ethereum/issues")
+ err = errors.New("Something funky happened, please open an issue at https://github.com/cryptoecc/ETH-ECC/issues")
}
if err != nil {
if err = sendError(wsconn, err); err != nil {
diff --git a/cmd/faucet/faucet_test.go b/cmd/faucet/faucet_test.go
index 58a1f22b54..bb66ee6d1d 100644
--- a/cmd/faucet/faucet_test.go
+++ b/cmd/faucet/faucet_test.go
@@ -19,7 +19,7 @@ package main
import (
"testing"
- "github.com/ethereum/go-ethereum/common"
+ "github.com/cryptoecc/ETH-ECC/common"
)
func TestFacebook(t *testing.T) {
diff --git a/cmd/p2psim/main.go b/cmd/p2psim/main.go
index 4edb0a9ab4..94aadce82c 100644
--- a/cmd/p2psim/main.go
+++ b/cmd/p2psim/main.go
@@ -19,21 +19,20 @@
// Here is an example of creating a 2 node network with the first node
// connected to the second:
//
-// $ p2psim node create
-// Created node01
+// $ p2psim node create
+// Created node01
//
-// $ p2psim node start node01
-// Started node01
+// $ p2psim node start node01
+// Started node01
//
-// $ p2psim node create
-// Created node02
+// $ p2psim node create
+// Created node02
//
-// $ p2psim node start node02
-// Started node02
-//
-// $ p2psim node connect node01 node02
-// Connected node01 to node02
+// $ p2psim node start node02
+// Started node02
//
+// $ p2psim node connect node01 node02
+// Connected node01 to node02
package main
import (
@@ -45,13 +44,13 @@ import (
"strings"
"text/tabwriter"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/internal/flags"
- "github.com/ethereum/go-ethereum/p2p"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/simulations"
- "github.com/ethereum/go-ethereum/p2p/simulations/adapters"
- "github.com/ethereum/go-ethereum/rpc"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/internal/flags"
+ "github.com/cryptoecc/ETH-ECC/p2p"
+ "github.com/cryptoecc/ETH-ECC/p2p/enode"
+ "github.com/cryptoecc/ETH-ECC/p2p/simulations"
+ "github.com/cryptoecc/ETH-ECC/p2p/simulations/adapters"
+ "github.com/cryptoecc/ETH-ECC/rpc"
"github.com/urfave/cli/v2"
)
diff --git a/cmd/puppeth/module.go b/cmd/puppeth/module.go
index 771ae38058..87479b2e45 100644
--- a/cmd/puppeth/module.go
+++ b/cmd/puppeth/module.go
@@ -25,7 +25,7 @@ import (
"strings"
"time"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/cryptoecc/ETH-ECC/log"
)
var (
diff --git a/cmd/puppeth/module_dashboard.go b/cmd/puppeth/module_dashboard.go
index fbbbb66501..c52ca7621f 100644
--- a/cmd/puppeth/module_dashboard.go
+++ b/cmd/puppeth/module_dashboard.go
@@ -25,7 +25,7 @@ import (
"strconv"
"strings"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/cryptoecc/ETH-ECC/log"
)
// dashboardContent is the actual dashboard HTML content to serve up when users
@@ -201,7 +201,7 @@ var dashboardContent = `
Starting with the 1.5 release of go-ethereum, we've transitioned away from shipping only full blown Ethereum clients and started focusing on releasing the code as reusable packages initially for Go projects, then later for Java based Android projects too. Mobile support is still evolving, hence is bound to change often and hard, but the Ethereum network can nonetheless be accessed from Android too.
Under the hood the Android library is backed by a go-ethereum light node, meaning that given a not-too-old Android device, you should be able to join the network without significant issues. Certain functionality is not yet available and rough edges are bound to appear here and there, please report issues if you find any.
- The stable Android archives are distributed via Maven Central, and the develop snapshots via the Sonatype repositories. Before proceeding, please ensure you have a recent version configured in your Android project. You can find details in Mobile: Introduction – Android archive.
+
The stable Android archives are distributed via Maven Central, and the develop snapshots via the Sonatype repositories. Before proceeding, please ensure you have a recent version configured in your Android project. You can find details in Mobile: Introduction – Android archive.
Before connecting to the Ethereum network, download the {{.GethGenesis}} genesis json file and either store it in your Android project as a resource file you can access, or save it as a string in a variable. You're going to need to initialize your client.
Inside your Java code you can now import the geth archive and connect to Ethereum:
import org.ethereum.geth.*;
@@ -232,7 +232,7 @@ node.start();
Starting with the 1.5 release of go-ethereum, we've transitioned away from shipping only full blown Ethereum clients and started focusing on releasing the code as reusable packages initially for Go projects, then later for ObjC/Swift based iOS projects too. Mobile support is still evolving, hence is bound to change often and hard, but the Ethereum network can nonetheless be accessed from iOS too.
Under the hood the iOS library is backed by a go-ethereum light node, meaning that given a not-too-old Apple device, you should be able to join the network without significant issues. Certain functionality is not yet available and rough edges are bound to appear here and there, please report issues if you find any.
- Both stable and develop builds of the iOS framework are available via CocoaPods. Before proceeding, please ensure you have a recent version configured in your iOS project. You can find details in Mobile: Introduction – iOS framework.
+
Both stable and develop builds of the iOS framework are available via CocoaPods. Before proceeding, please ensure you have a recent version configured in your iOS project. You can find details in Mobile: Introduction – iOS framework.
Before connecting to the Ethereum network, download the {{.GethGenesis}} genesis json file and either store it in your iOS project as a resource file you can access, or save it as a string in a variable. You're going to need to initialize your client.
Inside your Swift code you can now import the geth framework and connect to Ethereum (ObjC should be analogous):
import Geth
@@ -364,7 +364,7 @@ try! node?.start();
Puppeth is a tool to aid you in creating a new Ethereum network down to the genesis block, bootnodes, signers, ethstats server, crypto faucet, block explorer, dashboard and more; without the hassle that it would normally entail to manually configure all these services one by one.
Puppeth uses ssh to dial in to remote servers, and builds its network components out of docker containers using docker-compose. The user is guided through the process via a command line wizard that does the heavy lifting and topology configuration automatically behind the scenes.
- Puppeth is distributed as part of the Geth & Tools bundles, but can also be installed separately via:
go get github.com/ethereum/go-ethereum/cmd/puppeth
+ Puppeth is distributed as part of the Geth & Tools bundles, but can also be installed separately via:
go get github.com/cryptoecc/ETH-ECC/cmd/puppeth
Copyright 2017. The go-ethereum Authors.
diff --git a/cmd/puppeth/module_ethstats.go b/cmd/puppeth/module_ethstats.go
index abed4db5fc..d49b2a2a89 100644
--- a/cmd/puppeth/module_ethstats.go
+++ b/cmd/puppeth/module_ethstats.go
@@ -25,7 +25,7 @@ import (
"strings"
"text/template"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/cryptoecc/ETH-ECC/log"
)
// ethstatsDockerfile is the Dockerfile required to build an ethstats backend
diff --git a/cmd/puppeth/module_explorer.go b/cmd/puppeth/module_explorer.go
index 3812f9fdb9..6e9a296c49 100644
--- a/cmd/puppeth/module_explorer.go
+++ b/cmd/puppeth/module_explorer.go
@@ -25,7 +25,7 @@ import (
"strconv"
"strings"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/cryptoecc/ETH-ECC/log"
)
// explorerDockerfile is the Dockerfile required to run a block explorer.
diff --git a/cmd/puppeth/module_faucet.go b/cmd/puppeth/module_faucet.go
index a4f6e65694..62feecb12f 100644
--- a/cmd/puppeth/module_faucet.go
+++ b/cmd/puppeth/module_faucet.go
@@ -26,8 +26,8 @@ import (
"strconv"
"strings"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/log"
)
// faucetDockerfile is the Dockerfile required to build a faucet container to
diff --git a/cmd/puppeth/module_nginx.go b/cmd/puppeth/module_nginx.go
index 1b1ae61ff5..9003b4c2e6 100644
--- a/cmd/puppeth/module_nginx.go
+++ b/cmd/puppeth/module_nginx.go
@@ -24,7 +24,7 @@ import (
"path/filepath"
"strconv"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/cryptoecc/ETH-ECC/log"
)
// nginxDockerfile is theis the Dockerfile required to build an nginx reverse-
diff --git a/cmd/puppeth/module_node.go b/cmd/puppeth/module_node.go
index b8aa30db39..c30f030d3c 100644
--- a/cmd/puppeth/module_node.go
+++ b/cmd/puppeth/module_node.go
@@ -26,8 +26,8 @@ import (
"strings"
"text/template"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/log"
)
// nodeDockerfile is the Dockerfile required to run an Ethereum node.
diff --git a/cmd/puppeth/puppeth.go b/cmd/puppeth/puppeth.go
index 415542b60c..765d7a08df 100644
--- a/cmd/puppeth/puppeth.go
+++ b/cmd/puppeth/puppeth.go
@@ -23,7 +23,7 @@ import (
"strings"
"time"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/cryptoecc/ETH-ECC/log"
"github.com/urfave/cli/v2"
)
diff --git a/cmd/puppeth/ssh.go b/cmd/puppeth/ssh.go
index a20b3bfda2..8d0a951836 100644
--- a/cmd/puppeth/ssh.go
+++ b/cmd/puppeth/ssh.go
@@ -27,7 +27,7 @@ import (
"path/filepath"
"strings"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/cryptoecc/ETH-ECC/log"
"golang.org/x/crypto/ssh"
"golang.org/x/crypto/ssh/agent"
"golang.org/x/term"
diff --git a/cmd/puppeth/wizard.go b/cmd/puppeth/wizard.go
index 6e5ca41d68..e83453ba9a 100644
--- a/cmd/puppeth/wizard.go
+++ b/cmd/puppeth/wizard.go
@@ -29,10 +29,10 @@ import (
"strings"
"sync"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/console/prompt"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/console/prompt"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/log"
"github.com/peterh/liner"
"golang.org/x/term"
)
diff --git a/cmd/puppeth/wizard_dashboard.go b/cmd/puppeth/wizard_dashboard.go
index b64bdca0b9..48d70574a4 100644
--- a/cmd/puppeth/wizard_dashboard.go
+++ b/cmd/puppeth/wizard_dashboard.go
@@ -19,7 +19,7 @@ package main
import (
"fmt"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/cryptoecc/ETH-ECC/log"
)
// deployDashboard queries the user for various input on deploying a web-service
diff --git a/cmd/puppeth/wizard_ethstats.go b/cmd/puppeth/wizard_ethstats.go
index 95cab9da46..b431864879 100644
--- a/cmd/puppeth/wizard_ethstats.go
+++ b/cmd/puppeth/wizard_ethstats.go
@@ -20,7 +20,7 @@ import (
"fmt"
"sort"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/cryptoecc/ETH-ECC/log"
)
// deployEthstats queries the user for various input on deploying an ethstats
diff --git a/cmd/puppeth/wizard_explorer.go b/cmd/puppeth/wizard_explorer.go
index 1df9cbc0f3..59b5058587 100644
--- a/cmd/puppeth/wizard_explorer.go
+++ b/cmd/puppeth/wizard_explorer.go
@@ -21,7 +21,7 @@ import (
"fmt"
"time"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/cryptoecc/ETH-ECC/log"
)
// deployExplorer creates a new block explorer based on some user input.
diff --git a/cmd/puppeth/wizard_faucet.go b/cmd/puppeth/wizard_faucet.go
index 65d4e8b8ed..a97cf69bfa 100644
--- a/cmd/puppeth/wizard_faucet.go
+++ b/cmd/puppeth/wizard_faucet.go
@@ -20,8 +20,8 @@ import (
"encoding/json"
"fmt"
- "github.com/ethereum/go-ethereum/accounts/keystore"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/cryptoecc/ETH-ECC/accounts/keystore"
+ "github.com/cryptoecc/ETH-ECC/log"
)
// deployFaucet queries the user for various input on deploying a faucet, after
diff --git a/cmd/puppeth/wizard_genesis.go b/cmd/puppeth/wizard_genesis.go
index ac17bc7b27..d8e8af3d0e 100644
--- a/cmd/puppeth/wizard_genesis.go
+++ b/cmd/puppeth/wizard_genesis.go
@@ -28,10 +28,10 @@ import (
"path/filepath"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/params"
)
// makeGenesis creates a new genesis struct based on some user input.
diff --git a/cmd/puppeth/wizard_intro.go b/cmd/puppeth/wizard_intro.go
index adac943cc3..af63cecd23 100644
--- a/cmd/puppeth/wizard_intro.go
+++ b/cmd/puppeth/wizard_intro.go
@@ -23,7 +23,7 @@ import (
"path/filepath"
"strings"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/cryptoecc/ETH-ECC/log"
)
// makeWizard creates and returns a new puppeth wizard.
diff --git a/cmd/puppeth/wizard_netstats.go b/cmd/puppeth/wizard_netstats.go
index 7b5671e6df..2c18e5e4c9 100644
--- a/cmd/puppeth/wizard_netstats.go
+++ b/cmd/puppeth/wizard_netstats.go
@@ -23,8 +23,8 @@ import (
"strings"
"sync"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/log"
"github.com/olekukonko/tablewriter"
)
diff --git a/cmd/puppeth/wizard_network.go b/cmd/puppeth/wizard_network.go
index d015e06ebb..c9e621ab4b 100644
--- a/cmd/puppeth/wizard_network.go
+++ b/cmd/puppeth/wizard_network.go
@@ -20,7 +20,7 @@ import (
"fmt"
"strings"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/cryptoecc/ETH-ECC/log"
)
// manageServers displays a list of servers the user can disconnect from, and an
diff --git a/cmd/puppeth/wizard_nginx.go b/cmd/puppeth/wizard_nginx.go
index 8397b7fd57..bee81b3e22 100644
--- a/cmd/puppeth/wizard_nginx.go
+++ b/cmd/puppeth/wizard_nginx.go
@@ -19,7 +19,7 @@ package main
import (
"fmt"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/cryptoecc/ETH-ECC/log"
)
// ensureVirtualHost checks whether a reverse-proxy is running on the specified
diff --git a/cmd/puppeth/wizard_node.go b/cmd/puppeth/wizard_node.go
index 2bae332142..1d1ed30dd5 100644
--- a/cmd/puppeth/wizard_node.go
+++ b/cmd/puppeth/wizard_node.go
@@ -21,9 +21,9 @@ import (
"fmt"
"time"
- "github.com/ethereum/go-ethereum/accounts/keystore"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/cryptoecc/ETH-ECC/accounts/keystore"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/log"
)
// deployNode creates a new node configuration based on some user input.
diff --git a/cmd/rlpdump/main.go b/cmd/rlpdump/main.go
index 70337749ae..1242f34030 100644
--- a/cmd/rlpdump/main.go
+++ b/cmd/rlpdump/main.go
@@ -28,8 +28,8 @@ import (
"os"
"strings"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/rlp"
)
var (
diff --git a/cmd/rlpdump/rlpdump_test.go b/cmd/rlpdump/rlpdump_test.go
index a9ab57fdb8..80ef5bbc7b 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/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/hexutil"
)
func TestRoundtrip(t *testing.T) {
diff --git a/cmd/utils/cmd.go b/cmd/utils/cmd.go
index 90f0090414..c55164f5a3 100644
--- a/cmd/utils/cmd.go
+++ b/cmd/utils/cmd.go
@@ -30,17 +30,17 @@ import (
"syscall"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/eth/ethconfig"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/internal/debug"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/node"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/eth/ethconfig"
+ "github.com/cryptoecc/ETH-ECC/ethdb"
+ "github.com/cryptoecc/ETH-ECC/internal/debug"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/node"
+ "github.com/cryptoecc/ETH-ECC/rlp"
"github.com/urfave/cli/v2"
)
diff --git a/cmd/utils/export_test.go b/cmd/utils/export_test.go
index 445e3fac37..26a2565d11 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/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/rlp"
)
// TestExport does basic sanity checks on the export/import functionality
diff --git a/cmd/utils/flags.go b/cmd/utils/flags.go
index fb2aa7c215..deec839e21 100644
--- a/cmd/utils/flags.go
+++ b/cmd/utils/flags.go
@@ -29,42 +29,42 @@ import (
"strings"
"time"
- "github.com/ethereum/go-ethereum/accounts"
- "github.com/ethereum/go-ethereum/accounts/keystore"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/fdlimit"
- "github.com/ethereum/go-ethereum/consensus/ethash"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/vm"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/eth"
- ethcatalyst "github.com/ethereum/go-ethereum/eth/catalyst"
- "github.com/ethereum/go-ethereum/eth/downloader"
- "github.com/ethereum/go-ethereum/eth/ethconfig"
- "github.com/ethereum/go-ethereum/eth/filters"
- "github.com/ethereum/go-ethereum/eth/gasprice"
- "github.com/ethereum/go-ethereum/eth/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/les"
- lescatalyst "github.com/ethereum/go-ethereum/les/catalyst"
- "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/cryptoecc/ETH-ECC/accounts"
+ "github.com/cryptoecc/ETH-ECC/accounts/keystore"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/fdlimit"
+ "github.com/cryptoecc/ETH-ECC/consensus/ethash"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/core/vm"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/eth"
+ ethcatalyst "github.com/cryptoecc/ETH-ECC/eth/catalyst"
+ "github.com/cryptoecc/ETH-ECC/eth/downloader"
+ "github.com/cryptoecc/ETH-ECC/eth/ethconfig"
+ "github.com/cryptoecc/ETH-ECC/eth/filters"
+ "github.com/cryptoecc/ETH-ECC/eth/gasprice"
+ "github.com/cryptoecc/ETH-ECC/eth/tracers"
+ "github.com/cryptoecc/ETH-ECC/ethdb"
+ "github.com/cryptoecc/ETH-ECC/ethdb/remotedb"
+ "github.com/cryptoecc/ETH-ECC/ethstats"
+ "github.com/cryptoecc/ETH-ECC/graphql"
+ "github.com/cryptoecc/ETH-ECC/internal/ethapi"
+ "github.com/cryptoecc/ETH-ECC/internal/flags"
+ "github.com/cryptoecc/ETH-ECC/les"
+ lescatalyst "github.com/cryptoecc/ETH-ECC/les/catalyst"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/metrics"
+ "github.com/cryptoecc/ETH-ECC/metrics/exp"
+ "github.com/cryptoecc/ETH-ECC/metrics/influxdb"
+ "github.com/cryptoecc/ETH-ECC/miner"
+ "github.com/cryptoecc/ETH-ECC/node"
+ "github.com/cryptoecc/ETH-ECC/p2p"
+ "github.com/cryptoecc/ETH-ECC/p2p/enode"
+ "github.com/cryptoecc/ETH-ECC/p2p/nat"
+ "github.com/cryptoecc/ETH-ECC/p2p/netutil"
+ "github.com/cryptoecc/ETH-ECC/params"
+ "github.com/cryptoecc/ETH-ECC/rpc"
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 651c69bd04..ec45012555 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/cryptoecc/ETH-ECC/eth/ethconfig"
+ "github.com/cryptoecc/ETH-ECC/internal/flags"
"github.com/urfave/cli/v2"
)
diff --git a/cmd/utils/prompt.go b/cmd/utils/prompt.go
index f513e38188..09c3d30048 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/cryptoecc/ETH-ECC/console/prompt"
)
// GetPassPhrase displays the given text(prompt) to the user and requests some textual
diff --git a/common/bitutil/compress_test.go b/common/bitutil/compress_test.go
index 13a13011dc..b9bc58c9f7 100644
--- a/common/bitutil/compress_test.go
+++ b/common/bitutil/compress_test.go
@@ -21,7 +21,7 @@ import (
"math/rand"
"testing"
- "github.com/ethereum/go-ethereum/common/hexutil"
+ "github.com/cryptoecc/ETH-ECC/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..a1d677fc33 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/cryptoecc/ETH-ECC/common/hexutil"
)
// FromHex returns the bytes represented by the hexadecimal string s.
diff --git a/common/debug.go b/common/debug.go
index 28c52b4a9c..6bfc37862d 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/cryptoecc/ETH-ECC/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..a5cbaf8333 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/cryptoecc/ETH-ECC/common/hexutil"
)
type MyType [5]byte
diff --git a/common/math/big_test.go b/common/math/big_test.go
index 803b5e1cc6..3d2734437a 100644
--- a/common/math/big_test.go
+++ b/common/math/big_test.go
@@ -22,7 +22,7 @@ import (
"math/big"
"testing"
- "github.com/ethereum/go-ethereum/common"
+ "github.com/cryptoecc/ETH-ECC/common"
)
func TestHexOrDecimal256(t *testing.T) {
diff --git a/common/prque/lazyqueue.go b/common/prque/lazyqueue.go
index 6fdb6cc1b7..c87affc6d1 100644
--- a/common/prque/lazyqueue.go
+++ b/common/prque/lazyqueue.go
@@ -20,15 +20,16 @@ import (
"container/heap"
"time"
- "github.com/ethereum/go-ethereum/common/mclock"
+ "github.com/cryptoecc/ETH-ECC/common/mclock"
)
// LazyQueue is a priority queue data structure where priorities can change over
// time and are only evaluated on demand.
// Two callbacks are required:
-// - priority evaluates the actual priority of an item
-// - maxPriority gives an upper estimate for the priority in any moment between
-// now and the given absolute time
+// - priority evaluates the actual priority of an item
+// - maxPriority gives an upper estimate for the priority in any moment between
+// now and the given absolute time
+//
// If the upper estimate is exceeded then Update should be called for that item.
// A global Refresh function should also be called periodically.
type LazyQueue struct {
diff --git a/common/prque/lazyqueue_test.go b/common/prque/lazyqueue_test.go
index 9a831d628b..8b23ed6c96 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/cryptoecc/ETH-ECC/common/mclock"
)
const (
diff --git a/common/types.go b/common/types.go
index 2205835cb5..bfae5177fc 100644
--- a/common/types.go
+++ b/common/types.go
@@ -28,7 +28,7 @@ import (
"reflect"
"strings"
- "github.com/ethereum/go-ethereum/common/hexutil"
+ "github.com/cryptoecc/ETH-ECC/common/hexutil"
"golang.org/x/crypto/sha3"
)
diff --git a/consensus/beacon/consensus.go b/consensus/beacon/consensus.go
index 7e4d657413..be614ecb32 100644
--- a/consensus/beacon/consensus.go
+++ b/consensus/beacon/consensus.go
@@ -21,14 +21,14 @@ import (
"fmt"
"math/big"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/consensus"
- "github.com/ethereum/go-ethereum/consensus/misc"
- "github.com/ethereum/go-ethereum/core/state"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/rpc"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/consensus"
+ "github.com/cryptoecc/ETH-ECC/consensus/misc"
+ "github.com/cryptoecc/ETH-ECC/core/state"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/params"
+ "github.com/cryptoecc/ETH-ECC/rpc"
+ "github.com/cryptoecc/ETH-ECC/trie"
)
// Proof-of-stake protocol constants.
@@ -224,10 +224,11 @@ func (beacon *Beacon) VerifyUncles(chain consensus.ChainReader, block *types.Blo
// verifyHeader checks whether a header conforms to the consensus rules of the
// stock Ethereum consensus engine. The difference between the beacon and classic is
// (a) The following fields are expected to be constants:
-// - difficulty is expected to be 0
-// - nonce is expected to be 0
-// - unclehash is expected to be Hash(emptyHeader)
+// - difficulty is expected to be 0
+// - nonce is expected to be 0
+// - unclehash is expected to be Hash(emptyHeader)
// to be the desired constants
+//
// (b) we don't verify if a block is in the future anymore
// (c) the extradata is limited to 32 bytes
func (beacon *Beacon) verifyHeader(chain consensus.ChainHeaderReader, header, parent *types.Header) error {
diff --git a/consensus/beacon/consensus_test.go b/consensus/beacon/consensus_test.go
index 09c0b27c42..4b45468d90 100644
--- a/consensus/beacon/consensus_test.go
+++ b/consensus/beacon/consensus_test.go
@@ -5,10 +5,10 @@ import (
"math/big"
"testing"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/consensus"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/consensus"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/params"
)
type mockChain struct {
diff --git a/consensus/clique/api.go b/consensus/clique/api.go
index cb270d321d..fb313a702d 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/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/hexutil"
+ "github.com/cryptoecc/ETH-ECC/consensus"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/rlp"
+ "github.com/cryptoecc/ETH-ECC/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 dcdfb20c63..d51074de25 100644
--- a/consensus/clique/clique.go
+++ b/consensus/clique/clique.go
@@ -27,20 +27,20 @@ import (
"sync"
"time"
- "github.com/ethereum/go-ethereum/accounts"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/consensus"
- "github.com/ethereum/go-ethereum/consensus/misc"
- "github.com/ethereum/go-ethereum/core/state"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/rlp"
- "github.com/ethereum/go-ethereum/rpc"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/cryptoecc/ETH-ECC/accounts"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/hexutil"
+ "github.com/cryptoecc/ETH-ECC/consensus"
+ "github.com/cryptoecc/ETH-ECC/consensus/misc"
+ "github.com/cryptoecc/ETH-ECC/core/state"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/ethdb"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/params"
+ "github.com/cryptoecc/ETH-ECC/rlp"
+ "github.com/cryptoecc/ETH-ECC/rpc"
+ "github.com/cryptoecc/ETH-ECC/trie"
lru "github.com/hashicorp/golang-lru"
"golang.org/x/crypto/sha3"
)
diff --git a/consensus/clique/clique_test.go b/consensus/clique/clique_test.go
index 74d884a21b..2b8b7412f9 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/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/core/vm"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/params"
)
// This test case is a repro of an annoying bug that took us forever to catch.
diff --git a/consensus/clique/snapshot.go b/consensus/clique/snapshot.go
index 4ee731a908..bd3950c21b 100644
--- a/consensus/clique/snapshot.go
+++ b/consensus/clique/snapshot.go
@@ -22,11 +22,11 @@ import (
"sort"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/ethdb"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/params"
lru "github.com/hashicorp/golang-lru"
)
diff --git a/consensus/clique/snapshot_test.go b/consensus/clique/snapshot_test.go
index a1e481abbf..824fc02d06 100644
--- a/consensus/clique/snapshot_test.go
+++ b/consensus/clique/snapshot_test.go
@@ -23,13 +23,13 @@ import (
"sort"
"testing"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/core/vm"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/core/vm"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/params"
)
// testerAccountPool is a pool to maintain currently active tester accounts,
@@ -364,7 +364,7 @@ func TestClique(t *testing.T) {
failure: errRecentlySigned,
}, {
// Recent signatures should not reset on checkpoint blocks imported in a new
- // batch (https://github.com/ethereum/go-ethereum/issues/17593). Whilst this
+ // batch (https://github.com/cryptoecc/ETH-ECC/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 af8ce98ff3..814c6fde60 100644
--- a/consensus/consensus.go
+++ b/consensus/consensus.go
@@ -20,11 +20,11 @@ package consensus
import (
"math/big"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/state"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/rpc"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core/state"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/params"
+ "github.com/cryptoecc/ETH-ECC/rpc"
)
// ChainHeaderReader defines a small collection of methods needed to access the local
diff --git a/consensus/ethash/algorithm.go b/consensus/ethash/algorithm.go
index 065e60b90b..7af620858a 100644
--- a/consensus/ethash/algorithm.go
+++ b/consensus/ethash/algorithm.go
@@ -27,10 +27,10 @@ import (
"time"
"unsafe"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/bitutil"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/bitutil"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/log"
"golang.org/x/crypto/sha3"
)
diff --git a/consensus/ethash/algorithm_test.go b/consensus/ethash/algorithm_test.go
index 88769d277c..0f42479d67 100644
--- a/consensus/ethash/algorithm_test.go
+++ b/consensus/ethash/algorithm_test.go
@@ -25,9 +25,9 @@ import (
"sync"
"testing"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/core/types"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/hexutil"
+ "github.com/cryptoecc/ETH-ECC/core/types"
)
// prepare converts an ethash cache or dataset from a byte stream into the internal
diff --git a/consensus/ethash/api.go b/consensus/ethash/api.go
index f4d3802e0b..d0c2a14563 100644
--- a/consensus/ethash/api.go
+++ b/consensus/ethash/api.go
@@ -19,9 +19,9 @@ package ethash
import (
"errors"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/core/types"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/hexutil"
+ "github.com/cryptoecc/ETH-ECC/core/types"
)
var errEthashStopped = errors.New("ethash stopped")
@@ -34,10 +34,11 @@ type API struct {
// GetWork returns a work package for external miner.
//
// The work package consists of 3 strings:
-// result[0] - 32 bytes hex encoded current block header pow-hash
-// result[1] - 32 bytes hex encoded seed hash used for DAG
-// result[2] - 32 bytes hex encoded boundary condition ("target"), 2^256/difficulty
-// result[3] - hex encoded block number
+//
+// result[0] - 32 bytes hex encoded current block header pow-hash
+// result[1] - 32 bytes hex encoded seed hash used for DAG
+// result[2] - 32 bytes hex encoded boundary condition ("target"), 2^256/difficulty
+// result[3] - hex encoded block number
func (api *API) GetWork() ([4]string, error) {
if api.ethash.remote == nil {
return [4]string{}, errors.New("not supported")
diff --git a/consensus/ethash/consensus.go b/consensus/ethash/consensus.go
index 1c38b80ea5..cbce1a224e 100644
--- a/consensus/ethash/consensus.go
+++ b/consensus/ethash/consensus.go
@@ -24,16 +24,16 @@ import (
"runtime"
"time"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/math"
+ "github.com/cryptoecc/ETH-ECC/consensus"
+ "github.com/cryptoecc/ETH-ECC/consensus/misc"
+ "github.com/cryptoecc/ETH-ECC/core/state"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/params"
+ "github.com/cryptoecc/ETH-ECC/rlp"
+ "github.com/cryptoecc/ETH-ECC/trie"
mapset "github.com/deckarep/golang-set"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/math"
- "github.com/ethereum/go-ethereum/consensus"
- "github.com/ethereum/go-ethereum/consensus/misc"
- "github.com/ethereum/go-ethereum/core/state"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/rlp"
- "github.com/ethereum/go-ethereum/trie"
"golang.org/x/crypto/sha3"
)
diff --git a/consensus/ethash/consensus_test.go b/consensus/ethash/consensus_test.go
index db997d737e..9731e157f4 100644
--- a/consensus/ethash/consensus_test.go
+++ b/consensus/ethash/consensus_test.go
@@ -25,10 +25,10 @@ import (
"path/filepath"
"testing"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/math"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/math"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/params"
)
type diffTest struct {
diff --git a/consensus/ethash/difficulty.go b/consensus/ethash/difficulty.go
index 66a18059c6..606c423f3d 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/cryptoecc/ETH-ECC/core/types"
"github.com/holiman/uint256"
)
diff --git a/consensus/ethash/ethash.go b/consensus/ethash/ethash.go
index dfe00d4b93..06924d41b2 100644
--- a/consensus/ethash/ethash.go
+++ b/consensus/ethash/ethash.go
@@ -33,11 +33,11 @@ import (
"time"
"unsafe"
+ "github.com/cryptoecc/ETH-ECC/consensus"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/metrics"
+ "github.com/cryptoecc/ETH-ECC/rpc"
"github.com/edsrzf/mmap-go"
- "github.com/ethereum/go-ethereum/consensus"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/metrics"
- "github.com/ethereum/go-ethereum/rpc"
"github.com/hashicorp/golang-lru/simplelru"
)
diff --git a/consensus/ethash/ethash_test.go b/consensus/ethash/ethash_test.go
index eb6bad9622..2bfda2e8f8 100644
--- a/consensus/ethash/ethash_test.go
+++ b/consensus/ethash/ethash_test.go
@@ -24,9 +24,9 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/core/types"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/hexutil"
+ "github.com/cryptoecc/ETH-ECC/core/types"
)
// Tests that ethash works correctly in test mode.
@@ -54,7 +54,7 @@ func TestTestMode(t *testing.T) {
}
// This test checks that cache lru logic doesn't crash under load.
-// It reproduces https://github.com/ethereum/go-ethereum/issues/14943
+// It reproduces https://github.com/cryptoecc/ETH-ECC/issues/14943
func TestCacheFileEvict(t *testing.T) {
// TODO: t.TempDir fails to remove the directory on Windows
// \AppData\Local\Temp\1\TestCacheFileEvict2179435125\001\cache-R23-0000000000000000: Access is denied.
diff --git a/consensus/ethash/sealer.go b/consensus/ethash/sealer.go
index 6fa60ef6a8..2b27c614be 100644
--- a/consensus/ethash/sealer.go
+++ b/consensus/ethash/sealer.go
@@ -30,10 +30,10 @@ import (
"sync"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/consensus"
- "github.com/ethereum/go-ethereum/core/types"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/hexutil"
+ "github.com/cryptoecc/ETH-ECC/consensus"
+ "github.com/cryptoecc/ETH-ECC/core/types"
)
const (
@@ -339,10 +339,11 @@ func (s *remoteSealer) loop() {
// makeWork creates a work package for external miner.
//
// The work package consists of 3 strings:
-// result[0], 32 bytes hex encoded current block header pow-hash
-// result[1], 32 bytes hex encoded seed hash used for DAG
-// result[2], 32 bytes hex encoded boundary condition ("target"), 2^256/difficulty
-// result[3], hex encoded block number
+//
+// result[0], 32 bytes hex encoded current block header pow-hash
+// result[1], 32 bytes hex encoded seed hash used for DAG
+// result[2], 32 bytes hex encoded boundary condition ("target"), 2^256/difficulty
+// result[3], hex encoded block number
func (s *remoteSealer) makeWork(block *types.Block) {
hash := s.ethash.SealHash(block.Header())
s.currentWork[0] = hash.Hex()
diff --git a/consensus/ethash/sealer_test.go b/consensus/ethash/sealer_test.go
index e338f75290..6c800561d0 100644
--- a/consensus/ethash/sealer_test.go
+++ b/consensus/ethash/sealer_test.go
@@ -26,10 +26,10 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/internal/testlog"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/internal/testlog"
+ "github.com/cryptoecc/ETH-ECC/log"
)
// Tests whether remote HTTP servers are correctly notified of new work.
diff --git a/consensus/merger.go b/consensus/merger.go
index ffbcbf2b85..a066da6ee4 100644
--- a/consensus/merger.go
+++ b/consensus/merger.go
@@ -20,10 +20,10 @@ import (
"fmt"
"sync"
- "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/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/ethdb"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/rlp"
)
// transitionStatus describes the status of eth1/2 transition. This switch
diff --git a/consensus/misc/dao.go b/consensus/misc/dao.go
index 36df036f27..62bc267a91 100644
--- a/consensus/misc/dao.go
+++ b/consensus/misc/dao.go
@@ -21,9 +21,9 @@ import (
"errors"
"math/big"
- "github.com/ethereum/go-ethereum/core/state"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/cryptoecc/ETH-ECC/core/state"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/params"
)
var (
@@ -40,10 +40,11 @@ var (
// ensure it conforms to DAO hard-fork rules.
//
// DAO hard-fork extension to the header validity:
-// a) if the node is no-fork, do not accept blocks in the [fork, fork+10) range
-// with the fork specific extra-data set
-// b) if the node is pro-fork, require blocks in the specific range to have the
-// unique extra-data set.
+//
+// a) if the node is no-fork, do not accept blocks in the [fork, fork+10) range
+// with the fork specific extra-data set
+// b) if the node is pro-fork, require blocks in the specific range to have the
+// unique extra-data set.
func VerifyDAOHeaderExtraData(config *params.ChainConfig, header *types.Header) error {
// Short circuit validation if the node doesn't care about the DAO fork
if config.DAOForkBlock == nil {
diff --git a/consensus/misc/eip1559.go b/consensus/misc/eip1559.go
index e0216243f0..93c488a018 100644
--- a/consensus/misc/eip1559.go
+++ b/consensus/misc/eip1559.go
@@ -20,10 +20,10 @@ import (
"fmt"
"math/big"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/math"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/math"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/params"
)
// VerifyEip1559Header verifies some header attributes which were changed in EIP-1559,
diff --git a/consensus/misc/eip1559_test.go b/consensus/misc/eip1559_test.go
index 23cd9023de..730955a38c 100644
--- a/consensus/misc/eip1559_test.go
+++ b/consensus/misc/eip1559_test.go
@@ -20,9 +20,9 @@ import (
"math/big"
"testing"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/params"
)
// copyConfig does a _shallow_ copy of a given config. Safe to set new values, but
diff --git a/consensus/misc/forks.go b/consensus/misc/forks.go
index a6f3303ea6..0b8279ce26 100644
--- a/consensus/misc/forks.go
+++ b/consensus/misc/forks.go
@@ -19,9 +19,9 @@ package misc
import (
"fmt"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/params"
)
// VerifyForkHashes verifies that blocks conforming to network hard-forks do have
diff --git a/consensus/misc/gaslimit.go b/consensus/misc/gaslimit.go
index 25f35300b9..84f822a790 100644
--- a/consensus/misc/gaslimit.go
+++ b/consensus/misc/gaslimit.go
@@ -20,7 +20,7 @@ import (
"errors"
"fmt"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/cryptoecc/ETH-ECC/params"
)
// VerifyGaslimit verifies the header gas limit according increase/decrease
diff --git a/console/bridge.go b/console/bridge.go
index 21ef0e8e7b..4b34c12b8a 100644
--- a/console/bridge.go
+++ b/console/bridge.go
@@ -24,13 +24,13 @@ import (
"strings"
"time"
+ "github.com/cryptoecc/ETH-ECC/accounts/scwallet"
+ "github.com/cryptoecc/ETH-ECC/accounts/usbwallet"
+ "github.com/cryptoecc/ETH-ECC/common/hexutil"
+ "github.com/cryptoecc/ETH-ECC/console/prompt"
+ "github.com/cryptoecc/ETH-ECC/internal/jsre"
+ "github.com/cryptoecc/ETH-ECC/rpc"
"github.com/dop251/goja"
- "github.com/ethereum/go-ethereum/accounts/scwallet"
- "github.com/ethereum/go-ethereum/accounts/usbwallet"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/console/prompt"
- "github.com/ethereum/go-ethereum/internal/jsre"
- "github.com/ethereum/go-ethereum/rpc"
)
// bridge is a collection of JavaScript utility methods to bride the .js runtime
diff --git a/console/bridge_test.go b/console/bridge_test.go
index e57e294fc5..ca6af9c2eb 100644
--- a/console/bridge_test.go
+++ b/console/bridge_test.go
@@ -19,8 +19,8 @@ package console
import (
"testing"
+ "github.com/cryptoecc/ETH-ECC/internal/jsre"
"github.com/dop251/goja"
- "github.com/ethereum/go-ethereum/internal/jsre"
)
// TestUndefinedAsParam ensures that personal functions can receive
diff --git a/console/console.go b/console/console.go
index 7b9ed27e15..7ddabd444e 100644
--- a/console/console.go
+++ b/console/console.go
@@ -29,12 +29,12 @@ import (
"sync"
"syscall"
+ "github.com/cryptoecc/ETH-ECC/console/prompt"
+ "github.com/cryptoecc/ETH-ECC/internal/jsre"
+ "github.com/cryptoecc/ETH-ECC/internal/jsre/deps"
+ "github.com/cryptoecc/ETH-ECC/internal/web3ext"
+ "github.com/cryptoecc/ETH-ECC/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/rpc"
"github.com/mattn/go-colorable"
"github.com/peterh/liner"
)
diff --git a/console/console_test.go b/console/console_test.go
index 35341fcba0..a63b0e1f00 100644
--- a/console/console_test.go
+++ b/console/console_test.go
@@ -25,15 +25,15 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/consensus/ethash"
- "github.com/ethereum/go-ethereum/console/prompt"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/eth"
- "github.com/ethereum/go-ethereum/eth/ethconfig"
- "github.com/ethereum/go-ethereum/internal/jsre"
- "github.com/ethereum/go-ethereum/miner"
- "github.com/ethereum/go-ethereum/node"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/consensus/ethash"
+ "github.com/cryptoecc/ETH-ECC/console/prompt"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/eth"
+ "github.com/cryptoecc/ETH-ECC/eth/ethconfig"
+ "github.com/cryptoecc/ETH-ECC/internal/jsre"
+ "github.com/cryptoecc/ETH-ECC/miner"
+ "github.com/cryptoecc/ETH-ECC/node"
)
const (
diff --git a/contracts/checkpointoracle/contract/oracle.go b/contracts/checkpointoracle/contract/oracle.go
index a4a308f5c5..23796a3751 100644
--- a/contracts/checkpointoracle/contract/oracle.go
+++ b/contracts/checkpointoracle/contract/oracle.go
@@ -7,12 +7,12 @@ import (
"math/big"
"strings"
- ethereum "github.com/ethereum/go-ethereum"
- "github.com/ethereum/go-ethereum/accounts/abi"
- "github.com/ethereum/go-ethereum/accounts/abi/bind"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/event"
+ ethereum "github.com/cryptoecc/ETH-ECC"
+ "github.com/cryptoecc/ETH-ECC/accounts/abi"
+ "github.com/cryptoecc/ETH-ECC/accounts/abi/bind"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/event"
)
// Reference imports to suppress errors if they are not otherwise used.
diff --git a/contracts/checkpointoracle/oracle.go b/contracts/checkpointoracle/oracle.go
index dec01db244..d835e10b72 100644
--- a/contracts/checkpointoracle/oracle.go
+++ b/contracts/checkpointoracle/oracle.go
@@ -24,10 +24,10 @@ import (
"errors"
"math/big"
- "github.com/ethereum/go-ethereum/accounts/abi/bind"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/contracts/checkpointoracle/contract"
- "github.com/ethereum/go-ethereum/core/types"
+ "github.com/cryptoecc/ETH-ECC/accounts/abi/bind"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/contracts/checkpointoracle/contract"
+ "github.com/cryptoecc/ETH-ECC/core/types"
)
// CheckpointOracle is a Go wrapper around an on-chain checkpoint oracle contract.
diff --git a/contracts/checkpointoracle/oracle_test.go b/contracts/checkpointoracle/oracle_test.go
index 61dd8aec79..3af7540346 100644
--- a/contracts/checkpointoracle/oracle_test.go
+++ b/contracts/checkpointoracle/oracle_test.go
@@ -27,13 +27,13 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/accounts/abi/bind"
- "github.com/ethereum/go-ethereum/accounts/abi/bind/backends"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/contracts/checkpointoracle/contract"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/cryptoecc/ETH-ECC/accounts/abi/bind"
+ "github.com/cryptoecc/ETH-ECC/accounts/abi/bind/backends"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/contracts/checkpointoracle/contract"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/params"
)
var (
diff --git a/core/asm/asm.go b/core/asm/asm.go
index 7c1e14ec01..617e733d54 100644
--- a/core/asm/asm.go
+++ b/core/asm/asm.go
@@ -21,7 +21,7 @@ import (
"encoding/hex"
"fmt"
- "github.com/ethereum/go-ethereum/core/vm"
+ "github.com/cryptoecc/ETH-ECC/core/vm"
)
// Iterator for disassembled EVM instructions
diff --git a/core/asm/compiler.go b/core/asm/compiler.go
index ce2d23abd0..cd0ab93e1d 100644
--- a/core/asm/compiler.go
+++ b/core/asm/compiler.go
@@ -22,8 +22,8 @@ import (
"os"
"strings"
- "github.com/ethereum/go-ethereum/common/math"
- "github.com/ethereum/go-ethereum/core/vm"
+ "github.com/cryptoecc/ETH-ECC/common/math"
+ "github.com/cryptoecc/ETH-ECC/core/vm"
)
// Compiler contains information about the parsed source
diff --git a/core/beacon/errors.go b/core/beacon/errors.go
index 7a30d09bb0..f2cd167d46 100644
--- a/core/beacon/errors.go
+++ b/core/beacon/errors.go
@@ -17,8 +17,8 @@
package beacon
import (
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/rpc"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/rpc"
)
// EngineAPIError is a standardized error message between consensus and execution
diff --git a/core/beacon/gen_blockparams.go b/core/beacon/gen_blockparams.go
index 0e2ea4bb13..616a47f232 100644
--- a/core/beacon/gen_blockparams.go
+++ b/core/beacon/gen_blockparams.go
@@ -6,8 +6,8 @@ import (
"encoding/json"
"errors"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/hexutil"
)
var _ = (*payloadAttributesMarshaling)(nil)
diff --git a/core/beacon/gen_ed.go b/core/beacon/gen_ed.go
index dcee3bf18c..135d5c7d63 100644
--- a/core/beacon/gen_ed.go
+++ b/core/beacon/gen_ed.go
@@ -7,8 +7,8 @@ import (
"errors"
"math/big"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/hexutil"
)
var _ = (*executableDataMarshaling)(nil)
diff --git a/core/beacon/types.go b/core/beacon/types.go
index e25d724c0d..b9c080cabe 100644
--- a/core/beacon/types.go
+++ b/core/beacon/types.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/core/types"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/hexutil"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/trie"
)
//go:generate go run github.com/fjl/gencodec -type PayloadAttributesV1 -field-override payloadAttributesMarshaling -out gen_blockparams.go
@@ -136,9 +136,11 @@ func decodeTransactions(enc [][]byte) ([]*types.Transaction, error) {
// ExecutableDataToBlock constructs a block from executable data.
// It verifies that the following fields:
-// len(extraData) <= 32
-// uncleHash = emptyUncleHash
-// difficulty = 0
+//
+// len(extraData) <= 32
+// uncleHash = emptyUncleHash
+// difficulty = 0
+//
// and that the blockhash of the constructed block matches the parameters.
func ExecutableDataToBlock(params ExecutableDataV1) (*types.Block, error) {
txs, err := decodeTransactions(params.Transactions)
diff --git a/core/bench_test.go b/core/bench_test.go
index e448310e4d..b817ace034 100644
--- a/core/bench_test.go
+++ b/core/bench_test.go
@@ -21,15 +21,15 @@ 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/params"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/math"
+ "github.com/cryptoecc/ETH-ECC/consensus/ethash"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/core/vm"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/ethdb"
+ "github.com/cryptoecc/ETH-ECC/params"
)
func BenchmarkInsertChain_empty_memdb(b *testing.B) {
diff --git a/core/block_validator.go b/core/block_validator.go
index 3763be0be0..2fb22c59da 100644
--- a/core/block_validator.go
+++ b/core/block_validator.go
@@ -19,11 +19,11 @@ package core
import (
"fmt"
- "github.com/ethereum/go-ethereum/consensus"
- "github.com/ethereum/go-ethereum/core/state"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/cryptoecc/ETH-ECC/consensus"
+ "github.com/cryptoecc/ETH-ECC/core/state"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/params"
+ "github.com/cryptoecc/ETH-ECC/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 815bc86552..2685c67e2d 100644
--- a/core/block_validator_test.go
+++ b/core/block_validator_test.go
@@ -23,16 +23,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/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/consensus"
+ "github.com/cryptoecc/ETH-ECC/consensus/beacon"
+ "github.com/cryptoecc/ETH-ECC/consensus/clique"
+ "github.com/cryptoecc/ETH-ECC/consensus/ethash"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/core/vm"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/params"
)
// Tests that simple header verification works, for both good and bad blocks.
diff --git a/core/blockchain.go b/core/blockchain.go
index f588cc50bd..b4013a7e65 100644
--- a/core/blockchain.go
+++ b/core/blockchain.go
@@ -28,22 +28,22 @@ import (
"sync/atomic"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/mclock"
- "github.com/ethereum/go-ethereum/common/prque"
- "github.com/ethereum/go-ethereum/consensus"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/state"
- "github.com/ethereum/go-ethereum/core/state/snapshot"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/core/vm"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/event"
- "github.com/ethereum/go-ethereum/internal/syncx"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/metrics"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/mclock"
+ "github.com/cryptoecc/ETH-ECC/common/prque"
+ "github.com/cryptoecc/ETH-ECC/consensus"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/core/state"
+ "github.com/cryptoecc/ETH-ECC/core/state/snapshot"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/core/vm"
+ "github.com/cryptoecc/ETH-ECC/ethdb"
+ "github.com/cryptoecc/ETH-ECC/event"
+ "github.com/cryptoecc/ETH-ECC/internal/syncx"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/metrics"
+ "github.com/cryptoecc/ETH-ECC/params"
+ "github.com/cryptoecc/ETH-ECC/trie"
lru "github.com/hashicorp/golang-lru"
)
diff --git a/core/blockchain_insert.go b/core/blockchain_insert.go
index 479eccc83e..fa532e4f04 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/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/mclock"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/log"
)
// insertStats tracks and reports on block insertion.
diff --git a/core/blockchain_reader.go b/core/blockchain_reader.go
index 5814c8a0da..5e81d021ea 100644
--- a/core/blockchain_reader.go
+++ b/core/blockchain_reader.go
@@ -19,16 +19,16 @@ package core
import (
"math/big"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/consensus"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/state"
- "github.com/ethereum/go-ethereum/core/state/snapshot"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/core/vm"
- "github.com/ethereum/go-ethereum/event"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/consensus"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/core/state"
+ "github.com/cryptoecc/ETH-ECC/core/state/snapshot"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/core/vm"
+ "github.com/cryptoecc/ETH-ECC/event"
+ "github.com/cryptoecc/ETH-ECC/params"
+ "github.com/cryptoecc/ETH-ECC/rlp"
)
// CurrentHeader retrieves the current head header of the canonical chain. The
diff --git a/core/blockchain_repair_test.go b/core/blockchain_repair_test.go
index 04154158c9..c2aba2a171 100644
--- a/core/blockchain_repair_test.go
+++ b/core/blockchain_repair_test.go
@@ -25,12 +25,12 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/consensus/ethash"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/core/vm"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/consensus/ethash"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/core/vm"
+ "github.com/cryptoecc/ETH-ECC/params"
)
// Tests a recovery for a short canonical chain where a recent block was already
@@ -1863,7 +1863,7 @@ func testRepair(t *testing.T, tt *rewindTest, snapshots bool) {
}
}
-// TestIssue23496 tests scenario described in https://github.com/ethereum/go-ethereum/pull/23496#issuecomment-926393893
+// TestIssue23496 tests scenario described in https://github.com/cryptoecc/ETH-ECC/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 c5df7949ef..28f78a0192 100644
--- a/core/blockchain_sethead_test.go
+++ b/core/blockchain_sethead_test.go
@@ -26,12 +26,12 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/consensus/ethash"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/core/vm"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/consensus/ethash"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/core/vm"
+ "github.com/cryptoecc/ETH-ECC/params"
)
// rewindTest is a test case for chain rollback upon user request.
diff --git a/core/blockchain_snapshot_test.go b/core/blockchain_snapshot_test.go
index 01a88d7a3c..fe534663b6 100644
--- a/core/blockchain_snapshot_test.go
+++ b/core/blockchain_snapshot_test.go
@@ -28,13 +28,13 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/consensus"
- "github.com/ethereum/go-ethereum/consensus/ethash"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/core/vm"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/cryptoecc/ETH-ECC/consensus"
+ "github.com/cryptoecc/ETH-ECC/consensus/ethash"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/core/vm"
+ "github.com/cryptoecc/ETH-ECC/ethdb"
+ "github.com/cryptoecc/ETH-ECC/params"
)
// snapshotTestBasic wraps the common testing fields in the snapshot tests.
diff --git a/core/blockchain_test.go b/core/blockchain_test.go
index 713ac2809a..a89f32b7d7 100644
--- a/core/blockchain_test.go
+++ b/core/blockchain_test.go
@@ -26,20 +26,20 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/math"
- "github.com/ethereum/go-ethereum/consensus"
- "github.com/ethereum/go-ethereum/consensus/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/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/params"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/math"
+ "github.com/cryptoecc/ETH-ECC/consensus"
+ "github.com/cryptoecc/ETH-ECC/consensus/beacon"
+ "github.com/cryptoecc/ETH-ECC/consensus/ethash"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/core/state"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/core/vm"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/eth/tracers/logger"
+ "github.com/cryptoecc/ETH-ECC/ethdb"
+ "github.com/cryptoecc/ETH-ECC/params"
+ "github.com/cryptoecc/ETH-ECC/trie"
)
// So we can deterministically seed different blockchains
@@ -1594,7 +1594,7 @@ func TestEIP161AccountRemoval(t *testing.T) {
// tests that under weird reorg conditions the blockchain and its internal header-
// chain return the same latest block/header.
//
-// https://github.com/ethereum/go-ethereum/pull/15941
+// https://github.com/cryptoecc/ETH-ECC/pull/15941
func TestBlockchainHeaderchainReorgConsistency(t *testing.T) {
// Generate a canonical chain to act as the main dataset
engine := ethash.NewFaker()
@@ -1882,8 +1882,8 @@ func TestInsertReceiptChainRollback(t *testing.T) {
// overtake the 'canon' chain until after it's passed canon by about 200 blocks.
//
// Details at:
-// - https://github.com/ethereum/go-ethereum/issues/18977
-// - https://github.com/ethereum/go-ethereum/pull/18988
+// - https://github.com/cryptoecc/ETH-ECC/issues/18977
+// - https://github.com/cryptoecc/ETH-ECC/pull/18988
func TestLowDiffLongChain(t *testing.T) {
// Generate a canonical chain to act as the main dataset
engine := ethash.NewFaker()
@@ -2050,7 +2050,8 @@ func testSideImport(t *testing.T, numCanonBlocksInSidechain, blocksBetweenCommon
// That is: the sidechain for import contains some blocks already present in canon chain.
// So the blocks are
// [ Cn, Cn+1, Cc, Sn+3 ... Sm]
-// ^ ^ ^ pruned
+//
+// ^ ^ ^ pruned
func TestPrunedImportSide(t *testing.T) {
//glogger := log.NewGlogHandler(log.StreamHandler(os.Stdout, log.TerminalFormat(false)))
//glogger.Verbosity(3)
@@ -2843,9 +2844,9 @@ func BenchmarkBlockChain_1x1000Executions(b *testing.B) {
// This internally leads to a sidechain import, since the blocks trigger an
// ErrPrunedAncestor error.
// This may e.g. happen if
-// 1. Downloader rollbacks a batch of inserted blocks and exits
-// 2. Downloader starts to sync again
-// 3. The blocks fetched are all known and canonical blocks
+// 1. Downloader rollbacks a batch of inserted blocks and exits
+// 2. Downloader starts to sync again
+// 3. The blocks fetched are all known and canonical blocks
func TestSideImportPrunedBlocks(t *testing.T) {
// Generate a canonical chain to act as the main dataset
engine := ethash.NewFaker()
@@ -3362,20 +3363,19 @@ func TestDeleteRecreateSlotsAcrossManyBlocks(t *testing.T) {
// TestInitThenFailCreateContract tests a pretty notorious case that happened
// on mainnet over blocks 7338108, 7338110 and 7338115.
-// - Block 7338108: address e771789f5cccac282f23bb7add5690e1f6ca467c is initiated
-// with 0.001 ether (thus created but no code)
-// - Block 7338110: a CREATE2 is attempted. The CREATE2 would deploy code on
-// the same address e771789f5cccac282f23bb7add5690e1f6ca467c. However, the
-// deployment fails due to OOG during initcode execution
-// - Block 7338115: another tx checks the balance of
-// e771789f5cccac282f23bb7add5690e1f6ca467c, and the snapshotter returned it as
-// zero.
+// - Block 7338108: address e771789f5cccac282f23bb7add5690e1f6ca467c is initiated
+// with 0.001 ether (thus created but no code)
+// - Block 7338110: a CREATE2 is attempted. The CREATE2 would deploy code on
+// the same address e771789f5cccac282f23bb7add5690e1f6ca467c. However, the
+// deployment fails due to OOG during initcode execution
+// - Block 7338115: another tx checks the balance of
+// e771789f5cccac282f23bb7add5690e1f6ca467c, and the snapshotter returned it as
+// zero.
//
// The problem being that the snapshotter maintains a destructset, and adds items
// to the destructset in case something is created "onto" an existing item.
// We need to either roll back the snapDestructs, or not place it into snapDestructs
// in the first place.
-//
func TestInitThenFailCreateContract(t *testing.T) {
var (
// Generate a canonical chain to act as the main dataset
@@ -3563,13 +3563,13 @@ func TestEIP2718Transition(t *testing.T) {
// TestEIP1559Transition tests the following:
//
-// 1. A transaction whose gasFeeCap is greater than the baseFee is valid.
-// 2. Gas accounting for access lists on EIP-1559 transactions is correct.
-// 3. Only the transaction's tip will be received by the coinbase.
-// 4. The transaction sender pays for both the tip and baseFee.
-// 5. The coinbase receives only the partially realized tip when
-// gasFeeCap - gasTipCap < baseFee.
-// 6. Legacy transaction behave as expected (e.g. gasPrice = gasFeeCap = gasTipCap).
+// 1. A transaction whose gasFeeCap is greater than the baseFee is valid.
+// 2. Gas accounting for access lists on EIP-1559 transactions is correct.
+// 3. Only the transaction's tip will be received by the coinbase.
+// 4. The transaction sender pays for both the tip and baseFee.
+// 5. The coinbase receives only the partially realized tip when
+// gasFeeCap - gasTipCap < baseFee.
+// 6. Legacy transaction behave as expected (e.g. gasPrice = gasFeeCap = gasTipCap).
func TestEIP1559Transition(t *testing.T) {
var (
aa = common.HexToAddress("0x000000000000000000000000000000000000aaaa")
diff --git a/core/blocks.go b/core/blocks.go
index f20ba4aaf2..f16661f429 100644
--- a/core/blocks.go
+++ b/core/blocks.go
@@ -16,7 +16,7 @@
package core
-import "github.com/ethereum/go-ethereum/common"
+import "github.com/cryptoecc/ETH-ECC/common"
// BadHashes represent a set of manually tracked bad hashes (usually hard forks)
var BadHashes = map[common.Hash]bool{
diff --git a/core/bloom_indexer.go b/core/bloom_indexer.go
index 68a35d811e..b90dc7a97d 100644
--- a/core/bloom_indexer.go
+++ b/core/bloom_indexer.go
@@ -20,12 +20,12 @@ import (
"context"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/bitutil"
- "github.com/ethereum/go-ethereum/core/bloombits"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/ethdb"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/bitutil"
+ "github.com/cryptoecc/ETH-ECC/core/bloombits"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/ethdb"
)
const (
diff --git a/core/bloombits/generator.go b/core/bloombits/generator.go
index 646151db0b..ccc934486f 100644
--- a/core/bloombits/generator.go
+++ b/core/bloombits/generator.go
@@ -19,7 +19,7 @@ package bloombits
import (
"errors"
- "github.com/ethereum/go-ethereum/core/types"
+ "github.com/cryptoecc/ETH-ECC/core/types"
)
var (
diff --git a/core/bloombits/generator_test.go b/core/bloombits/generator_test.go
index 883948d12b..f958c06429 100644
--- a/core/bloombits/generator_test.go
+++ b/core/bloombits/generator_test.go
@@ -21,7 +21,7 @@ import (
"math/rand"
"testing"
- "github.com/ethereum/go-ethereum/core/types"
+ "github.com/cryptoecc/ETH-ECC/core/types"
)
// Tests that batched bloom bits are correctly rotated from the input bloom
diff --git a/core/bloombits/matcher.go b/core/bloombits/matcher.go
index f2a8bda17c..5b82d49d03 100644
--- a/core/bloombits/matcher.go
+++ b/core/bloombits/matcher.go
@@ -26,8 +26,8 @@ import (
"sync/atomic"
"time"
- "github.com/ethereum/go-ethereum/common/bitutil"
- "github.com/ethereum/go-ethereum/crypto"
+ "github.com/cryptoecc/ETH-ECC/common/bitutil"
+ "github.com/cryptoecc/ETH-ECC/crypto"
)
// bloomIndexes represents the bit indexes inside the bloom filter that belong
diff --git a/core/bloombits/matcher_test.go b/core/bloombits/matcher_test.go
index 93d4632b85..db56e3c0f1 100644
--- a/core/bloombits/matcher_test.go
+++ b/core/bloombits/matcher_test.go
@@ -23,7 +23,7 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/common"
+ "github.com/cryptoecc/ETH-ECC/common"
)
const testSectionSize = 4096
@@ -86,7 +86,7 @@ func TestMatcherRandom(t *testing.T) {
// Tests that the matcher can properly find matches if the starting block is
// shifter from a multiple of 8. This is needed to cover an optimisation with
-// bitset matching https://github.com/ethereum/go-ethereum/issues/15309.
+// bitset matching https://github.com/cryptoecc/ETH-ECC/issues/15309.
func TestMatcherShifted(t *testing.T) {
t.Parallel()
// Block 0 always matches in the tests, skip ahead of first 8 blocks with the
diff --git a/core/chain_indexer.go b/core/chain_indexer.go
index 95901a0eaa..78ea2ec6e5 100644
--- a/core/chain_indexer.go
+++ b/core/chain_indexer.go
@@ -24,12 +24,12 @@ import (
"sync/atomic"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/event"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/ethdb"
+ "github.com/cryptoecc/ETH-ECC/event"
+ "github.com/cryptoecc/ETH-ECC/log"
)
// ChainIndexerBackend defines the methods needed to process chain segments in
diff --git a/core/chain_indexer_test.go b/core/chain_indexer_test.go
index f099609015..1b6ca7d1aa 100644
--- a/core/chain_indexer_test.go
+++ b/core/chain_indexer_test.go
@@ -25,9 +25,9 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/types"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/core/types"
)
// Runs multiple tests with randomized parameters.
diff --git a/core/chain_makers.go b/core/chain_makers.go
index c7bf60a4b0..42ab1f6568 100644
--- a/core/chain_makers.go
+++ b/core/chain_makers.go
@@ -20,14 +20,14 @@ import (
"fmt"
"math/big"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/consensus"
- "github.com/ethereum/go-ethereum/consensus/misc"
- "github.com/ethereum/go-ethereum/core/state"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/core/vm"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/consensus"
+ "github.com/cryptoecc/ETH-ECC/consensus/misc"
+ "github.com/cryptoecc/ETH-ECC/core/state"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/core/vm"
+ "github.com/cryptoecc/ETH-ECC/ethdb"
+ "github.com/cryptoecc/ETH-ECC/params"
)
// BlockGen creates blocks for testing.
diff --git a/core/chain_makers_test.go b/core/chain_makers_test.go
index 166ac3f227..4463eeee56 100644
--- a/core/chain_makers_test.go
+++ b/core/chain_makers_test.go
@@ -20,12 +20,12 @@ import (
"fmt"
"math/big"
- "github.com/ethereum/go-ethereum/consensus/ethash"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/core/vm"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/cryptoecc/ETH-ECC/consensus/ethash"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/core/vm"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/params"
)
func ExampleGenerateChain() {
diff --git a/core/dao_test.go b/core/dao_test.go
index 8089b5470a..4c18b65149 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/cryptoecc/ETH-ECC/consensus/ethash"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/core/vm"
+ "github.com/cryptoecc/ETH-ECC/params"
)
// Tests that DAO-fork enabled clients can properly filter out fork-commencing
diff --git a/core/error.go b/core/error.go
index 5b69c8dcaf..8ddfa0eeb4 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/cryptoecc/ETH-ECC/core/types"
)
var (
diff --git a/core/events.go b/core/events.go
index ac935a137f..9af15adf62 100644
--- a/core/events.go
+++ b/core/events.go
@@ -17,8 +17,8 @@
package core
import (
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/types"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/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 e929da25ea..5f5f77781c 100644
--- a/core/evm.go
+++ b/core/evm.go
@@ -19,10 +19,10 @@ package core
import (
"math/big"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/consensus"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/core/vm"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/consensus"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/core/vm"
)
// ChainContext supports retrieving headers and consensus parameters from the
diff --git a/core/forkchoice.go b/core/forkchoice.go
index b0dbb200ec..7adea9967f 100644
--- a/core/forkchoice.go
+++ b/core/forkchoice.go
@@ -22,11 +22,11 @@ import (
"math/big"
mrand "math/rand"
- "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/log"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/math"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/params"
)
// ChainReader defines a small collection of methods needed to access the local
diff --git a/core/forkid/forkid.go b/core/forkid/forkid.go
index f56ce85fee..99d6aa5c1d 100644
--- a/core/forkid/forkid.go
+++ b/core/forkid/forkid.go
@@ -26,10 +26,10 @@ import (
"reflect"
"strings"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/params"
)
var (
diff --git a/core/forkid/forkid_test.go b/core/forkid/forkid_test.go
index 2a0fb167d5..3ee9ef9a1d 100644
--- a/core/forkid/forkid_test.go
+++ b/core/forkid/forkid_test.go
@@ -22,9 +22,9 @@ import (
"math/big"
"testing"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/params"
+ "github.com/cryptoecc/ETH-ECC/rlp"
)
// TestCreation tests that different genesis and fork rule combinations result in
diff --git a/core/gen_genesis.go b/core/gen_genesis.go
index 4e0844e889..dd2959a8e7 100644
--- a/core/gen_genesis.go
+++ b/core/gen_genesis.go
@@ -7,10 +7,10 @@ import (
"errors"
"math/big"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/common/math"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/hexutil"
+ "github.com/cryptoecc/ETH-ECC/common/math"
+ "github.com/cryptoecc/ETH-ECC/params"
)
var _ = (*genesisSpecMarshaling)(nil)
diff --git a/core/gen_genesis_account.go b/core/gen_genesis_account.go
index a9d47e6ba3..d1443cf97f 100644
--- a/core/gen_genesis_account.go
+++ b/core/gen_genesis_account.go
@@ -7,9 +7,9 @@ import (
"errors"
"math/big"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/common/math"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/hexutil"
+ "github.com/cryptoecc/ETH-ECC/common/math"
)
var _ = (*genesisAccountMarshaling)(nil)
diff --git a/core/genesis.go b/core/genesis.go
index 5b5b9c72a1..a2c45fe994 100644
--- a/core/genesis.go
+++ b/core/genesis.go
@@ -25,18 +25,18 @@ import (
"math/big"
"strings"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/common/math"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/state"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/rlp"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/hexutil"
+ "github.com/cryptoecc/ETH-ECC/common/math"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/core/state"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/ethdb"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/params"
+ "github.com/cryptoecc/ETH-ECC/rlp"
+ "github.com/cryptoecc/ETH-ECC/trie"
)
//go:generate go run github.com/fjl/gencodec -type Genesis -field-override genesisSpecMarshaling -out gen_genesis.go
@@ -239,10 +239,10 @@ type ChainOverrides struct {
// SetupGenesisBlock writes or updates the genesis block in db.
// The block that will be used is:
//
-// genesis == nil genesis != nil
-// +------------------------------------------
-// db has no genesis | main-net default | genesis
-// db has genesis | from DB | genesis (if compatible)
+// genesis == nil genesis != nil
+// +------------------------------------------
+// db has no genesis | main-net default | genesis
+// db has genesis | from DB | genesis (if compatible)
//
// The stored chain configuration will be updated if it is compatible (i.e. does not
// specify a fork block below the local head block). In case of a conflict, the
diff --git a/core/genesis_test.go b/core/genesis_test.go
index a7d04f53fe..3076a9fb73 100644
--- a/core/genesis_test.go
+++ b/core/genesis_test.go
@@ -21,13 +21,13 @@ import (
"reflect"
"testing"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/consensus/ethash"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/core/vm"
+ "github.com/cryptoecc/ETH-ECC/ethdb"
+ "github.com/cryptoecc/ETH-ECC/params"
"github.com/davecgh/go-spew/spew"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/consensus/ethash"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/vm"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/params"
)
func TestInvalidCliqueConfig(t *testing.T) {
diff --git a/core/headerchain.go b/core/headerchain.go
index d8c415f336..4f28d6ef8b 100644
--- a/core/headerchain.go
+++ b/core/headerchain.go
@@ -26,14 +26,14 @@ import (
"sync/atomic"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/consensus"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/consensus"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/ethdb"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/params"
+ "github.com/cryptoecc/ETH-ECC/rlp"
lru "github.com/hashicorp/golang-lru"
)
diff --git a/core/headerchain_test.go b/core/headerchain_test.go
index ed0522671f..a8a97fb12f 100644
--- a/core/headerchain_test.go
+++ b/core/headerchain_test.go
@@ -23,12 +23,12 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/consensus"
- "github.com/ethereum/go-ethereum/consensus/ethash"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/cryptoecc/ETH-ECC/consensus"
+ "github.com/cryptoecc/ETH-ECC/consensus/ethash"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/params"
)
func verifyUnbrokenCanonchain(hc *HeaderChain) error {
diff --git a/core/mkalloc.go b/core/mkalloc.go
index df167d7082..a3430b88e3 100644
--- a/core/mkalloc.go
+++ b/core/mkalloc.go
@@ -18,12 +18,10 @@
// +build none
/*
+The mkalloc tool creates the genesis allocation constants in genesis_alloc.go
+It outputs a const declaration that contains an RLP-encoded list of (address, balance) tuples.
- The mkalloc tool creates the genesis allocation constants in genesis_alloc.go
- It outputs a const declaration that contains an RLP-encoded list of (address, balance) tuples.
-
- go run mkalloc.go genesis.json
-
+ go run mkalloc.go genesis.json
*/
package main
@@ -35,8 +33,8 @@ import (
"sort"
"strconv"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/rlp"
)
type allocItem struct{ Addr, Balance *big.Int }
diff --git a/core/rawdb/accessors_chain.go b/core/rawdb/accessors_chain.go
index aeba3690d2..a21d913a08 100644
--- a/core/rawdb/accessors_chain.go
+++ b/core/rawdb/accessors_chain.go
@@ -24,13 +24,13 @@ import (
"math/big"
"sort"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/ethdb"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/params"
+ "github.com/cryptoecc/ETH-ECC/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 21d23e1f0c..d6dca9568c 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/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/params"
+ "github.com/cryptoecc/ETH-ECC/rlp"
"golang.org/x/crypto/sha3"
)
diff --git a/core/rawdb/accessors_indexes.go b/core/rawdb/accessors_indexes.go
index 25a44354bf..c59a0fbb30 100644
--- a/core/rawdb/accessors_indexes.go
+++ b/core/rawdb/accessors_indexes.go
@@ -20,12 +20,12 @@ import (
"bytes"
"math/big"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/ethdb"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/params"
+ "github.com/cryptoecc/ETH-ECC/rlp"
)
// ReadTxLookupEntry retrieves the positional metadata associated with a transaction
diff --git a/core/rawdb/accessors_indexes_test.go b/core/rawdb/accessors_indexes_test.go
index 4734e986e2..4b0100b466 100644
--- a/core/rawdb/accessors_indexes_test.go
+++ b/core/rawdb/accessors_indexes_test.go
@@ -22,11 +22,11 @@ import (
"math/big"
"testing"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/ethdb"
+ "github.com/cryptoecc/ETH-ECC/params"
+ "github.com/cryptoecc/ETH-ECC/rlp"
"golang.org/x/crypto/sha3"
)
diff --git a/core/rawdb/accessors_metadata.go b/core/rawdb/accessors_metadata.go
index 7a9e6442f0..160ca06a2b 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/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/ethdb"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/params"
+ "github.com/cryptoecc/ETH-ECC/rlp"
)
// ReadDatabaseVersion retrieves the version number of the database.
diff --git a/core/rawdb/accessors_snapshot.go b/core/rawdb/accessors_snapshot.go
index 3c82b3f731..43034a3897 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/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/ethdb"
+ "github.com/cryptoecc/ETH-ECC/log"
)
// ReadSnapshotDisabled retrieves if the snapshot maintenance is disabled.
diff --git a/core/rawdb/accessors_state.go b/core/rawdb/accessors_state.go
index 41e21b6ca4..a3acc4cdab 100644
--- a/core/rawdb/accessors_state.go
+++ b/core/rawdb/accessors_state.go
@@ -17,9 +17,9 @@
package rawdb
import (
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/ethdb"
+ "github.com/cryptoecc/ETH-ECC/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 e87ad43c36..2866474ee8 100644
--- a/core/rawdb/accessors_sync.go
+++ b/core/rawdb/accessors_sync.go
@@ -19,10 +19,10 @@ package rawdb
import (
"bytes"
- "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/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/ethdb"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/rlp"
)
// ReadSkeletonSyncStatus retrieves the serialized sync status saved at shutdown.
diff --git a/core/rawdb/chain_freezer.go b/core/rawdb/chain_freezer.go
index 7d9c9c0156..fd9854b572 100644
--- a/core/rawdb/chain_freezer.go
+++ b/core/rawdb/chain_freezer.go
@@ -22,10 +22,10 @@ import (
"sync/atomic"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/ethdb"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/params"
)
const (
diff --git a/core/rawdb/chain_iterator.go b/core/rawdb/chain_iterator.go
index 867fed63ad..0be80ae3f7 100644
--- a/core/rawdb/chain_iterator.go
+++ b/core/rawdb/chain_iterator.go
@@ -21,12 +21,12 @@ import (
"sync/atomic"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/prque"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/prque"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/ethdb"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/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 e1f5159753..d5500efe9f 100644
--- a/core/rawdb/chain_iterator_test.go
+++ b/core/rawdb/chain_iterator_test.go
@@ -23,8 +23,8 @@ import (
"sync"
"testing"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/types"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core/types"
)
func TestChainIterator(t *testing.T) {
diff --git a/core/rawdb/database.go b/core/rawdb/database.go
index 1eaf033bbe..b879553307 100644
--- a/core/rawdb/database.go
+++ b/core/rawdb/database.go
@@ -25,11 +25,11 @@ import (
"sync/atomic"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/ethdb/leveldb"
- "github.com/ethereum/go-ethereum/ethdb/memorydb"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/ethdb"
+ "github.com/cryptoecc/ETH-ECC/ethdb/leveldb"
+ "github.com/cryptoecc/ETH-ECC/ethdb/memorydb"
+ "github.com/cryptoecc/ETH-ECC/log"
"github.com/olekukonko/tablewriter"
)
diff --git a/core/rawdb/freezer.go b/core/rawdb/freezer.go
index 6dea98c3d3..c1c7e7a2e3 100644
--- a/core/rawdb/freezer.go
+++ b/core/rawdb/freezer.go
@@ -26,10 +26,10 @@ import (
"sync/atomic"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/metrics"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/ethdb"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/metrics"
"github.com/prometheus/tsdb/fileutil"
)
@@ -57,10 +57,10 @@ const freezerTableSize = 2 * 1000 * 1000 * 1000
// Freezer is a memory mapped append-only database to store immutable ordered
// data into flat files:
//
-// - The append-only nature ensures that disk writes are minimized.
-// - The memory mapping ensures we can max out system memory for caching without
-// reserving it for go-ethereum. This would also reduce the memory requirements
-// of Geth, and thus also GC overhead.
+// - The append-only nature ensures that disk writes are minimized.
+// - The memory mapping ensures we can max out system memory for caching without
+// reserving it for go-ethereum. This would also reduce the memory requirements
+// of Geth, and thus also GC overhead.
type Freezer struct {
// WARNING: The `frozen` and `tail` fields are accessed atomically. On 32 bit platforms, only
// 64-bit aligned fields can be atomic. The struct is guaranteed to be so aligned,
@@ -188,9 +188,9 @@ func (f *Freezer) Ancient(kind string, number uint64) ([]byte, error) {
// AncientRange retrieves multiple items in sequence, starting from the index 'start'.
// It will return
-// - at most 'max' items,
-// - at least 1 item (even if exceeding the maxByteSize), but will otherwise
-// return as many items as fit into maxByteSize.
+// - at most 'max' items,
+// - at least 1 item (even if exceeding the maxByteSize), but will otherwise
+// return as many items as fit into maxByteSize.
func (f *Freezer) AncientRange(kind string, start, count, maxBytes uint64) ([][]byte, error) {
if table := f.tables[kind]; table != nil {
return table.RetrieveItems(start, count, maxBytes)
diff --git a/core/rawdb/freezer_batch.go b/core/rawdb/freezer_batch.go
index 54c98cee08..f393926830 100644
--- a/core/rawdb/freezer_batch.go
+++ b/core/rawdb/freezer_batch.go
@@ -20,8 +20,8 @@ import (
"fmt"
"sync/atomic"
- "github.com/ethereum/go-ethereum/common/math"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/cryptoecc/ETH-ECC/common/math"
+ "github.com/cryptoecc/ETH-ECC/rlp"
"github.com/golang/snappy"
)
diff --git a/core/rawdb/freezer_meta.go b/core/rawdb/freezer_meta.go
index 9eef9df351..d9242a5d06 100644
--- a/core/rawdb/freezer_meta.go
+++ b/core/rawdb/freezer_meta.go
@@ -20,8 +20,8 @@ import (
"io"
"os"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/rlp"
)
const freezerVersion = 1 // The initial version tag of freezer table metadata
diff --git a/core/rawdb/freezer_table.go b/core/rawdb/freezer_table.go
index 3fe691cf6d..d6d4f02ef0 100644
--- a/core/rawdb/freezer_table.go
+++ b/core/rawdb/freezer_table.go
@@ -27,9 +27,9 @@ import (
"sync"
"sync/atomic"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/metrics"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/metrics"
"github.com/golang/snappy"
)
diff --git a/core/rawdb/freezer_table_test.go b/core/rawdb/freezer_table_test.go
index ea28e71756..aa42b61109 100644
--- a/core/rawdb/freezer_table_test.go
+++ b/core/rawdb/freezer_table_test.go
@@ -29,8 +29,8 @@ import (
"testing/quick"
"time"
+ "github.com/cryptoecc/ETH-ECC/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 630911ec86..cda86d011f 100644
--- a/core/rawdb/freezer_test.go
+++ b/core/rawdb/freezer_test.go
@@ -27,8 +27,8 @@ import (
"sync"
"testing"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/cryptoecc/ETH-ECC/ethdb"
+ "github.com/cryptoecc/ETH-ECC/rlp"
"github.com/stretchr/testify/require"
)
diff --git a/core/rawdb/key_length_iterator.go b/core/rawdb/key_length_iterator.go
index d1c5af269a..7273f28d4c 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/cryptoecc/ETH-ECC/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 d5f751da3a..55ebd0cd5f 100644
--- a/core/rawdb/schema.go
+++ b/core/rawdb/schema.go
@@ -21,8 +21,8 @@ import (
"bytes"
"encoding/binary"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/metrics"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/metrics"
)
// The fields below define the low level database schema prefixing.
diff --git a/core/rawdb/table.go b/core/rawdb/table.go
index 6d6fa0555d..f1e7f062ab 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/cryptoecc/ETH-ECC/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..4b35f30857 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/cryptoecc/ETH-ECC/ethdb"
)
func TestTableDatabase(t *testing.T) { testTableDatabase(t, "prefix") }
diff --git a/core/rlp_test.go b/core/rlp_test.go
index bf5a934ce5..c40d4a49a1 100644
--- a/core/rlp_test.go
+++ b/core/rlp_test.go
@@ -21,13 +21,13 @@ import (
"math/big"
"testing"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/consensus/ethash"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/consensus/ethash"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/params"
+ "github.com/cryptoecc/ETH-ECC/rlp"
"golang.org/x/crypto/sha3"
)
diff --git a/core/state/access_list.go b/core/state/access_list.go
index 4194691345..c9a2b06dc2 100644
--- a/core/state/access_list.go
+++ b/core/state/access_list.go
@@ -17,7 +17,7 @@
package state
import (
- "github.com/ethereum/go-ethereum/common"
+ "github.com/cryptoecc/ETH-ECC/common"
)
type accessList struct {
diff --git a/core/state/database.go b/core/state/database.go
index 96b6bcfe65..eefa4621c2 100644
--- a/core/state/database.go
+++ b/core/state/database.go
@@ -21,11 +21,11 @@ import (
"fmt"
"github.com/VictoriaMetrics/fastcache"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/ethdb"
+ "github.com/cryptoecc/ETH-ECC/trie"
lru "github.com/hashicorp/golang-lru"
)
diff --git a/core/state/dump.go b/core/state/dump.go
index bfcc035435..c0802456d6 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/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/hexutil"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/rlp"
+ "github.com/cryptoecc/ETH-ECC/trie"
)
// DumpConfig is a set of options to control what portions of the statewill be
diff --git a/core/state/iterator.go b/core/state/iterator.go
index 611df52431..ea52ab5764 100644
--- a/core/state/iterator.go
+++ b/core/state/iterator.go
@@ -20,10 +20,10 @@ import (
"bytes"
"fmt"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/rlp"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/rlp"
+ "github.com/cryptoecc/ETH-ECC/trie"
)
// NodeIterator is an iterator to traverse the entire state trie post-order,
diff --git a/core/state/iterator_test.go b/core/state/iterator_test.go
index d1afe9ca3e..9273aad1b7 100644
--- a/core/state/iterator_test.go
+++ b/core/state/iterator_test.go
@@ -20,8 +20,8 @@ import (
"bytes"
"testing"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/ethdb"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/ethdb"
)
// Tests that the node iterator indeed walks over the entire database contents.
diff --git a/core/state/journal.go b/core/state/journal.go
index 57a692dc7f..f92bf52301 100644
--- a/core/state/journal.go
+++ b/core/state/journal.go
@@ -19,7 +19,7 @@ package state
import (
"math/big"
- "github.com/ethereum/go-ethereum/common"
+ "github.com/cryptoecc/ETH-ECC/common"
)
// journalEntry is a modification entry in the state change journal that can be
diff --git a/core/state/metrics.go b/core/state/metrics.go
index 35d2df92dd..4bb0a6823d 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/cryptoecc/ETH-ECC/metrics"
var (
accountUpdatedMeter = metrics.NewRegisteredMeter("state/update/account", nil)
diff --git a/core/state/pruner/bloom.go b/core/state/pruner/bloom.go
index 72315db720..45b167c162 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/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/log"
bloomfilter "github.com/holiman/bloomfilter/v2"
)
diff --git a/core/state/pruner/pruner.go b/core/state/pruner/pruner.go
index 2da2eda8b7..a683696215 100644
--- a/core/state/pruner/pruner.go
+++ b/core/state/pruner/pruner.go
@@ -27,15 +27,15 @@ import (
"strings"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/state/snapshot"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/rlp"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/core/state/snapshot"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/ethdb"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/rlp"
+ "github.com/cryptoecc/ETH-ECC/trie"
)
const (
@@ -66,9 +66,9 @@ var (
// Pruner is an offline tool to prune the stale state with the
// help of the snapshot. The workflow of pruner is very simple:
//
-// - iterate the snapshot, reconstruct the relevant state
-// - iterate the database, delete all other state entries which
-// don't belong to the target state and the genesis state
+// - iterate the snapshot, reconstruct the relevant state
+// - iterate the database, delete all other state entries which
+// don't belong to the target state and the genesis state
//
// It can take several hours(around 2 hours for mainnet) to finish
// the whole pruning work. It's recommended to run this offline tool
diff --git a/core/state/snapshot/account.go b/core/state/snapshot/account.go
index b92e942950..d0b21035f7 100644
--- a/core/state/snapshot/account.go
+++ b/core/state/snapshot/account.go
@@ -20,8 +20,8 @@ import (
"bytes"
"math/big"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/rlp"
)
// Account is a modified version of a state.Account, where the root is replaced
diff --git a/core/state/snapshot/context.go b/core/state/snapshot/context.go
index 67d7e41a03..949d609622 100644
--- a/core/state/snapshot/context.go
+++ b/core/state/snapshot/context.go
@@ -22,12 +22,12 @@ import (
"errors"
"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/ethdb"
- "github.com/ethereum/go-ethereum/ethdb/memorydb"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/math"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/ethdb"
+ "github.com/cryptoecc/ETH-ECC/ethdb/memorydb"
+ "github.com/cryptoecc/ETH-ECC/log"
)
const (
diff --git a/core/state/snapshot/conversion.go b/core/state/snapshot/conversion.go
index 0f3934cb42..f1ffa2faf4 100644
--- a/core/state/snapshot/conversion.go
+++ b/core/state/snapshot/conversion.go
@@ -26,12 +26,12 @@ import (
"sync"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/rlp"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/ethdb"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/rlp"
+ "github.com/cryptoecc/ETH-ECC/trie"
)
// trieKV represents a trie key-value pair
diff --git a/core/state/snapshot/difflayer.go b/core/state/snapshot/difflayer.go
index f916a020e7..8f1ba46363 100644
--- a/core/state/snapshot/difflayer.go
+++ b/core/state/snapshot/difflayer.go
@@ -26,8 +26,8 @@ import (
"sync/atomic"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/rlp"
bloomfilter "github.com/holiman/bloomfilter/v2"
)
diff --git a/core/state/snapshot/difflayer_test.go b/core/state/snapshot/difflayer_test.go
index 59db920481..96c0a3dc16 100644
--- a/core/state/snapshot/difflayer_test.go
+++ b/core/state/snapshot/difflayer_test.go
@@ -22,9 +22,9 @@ import (
"testing"
"github.com/VictoriaMetrics/fastcache"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/ethdb/memorydb"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/ethdb/memorydb"
)
func copyDestructs(destructs map[common.Hash]struct{}) map[common.Hash]struct{} {
diff --git a/core/state/snapshot/disklayer.go b/core/state/snapshot/disklayer.go
index 7cbf6e293d..5830d98c61 100644
--- a/core/state/snapshot/disklayer.go
+++ b/core/state/snapshot/disklayer.go
@@ -21,11 +21,11 @@ import (
"sync"
"github.com/VictoriaMetrics/fastcache"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/rlp"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/ethdb"
+ "github.com/cryptoecc/ETH-ECC/rlp"
+ "github.com/cryptoecc/ETH-ECC/trie"
)
// diskLayer is a low level persistent snapshot built on top of a key-value store.
diff --git a/core/state/snapshot/disklayer_test.go b/core/state/snapshot/disklayer_test.go
index f95b798515..445cec28ab 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/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/ethdb/memorydb"
+ "github.com/cryptoecc/ETH-ECC/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 bf714db4c2..9bc5489587 100644
--- a/core/state/snapshot/generate.go
+++ b/core/state/snapshot/generate.go
@@ -24,15 +24,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/crypto"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/ethdb/memorydb"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/rlp"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/hexutil"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/ethdb"
+ "github.com/cryptoecc/ETH-ECC/ethdb/memorydb"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/rlp"
+ "github.com/cryptoecc/ETH-ECC/trie"
)
var (
diff --git a/core/state/snapshot/generate_test.go b/core/state/snapshot/generate_test.go
index 5e5ded61ea..e935e811aa 100644
--- a/core/state/snapshot/generate_test.go
+++ b/core/state/snapshot/generate_test.go
@@ -23,12 +23,12 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/rlp"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/ethdb"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/rlp"
+ "github.com/cryptoecc/ETH-ECC/trie"
"golang.org/x/crypto/sha3"
)
@@ -220,10 +220,12 @@ func (t *testHelper) CommitAndGenerate() (common.Hash, *diskLayer) {
// - miss in the beginning
// - miss in the middle
// - miss in the end
+//
// - the contract(non-empty storage) has wrong storage slots
// - wrong slots in the beginning
// - wrong slots in the middle
// - wrong slots in the end
+//
// - the contract(non-empty storage) has extra storage slots
// - extra slots in the beginning
// - extra slots in the middle
diff --git a/core/state/snapshot/holdable_iterator.go b/core/state/snapshot/holdable_iterator.go
index 1e86ff9d82..8cf9d82cf0 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/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/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..c99774d2ed 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/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
)
func TestIteratorHold(t *testing.T) {
diff --git a/core/state/snapshot/iterator.go b/core/state/snapshot/iterator.go
index c1a196c7ff..427d2e70bd 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/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/ethdb"
)
// Iterator is an iterator to step over all the accounts or the specific
diff --git a/core/state/snapshot/iterator_binary.go b/core/state/snapshot/iterator_binary.go
index 22184b2545..9a9bdedfbb 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/cryptoecc/ETH-ECC/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 435c28e96f..606aa85512 100644
--- a/core/state/snapshot/iterator_fast.go
+++ b/core/state/snapshot/iterator_fast.go
@@ -21,7 +21,7 @@ import (
"fmt"
"sort"
- "github.com/ethereum/go-ethereum/common"
+ "github.com/cryptoecc/ETH-ECC/common"
)
// weightedIterator is a iterator with an assigned weight. It is used to prioritise
diff --git a/core/state/snapshot/iterator_test.go b/core/state/snapshot/iterator_test.go
index 2c7e876e08..fb0bcdb97e 100644
--- a/core/state/snapshot/iterator_test.go
+++ b/core/state/snapshot/iterator_test.go
@@ -24,8 +24,8 @@ import (
"testing"
"github.com/VictoriaMetrics/fastcache"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/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 9a22f27373..610d82e7f2 100644
--- a/core/state/snapshot/journal.go
+++ b/core/state/snapshot/journal.go
@@ -25,12 +25,12 @@ import (
"time"
"github.com/VictoriaMetrics/fastcache"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/rlp"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/ethdb"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/rlp"
+ "github.com/cryptoecc/ETH-ECC/trie"
)
const journalVersion uint64 = 0
diff --git a/core/state/snapshot/metrics.go b/core/state/snapshot/metrics.go
index 43f417a0de..2c062ccd73 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/cryptoecc/ETH-ECC/metrics"
// Metrics in generation
var (
diff --git a/core/state/snapshot/snapshot.go b/core/state/snapshot/snapshot.go
index 76200851e4..3c26acb815 100644
--- a/core/state/snapshot/snapshot.go
+++ b/core/state/snapshot/snapshot.go
@@ -24,13 +24,13 @@ import (
"sync"
"sync/atomic"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/metrics"
- "github.com/ethereum/go-ethereum/rlp"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/ethdb"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/metrics"
+ "github.com/cryptoecc/ETH-ECC/rlp"
+ "github.com/cryptoecc/ETH-ECC/trie"
)
var (
@@ -179,10 +179,10 @@ type Tree struct {
// If the memory layers in the journal do not match the disk layer (e.g. there is
// a gap) or the journal is missing, there are two repair cases:
//
-// - if the 'recovery' parameter is true, all memory diff-layers will be discarded.
-// This case happens when the snapshot is 'ahead' of the state trie.
-// - otherwise, the entire snapshot is considered invalid and will be recreated on
-// a background thread.
+// - if the 'recovery' parameter is true, all memory diff-layers will be discarded.
+// This case happens when the snapshot is 'ahead' of the state trie.
+// - otherwise, the entire snapshot is considered invalid and will be recreated on
+// a background thread.
func New(diskdb ethdb.KeyValueStore, triedb *trie.Database, cache int, root common.Hash, async bool, rebuild bool, recovery bool) (*Tree, error) {
// Create a new, empty snapshot tree
snap := &Tree{
diff --git a/core/state/snapshot/snapshot_test.go b/core/state/snapshot/snapshot_test.go
index 7c8077b652..11643e2903 100644
--- a/core/state/snapshot/snapshot_test.go
+++ b/core/state/snapshot/snapshot_test.go
@@ -25,9 +25,9 @@ import (
"time"
"github.com/VictoriaMetrics/fastcache"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/rlp"
)
// randomHash generates a random blob of data and returns it as a hash.
diff --git a/core/state/snapshot/sort.go b/core/state/snapshot/sort.go
index 88841231d9..fe23aecadd 100644
--- a/core/state/snapshot/sort.go
+++ b/core/state/snapshot/sort.go
@@ -19,7 +19,7 @@ package snapshot
import (
"bytes"
- "github.com/ethereum/go-ethereum/common"
+ "github.com/cryptoecc/ETH-ECC/common"
)
// hashes is a helper to implement sort.Interface.
diff --git a/core/state/snapshot/utils.go b/core/state/snapshot/utils.go
index fa1f216e68..a34fc93aa7 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/ethdb"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/ethdb"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/rlp"
)
// 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 a23df89545..99b750daa4 100644
--- a/core/state/state_object.go
+++ b/core/state/state_object.go
@@ -23,12 +23,12 @@ import (
"math/big"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/metrics"
- "github.com/ethereum/go-ethereum/rlp"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/metrics"
+ "github.com/cryptoecc/ETH-ECC/rlp"
+ "github.com/cryptoecc/ETH-ECC/trie"
)
var emptyCodeHash = crypto.Keccak256(nil)
diff --git a/core/state/state_object_test.go b/core/state/state_object_test.go
index 42fd778025..98fb4b559e 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/cryptoecc/ETH-ECC/common"
)
func BenchmarkCutOriginal(b *testing.B) {
diff --git a/core/state/state_test.go b/core/state/state_test.go
index b6b46e446f..7b2161689a 100644
--- a/core/state/state_test.go
+++ b/core/state/state_test.go
@@ -21,11 +21,11 @@ import (
"math/big"
"testing"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/ethdb"
+ "github.com/cryptoecc/ETH-ECC/trie"
)
type stateTest struct {
diff --git a/core/state/statedb.go b/core/state/statedb.go
index 50eee8183c..9482de1b2e 100644
--- a/core/state/statedb.go
+++ b/core/state/statedb.go
@@ -24,15 +24,15 @@ import (
"sort"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/state/snapshot"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/metrics"
- "github.com/ethereum/go-ethereum/rlp"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/core/state/snapshot"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/metrics"
+ "github.com/cryptoecc/ETH-ECC/rlp"
+ "github.com/cryptoecc/ETH-ECC/trie"
)
type revision struct {
@@ -600,8 +600,8 @@ func (s *StateDB) createObject(addr common.Address) (newobj, prev *stateObject)
// CreateAccount is called during the EVM CREATE operation. The situation might arise that
// a contract does the following:
//
-// 1. sends funds to sha(account ++ (nonce + 1))
-// 2. tx_create(sha(account ++ nonce)) (note that this gets the address of 1)
+// 1. sends funds to sha(account ++ (nonce + 1))
+// 2. tx_create(sha(account ++ nonce)) (note that this gets the address of 1)
//
// Carrying over the balance ensures that Ether doesn't disappear.
func (s *StateDB) CreateAccount(addr common.Address) {
@@ -660,7 +660,7 @@ func (s *StateDB) Copy() *StateDB {
}
// Copy the dirty states, logs, and preimages
for addr := range s.journal.dirties {
- // As documented [here](https://github.com/ethereum/go-ethereum/pull/16485#issuecomment-380438527),
+ // As documented [here](https://github.com/cryptoecc/ETH-ECC/pull/16485#issuecomment-380438527),
// and in the Finalise-method, there is a case where an object is in the journal but not
// in the stateObjects: OOG after touch on ripeMD prior to Byzantium. Thus, we need to check for
// nil
diff --git a/core/state/statedb_test.go b/core/state/statedb_test.go
index 6fe36a7ecf..16b80b74dd 100644
--- a/core/state/statedb_test.go
+++ b/core/state/statedb_test.go
@@ -29,9 +29,9 @@ import (
"testing"
"testing/quick"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/types"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/core/types"
)
// Tests that updating a state trie does not leak any database writes prior to
@@ -146,7 +146,7 @@ func TestIntermediateLeaks(t *testing.T) {
// TestCopy tests that copying a StateDB object indeed makes the original and
// the copy independent of each other. This test is a regression test against
-// https://github.com/ethereum/go-ethereum/pull/15549.
+// https://github.com/cryptoecc/ETH-ECC/pull/15549.
func TestCopy(t *testing.T) {
// Create a random state test to copy and modify "independently"
orig, _ := New(common.Hash{}, NewDatabase(rawdb.NewMemoryDatabase()), nil)
@@ -489,7 +489,7 @@ func TestTouchDelete(t *testing.T) {
}
// TestCopyOfCopy tests that modified objects are carried over to the copy, and the copy of the copy.
-// See https://github.com/ethereum/go-ethereum/pull/15225#issuecomment-380191512
+// See https://github.com/cryptoecc/ETH-ECC/pull/15225#issuecomment-380191512
func TestCopyOfCopy(t *testing.T) {
state, _ := New(common.Hash{}, NewDatabase(rawdb.NewMemoryDatabase()), nil)
addr := common.HexToAddress("aaaa")
@@ -506,7 +506,7 @@ func TestCopyOfCopy(t *testing.T) {
// Tests a regression where committing a copy lost some internal meta information,
// leading to corrupted subsequent copies.
//
-// See https://github.com/ethereum/go-ethereum/issues/20106.
+// See https://github.com/cryptoecc/ETH-ECC/issues/20106.
func TestCopyCommitCopy(t *testing.T) {
state, _ := New(common.Hash{}, NewDatabase(rawdb.NewMemoryDatabase()), nil)
@@ -578,7 +578,7 @@ func TestCopyCommitCopy(t *testing.T) {
// Tests a regression where committing a copy lost some internal meta information,
// leading to corrupted subsequent copies.
//
-// See https://github.com/ethereum/go-ethereum/issues/20106.
+// See https://github.com/cryptoecc/ETH-ECC/issues/20106.
func TestCopyCopyCommitCopy(t *testing.T) {
state, _ := New(common.Hash{}, NewDatabase(rawdb.NewMemoryDatabase()), nil)
diff --git a/core/state/sync.go b/core/state/sync.go
index 00a4c67aa3..cdf37ad926 100644
--- a/core/state/sync.go
+++ b/core/state/sync.go
@@ -19,11 +19,11 @@ package state
import (
"bytes"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/rlp"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/ethdb"
+ "github.com/cryptoecc/ETH-ECC/rlp"
+ "github.com/cryptoecc/ETH-ECC/trie"
)
// NewStateSync create a new state trie download scheduler.
diff --git a/core/state/sync_test.go b/core/state/sync_test.go
index 3d9fe556d2..23fa2ee4c1 100644
--- a/core/state/sync_test.go
+++ b/core/state/sync_test.go
@@ -21,13 +21,13 @@ import (
"math/big"
"testing"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/rlp"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/ethdb"
+ "github.com/cryptoecc/ETH-ECC/rlp"
+ "github.com/cryptoecc/ETH-ECC/trie"
)
// testAccount is the data associated with an account used by the state tests.
diff --git a/core/state/trie_prefetcher.go b/core/state/trie_prefetcher.go
index 83e8966d4c..873ec1aec9 100644
--- a/core/state/trie_prefetcher.go
+++ b/core/state/trie_prefetcher.go
@@ -19,9 +19,9 @@ package state
import (
"sync"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/metrics"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/metrics"
)
var (
diff --git a/core/state/trie_prefetcher_test.go b/core/state/trie_prefetcher_test.go
index cb0b67d7ea..52eb957ad9 100644
--- a/core/state/trie_prefetcher_test.go
+++ b/core/state/trie_prefetcher_test.go
@@ -21,8 +21,8 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
)
func filledStateDB() *StateDB {
diff --git a/core/state_prefetcher.go b/core/state_prefetcher.go
index 10a1722940..84de318bba 100644
--- a/core/state_prefetcher.go
+++ b/core/state_prefetcher.go
@@ -19,11 +19,11 @@ package core
import (
"sync/atomic"
- "github.com/ethereum/go-ethereum/consensus"
- "github.com/ethereum/go-ethereum/core/state"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/core/vm"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/cryptoecc/ETH-ECC/consensus"
+ "github.com/cryptoecc/ETH-ECC/core/state"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/core/vm"
+ "github.com/cryptoecc/ETH-ECC/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 e511697c5f..753f04ab6f 100644
--- a/core/state_processor.go
+++ b/core/state_processor.go
@@ -20,14 +20,14 @@ import (
"fmt"
"math/big"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/consensus"
- "github.com/ethereum/go-ethereum/consensus/misc"
- "github.com/ethereum/go-ethereum/core/state"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/core/vm"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/consensus"
+ "github.com/cryptoecc/ETH-ECC/consensus/misc"
+ "github.com/cryptoecc/ETH-ECC/core/state"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/core/vm"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/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 42faa28d05..fb87a0a68e 100644
--- a/core/state_processor_test.go
+++ b/core/state_processor_test.go
@@ -21,17 +21,17 @@ import (
"math/big"
"testing"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/math"
- "github.com/ethereum/go-ethereum/consensus"
- "github.com/ethereum/go-ethereum/consensus/ethash"
- "github.com/ethereum/go-ethereum/consensus/misc"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/core/vm"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/math"
+ "github.com/cryptoecc/ETH-ECC/consensus"
+ "github.com/cryptoecc/ETH-ECC/consensus/ethash"
+ "github.com/cryptoecc/ETH-ECC/consensus/misc"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/core/vm"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/params"
+ "github.com/cryptoecc/ETH-ECC/trie"
"golang.org/x/crypto/sha3"
)
diff --git a/core/state_transition.go b/core/state_transition.go
index 0946c0372e..253f7e3cd4 100644
--- a/core/state_transition.go
+++ b/core/state_transition.go
@@ -21,12 +21,12 @@ import (
"math"
"math/big"
- "github.com/ethereum/go-ethereum/common"
- cmath "github.com/ethereum/go-ethereum/common/math"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/core/vm"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/cryptoecc/ETH-ECC/common"
+ cmath "github.com/cryptoecc/ETH-ECC/common/math"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/core/vm"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/params"
)
var emptyCodeHash = crypto.Keccak256Hash(nil)
@@ -42,8 +42,10 @@ The state transitioning model does all the necessary work to work out a valid ne
3) Create a new state object if the recipient is \0*32
4) Value transfer
== If contract creation ==
- 4a) Attempt to run transaction data
- 4b) If valid, use result as code for the new state object
+
+ 4a) Attempt to run transaction data
+ 4b) If valid, use result as code for the new state object
+
== end ==
5) Run Script section
6) Derive new state root
@@ -262,13 +264,13 @@ func (st *StateTransition) preCheck() error {
// TransitionDb will transition the state by applying the current message and
// returning the evm execution result with following fields.
//
-// - used gas:
-// total gas used (including gas being refunded)
-// - returndata:
-// the returned data from evm
-// - concrete execution error:
-// various **EVM** error which aborts the execution,
-// e.g. ErrOutOfGas, ErrExecutionReverted
+// - used gas:
+// total gas used (including gas being refunded)
+// - returndata:
+// the returned data from evm
+// - concrete execution error:
+// various **EVM** error which aborts the execution,
+// e.g. ErrOutOfGas, ErrExecutionReverted
//
// However if any consensus issue encountered, return the error directly with
// nil evm execution result.
diff --git a/core/tx_cacher.go b/core/tx_cacher.go
index b1e5d676a2..17aa7ef0c6 100644
--- a/core/tx_cacher.go
+++ b/core/tx_cacher.go
@@ -19,7 +19,7 @@ package core
import (
"runtime"
- "github.com/ethereum/go-ethereum/core/types"
+ "github.com/cryptoecc/ETH-ECC/core/types"
)
// senderCacher is a concurrent transaction sender recoverer and cacher.
diff --git a/core/tx_journal.go b/core/tx_journal.go
index 62344f5646..052e658ee8 100644
--- a/core/tx_journal.go
+++ b/core/tx_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/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/rlp"
)
// errNoActiveJournal is returned if a transaction is attempted to be inserted
diff --git a/core/tx_list.go b/core/tx_list.go
index f141a03bbd..db7392fc6b 100644
--- a/core/tx_list.go
+++ b/core/tx_list.go
@@ -25,8 +25,8 @@ import (
"sync/atomic"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/types"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core/types"
)
// nonceHeap is a heap.Interface implementation over 64bit unsigned integers for
diff --git a/core/tx_list_test.go b/core/tx_list_test.go
index ef49cae1dd..7337fa3df8 100644
--- a/core/tx_list_test.go
+++ b/core/tx_list_test.go
@@ -21,8 +21,8 @@ import (
"math/rand"
"testing"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/crypto"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/crypto"
)
// Tests that transactions can be added to strict lists and list contents and
diff --git a/core/tx_noncer.go b/core/tx_noncer.go
index 51fa8cf5a1..56cf2fd949 100644
--- a/core/tx_noncer.go
+++ b/core/tx_noncer.go
@@ -19,8 +19,8 @@ package core
import (
"sync"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/state"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core/state"
)
// txNoncer is a tiny virtual state database to manage the executable nonces of
diff --git a/core/tx_pool.go b/core/tx_pool.go
index 1c25442dd9..b0eae3bf3b 100644
--- a/core/tx_pool.go
+++ b/core/tx_pool.go
@@ -25,15 +25,15 @@ import (
"sync/atomic"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/prque"
- "github.com/ethereum/go-ethereum/consensus/misc"
- "github.com/ethereum/go-ethereum/core/state"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/event"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/metrics"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/prque"
+ "github.com/cryptoecc/ETH-ECC/consensus/misc"
+ "github.com/cryptoecc/ETH-ECC/core/state"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/event"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/metrics"
+ "github.com/cryptoecc/ETH-ECC/params"
)
const (
diff --git a/core/tx_pool_test.go b/core/tx_pool_test.go
index 2fd0f529f8..5ab1324cfb 100644
--- a/core/tx_pool_test.go
+++ b/core/tx_pool_test.go
@@ -27,14 +27,14 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/state"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/event"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/core/state"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/event"
+ "github.com/cryptoecc/ETH-ECC/params"
+ "github.com/cryptoecc/ETH-ECC/trie"
)
var (
diff --git a/core/types.go b/core/types.go
index 4c5b74a498..b73419f034 100644
--- a/core/types.go
+++ b/core/types.go
@@ -17,9 +17,9 @@
package core
import (
- "github.com/ethereum/go-ethereum/core/state"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/core/vm"
+ "github.com/cryptoecc/ETH-ECC/core/state"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/core/vm"
)
// Validator is an interface which defines the standard for block validation. It
diff --git a/core/types/access_list_tx.go b/core/types/access_list_tx.go
index 620848fe62..a0640e4d36 100644
--- a/core/types/access_list_tx.go
+++ b/core/types/access_list_tx.go
@@ -19,7 +19,7 @@ package types
import (
"math/big"
- "github.com/ethereum/go-ethereum/common"
+ "github.com/cryptoecc/ETH-ECC/common"
)
//go:generate go run github.com/fjl/gencodec -type AccessTuple -out gen_access_tuple.go
diff --git a/core/types/block.go b/core/types/block.go
index 7525a88f5a..7c27f843fe 100644
--- a/core/types/block.go
+++ b/core/types/block.go
@@ -26,9 +26,9 @@ import (
"sync/atomic"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/hexutil"
+ "github.com/cryptoecc/ETH-ECC/rlp"
)
var (
diff --git a/core/types/block_test.go b/core/types/block_test.go
index 9e7f581b1d..0517da67e3 100644
--- a/core/types/block_test.go
+++ b/core/types/block_test.go
@@ -23,11 +23,11 @@ import (
"reflect"
"testing"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/math"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/math"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/params"
+ "github.com/cryptoecc/ETH-ECC/rlp"
"golang.org/x/crypto/sha3"
)
diff --git a/core/types/bloom9.go b/core/types/bloom9.go
index a560a20724..921a35675b 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/cryptoecc/ETH-ECC/common/hexutil"
+ "github.com/cryptoecc/ETH-ECC/crypto"
)
type bytesBacked interface {
diff --git a/core/types/bloom9_test.go b/core/types/bloom9_test.go
index d3178d112e..b8739abe7a 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/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/crypto"
)
func TestBloom(t *testing.T) {
diff --git a/core/types/dynamic_fee_tx.go b/core/types/dynamic_fee_tx.go
index 53f246ea1f..509133b7db 100644
--- a/core/types/dynamic_fee_tx.go
+++ b/core/types/dynamic_fee_tx.go
@@ -19,7 +19,7 @@ package types
import (
"math/big"
- "github.com/ethereum/go-ethereum/common"
+ "github.com/cryptoecc/ETH-ECC/common"
)
type DynamicFeeTx struct {
diff --git a/core/types/gen_access_tuple.go b/core/types/gen_access_tuple.go
index fc48a84cc0..f115bb8385 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/cryptoecc/ETH-ECC/common"
)
// MarshalJSON marshals as JSON.
diff --git a/core/types/gen_account_rlp.go b/core/types/gen_account_rlp.go
index 5181d88411..e295b63341 100644
--- a/core/types/gen_account_rlp.go
+++ b/core/types/gen_account_rlp.go
@@ -5,7 +5,7 @@
package types
-import "github.com/ethereum/go-ethereum/rlp"
+import "github.com/cryptoecc/ETH-ECC/rlp"
import "io"
func (obj *StateAccount) EncodeRLP(_w io.Writer) error {
diff --git a/core/types/gen_header_json.go b/core/types/gen_header_json.go
index 74746d033a..ce36aad320 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/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/hexutil"
)
var _ = (*headerMarshaling)(nil)
diff --git a/core/types/gen_header_rlp.go b/core/types/gen_header_rlp.go
index e1a6873318..36d246ee9a 100644
--- a/core/types/gen_header_rlp.go
+++ b/core/types/gen_header_rlp.go
@@ -5,7 +5,7 @@
package types
-import "github.com/ethereum/go-ethereum/rlp"
+import "github.com/cryptoecc/ETH-ECC/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 90e1c14d90..f311d783d0 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/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/hexutil"
)
var _ = (*logMarshaling)(nil)
diff --git a/core/types/gen_log_rlp.go b/core/types/gen_log_rlp.go
index 4a6c6b0094..1e94bd635d 100644
--- a/core/types/gen_log_rlp.go
+++ b/core/types/gen_log_rlp.go
@@ -5,7 +5,7 @@
package types
-import "github.com/ethereum/go-ethereum/rlp"
+import "github.com/cryptoecc/ETH-ECC/rlp"
import "io"
func (obj *rlpLog) EncodeRLP(_w io.Writer) error {
diff --git a/core/types/gen_receipt_json.go b/core/types/gen_receipt_json.go
index bb892f85be..3c1446842d 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/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/hexutil"
)
var _ = (*receiptMarshaling)(nil)
diff --git a/core/types/hashing.go b/core/types/hashing.go
index 3df75432a4..4cff7c0aee 100644
--- a/core/types/hashing.go
+++ b/core/types/hashing.go
@@ -20,9 +20,9 @@ import (
"bytes"
"sync"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/rlp"
"golang.org/x/crypto/sha3"
)
diff --git a/core/types/hashing_test.go b/core/types/hashing_test.go
index 294a3977d0..bd44cf6338 100644
--- a/core/types/hashing_test.go
+++ b/core/types/hashing_test.go
@@ -24,13 +24,13 @@ 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/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/hexutil"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/rlp"
+ "github.com/cryptoecc/ETH-ECC/trie"
)
func TestDeriveSha(t *testing.T) {
diff --git a/core/types/legacy.go b/core/types/legacy.go
index 14ed30d883..1d8453cb9c 100644
--- a/core/types/legacy.go
+++ b/core/types/legacy.go
@@ -19,7 +19,7 @@ package types
import (
"errors"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/cryptoecc/ETH-ECC/rlp"
)
// IsLegacyStoredReceipts tries to parse the RLP-encoded blob
diff --git a/core/types/legacy_tx.go b/core/types/legacy_tx.go
index 14d307829c..3cc82b1543 100644
--- a/core/types/legacy_tx.go
+++ b/core/types/legacy_tx.go
@@ -19,7 +19,7 @@ package types
import (
"math/big"
- "github.com/ethereum/go-ethereum/common"
+ "github.com/cryptoecc/ETH-ECC/common"
)
// LegacyTx is the transaction data of regular Ethereum transactions.
diff --git a/core/types/log.go b/core/types/log.go
index eb30957b12..3551bc4b16 100644
--- a/core/types/log.go
+++ b/core/types/log.go
@@ -19,9 +19,9 @@ package types
import (
"io"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/hexutil"
+ "github.com/cryptoecc/ETH-ECC/rlp"
)
//go:generate go run github.com/fjl/gencodec -type Log -field-override logMarshaling -out gen_log_json.go
diff --git a/core/types/log_test.go b/core/types/log_test.go
index 0e56acfe4a..4ee94269ad 100644
--- a/core/types/log_test.go
+++ b/core/types/log_test.go
@@ -22,9 +22,9 @@ import (
"reflect"
"testing"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/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 bdf4845147..43e7bcbb3a 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/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/hexutil"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/params"
+ "github.com/cryptoecc/ETH-ECC/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 bba18d2a7b..c56d97724f 100644
--- a/core/types/receipt_test.go
+++ b/core/types/receipt_test.go
@@ -23,10 +23,10 @@ import (
"reflect"
"testing"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/params"
+ "github.com/cryptoecc/ETH-ECC/rlp"
)
var (
diff --git a/core/types/state_account.go b/core/types/state_account.go
index 3b01be4519..37f3b078a7 100644
--- a/core/types/state_account.go
+++ b/core/types/state_account.go
@@ -19,7 +19,7 @@ package types
import (
"math/big"
- "github.com/ethereum/go-ethereum/common"
+ "github.com/cryptoecc/ETH-ECC/common"
)
//go:generate go run ../../rlp/rlpgen -type StateAccount -out gen_account_rlp.go
diff --git a/core/types/transaction.go b/core/types/transaction.go
index 715ede15db..920e29c61f 100644
--- a/core/types/transaction.go
+++ b/core/types/transaction.go
@@ -25,10 +25,10 @@ import (
"sync/atomic"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/math"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/math"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/rlp"
)
var (
diff --git a/core/types/transaction_marshalling.go b/core/types/transaction_marshalling.go
index aad31a5a97..701960e193 100644
--- a/core/types/transaction_marshalling.go
+++ b/core/types/transaction_marshalling.go
@@ -21,8 +21,8 @@ import (
"errors"
"math/big"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/hexutil"
)
// txJSON is the JSON representation of transactions.
diff --git a/core/types/transaction_signing.go b/core/types/transaction_signing.go
index 1d0d2a4c75..ebe6d93a0d 100644
--- a/core/types/transaction_signing.go
+++ b/core/types/transaction_signing.go
@@ -22,9 +22,9 @@ import (
"fmt"
"math/big"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/params"
)
var ErrInvalidChainId = errors.New("invalid chain id for signer")
diff --git a/core/types/transaction_signing_test.go b/core/types/transaction_signing_test.go
index 1c775f129d..e3e45fcde9 100644
--- a/core/types/transaction_signing_test.go
+++ b/core/types/transaction_signing_test.go
@@ -20,9 +20,9 @@ import (
"math/big"
"testing"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/rlp"
)
func TestEIP155Signing(t *testing.T) {
diff --git a/core/types/transaction_test.go b/core/types/transaction_test.go
index 67e5b3cce3..bdab7e82a8 100644
--- a/core/types/transaction_test.go
+++ b/core/types/transaction_test.go
@@ -27,9 +27,9 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/rlp"
)
// The values in those tests are from the Transaction Tests
diff --git a/core/types/types_test.go b/core/types/types_test.go
index 1fb386d5de..01fe95fc93 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/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/rlp"
)
type devnull struct{ len int }
diff --git a/core/vm/analysis_test.go b/core/vm/analysis_test.go
index 398861f8ae..6ecd8a68b9 100644
--- a/core/vm/analysis_test.go
+++ b/core/vm/analysis_test.go
@@ -20,7 +20,7 @@ import (
"math/bits"
"testing"
- "github.com/ethereum/go-ethereum/crypto"
+ "github.com/cryptoecc/ETH-ECC/crypto"
)
func TestJumpDestAnalysis(t *testing.T) {
diff --git a/core/vm/common.go b/core/vm/common.go
index 90ba4a4ad1..7553d5dd1c 100644
--- a/core/vm/common.go
+++ b/core/vm/common.go
@@ -17,8 +17,8 @@
package vm
import (
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/math"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/math"
"github.com/holiman/uint256"
)
diff --git a/core/vm/contract.go b/core/vm/contract.go
index bb0902969e..3e7feb3521 100644
--- a/core/vm/contract.go
+++ b/core/vm/contract.go
@@ -19,7 +19,7 @@ package vm
import (
"math/big"
- "github.com/ethereum/go-ethereum/common"
+ "github.com/cryptoecc/ETH-ECC/common"
"github.com/holiman/uint256"
)
diff --git a/core/vm/contracts.go b/core/vm/contracts.go
index 1b832b6386..05bde72162 100644
--- a/core/vm/contracts.go
+++ b/core/vm/contracts.go
@@ -22,13 +22,13 @@ import (
"errors"
"math/big"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/math"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/crypto/blake2b"
- "github.com/ethereum/go-ethereum/crypto/bls12381"
- "github.com/ethereum/go-ethereum/crypto/bn256"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/math"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/crypto/blake2b"
+ "github.com/cryptoecc/ETH-ECC/crypto/bls12381"
+ "github.com/cryptoecc/ETH-ECC/crypto/bn256"
+ "github.com/cryptoecc/ETH-ECC/params"
"golang.org/x/crypto/ripemd160"
)
@@ -264,9 +264,10 @@ var (
// modexpMultComplexity implements bigModexp multComplexity formula, as defined in EIP-198
//
// def mult_complexity(x):
-// if x <= 64: return x ** 2
-// elif x <= 1024: return x ** 2 // 4 + 96 * x - 3072
-// else: return x ** 2 // 16 + 480 * x - 199680
+//
+// if x <= 64: return x ** 2
+// elif x <= 1024: return x ** 2 // 4 + 96 * x - 3072
+// else: return x ** 2 // 16 + 480 * x - 199680
//
// where is x is max(length_of_MODULUS, length_of_BASE)
func modexpMultComplexity(x *big.Int) *big.Int {
diff --git a/core/vm/contracts_test.go b/core/vm/contracts_test.go
index b22d999e6c..9902051656 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/cryptoecc/ETH-ECC/common"
)
// precompiledTest defines the input/output pairs for precompiled contract tests.
diff --git a/core/vm/eips.go b/core/vm/eips.go
index 93f5c399a6..d2c43d9e62 100644
--- a/core/vm/eips.go
+++ b/core/vm/eips.go
@@ -20,7 +20,7 @@ import (
"fmt"
"sort"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/cryptoecc/ETH-ECC/params"
"github.com/holiman/uint256"
)
diff --git a/core/vm/evm.go b/core/vm/evm.go
index dd55618bf8..c0c4911f48 100644
--- a/core/vm/evm.go
+++ b/core/vm/evm.go
@@ -21,9 +21,9 @@ import (
"sync/atomic"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/params"
"github.com/holiman/uint256"
)
diff --git a/core/vm/gas_table.go b/core/vm/gas_table.go
index 4c2cb3e5cf..92e858271f 100644
--- a/core/vm/gas_table.go
+++ b/core/vm/gas_table.go
@@ -19,9 +19,9 @@ package vm
import (
"errors"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/math"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/math"
+ "github.com/cryptoecc/ETH-ECC/params"
)
// memoryGasCost calculates the quadratic gas for memory expansion. It does so
@@ -162,19 +162,19 @@ func gasSStore(evm *EVM, contract *Contract, stack *Stack, mem *Memory, memorySi
return params.NetSstoreDirtyGas, nil
}
-// 0. If *gasleft* is less than or equal to 2300, fail the current call.
-// 1. If current value equals new value (this is a no-op), SLOAD_GAS is deducted.
-// 2. If current value does not equal new value:
-// 2.1. If original value equals current value (this storage slot has not been changed by the current execution context):
+// 0. If *gasleft* is less than or equal to 2300, fail the current call.
+// 1. If current value equals new value (this is a no-op), SLOAD_GAS is deducted.
+// 2. If current value does not equal new value:
+// 2.1. If original value equals current value (this storage slot has not been changed by the current execution context):
// 2.1.1. If original value is 0, SSTORE_SET_GAS (20K) gas is deducted.
// 2.1.2. Otherwise, SSTORE_RESET_GAS gas is deducted. If new value is 0, add SSTORE_CLEARS_SCHEDULE to refund counter.
-// 2.2. If original value does not equal current value (this storage slot is dirty), SLOAD_GAS gas is deducted. Apply both of the following clauses:
+// 2.2. If original value does not equal current value (this storage slot is dirty), SLOAD_GAS gas is deducted. Apply both of the following clauses:
// 2.2.1. If original value is not 0:
-// 2.2.1.1. If current value is 0 (also means that new value is not 0), subtract SSTORE_CLEARS_SCHEDULE gas from refund counter.
-// 2.2.1.2. If new value is 0 (also means that current value is not 0), add SSTORE_CLEARS_SCHEDULE gas to refund counter.
+// 2.2.1.1. If current value is 0 (also means that new value is not 0), subtract SSTORE_CLEARS_SCHEDULE gas from refund counter.
+// 2.2.1.2. If new value is 0 (also means that current value is not 0), add SSTORE_CLEARS_SCHEDULE gas to refund counter.
// 2.2.2. If original value equals new value (this storage slot is reset):
-// 2.2.2.1. If original value is 0, add SSTORE_SET_GAS - SLOAD_GAS to refund counter.
-// 2.2.2.2. Otherwise, add SSTORE_RESET_GAS - SLOAD_GAS gas to refund counter.
+// 2.2.2.1. If original value is 0, add SSTORE_SET_GAS - SLOAD_GAS to refund counter.
+// 2.2.2.2. Otherwise, add SSTORE_RESET_GAS - SLOAD_GAS gas to refund counter.
func gasSStoreEIP2200(evm *EVM, contract *Contract, stack *Stack, mem *Memory, memorySize uint64) (uint64, error) {
// If we fail the minimum gas availability invariant, fail (0)
if contract.Gas <= params.SstoreSentryGasEIP2200 {
diff --git a/core/vm/gas_table_test.go b/core/vm/gas_table_test.go
index 6cd126c9b4..4e2fab7df7 100644
--- a/core/vm/gas_table_test.go
+++ b/core/vm/gas_table_test.go
@@ -21,11 +21,11 @@ import (
"math/big"
"testing"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/state"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/hexutil"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/core/state"
+ "github.com/cryptoecc/ETH-ECC/params"
)
func TestMemoryGasCost(t *testing.T) {
diff --git a/core/vm/instructions.go b/core/vm/instructions.go
index 92be3bf259..1a95473a0a 100644
--- a/core/vm/instructions.go
+++ b/core/vm/instructions.go
@@ -19,9 +19,9 @@ package vm
import (
"sync/atomic"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/params"
"github.com/holiman/uint256"
"golang.org/x/crypto/sha3"
)
@@ -392,16 +392,21 @@ func opExtCodeCopy(pc *uint64, interpreter *EVMInterpreter, scope *ScopeContext)
// opExtCodeHash returns the code hash of a specified account.
// There are several cases when the function is called, while we can relay everything
// to `state.GetCodeHash` function to ensure the correctness.
-// (1) Caller tries to get the code hash of a normal contract account, state
+//
+// (1) Caller tries to get the code hash of a normal contract account, state
+//
// should return the relative code hash and set it as the result.
//
-// (2) Caller tries to get the code hash of a non-existent account, state should
+// (2) Caller tries to get the code hash of a non-existent account, state should
+//
// return common.Hash{} and zero will be set as the result.
//
-// (3) Caller tries to get the code hash for an account without contract code,
+// (3) Caller tries to get the code hash for an account without contract code,
+//
// state should return emptyCodeHash(0xc5d246...) as the result.
//
-// (4) Caller tries to get the code hash of a precompiled account, the result
+// (4) Caller tries to get the code hash of a precompiled account, the result
+//
// should be zero or emptyCodeHash.
//
// It is worth noting that in order to avoid unnecessary create and clean,
@@ -410,10 +415,12 @@ func opExtCodeCopy(pc *uint64, interpreter *EVMInterpreter, scope *ScopeContext)
// If the precompile account is not transferred any amount on a private or
// customized chain, the return value will be zero.
//
-// (5) Caller tries to get the code hash for an account which is marked as suicided
+// (5) Caller tries to get the code hash for an account which is marked as suicided
+//
// in the current transaction, the code hash of this account should be returned.
//
-// (6) Caller tries to get the code hash for an account which is marked as deleted,
+// (6) Caller tries to get the code hash for an account which is marked as deleted,
+//
// this account should be regarded as a non-existent account and zero should be returned.
func opExtCodeHash(pc *uint64, interpreter *EVMInterpreter, scope *ScopeContext) ([]byte, error) {
slot := scope.Stack.peek()
diff --git a/core/vm/instructions_test.go b/core/vm/instructions_test.go
index 602cde5101..fef7f0f05e 100644
--- a/core/vm/instructions_test.go
+++ b/core/vm/instructions_test.go
@@ -24,9 +24,9 @@ import (
"os"
"testing"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/params"
"github.com/holiman/uint256"
)
diff --git a/core/vm/interface.go b/core/vm/interface.go
index ad9b05d666..8c56aea22f 100644
--- a/core/vm/interface.go
+++ b/core/vm/interface.go
@@ -19,8 +19,8 @@ package vm
import (
"math/big"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/types"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core/types"
)
// StateDB is an EVM database for full state querying.
diff --git a/core/vm/interpreter.go b/core/vm/interpreter.go
index 40fe23dc51..0478587f27 100644
--- a/core/vm/interpreter.go
+++ b/core/vm/interpreter.go
@@ -19,9 +19,9 @@ package vm
import (
"hash"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/math"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/math"
+ "github.com/cryptoecc/ETH-ECC/log"
)
// Config are the configuration options for the Interpreter
diff --git a/core/vm/interpreter_test.go b/core/vm/interpreter_test.go
index 31ee9922db..c72a0cf540 100644
--- a/core/vm/interpreter_test.go
+++ b/core/vm/interpreter_test.go
@@ -21,11 +21,11 @@ import (
"testing"
"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/params"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/math"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/core/state"
+ "github.com/cryptoecc/ETH-ECC/params"
)
var loopInterruptTests = []string{
diff --git a/core/vm/jump_table.go b/core/vm/jump_table.go
index 707b52e79d..5db8b8d17e 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/cryptoecc/ETH-ECC/params"
)
type (
diff --git a/core/vm/logger.go b/core/vm/logger.go
index 50fccafcf5..460cb44793 100644
--- a/core/vm/logger.go
+++ b/core/vm/logger.go
@@ -20,7 +20,7 @@ import (
"math/big"
"time"
- "github.com/ethereum/go-ethereum/common"
+ "github.com/cryptoecc/ETH-ECC/common"
)
// EVMLogger is used to collect execution traces from an EVM transaction
diff --git a/core/vm/operations_acl.go b/core/vm/operations_acl.go
index 551e1f5f11..35cf4fae44 100644
--- a/core/vm/operations_acl.go
+++ b/core/vm/operations_acl.go
@@ -19,9 +19,9 @@ package vm
import (
"errors"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/math"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/math"
+ "github.com/cryptoecc/ETH-ECC/params"
)
func makeGasSStoreFunc(clearingRefund uint64) gasFunc {
diff --git a/core/vm/runtime/env.go b/core/vm/runtime/env.go
index dcb0974284..bfe9c6955c 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/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/core/vm"
)
func NewEnv(cfg *Config) *vm.EVM {
diff --git a/core/vm/runtime/runtime.go b/core/vm/runtime/runtime.go
index 7861fb92db..cb3737a36b 100644
--- a/core/vm/runtime/runtime.go
+++ b/core/vm/runtime/runtime.go
@@ -21,12 +21,12 @@ import (
"math/big"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/state"
- "github.com/ethereum/go-ethereum/core/vm"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/core/state"
+ "github.com/cryptoecc/ETH-ECC/core/vm"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/params"
)
// Config is a basic type specifying certain configuration flags for running
diff --git a/core/vm/runtime/runtime_example_test.go b/core/vm/runtime/runtime_example_test.go
index b7d0ddc384..783ac1d25d 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/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core/vm/runtime"
)
func ExampleExecute() {
diff --git a/core/vm/runtime/runtime_test.go b/core/vm/runtime/runtime_test.go
index ab77e284df..85583312b5 100644
--- a/core/vm/runtime/runtime_test.go
+++ b/core/vm/runtime/runtime_test.go
@@ -23,21 +23,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/asm"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/state"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/core/vm"
- "github.com/ethereum/go-ethereum/eth/tracers"
- "github.com/ethereum/go-ethereum/eth/tracers/logger"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/cryptoecc/ETH-ECC/accounts/abi"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/consensus"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/core/asm"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/core/state"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/core/vm"
+ "github.com/cryptoecc/ETH-ECC/eth/tracers"
+ "github.com/cryptoecc/ETH-ECC/eth/tracers/logger"
+ "github.com/cryptoecc/ETH-ECC/params"
// force-load js tracers to trigger registration
- _ "github.com/ethereum/go-ethereum/eth/tracers/js"
+ _ "github.com/cryptoecc/ETH-ECC/eth/tracers/js"
)
func TestDefaults(t *testing.T) {
@@ -604,7 +604,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/cryptoecc/ETH-ECC/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..f9d984c4f5 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/cryptoecc/ETH-ECC/params"
)
func minSwapStack(n int) int {
diff --git a/crypto/bls12381/g1_test.go b/crypto/bls12381/g1_test.go
index eef9f45055..ec10e8c072 100644
--- a/crypto/bls12381/g1_test.go
+++ b/crypto/bls12381/g1_test.go
@@ -6,7 +6,7 @@ import (
"math/big"
"testing"
- "github.com/ethereum/go-ethereum/common"
+ "github.com/cryptoecc/ETH-ECC/common"
)
func (g *G1) one() *PointG1 {
diff --git a/crypto/bls12381/g2_test.go b/crypto/bls12381/g2_test.go
index f16f0e5eea..2d5367aec9 100644
--- a/crypto/bls12381/g2_test.go
+++ b/crypto/bls12381/g2_test.go
@@ -6,7 +6,7 @@ import (
"math/big"
"testing"
- "github.com/ethereum/go-ethereum/common"
+ "github.com/cryptoecc/ETH-ECC/common"
)
func (g *G2) one() *PointG2 {
diff --git a/crypto/bls12381/pairing_test.go b/crypto/bls12381/pairing_test.go
index 77676fe9b1..a2f5c99a99 100644
--- a/crypto/bls12381/pairing_test.go
+++ b/crypto/bls12381/pairing_test.go
@@ -4,7 +4,7 @@ import (
"math/big"
"testing"
- "github.com/ethereum/go-ethereum/common"
+ "github.com/cryptoecc/ETH-ECC/common"
)
func TestPairingExpected(t *testing.T) {
diff --git a/crypto/bls12381/utils.go b/crypto/bls12381/utils.go
index de8bf495fe..b2aebcab4f 100644
--- a/crypto/bls12381/utils.go
+++ b/crypto/bls12381/utils.go
@@ -20,7 +20,7 @@ import (
"errors"
"math/big"
- "github.com/ethereum/go-ethereum/common"
+ "github.com/cryptoecc/ETH-ECC/common"
)
func bigFromHex(hex string) *big.Int {
diff --git a/crypto/bn256/bn256_fast.go b/crypto/bn256/bn256_fast.go
index e3c9b60518..a7b13be312 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/cryptoecc/ETH-ECC/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..996549dffb 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/cryptoecc/ETH-ECC/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 45ea72747e..dbc3c504f4 100644
--- a/crypto/crypto.go
+++ b/crypto/crypto.go
@@ -29,13 +29,13 @@ 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/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/math"
+ "github.com/cryptoecc/ETH-ECC/rlp"
"golang.org/x/crypto/sha3"
)
-//SignatureLength indicates the byte length required to carry a signature with recovery id.
+// SignatureLength indicates the byte length required to carry a signature with recovery id.
const SignatureLength = 64 + 1 // 64 bytes ECDSA signature + 1 byte recovery id
// RecoveryIDOffset points to the byte offset within the signature that contains the recovery id.
diff --git a/crypto/crypto_test.go b/crypto/crypto_test.go
index da123cf980..4ecf1fbd50 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/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/hexutil"
)
var testAddrHex = "970e8128ab834e8eac17ab8e3812f010678cf791"
diff --git a/crypto/ecies/ecies_test.go b/crypto/ecies/ecies_test.go
index 8ca42c9c8e..63d0e39eff 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/cryptoecc/ETH-ECC/crypto"
)
func TestKDF(t *testing.T) {
diff --git a/crypto/ecies/params.go b/crypto/ecies/params.go
index 39e7c89473..6e2c7347e7 100644
--- a/crypto/ecies/params.go
+++ b/crypto/ecies/params.go
@@ -42,7 +42,7 @@ import (
"fmt"
"hash"
- ethcrypto "github.com/ethereum/go-ethereum/crypto"
+ ethcrypto "github.com/cryptoecc/ETH-ECC/crypto"
)
var (
diff --git a/crypto/secp256k1/dummy.go b/crypto/secp256k1/dummy.go
index 65a75080f6..3677054076 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/cryptoecc/ETH-ECC/crypto/secp256k1/libsecp256k1/include"
+ _ "github.com/cryptoecc/ETH-ECC/crypto/secp256k1/libsecp256k1/src"
+ _ "github.com/cryptoecc/ETH-ECC/crypto/secp256k1/libsecp256k1/src/modules/recovery"
)
diff --git a/crypto/signature_cgo.go b/crypto/signature_cgo.go
index bd72d97d3b..667401083f 100644
--- a/crypto/signature_cgo.go
+++ b/crypto/signature_cgo.go
@@ -24,8 +24,8 @@ import (
"crypto/elliptic"
"fmt"
- "github.com/ethereum/go-ethereum/common/math"
- "github.com/ethereum/go-ethereum/crypto/secp256k1"
+ "github.com/cryptoecc/ETH-ECC/common/math"
+ "github.com/cryptoecc/ETH-ECC/crypto/secp256k1"
)
// Ecrecover returns the uncompressed public key that created the given signature.
diff --git a/crypto/signature_test.go b/crypto/signature_test.go
index aecff76bfb..cb154b810e 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/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/hexutil"
+ "github.com/cryptoecc/ETH-ECC/common/math"
)
var (
diff --git a/eth/api.go b/eth/api.go
index 5642ef4c3f..445b75fb05 100644
--- a/eth/api.go
+++ b/eth/api.go
@@ -28,17 +28,17 @@ import (
"strings"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/state"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/internal/ethapi"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/rlp"
- "github.com/ethereum/go-ethereum/rpc"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/hexutil"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/core/state"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/internal/ethapi"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/rlp"
+ "github.com/cryptoecc/ETH-ECC/rpc"
+ "github.com/cryptoecc/ETH-ECC/trie"
)
// EthereumAPI provides an API to access Ethereum full node-related information.
diff --git a/eth/api_backend.go b/eth/api_backend.go
index 00ecacc31d..6b2a65344d 100644
--- a/eth/api_backend.go
+++ b/eth/api_backend.go
@@ -22,22 +22,22 @@ import (
"math/big"
"time"
- "github.com/ethereum/go-ethereum"
- "github.com/ethereum/go-ethereum/accounts"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/consensus"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/bloombits"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/state"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/core/vm"
- "github.com/ethereum/go-ethereum/eth/gasprice"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/event"
- "github.com/ethereum/go-ethereum/miner"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/rpc"
+ ethereum "github.com/cryptoecc/ETH-ECC"
+ "github.com/cryptoecc/ETH-ECC/accounts"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/consensus"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/core/bloombits"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/core/state"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/core/vm"
+ "github.com/cryptoecc/ETH-ECC/eth/gasprice"
+ "github.com/cryptoecc/ETH-ECC/ethdb"
+ "github.com/cryptoecc/ETH-ECC/event"
+ "github.com/cryptoecc/ETH-ECC/miner"
+ "github.com/cryptoecc/ETH-ECC/params"
+ "github.com/cryptoecc/ETH-ECC/rpc"
)
// EthAPIBackend implements ethapi.Backend for full nodes
diff --git a/eth/api_test.go b/eth/api_test.go
index 250591c107..cb3737b065 100644
--- a/eth/api_test.go
+++ b/eth/api_test.go
@@ -24,12 +24,12 @@ import (
"sort"
"testing"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/core/state"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/trie"
"github.com/davecgh/go-spew/spew"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/state"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/trie"
)
var dumper = spew.ConfigState{Indent: " "}
diff --git a/eth/backend.go b/eth/backend.go
index dca96e4f9d..71af88d2ae 100644
--- a/eth/backend.go
+++ b/eth/backend.go
@@ -25,36 +25,36 @@ import (
"sync"
"sync/atomic"
- "github.com/ethereum/go-ethereum/accounts"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/consensus"
- "github.com/ethereum/go-ethereum/consensus/beacon"
- "github.com/ethereum/go-ethereum/consensus/clique"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/bloombits"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/state/pruner"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/core/vm"
- "github.com/ethereum/go-ethereum/eth/downloader"
- "github.com/ethereum/go-ethereum/eth/ethconfig"
- "github.com/ethereum/go-ethereum/eth/gasprice"
- "github.com/ethereum/go-ethereum/eth/protocols/eth"
- "github.com/ethereum/go-ethereum/eth/protocols/snap"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/event"
- "github.com/ethereum/go-ethereum/internal/ethapi"
- "github.com/ethereum/go-ethereum/internal/shutdowncheck"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/miner"
- "github.com/ethereum/go-ethereum/node"
- "github.com/ethereum/go-ethereum/p2p"
- "github.com/ethereum/go-ethereum/p2p/dnsdisc"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/rlp"
- "github.com/ethereum/go-ethereum/rpc"
+ "github.com/cryptoecc/ETH-ECC/accounts"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/hexutil"
+ "github.com/cryptoecc/ETH-ECC/consensus"
+ "github.com/cryptoecc/ETH-ECC/consensus/beacon"
+ "github.com/cryptoecc/ETH-ECC/consensus/clique"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/core/bloombits"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/core/state/pruner"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/core/vm"
+ "github.com/cryptoecc/ETH-ECC/eth/downloader"
+ "github.com/cryptoecc/ETH-ECC/eth/ethconfig"
+ "github.com/cryptoecc/ETH-ECC/eth/gasprice"
+ "github.com/cryptoecc/ETH-ECC/eth/protocols/eth"
+ "github.com/cryptoecc/ETH-ECC/eth/protocols/snap"
+ "github.com/cryptoecc/ETH-ECC/ethdb"
+ "github.com/cryptoecc/ETH-ECC/event"
+ "github.com/cryptoecc/ETH-ECC/internal/ethapi"
+ "github.com/cryptoecc/ETH-ECC/internal/shutdowncheck"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/miner"
+ "github.com/cryptoecc/ETH-ECC/node"
+ "github.com/cryptoecc/ETH-ECC/p2p"
+ "github.com/cryptoecc/ETH-ECC/p2p/dnsdisc"
+ "github.com/cryptoecc/ETH-ECC/p2p/enode"
+ "github.com/cryptoecc/ETH-ECC/params"
+ "github.com/cryptoecc/ETH-ECC/rlp"
+ "github.com/cryptoecc/ETH-ECC/rpc"
)
// Config contains the configuration options of the ETH protocol.
diff --git a/eth/bloombits.go b/eth/bloombits.go
index 0cb7050d23..32f3c5560d 100644
--- a/eth/bloombits.go
+++ b/eth/bloombits.go
@@ -19,8 +19,8 @@ package eth
import (
"time"
- "github.com/ethereum/go-ethereum/common/bitutil"
- "github.com/ethereum/go-ethereum/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/common/bitutil"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
)
const (
diff --git a/eth/catalyst/api.go b/eth/catalyst/api.go
index 19dd28e643..96a1a7d6b1 100644
--- a/eth/catalyst/api.go
+++ b/eth/catalyst/api.go
@@ -26,16 +26,16 @@ import (
"sync"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/core/beacon"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/eth"
- "github.com/ethereum/go-ethereum/eth/downloader"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/node"
- "github.com/ethereum/go-ethereum/rpc"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/hexutil"
+ "github.com/cryptoecc/ETH-ECC/core/beacon"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/eth"
+ "github.com/cryptoecc/ETH-ECC/eth/downloader"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/node"
+ "github.com/cryptoecc/ETH-ECC/rpc"
)
// Register adds the engine API to the full node.
@@ -143,14 +143,21 @@ func NewConsensusAPI(eth *eth.Ethereum) *ConsensusAPI {
// ForkchoiceUpdatedV1 has several responsibilities:
// If the method is called with an empty head block:
-// we return success, which can be used to check if the engine API is enabled
+//
+// we return success, which can be used to check if the engine API is enabled
+//
// If the total difficulty was not reached:
-// we return INVALID
+//
+// we return INVALID
+//
// If the finalizedBlockHash is set:
-// we check if we have the finalizedBlockHash in our db, if not we start a sync
+//
+// we check if we have the finalizedBlockHash in our db, if not we start a sync
+//
// We try to set our blockchain to the headBlock
// If there are payloadAttributes:
-// we try to assemble a block with the payloadAttributes and return its payloadID
+//
+// we try to assemble a block with the payloadAttributes and return its payloadID
func (api *ConsensusAPI) ForkchoiceUpdatedV1(update beacon.ForkchoiceStateV1, payloadAttributes *beacon.PayloadAttributesV1) (beacon.ForkChoiceResponse, error) {
api.forkchoiceLock.Lock()
defer api.forkchoiceLock.Unlock()
diff --git a/eth/catalyst/api_test.go b/eth/catalyst/api_test.go
index 0d945993eb..43a1ab1b87 100644
--- a/eth/catalyst/api_test.go
+++ b/eth/catalyst/api_test.go
@@ -23,21 +23,21 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/consensus/ethash"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/beacon"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/eth"
- "github.com/ethereum/go-ethereum/eth/downloader"
- "github.com/ethereum/go-ethereum/eth/ethconfig"
- "github.com/ethereum/go-ethereum/node"
- "github.com/ethereum/go-ethereum/p2p"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/hexutil"
+ "github.com/cryptoecc/ETH-ECC/consensus/ethash"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/core/beacon"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/eth"
+ "github.com/cryptoecc/ETH-ECC/eth/downloader"
+ "github.com/cryptoecc/ETH-ECC/eth/ethconfig"
+ "github.com/cryptoecc/ETH-ECC/node"
+ "github.com/cryptoecc/ETH-ECC/p2p"
+ "github.com/cryptoecc/ETH-ECC/params"
+ "github.com/cryptoecc/ETH-ECC/trie"
)
var (
@@ -523,7 +523,7 @@ func TestExchangeTransitionConfig(t *testing.T) {
TestNewPayloadOnInvalidChain sets up a valid chain and tries to feed blocks
from an invalid chain to test if latestValidHash (LVH) works correctly.
-We set up the following chain where P1 ... Pn and P1'' are valid while
+We set up the following chain where P1 ... Pn and P1” are valid while
P1' is invalid.
We expect
(1) The LVH to point to the current inserted payload if it was valid.
@@ -531,10 +531,11 @@ We expect
(3) If the parent is unavailable, the LVH should not be set.
CommonAncestor◄─▲── P1 ◄── P2 ◄─ P3 ◄─ ... ◄─ Pn
- │
- └── P1' ◄─ P2' ◄─ P3' ◄─ ... ◄─ Pn'
- │
- └── P1''
+
+ │
+ └── P1' ◄─ P2' ◄─ P3' ◄─ ... ◄─ Pn'
+ │
+ └── P1''
*/
func TestNewPayloadOnInvalidChain(t *testing.T) {
genesis, preMergeBlocks := generatePreMergeChain(10)
diff --git a/eth/catalyst/queue.go b/eth/catalyst/queue.go
index ff8edc1201..8729fac8e3 100644
--- a/eth/catalyst/queue.go
+++ b/eth/catalyst/queue.go
@@ -20,9 +20,9 @@ import (
"sync"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/beacon"
- "github.com/ethereum/go-ethereum/core/types"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core/beacon"
+ "github.com/cryptoecc/ETH-ECC/core/types"
)
// maxTrackedPayloads is the maximum number of prepared payloads the execution
diff --git a/eth/downloader/api.go b/eth/downloader/api.go
index b3f7113bcd..5a3e2a6b22 100644
--- a/eth/downloader/api.go
+++ b/eth/downloader/api.go
@@ -20,9 +20,9 @@ import (
"context"
"sync"
+ "github.com/cryptoecc/ETH-ECC/event"
+ "github.com/cryptoecc/ETH-ECC/rpc"
"github.com/ethereum/go-ethereum"
- "github.com/ethereum/go-ethereum/event"
- "github.com/ethereum/go-ethereum/rpc"
)
// DownloaderAPI provides an API which gives information about the current synchronisation status.
diff --git a/eth/downloader/beaconsync.go b/eth/downloader/beaconsync.go
index 484a4e20de..828d62d45b 100644
--- a/eth/downloader/beaconsync.go
+++ b/eth/downloader/beaconsync.go
@@ -22,9 +22,9 @@ import (
"sync/atomic"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/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 c04352f0aa..ae9ea684b7 100644
--- a/eth/downloader/downloader.go
+++ b/eth/downloader/downloader.go
@@ -25,16 +25,16 @@ import (
"sync/atomic"
"time"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/core/state/snapshot"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/eth/protocols/snap"
+ "github.com/cryptoecc/ETH-ECC/ethdb"
+ "github.com/cryptoecc/ETH-ECC/event"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/params"
"github.com/ethereum/go-ethereum"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/state/snapshot"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/eth/protocols/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"
)
var (
@@ -741,9 +741,11 @@ func (d *Downloader) fetchHead(p *peerConnection) (head *types.Header, pivot *ty
// calculateRequestSpan calculates what headers to request from a peer when trying to determine the
// common ancestor.
// It returns parameters to be used for peer.RequestHeadersByNumber:
-// from - starting block number
-// count - number of headers to request
-// skip - number of headers to skip
+//
+// from - starting block number
+// count - number of headers to request
+// skip - number of headers to skip
+//
// and also returns 'max', the last block which is expected to be returned by the remote peers,
// given the (from,count,skip)
func calculateRequestSpan(remoteHeight, localHeight uint64) (int64, int, int, uint64) {
diff --git a/eth/downloader/downloader_test.go b/eth/downloader/downloader_test.go
index eb72f0fc3c..00b90831fd 100644
--- a/eth/downloader/downloader_test.go
+++ b/eth/downloader/downloader_test.go
@@ -27,20 +27,20 @@ import (
"testing"
"time"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/consensus/ethash"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/core/vm"
+ "github.com/cryptoecc/ETH-ECC/eth/protocols/eth"
+ "github.com/cryptoecc/ETH-ECC/eth/protocols/snap"
+ "github.com/cryptoecc/ETH-ECC/event"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/params"
+ "github.com/cryptoecc/ETH-ECC/rlp"
+ "github.com/cryptoecc/ETH-ECC/trie"
"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"
)
// 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..0d198f6570 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/cryptoecc/ETH-ECC/core/types"
type DoneEvent struct {
Latest *types.Header
diff --git a/eth/downloader/fetchers.go b/eth/downloader/fetchers.go
index 021e8c4f9b..ef496c4fb4 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/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/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 44e6aa8f8d..7b6e53501d 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/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/prque"
+ "github.com/cryptoecc/ETH-ECC/eth/protocols/eth"
+ "github.com/cryptoecc/ETH-ECC/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 e84206fe99..0ab5950315 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/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/eth/protocols/eth"
+ "github.com/cryptoecc/ETH-ECC/log"
)
// bodyQueue implements typedQueue and is a type adapter between the generic
diff --git a/eth/downloader/fetchers_concurrent_headers.go b/eth/downloader/fetchers_concurrent_headers.go
index 84c7f20986..4957c4aa7d 100644
--- a/eth/downloader/fetchers_concurrent_headers.go
+++ b/eth/downloader/fetchers_concurrent_headers.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/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/eth/protocols/eth"
+ "github.com/cryptoecc/ETH-ECC/log"
)
// headerQueue 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 1c853c2184..57ff8ae2d6 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/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/eth/protocols/eth"
+ "github.com/cryptoecc/ETH-ECC/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 23c033a8ad..dba74399b7 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/cryptoecc/ETH-ECC/metrics"
)
var (
diff --git a/eth/downloader/peer.go b/eth/downloader/peer.go
index 6b82694959..41c7c2a934 100644
--- a/eth/downloader/peer.go
+++ b/eth/downloader/peer.go
@@ -25,11 +25,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/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/eth/protocols/eth"
+ "github.com/cryptoecc/ETH-ECC/event"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/p2p/msgrate"
)
const (
diff --git a/eth/downloader/queue.go b/eth/downloader/queue.go
index a8d2ea83a9..c17e3afd80 100644
--- a/eth/downloader/queue.go
+++ b/eth/downloader/queue.go
@@ -26,11 +26,11 @@ import (
"sync/atomic"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/prque"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/metrics"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/prque"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/metrics"
)
const (
@@ -480,9 +480,10 @@ func (q *queue) ReserveReceipts(p *peerConnection, count int) (*fetchRequest, bo
// to access the queue, so they already need a lock anyway.
//
// Returns:
-// item - the fetchRequest
-// progress - whether any progress was made
-// throttle - if the caller should throttle for a while
+//
+// item - the fetchRequest
+// progress - whether any progress was made
+// throttle - if the caller should throttle for a while
func (q *queue) reserveHeaders(p *peerConnection, count int, taskPool map[common.Hash]*types.Header, taskQueue *prque.Prque,
pendPool map[string]*fetchRequest, kind uint) (*fetchRequest, bool, bool) {
// Short circuit if the pool has been depleted, or if the peer's already
diff --git a/eth/downloader/queue_test.go b/eth/downloader/queue_test.go
index 8631b27c92..964deb171e 100644
--- a/eth/downloader/queue_test.go
+++ b/eth/downloader/queue_test.go
@@ -24,13 +24,13 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/consensus/ethash"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/consensus/ethash"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/params"
+ "github.com/cryptoecc/ETH-ECC/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 3162cd6d5b..1e4d1ff6b6 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/cryptoecc/ETH-ECC/core/types"
)
// resultStore implements a structure for maintaining fetchResults, tracking their
@@ -71,10 +71,11 @@ func (r *resultStore) SetThrottleThreshold(threshold uint64) uint64 {
// wants to reserve headers for fetching.
//
// It returns the following:
-// stale - if true, this item is already passed, and should not be requested again
-// throttled - if true, the store is at capacity, this particular header is not prio now
-// item - the result to store data into
-// err - any error that occurred
+//
+// stale - if true, this item is already passed, and should not be requested again
+// throttled - if true, the store is at capacity, this particular header is not prio now
+// item - the result to store data into
+// err - any error that occurred
func (r *resultStore) AddFetch(header *types.Header, fastSync bool) (stale, throttled bool, item *fetchResult, err error) {
r.lock.Lock()
defer r.lock.Unlock()
diff --git a/eth/downloader/skeleton.go b/eth/downloader/skeleton.go
index 517b8378c5..2e0f8cc60b 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/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/eth/protocols/eth"
+ "github.com/cryptoecc/ETH-ECC/ethdb"
+ "github.com/cryptoecc/ETH-ECC/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 6bcbac3a89..522a12298d 100644
--- a/eth/downloader/skeleton_test.go
+++ b/eth/downloader/skeleton_test.go
@@ -25,11 +25,11 @@ 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/log"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/eth/protocols/eth"
+ "github.com/cryptoecc/ETH-ECC/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..59ffac2f0e 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/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/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 1c96681e2f..54e1742379 100644
--- a/eth/downloader/testchain_test.go
+++ b/eth/downloader/testchain_test.go
@@ -22,14 +22,14 @@ 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/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/consensus/ethash"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/core/vm"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/params"
)
// Test chain parameters.
diff --git a/eth/ethconfig/config.go b/eth/ethconfig/config.go
index a897294175..3daf9032e9 100644
--- a/eth/ethconfig/config.go
+++ b/eth/ethconfig/config.go
@@ -25,19 +25,19 @@ import (
"runtime"
"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/eth/downloader"
- "github.com/ethereum/go-ethereum/eth/gasprice"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/miner"
- "github.com/ethereum/go-ethereum/node"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/consensus"
+ "github.com/cryptoecc/ETH-ECC/consensus/beacon"
+ "github.com/cryptoecc/ETH-ECC/consensus/clique"
+ "github.com/cryptoecc/ETH-ECC/consensus/ethash"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/eth/downloader"
+ "github.com/cryptoecc/ETH-ECC/eth/gasprice"
+ "github.com/cryptoecc/ETH-ECC/ethdb"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/miner"
+ "github.com/cryptoecc/ETH-ECC/node"
+ "github.com/cryptoecc/ETH-ECC/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 9c7a04364d..caeea617d1 100644
--- a/eth/ethconfig/gen_config.go
+++ b/eth/ethconfig/gen_config.go
@@ -6,13 +6,13 @@ import (
"math/big"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/consensus/ethash"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/eth/downloader"
- "github.com/ethereum/go-ethereum/eth/gasprice"
- "github.com/ethereum/go-ethereum/miner"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/consensus/ethash"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/eth/downloader"
+ "github.com/cryptoecc/ETH-ECC/eth/gasprice"
+ "github.com/cryptoecc/ETH-ECC/miner"
+ "github.com/cryptoecc/ETH-ECC/params"
)
// MarshalTOML marshals as TOML.
diff --git a/eth/fetcher/block_fetcher.go b/eth/fetcher/block_fetcher.go
index bd1a34c83c..c254739007 100644
--- a/eth/fetcher/block_fetcher.go
+++ b/eth/fetcher/block_fetcher.go
@@ -22,14 +22,14 @@ import (
"math/rand"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/prque"
- "github.com/ethereum/go-ethereum/consensus"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/eth/protocols/eth"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/metrics"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/prque"
+ "github.com/cryptoecc/ETH-ECC/consensus"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/eth/protocols/eth"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/metrics"
+ "github.com/cryptoecc/ETH-ECC/trie"
)
const (
diff --git a/eth/fetcher/block_fetcher_test.go b/eth/fetcher/block_fetcher_test.go
index bf7946952e..cc07477f11 100644
--- a/eth/fetcher/block_fetcher_test.go
+++ b/eth/fetcher/block_fetcher_test.go
@@ -24,15 +24,15 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/consensus/ethash"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/eth/protocols/eth"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/consensus/ethash"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/eth/protocols/eth"
+ "github.com/cryptoecc/ETH-ECC/params"
+ "github.com/cryptoecc/ETH-ECC/trie"
)
var (
diff --git a/eth/fetcher/tx_fetcher.go b/eth/fetcher/tx_fetcher.go
index 035e0c2ec7..5a24e4e913 100644
--- a/eth/fetcher/tx_fetcher.go
+++ b/eth/fetcher/tx_fetcher.go
@@ -24,13 +24,13 @@ import (
"sort"
"time"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/mclock"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/metrics"
mapset "github.com/deckarep/golang-set"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/mclock"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/metrics"
)
const (
diff --git a/eth/fetcher/tx_fetcher_test.go b/eth/fetcher/tx_fetcher_test.go
index 4c06712f77..3847435c2a 100644
--- a/eth/fetcher/tx_fetcher_test.go
+++ b/eth/fetcher/tx_fetcher_test.go
@@ -23,10 +23,10 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/mclock"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/types"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/mclock"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/core/types"
)
var (
diff --git a/eth/filters/api.go b/eth/filters/api.go
index 43e63d5ba9..4be6f6f681 100644
--- a/eth/filters/api.go
+++ b/eth/filters/api.go
@@ -25,11 +25,11 @@ import (
"sync"
"time"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/hexutil"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/rpc"
"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"
)
// filter is a helper struct that holds meta information over the filter type
diff --git a/eth/filters/api_test.go b/eth/filters/api_test.go
index 0a80d0f8dd..6acb99345d 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/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/rpc"
)
func TestUnmarshalJSONNewFilterArgs(t *testing.T) {
diff --git a/eth/filters/bench_test.go b/eth/filters/bench_test.go
index 73b96b77af..00cadcfec6 100644
--- a/eth/filters/bench_test.go
+++ b/eth/filters/bench_test.go
@@ -22,13 +22,13 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/bitutil"
- "github.com/ethereum/go-ethereum/core/bloombits"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/node"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/bitutil"
+ "github.com/cryptoecc/ETH-ECC/core/bloombits"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/ethdb"
+ "github.com/cryptoecc/ETH-ECC/node"
)
func BenchmarkBloomBits512(b *testing.B) {
diff --git a/eth/filters/filter.go b/eth/filters/filter.go
index 0a70c9ece1..4f00745cab 100644
--- a/eth/filters/filter.go
+++ b/eth/filters/filter.go
@@ -21,10 +21,10 @@ import (
"errors"
"math/big"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/bloombits"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/rpc"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core/bloombits"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/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 79a9b089f4..d94f5d4768 100644
--- a/eth/filters/filter_system.go
+++ b/eth/filters/filter_system.go
@@ -24,16 +24,16 @@ import (
"sync"
"time"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/core/bloombits"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/ethdb"
+ "github.com/cryptoecc/ETH-ECC/event"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/rpc"
"github.com/ethereum/go-ethereum"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/bloombits"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/event"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/rpc"
lru "github.com/hashicorp/golang-lru"
)
diff --git a/eth/filters/filter_system_test.go b/eth/filters/filter_system_test.go
index 51bda29b42..faa29d9a42 100644
--- a/eth/filters/filter_system_test.go
+++ b/eth/filters/filter_system_test.go
@@ -26,17 +26,17 @@ import (
"testing"
"time"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/consensus/ethash"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/core/bloombits"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/ethdb"
+ "github.com/cryptoecc/ETH-ECC/event"
+ "github.com/cryptoecc/ETH-ECC/params"
+ "github.com/cryptoecc/ETH-ECC/rpc"
"github.com/ethereum/go-ethereum"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/consensus/ethash"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/bloombits"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/event"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/rpc"
)
type testBackend struct {
diff --git a/eth/filters/filter_test.go b/eth/filters/filter_test.go
index 2c1f7cadf4..1006aa7c94 100644
--- a/eth/filters/filter_test.go
+++ b/eth/filters/filter_test.go
@@ -21,13 +21,13 @@ import (
"math/big"
"testing"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/consensus/ethash"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/consensus/ethash"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/params"
)
func makeReceipt(addr common.Address) *types.Receipt {
diff --git a/eth/gasprice/feehistory.go b/eth/gasprice/feehistory.go
index 91835c1641..32dee8dabc 100644
--- a/eth/gasprice/feehistory.go
+++ b/eth/gasprice/feehistory.go
@@ -26,11 +26,11 @@ import (
"sort"
"sync/atomic"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/consensus/misc"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/rpc"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/consensus/misc"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/rpc"
)
var (
@@ -208,10 +208,11 @@ func (oracle *Oracle) resolveBlockRange(ctx context.Context, reqEnd rpc.BlockNum
// actually processed range is returned to avoid ambiguity when parts of the requested range
// are not available or when the head has changed during processing this request.
// Three arrays are returned based on the processed blocks:
-// - reward: the requested percentiles of effective priority fees per gas of transactions in each
-// block, sorted in ascending order and weighted by gas used.
-// - baseFee: base fee per gas in the given block
-// - gasUsedRatio: gasUsed/gasLimit in the given block
+// - reward: the requested percentiles of effective priority fees per gas of transactions in each
+// block, sorted in ascending order and weighted by gas used.
+// - baseFee: base fee per gas in the given block
+// - gasUsedRatio: gasUsed/gasLimit in the given block
+//
// Note: baseFee includes the next block after the newest of the returned range, because this
// value can be derived from the newest block.
func (oracle *Oracle) FeeHistory(ctx context.Context, blocks int, unresolvedLastBlock rpc.BlockNumber, rewardPercentiles []float64) (*big.Int, [][]*big.Int, []*big.Int, []float64, error) {
diff --git a/eth/gasprice/feehistory_test.go b/eth/gasprice/feehistory_test.go
index deece7f461..e7d939c423 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/cryptoecc/ETH-ECC/rpc"
)
func TestFeeHistory(t *testing.T) {
diff --git a/eth/gasprice/gasprice.go b/eth/gasprice/gasprice.go
index 00128a5dc8..45268a964d 100644
--- a/eth/gasprice/gasprice.go
+++ b/eth/gasprice/gasprice.go
@@ -22,13 +22,13 @@ import (
"sort"
"sync"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/event"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/rpc"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/event"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/params"
+ "github.com/cryptoecc/ETH-ECC/rpc"
lru "github.com/hashicorp/golang-lru"
)
diff --git a/eth/gasprice/gasprice_test.go b/eth/gasprice/gasprice_test.go
index 5830312fd1..364d55700d 100644
--- a/eth/gasprice/gasprice_test.go
+++ b/eth/gasprice/gasprice_test.go
@@ -22,16 +22,16 @@ import (
"math/big"
"testing"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/consensus/ethash"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/core/vm"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/event"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/rpc"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/consensus/ethash"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/core/vm"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/event"
+ "github.com/cryptoecc/ETH-ECC/params"
+ "github.com/cryptoecc/ETH-ECC/rpc"
)
const testHead = 32
diff --git a/eth/handler.go b/eth/handler.go
index 4224a9f33a..e937f62994 100644
--- a/eth/handler.go
+++ b/eth/handler.go
@@ -24,21 +24,21 @@ import (
"sync/atomic"
"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/core"
- "github.com/ethereum/go-ethereum/core/forkid"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/eth/downloader"
- "github.com/ethereum/go-ethereum/eth/fetcher"
- "github.com/ethereum/go-ethereum/eth/protocols/eth"
- "github.com/ethereum/go-ethereum/eth/protocols/snap"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/event"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/p2p"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/consensus"
+ "github.com/cryptoecc/ETH-ECC/consensus/beacon"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/core/forkid"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/eth/downloader"
+ "github.com/cryptoecc/ETH-ECC/eth/fetcher"
+ "github.com/cryptoecc/ETH-ECC/eth/protocols/eth"
+ "github.com/cryptoecc/ETH-ECC/eth/protocols/snap"
+ "github.com/cryptoecc/ETH-ECC/ethdb"
+ "github.com/cryptoecc/ETH-ECC/event"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/p2p"
+ "github.com/cryptoecc/ETH-ECC/params"
)
const (
diff --git a/eth/handler_eth.go b/eth/handler_eth.go
index 12e91ec7f5..6bbcac3965 100644
--- a/eth/handler_eth.go
+++ b/eth/handler_eth.go
@@ -22,11 +22,11 @@ import (
"sync/atomic"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/eth/protocols/eth"
- "github.com/ethereum/go-ethereum/p2p/enode"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/eth/protocols/eth"
+ "github.com/cryptoecc/ETH-ECC/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 9c2fcd36f7..de8910881c 100644
--- a/eth/handler_eth_test.go
+++ b/eth/handler_eth_test.go
@@ -24,21 +24,21 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/consensus"
- "github.com/ethereum/go-ethereum/consensus/ethash"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/forkid"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/core/vm"
- "github.com/ethereum/go-ethereum/eth/downloader"
- "github.com/ethereum/go-ethereum/eth/protocols/eth"
- "github.com/ethereum/go-ethereum/event"
- "github.com/ethereum/go-ethereum/p2p"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/consensus"
+ "github.com/cryptoecc/ETH-ECC/consensus/ethash"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/core/forkid"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/core/vm"
+ "github.com/cryptoecc/ETH-ECC/eth/downloader"
+ "github.com/cryptoecc/ETH-ECC/eth/protocols/eth"
+ "github.com/cryptoecc/ETH-ECC/event"
+ "github.com/cryptoecc/ETH-ECC/p2p"
+ "github.com/cryptoecc/ETH-ECC/p2p/enode"
+ "github.com/cryptoecc/ETH-ECC/params"
+ "github.com/cryptoecc/ETH-ECC/rlp"
)
// 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..98c297e764 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/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/eth/protocols/snap"
+ "github.com/cryptoecc/ETH-ECC/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 044130f40f..d28b0a71bf 100644
--- a/eth/handler_test.go
+++ b/eth/handler_test.go
@@ -21,18 +21,18 @@ import (
"sort"
"sync"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/consensus"
- "github.com/ethereum/go-ethereum/consensus/ethash"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/core/vm"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/eth/downloader"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/event"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/consensus"
+ "github.com/cryptoecc/ETH-ECC/consensus/ethash"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/core/vm"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/eth/downloader"
+ "github.com/cryptoecc/ETH-ECC/ethdb"
+ "github.com/cryptoecc/ETH-ECC/event"
+ "github.com/cryptoecc/ETH-ECC/params"
)
var (
diff --git a/eth/peer.go b/eth/peer.go
index 55e5f00462..a9fa828f85 100644
--- a/eth/peer.go
+++ b/eth/peer.go
@@ -19,8 +19,8 @@ package eth
import (
"math/big"
- "github.com/ethereum/go-ethereum/eth/protocols/eth"
- "github.com/ethereum/go-ethereum/eth/protocols/snap"
+ "github.com/cryptoecc/ETH-ECC/eth/protocols/eth"
+ "github.com/cryptoecc/ETH-ECC/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 b9cc1e03ac..3940f9064e 100644
--- a/eth/peerset.go
+++ b/eth/peerset.go
@@ -21,10 +21,10 @@ import (
"math/big"
"sync"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/eth/protocols/eth"
- "github.com/ethereum/go-ethereum/eth/protocols/snap"
- "github.com/ethereum/go-ethereum/p2p"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/eth/protocols/eth"
+ "github.com/cryptoecc/ETH-ECC/eth/protocols/snap"
+ "github.com/cryptoecc/ETH-ECC/p2p"
)
var (
diff --git a/eth/protocols/eth/broadcast.go b/eth/protocols/eth/broadcast.go
index 6fc15f136b..f0a5c993d4 100644
--- a/eth/protocols/eth/broadcast.go
+++ b/eth/protocols/eth/broadcast.go
@@ -19,8 +19,8 @@ package eth
import (
"math/big"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/types"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core/types"
)
const (
diff --git a/eth/protocols/eth/discovery.go b/eth/protocols/eth/discovery.go
index 03f2ea3cc2..0c2fcf2998 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/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/core/forkid"
+ "github.com/cryptoecc/ETH-ECC/p2p/enode"
+ "github.com/cryptoecc/ETH-ECC/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 65a935d555..67c86e19b9 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/cryptoecc/ETH-ECC/p2p"
)
var (
diff --git a/eth/protocols/eth/handler.go b/eth/protocols/eth/handler.go
index 3a0b21c30b..51ac87155a 100644
--- a/eth/protocols/eth/handler.go
+++ b/eth/protocols/eth/handler.go
@@ -21,14 +21,14 @@ import (
"math/big"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/metrics"
- "github.com/ethereum/go-ethereum/p2p"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/enr"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/metrics"
+ "github.com/cryptoecc/ETH-ECC/p2p"
+ "github.com/cryptoecc/ETH-ECC/p2p/enode"
+ "github.com/cryptoecc/ETH-ECC/p2p/enr"
+ "github.com/cryptoecc/ETH-ECC/params"
)
const (
diff --git a/eth/protocols/eth/handler_test.go b/eth/protocols/eth/handler_test.go
index ea2edc4a91..01b0d13776 100644
--- a/eth/protocols/eth/handler_test.go
+++ b/eth/protocols/eth/handler_test.go
@@ -22,18 +22,18 @@ import (
"math/rand"
"testing"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/consensus/ethash"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/state"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/core/vm"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/p2p"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/consensus/ethash"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/core/state"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/core/vm"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/ethdb"
+ "github.com/cryptoecc/ETH-ECC/p2p"
+ "github.com/cryptoecc/ETH-ECC/p2p/enode"
+ "github.com/cryptoecc/ETH-ECC/params"
)
var (
diff --git a/eth/protocols/eth/handlers.go b/eth/protocols/eth/handlers.go
index c8585dfdf8..8f39cb95bc 100644
--- a/eth/protocols/eth/handlers.go
+++ b/eth/protocols/eth/handlers.go
@@ -20,12 +20,12 @@ import (
"encoding/json"
"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/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/rlp"
+ "github.com/cryptoecc/ETH-ECC/trie"
)
// handleGetBlockHeaders66 is the eth/66 version of handleGetBlockHeaders
diff --git a/eth/protocols/eth/handshake.go b/eth/protocols/eth/handshake.go
index 9a2769fa0d..bb82e8ad6e 100644
--- a/eth/protocols/eth/handshake.go
+++ b/eth/protocols/eth/handshake.go
@@ -21,9 +21,9 @@ import (
"math/big"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/forkid"
- "github.com/ethereum/go-ethereum/p2p"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core/forkid"
+ "github.com/cryptoecc/ETH-ECC/p2p"
)
const (
diff --git a/eth/protocols/eth/handshake_test.go b/eth/protocols/eth/handshake_test.go
index 8cf5216cf4..82e4dab096 100644
--- a/eth/protocols/eth/handshake_test.go
+++ b/eth/protocols/eth/handshake_test.go
@@ -20,10 +20,10 @@ import (
"errors"
"testing"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/forkid"
- "github.com/ethereum/go-ethereum/p2p"
- "github.com/ethereum/go-ethereum/p2p/enode"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core/forkid"
+ "github.com/cryptoecc/ETH-ECC/p2p"
+ "github.com/cryptoecc/ETH-ECC/p2p/enode"
)
// Tests that handshake failures are detected and reported correctly.
diff --git a/eth/protocols/eth/peer.go b/eth/protocols/eth/peer.go
index a23726384d..59647bb8b0 100644
--- a/eth/protocols/eth/peer.go
+++ b/eth/protocols/eth/peer.go
@@ -21,11 +21,11 @@ import (
"math/rand"
"sync"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/p2p"
+ "github.com/cryptoecc/ETH-ECC/rlp"
mapset "github.com/deckarep/golang-set"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/p2p"
- "github.com/ethereum/go-ethereum/rlp"
)
const (
diff --git a/eth/protocols/eth/peer_test.go b/eth/protocols/eth/peer_test.go
index 0916ebee5d..bfdb46b6c8 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/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/p2p"
+ "github.com/cryptoecc/ETH-ECC/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 f6fac42780..a3c7ea3cb8 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/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core/forkid"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/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 a86fbb0a69..d5af2c2e28 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/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/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..6e1e82b5b9 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/cryptoecc/ETH-ECC/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..b80785a6b2 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/cryptoecc/ETH-ECC/rlp"
)
// enrEntry is the ENR entry which advertises `snap` protocol on the discovery.
diff --git a/eth/protocols/snap/handler.go b/eth/protocols/snap/handler.go
index 41380d96f5..e78dcb7f6a 100644
--- a/eth/protocols/snap/handler.go
+++ b/eth/protocols/snap/handler.go
@@ -21,15 +21,15 @@ import (
"fmt"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/light"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/metrics"
- "github.com/ethereum/go-ethereum/p2p"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/enr"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/light"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/metrics"
+ "github.com/cryptoecc/ETH-ECC/p2p"
+ "github.com/cryptoecc/ETH-ECC/p2p/enode"
+ "github.com/cryptoecc/ETH-ECC/p2p/enr"
+ "github.com/cryptoecc/ETH-ECC/trie"
)
const (
diff --git a/eth/protocols/snap/peer.go b/eth/protocols/snap/peer.go
index 235d499ffd..b4bcdd2a8e 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/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/p2p"
)
// Peer is a collection of relevant information we have about a `snap` peer.
diff --git a/eth/protocols/snap/protocol.go b/eth/protocols/snap/protocol.go
index 60a254f396..842159d6f6 100644
--- a/eth/protocols/snap/protocol.go
+++ b/eth/protocols/snap/protocol.go
@@ -20,9 +20,9 @@ import (
"errors"
"fmt"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/state/snapshot"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core/state/snapshot"
+ "github.com/cryptoecc/ETH-ECC/rlp"
)
// Constants to match up protocol versions and messages
diff --git a/eth/protocols/snap/range.go b/eth/protocols/snap/range.go
index 2627cb954b..5fec4376a9 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/cryptoecc/ETH-ECC/common"
"github.com/holiman/uint256"
)
diff --git a/eth/protocols/snap/range_test.go b/eth/protocols/snap/range_test.go
index c6dc8fb718..95cd4331ad 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/cryptoecc/ETH-ECC/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..f874efdab5 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/cryptoecc/ETH-ECC/common"
)
func hexToNibbles(s string) []byte {
diff --git a/eth/protocols/snap/sync.go b/eth/protocols/snap/sync.go
index deaa4456e0..3e40ef522d 100644
--- a/eth/protocols/snap/sync.go
+++ b/eth/protocols/snap/sync.go
@@ -27,20 +27,20 @@ import (
"sync"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/math"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/state"
- "github.com/ethereum/go-ethereum/core/state/snapshot"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/event"
- "github.com/ethereum/go-ethereum/light"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/p2p/msgrate"
- "github.com/ethereum/go-ethereum/rlp"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/math"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/core/state"
+ "github.com/cryptoecc/ETH-ECC/core/state/snapshot"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/ethdb"
+ "github.com/cryptoecc/ETH-ECC/event"
+ "github.com/cryptoecc/ETH-ECC/light"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/p2p/msgrate"
+ "github.com/cryptoecc/ETH-ECC/rlp"
+ "github.com/cryptoecc/ETH-ECC/trie"
"golang.org/x/crypto/sha3"
)
diff --git a/eth/protocols/snap/sync_test.go b/eth/protocols/snap/sync_test.go
index 4d9f631b5a..0e721d3766 100644
--- a/eth/protocols/snap/sync_test.go
+++ b/eth/protocols/snap/sync_test.go
@@ -27,15 +27,15 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/light"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/rlp"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/ethdb"
+ "github.com/cryptoecc/ETH-ECC/light"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/rlp"
+ "github.com/cryptoecc/ETH-ECC/trie"
"golang.org/x/crypto/sha3"
)
@@ -368,7 +368,8 @@ func createStorageRequestResponse(t *testPeer, root common.Hash, accounts []comm
return hashes, slots, proofs
}
-// the createStorageRequestResponseAlwaysProve tests a cornercase, where it always
+// the createStorageRequestResponseAlwaysProve tests a cornercase, where it always
+//
// supplies the proof for the last account, even if it is 'complete'.h
func createStorageRequestResponseAlwaysProve(t *testPeer, root common.Hash, accounts []common.Hash, bOrigin, bLimit []byte, max uint64) (hashes [][]common.Hash, slots [][][]byte, proofs [][]byte) {
var size uint64
diff --git a/eth/protocols/snap/tracker.go b/eth/protocols/snap/tracker.go
index 2cf59cc23a..37e567f86d 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/cryptoecc/ETH-ECC/p2p/tracker"
)
// requestTracker is a singleton tracker for request times.
diff --git a/eth/state_accessor.go b/eth/state_accessor.go
index 12dba8a0a9..7719f6893b 100644
--- a/eth/state_accessor.go
+++ b/eth/state_accessor.go
@@ -21,13 +21,13 @@ import (
"fmt"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/state"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/core/vm"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/core/state"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/core/vm"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/trie"
)
// StateAtBlock retrieves the state database associated with a certain block.
@@ -36,15 +36,15 @@ import (
// base layer statedb can be passed then it's regarded as the statedb of the
// parent block.
// Parameters:
-// - block: The block for which we want the state (== state at the stateRoot of the parent)
-// - reexec: The maximum number of blocks to reprocess trying to obtain the desired state
-// - base: If the caller is tracing multiple blocks, the caller can provide the parent state
-// continuously from the callsite.
-// - checklive: if true, then the live 'blockchain' state database is used. If the caller want to
-// perform Commit or other 'save-to-disk' changes, this should be set to false to avoid
-// storing trash persistently
-// - preferDisk: this arg can be used by the caller to signal that even though the 'base' is provided,
-// it would be preferable to start from a fresh state, if we have it on disk.
+// - block: The block for which we want the state (== state at the stateRoot of the parent)
+// - reexec: The maximum number of blocks to reprocess trying to obtain the desired state
+// - base: If the caller is tracing multiple blocks, the caller can provide the parent state
+// continuously from the callsite.
+// - checklive: if true, then the live 'blockchain' state database is used. If the caller want to
+// perform Commit or other 'save-to-disk' changes, this should be set to false to avoid
+// storing trash persistently
+// - preferDisk: this arg can be used by the caller to signal that even though the 'base' is provided,
+// it would be preferable to start from a fresh state, if we have it on disk.
func (eth *Ethereum) StateAtBlock(block *types.Block, reexec uint64, base *state.StateDB, checkLive bool, preferDisk bool) (statedb *state.StateDB, err error) {
var (
current *types.Block
diff --git a/eth/sync.go b/eth/sync.go
index 8fd86b578c..a5bdfe23a2 100644
--- a/eth/sync.go
+++ b/eth/sync.go
@@ -22,12 +22,12 @@ import (
"sync/atomic"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/eth/downloader"
- "github.com/ethereum/go-ethereum/eth/protocols/eth"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/eth/downloader"
+ "github.com/cryptoecc/ETH-ECC/eth/protocols/eth"
+ "github.com/cryptoecc/ETH-ECC/log"
)
const (
diff --git a/eth/sync_test.go b/eth/sync_test.go
index 0b9f9e1bba..0cc5de1ba6 100644
--- a/eth/sync_test.go
+++ b/eth/sync_test.go
@@ -21,11 +21,11 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/eth/downloader"
- "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/cryptoecc/ETH-ECC/eth/downloader"
+ "github.com/cryptoecc/ETH-ECC/eth/protocols/eth"
+ "github.com/cryptoecc/ETH-ECC/eth/protocols/snap"
+ "github.com/cryptoecc/ETH-ECC/p2p"
+ "github.com/cryptoecc/ETH-ECC/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 092950e78f..89d2bde579 100644
--- a/eth/tracers/api.go
+++ b/eth/tracers/api.go
@@ -28,21 +28,21 @@ 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/log"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/rlp"
- "github.com/ethereum/go-ethereum/rpc"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/hexutil"
+ "github.com/cryptoecc/ETH-ECC/consensus"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/core/state"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/core/vm"
+ "github.com/cryptoecc/ETH-ECC/eth/tracers/logger"
+ "github.com/cryptoecc/ETH-ECC/ethdb"
+ "github.com/cryptoecc/ETH-ECC/internal/ethapi"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/params"
+ "github.com/cryptoecc/ETH-ECC/rlp"
+ "github.com/cryptoecc/ETH-ECC/rpc"
)
const (
diff --git a/eth/tracers/api_test.go b/eth/tracers/api_test.go
index b75b679359..aaab91903f 100644
--- a/eth/tracers/api_test.go
+++ b/eth/tracers/api_test.go
@@ -29,21 +29,21 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/consensus"
- "github.com/ethereum/go-ethereum/consensus/ethash"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/state"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/core/vm"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/eth/tracers/logger"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/internal/ethapi"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/rpc"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/hexutil"
+ "github.com/cryptoecc/ETH-ECC/consensus"
+ "github.com/cryptoecc/ETH-ECC/consensus/ethash"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/core/state"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/core/vm"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/eth/tracers/logger"
+ "github.com/cryptoecc/ETH-ECC/ethdb"
+ "github.com/cryptoecc/ETH-ECC/internal/ethapi"
+ "github.com/cryptoecc/ETH-ECC/params"
+ "github.com/cryptoecc/ETH-ECC/rpc"
)
var (
diff --git a/eth/tracers/internal/tracetest/calltrace_test.go b/eth/tracers/internal/tracetest/calltrace_test.go
index d2c50656d9..853746dce6 100644
--- a/eth/tracers/internal/tracetest/calltrace_test.go
+++ b/eth/tracers/internal/tracetest/calltrace_test.go
@@ -26,22 +26,22 @@ import (
"testing"
"unicode"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/common/math"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/core/vm"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/eth/tracers"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/rlp"
- "github.com/ethereum/go-ethereum/tests"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/hexutil"
+ "github.com/cryptoecc/ETH-ECC/common/math"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/core/vm"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/eth/tracers"
+ "github.com/cryptoecc/ETH-ECC/params"
+ "github.com/cryptoecc/ETH-ECC/rlp"
+ "github.com/cryptoecc/ETH-ECC/tests"
// 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/cryptoecc/ETH-ECC/eth/tracers/js"
+ _ "github.com/cryptoecc/ETH-ECC/eth/tracers/native"
)
// To generate a new callTracer test, copy paste the makeTest method below into
diff --git a/eth/tracers/js/goja.go b/eth/tracers/js/goja.go
index 8238bb603d..64956fc91f 100644
--- a/eth/tracers/js/goja.go
+++ b/eth/tracers/js/goja.go
@@ -25,12 +25,12 @@ import (
"github.com/dop251/goja"
- "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"
- "github.com/ethereum/go-ethereum/eth/tracers"
- jsassets "github.com/ethereum/go-ethereum/eth/tracers/js/internal/tracers"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/hexutil"
+ "github.com/cryptoecc/ETH-ECC/core/vm"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/eth/tracers"
+ jsassets "github.com/cryptoecc/ETH-ECC/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 80a002d5af..9f1d6d34ce 100644
--- a/eth/tracers/js/tracer_test.go
+++ b/eth/tracers/js/tracer_test.go
@@ -24,11 +24,11 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/state"
- "github.com/ethereum/go-ethereum/core/vm"
- "github.com/ethereum/go-ethereum/eth/tracers"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core/state"
+ "github.com/cryptoecc/ETH-ECC/core/vm"
+ "github.com/cryptoecc/ETH-ECC/eth/tracers"
+ "github.com/cryptoecc/ETH-ECC/params"
)
type account struct{}
diff --git a/eth/tracers/logger/access_list_tracer.go b/eth/tracers/logger/access_list_tracer.go
index a8908094eb..12cee0f3e5 100644
--- a/eth/tracers/logger/access_list_tracer.go
+++ b/eth/tracers/logger/access_list_tracer.go
@@ -20,9 +20,9 @@ import (
"math/big"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/core/vm"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/core/vm"
)
// accessList is an accumulator for the set of accounts and storage slots an EVM
diff --git a/eth/tracers/logger/gen_structlog.go b/eth/tracers/logger/gen_structlog.go
index df06a9ee6b..3cede5ea49 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/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/hexutil"
+ "github.com/cryptoecc/ETH-ECC/common/math"
+ "github.com/cryptoecc/ETH-ECC/core/vm"
"github.com/holiman/uint256"
)
diff --git a/eth/tracers/logger/logger.go b/eth/tracers/logger/logger.go
index 07aa2f2b43..61289ba683 100644
--- a/eth/tracers/logger/logger.go
+++ b/eth/tracers/logger/logger.go
@@ -26,12 +26,12 @@ import (
"sync/atomic"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/common/math"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/core/vm"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/hexutil"
+ "github.com/cryptoecc/ETH-ECC/common/math"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/core/vm"
+ "github.com/cryptoecc/ETH-ECC/params"
"github.com/holiman/uint256"
)
diff --git a/eth/tracers/logger/logger_json.go b/eth/tracers/logger/logger_json.go
index 838d5017b8..3e398995d7 100644
--- a/eth/tracers/logger/logger_json.go
+++ b/eth/tracers/logger/logger_json.go
@@ -22,9 +22,9 @@ import (
"math/big"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/math"
- "github.com/ethereum/go-ethereum/core/vm"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/math"
+ "github.com/cryptoecc/ETH-ECC/core/vm"
)
type JSONLogger struct {
diff --git a/eth/tracers/logger/logger_test.go b/eth/tracers/logger/logger_test.go
index 1bc7456d31..7c3e329ba5 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/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core/state"
+ "github.com/cryptoecc/ETH-ECC/core/vm"
+ "github.com/cryptoecc/ETH-ECC/params"
)
type dummyContractRef struct {
@@ -76,7 +76,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/cryptoecc/ETH-ECC/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 34e608bfd6..d628beaca6 100644
--- a/eth/tracers/native/4byte.go
+++ b/eth/tracers/native/4byte.go
@@ -23,9 +23,9 @@ import (
"sync/atomic"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/vm"
- "github.com/ethereum/go-ethereum/eth/tracers"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core/vm"
+ "github.com/cryptoecc/ETH-ECC/eth/tracers"
)
func init() {
@@ -37,14 +37,15 @@ func init() {
// a reversed signature can be matched against the size of the data.
//
// Example:
-// > debug.traceTransaction( "0x214e597e35da083692f5386141e69f47e973b2c56e7a8073b1ea08fd7571e9de", {tracer: "4byteTracer"})
-// {
-// 0x27dc297e-128: 1,
-// 0x38cc4831-0: 2,
-// 0x524f3889-96: 1,
-// 0xadf59f99-288: 1,
-// 0xc281d19e-0: 1
-// }
+//
+// > debug.traceTransaction( "0x214e597e35da083692f5386141e69f47e973b2c56e7a8073b1ea08fd7571e9de", {tracer: "4byteTracer"})
+// {
+// 0x27dc297e-128: 1,
+// 0x38cc4831-0: 2,
+// 0x524f3889-96: 1,
+// 0xadf59f99-288: 1,
+// 0xc281d19e-0: 1
+// }
type fourByteTracer struct {
env *vm.EVM
ids map[string]int // ids aggregates the 4byte ids found
diff --git a/eth/tracers/native/call.go b/eth/tracers/native/call.go
index 7af0e658a8..9d83d7577c 100644
--- a/eth/tracers/native/call.go
+++ b/eth/tracers/native/call.go
@@ -25,9 +25,9 @@ import (
"sync/atomic"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/vm"
- "github.com/ethereum/go-ethereum/eth/tracers"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core/vm"
+ "github.com/cryptoecc/ETH-ECC/eth/tracers"
)
func init() {
diff --git a/eth/tracers/native/noop.go b/eth/tracers/native/noop.go
index c252b2408f..9d3b44656c 100644
--- a/eth/tracers/native/noop.go
+++ b/eth/tracers/native/noop.go
@@ -21,9 +21,9 @@ import (
"math/big"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/vm"
- "github.com/ethereum/go-ethereum/eth/tracers"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core/vm"
+ "github.com/cryptoecc/ETH-ECC/eth/tracers"
)
func init() {
diff --git a/eth/tracers/native/prestate.go b/eth/tracers/native/prestate.go
index b513f383b9..f6ee520e12 100644
--- a/eth/tracers/native/prestate.go
+++ b/eth/tracers/native/prestate.go
@@ -22,11 +22,11 @@ import (
"sync/atomic"
"time"
- "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"
- "github.com/ethereum/go-ethereum/eth/tracers"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/hexutil"
+ "github.com/cryptoecc/ETH-ECC/core/vm"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/eth/tracers"
)
func init() {
diff --git a/eth/tracers/native/revertreason.go b/eth/tracers/native/revertreason.go
index d09b861009..af40f46b4f 100644
--- a/eth/tracers/native/revertreason.go
+++ b/eth/tracers/native/revertreason.go
@@ -23,11 +23,11 @@ import (
"sync/atomic"
"time"
- "github.com/ethereum/go-ethereum/accounts/abi"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/vm"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/eth/tracers"
+ "github.com/cryptoecc/ETH-ECC/accounts/abi"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core/vm"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/eth/tracers"
)
func init() {
diff --git a/eth/tracers/native/tracer.go b/eth/tracers/native/tracer.go
index 9587caf19f..f5f8500049 100644
--- a/eth/tracers/native/tracer.go
+++ b/eth/tracers/native/tracer.go
@@ -27,9 +27,11 @@ Aside from implementing the tracer, it also needs to register itself, using the
Example:
```golang
-func init() {
- register("noopTracerNative", newNoopTracer)
-}
+
+ func init() {
+ register("noopTracerNative", newNoopTracer)
+ }
+
```
*/
package native
@@ -38,7 +40,7 @@ import (
"encoding/json"
"errors"
- "github.com/ethereum/go-ethereum/eth/tracers"
+ "github.com/cryptoecc/ETH-ECC/eth/tracers"
)
// init registers itself this packages as a lookup for tracers.
diff --git a/eth/tracers/tracers.go b/eth/tracers/tracers.go
index 3d2d1256c0..01929bb149 100644
--- a/eth/tracers/tracers.go
+++ b/eth/tracers/tracers.go
@@ -21,8 +21,8 @@ import (
"encoding/json"
"errors"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/vm"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core/vm"
)
// Context contains some contextual infos for a transaction execution that is not
diff --git a/eth/tracers/tracers_test.go b/eth/tracers/tracers_test.go
index 12e01abae4..d9a8a2ea0a 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/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/core/vm"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/eth/tracers/logger"
+ "github.com/cryptoecc/ETH-ECC/params"
+ "github.com/cryptoecc/ETH-ECC/tests"
)
func BenchmarkTransactionTrace(b *testing.B) {
diff --git a/ethclient/ethclient.go b/ethclient/ethclient.go
index 766efcf571..03dac51771 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"
+ ethereum "github.com/cryptoecc/ETH-ECC"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/hexutil"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/rpc"
)
// Client defines typed wrappers for the Ethereum RPC API.
diff --git a/ethclient/ethclient_test.go b/ethclient/ethclient_test.go
index f2f4a5765d..b418b276a0 100644
--- a/ethclient/ethclient_test.go
+++ b/ethclient/ethclient_test.go
@@ -26,18 +26,18 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/consensus/ethash"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/eth"
- "github.com/ethereum/go-ethereum/eth/ethconfig"
- "github.com/ethereum/go-ethereum/node"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/rpc"
+ ethereum "github.com/cryptoecc/ETH-ECC"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/consensus/ethash"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/eth"
+ "github.com/cryptoecc/ETH-ECC/eth/ethconfig"
+ "github.com/cryptoecc/ETH-ECC/node"
+ "github.com/cryptoecc/ETH-ECC/params"
+ "github.com/cryptoecc/ETH-ECC/rpc"
)
// Verify that Client implements the ethereum interfaces.
diff --git a/ethclient/gethclient/gethclient.go b/ethclient/gethclient/gethclient.go
index edc441bd1e..a8a0f90b40 100644
--- a/ethclient/gethclient/gethclient.go
+++ b/ethclient/gethclient/gethclient.go
@@ -23,12 +23,12 @@ import (
"runtime"
"runtime/debug"
- "github.com/ethereum/go-ethereum"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/p2p"
- "github.com/ethereum/go-ethereum/rpc"
+ ethereum "github.com/cryptoecc/ETH-ECC"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/hexutil"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/p2p"
+ "github.com/cryptoecc/ETH-ECC/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 a0f4eaaf5d..a17fdb8a39 100644
--- a/ethclient/gethclient/gethclient_test.go
+++ b/ethclient/gethclient/gethclient_test.go
@@ -22,20 +22,20 @@ import (
"math/big"
"testing"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/consensus/ethash"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/eth"
+ "github.com/cryptoecc/ETH-ECC/eth/ethconfig"
+ "github.com/cryptoecc/ETH-ECC/eth/filters"
+ "github.com/cryptoecc/ETH-ECC/ethclient"
+ "github.com/cryptoecc/ETH-ECC/node"
+ "github.com/cryptoecc/ETH-ECC/params"
+ "github.com/cryptoecc/ETH-ECC/rpc"
"github.com/ethereum/go-ethereum"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/consensus/ethash"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/eth"
- "github.com/ethereum/go-ethereum/eth/ethconfig"
- "github.com/ethereum/go-ethereum/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"
)
var (
diff --git a/ethclient/signer.go b/ethclient/signer.go
index f827d4eb56..5c552f9008 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/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core/types"
)
// senderFromServer is a types.Signer that remembers the sender address returned by the RPC
diff --git a/ethdb/dbtest/testsuite.go b/ethdb/dbtest/testsuite.go
index 6b206af48d..e29fcf140e 100644
--- a/ethdb/dbtest/testsuite.go
+++ b/ethdb/dbtest/testsuite.go
@@ -22,7 +22,7 @@ import (
"sort"
"testing"
- "github.com/ethereum/go-ethereum/ethdb"
+ "github.com/cryptoecc/ETH-ECC/ethdb"
)
// TestDatabaseSuite runs a suite of tests against a KeyValueStore database
diff --git a/ethdb/leveldb/leveldb.go b/ethdb/leveldb/leveldb.go
index 15bd4e6eb3..4b2484f346 100644
--- a/ethdb/leveldb/leveldb.go
+++ b/ethdb/leveldb/leveldb.go
@@ -27,10 +27,10 @@ import (
"sync"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/metrics"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/ethdb"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/metrics"
"github.com/syndtr/goleveldb/leveldb"
"github.com/syndtr/goleveldb/leveldb/errors"
"github.com/syndtr/goleveldb/leveldb/filter"
@@ -266,13 +266,14 @@ func (db *Database) Path() string {
// the metrics subsystem.
//
// This is how a LevelDB stats table looks like (currently):
-// Compactions
-// Level | Tables | Size(MB) | Time(sec) | Read(MB) | Write(MB)
-// -------+------------+---------------+---------------+---------------+---------------
-// 0 | 0 | 0.00000 | 1.27969 | 0.00000 | 12.31098
-// 1 | 85 | 109.27913 | 28.09293 | 213.92493 | 214.26294
-// 2 | 523 | 1000.37159 | 7.26059 | 66.86342 | 66.77884
-// 3 | 570 | 1113.18458 | 0.00000 | 0.00000 | 0.00000
+//
+// Compactions
+// Level | Tables | Size(MB) | Time(sec) | Read(MB) | Write(MB)
+// -------+------------+---------------+---------------+---------------+---------------
+// 0 | 0 | 0.00000 | 1.27969 | 0.00000 | 12.31098
+// 1 | 85 | 109.27913 | 28.09293 | 213.92493 | 214.26294
+// 2 | 523 | 1000.37159 | 7.26059 | 66.86342 | 66.77884
+// 3 | 570 | 1113.18458 | 0.00000 | 0.00000 | 0.00000
//
// This is how the write delay look like (currently):
// DelayN:5 Delay:406.604657ms Paused: false
diff --git a/ethdb/leveldb/leveldb_test.go b/ethdb/leveldb/leveldb_test.go
index 421d9b4693..4c55502ba2 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/cryptoecc/ETH-ECC/ethdb"
+ "github.com/cryptoecc/ETH-ECC/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 7e4fd7e5e7..d120fa986e 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/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/ethdb"
)
var (
diff --git a/ethdb/memorydb/memorydb_test.go b/ethdb/memorydb/memorydb_test.go
index dba18ad306..80439e0df0 100644
--- a/ethdb/memorydb/memorydb_test.go
+++ b/ethdb/memorydb/memorydb_test.go
@@ -19,8 +19,8 @@ package memorydb
import (
"testing"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/ethdb/dbtest"
+ "github.com/cryptoecc/ETH-ECC/ethdb"
+ "github.com/cryptoecc/ETH-ECC/ethdb/dbtest"
)
func TestMemoryDB(t *testing.T) {
diff --git a/ethdb/remotedb/remotedb.go b/ethdb/remotedb/remotedb.go
index 59a570bb5e..05ad48205b 100644
--- a/ethdb/remotedb/remotedb.go
+++ b/ethdb/remotedb/remotedb.go
@@ -25,9 +25,9 @@ import (
"errors"
"strings"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/rpc"
+ "github.com/cryptoecc/ETH-ECC/common/hexutil"
+ "github.com/cryptoecc/ETH-ECC/ethdb"
+ "github.com/cryptoecc/ETH-ECC/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 5d60efab2e..b74b46eb06 100644
--- a/ethstats/ethstats.go
+++ b/ethstats/ethstats.go
@@ -30,20 +30,20 @@ import (
"sync"
"time"
- "github.com/ethereum/go-ethereum"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/mclock"
- "github.com/ethereum/go-ethereum/consensus"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/types"
- ethproto "github.com/ethereum/go-ethereum/eth/protocols/eth"
- "github.com/ethereum/go-ethereum/event"
- "github.com/ethereum/go-ethereum/les"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/miner"
- "github.com/ethereum/go-ethereum/node"
- "github.com/ethereum/go-ethereum/p2p"
- "github.com/ethereum/go-ethereum/rpc"
+ ethereum "github.com/cryptoecc/ETH-ECC"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/mclock"
+ "github.com/cryptoecc/ETH-ECC/consensus"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ ethproto "github.com/cryptoecc/ETH-ECC/eth/protocols/eth"
+ "github.com/cryptoecc/ETH-ECC/event"
+ "github.com/cryptoecc/ETH-ECC/les"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/miner"
+ "github.com/cryptoecc/ETH-ECC/node"
+ "github.com/cryptoecc/ETH-ECC/p2p"
+ "github.com/cryptoecc/ETH-ECC/rpc"
"github.com/gorilla/websocket"
)
@@ -102,13 +102,14 @@ type Service struct {
// websocket.
//
// From Gorilla websocket docs:
-// Connections support one concurrent reader and one concurrent writer.
-// Applications are responsible for ensuring that no more than one goroutine calls the write methods
-// - NextWriter, SetWriteDeadline, WriteMessage, WriteJSON, EnableWriteCompression, SetCompressionLevel
-// concurrently and that no more than one goroutine calls the read methods
-// - NextReader, SetReadDeadline, ReadMessage, ReadJSON, SetPongHandler, SetPingHandler
-// concurrently.
-// The Close and WriteControl methods can be called concurrently with all other methods.
+//
+// Connections support one concurrent reader and one concurrent writer.
+// Applications are responsible for ensuring that no more than one goroutine calls the write methods
+// - NextWriter, SetWriteDeadline, WriteMessage, WriteJSON, EnableWriteCompression, SetCompressionLevel
+// concurrently and that no more than one goroutine calls the read methods
+// - NextReader, SetReadDeadline, ReadMessage, ReadJSON, SetPongHandler, SetPingHandler
+// concurrently.
+// The Close and WriteControl methods can be called concurrently with all other methods.
type connWrapper struct {
conn *websocket.Conn
diff --git a/event/example_feed_test.go b/event/example_feed_test.go
index 9b5ad50df5..297d24a9a0 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/cryptoecc/ETH-ECC/event"
)
func ExampleFeed_acknowledgedEvents() {
diff --git a/event/example_scope_test.go b/event/example_scope_test.go
index 825a8deeac..5f20f131d3 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/cryptoecc/ETH-ECC/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..47c78a3337 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/cryptoecc/ETH-ECC/event"
)
func ExampleNewSubscription() {
diff --git a/event/subscription.go b/event/subscription.go
index 6c62874719..0937b083cc 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/cryptoecc/ETH-ECC/common/mclock"
)
// Subscription represents a stream of events. The carrier of the events is typically a
diff --git a/go.mod b/go.mod
index 4a769c7a2d..20e19f1435 100644
--- a/go.mod
+++ b/go.mod
@@ -1,4 +1,4 @@
-module github.com/ethereum/go-ethereum
+module github.com/cryptoecc/ETH-ECC
go 1.17
diff --git a/graphql/graphql.go b/graphql/graphql.go
index 66c25841db..1ca78a0874 100644
--- a/graphql/graphql.go
+++ b/graphql/graphql.go
@@ -25,17 +25,17 @@ import (
"sort"
"strconv"
- "github.com/ethereum/go-ethereum"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/common/math"
- "github.com/ethereum/go-ethereum/consensus/misc"
- "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"
+ ethereum "github.com/cryptoecc/ETH-ECC"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/hexutil"
+ "github.com/cryptoecc/ETH-ECC/common/math"
+ "github.com/cryptoecc/ETH-ECC/consensus/misc"
+ "github.com/cryptoecc/ETH-ECC/core/state"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/eth/filters"
+ "github.com/cryptoecc/ETH-ECC/internal/ethapi"
+ "github.com/cryptoecc/ETH-ECC/rlp"
+ "github.com/cryptoecc/ETH-ECC/rpc"
)
var (
diff --git a/graphql/graphql_test.go b/graphql/graphql_test.go
index d55f4e0634..1c75fc7169 100644
--- a/graphql/graphql_test.go
+++ b/graphql/graphql_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/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/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/consensus/ethash"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/core/vm"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/eth"
+ "github.com/cryptoecc/ETH-ECC/eth/ethconfig"
+ "github.com/cryptoecc/ETH-ECC/eth/filters"
+ "github.com/cryptoecc/ETH-ECC/node"
+ "github.com/cryptoecc/ETH-ECC/params"
"github.com/stretchr/testify/assert"
)
diff --git a/graphql/service.go b/graphql/service.go
index 019026bc7e..3cfefc0c5e 100644
--- a/graphql/service.go
+++ b/graphql/service.go
@@ -20,9 +20,9 @@ import (
"encoding/json"
"net/http"
- "github.com/ethereum/go-ethereum/eth/filters"
- "github.com/ethereum/go-ethereum/internal/ethapi"
- "github.com/ethereum/go-ethereum/node"
+ "github.com/cryptoecc/ETH-ECC/eth/filters"
+ "github.com/cryptoecc/ETH-ECC/internal/ethapi"
+ "github.com/cryptoecc/ETH-ECC/node"
"github.com/graph-gophers/graphql-go"
)
diff --git a/interfaces.go b/interfaces.go
index eb9af60076..f54f41b39b 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/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core/types"
)
// NotFound is returned by API methods if the requested item does not exist.
diff --git a/internal/debug/api.go b/internal/debug/api.go
index 42d0fa15ed..3a2ac831ea 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/cryptoecc/ETH-ECC/log"
"github.com/hashicorp/go-bexpr"
)
diff --git a/internal/debug/flags.go b/internal/debug/flags.go
index 2082d60df5..4d7f285641 100644
--- a/internal/debug/flags.go
+++ b/internal/debug/flags.go
@@ -24,10 +24,10 @@ import (
"os"
"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/cryptoecc/ETH-ECC/internal/flags"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/metrics"
+ "github.com/cryptoecc/ETH-ECC/metrics/exp"
"github.com/fjl/memsize/memsizeui"
"github.com/mattn/go-colorable"
"github.com/mattn/go-isatty"
diff --git a/internal/debug/trace.go b/internal/debug/trace.go
index a273e4a9db..ade4e304cd 100644
--- a/internal/debug/trace.go
+++ b/internal/debug/trace.go
@@ -24,7 +24,7 @@ import (
"os"
"runtime/trace"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/cryptoecc/ETH-ECC/log"
)
// StartGoTrace turns on tracing, writing to the given file.
diff --git a/internal/ethapi/addrlock.go b/internal/ethapi/addrlock.go
index 61ddff688c..21f544be6e 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/cryptoecc/ETH-ECC/common"
)
type AddrLocker struct {
diff --git a/internal/ethapi/api.go b/internal/ethapi/api.go
index 89c95c5074..9d7593ed50 100644
--- a/internal/ethapi/api.go
+++ b/internal/ethapi/api.go
@@ -24,27 +24,27 @@ import (
"strings"
"time"
+ "github.com/cryptoecc/ETH-ECC/accounts"
+ "github.com/cryptoecc/ETH-ECC/accounts/abi"
+ "github.com/cryptoecc/ETH-ECC/accounts/keystore"
+ "github.com/cryptoecc/ETH-ECC/accounts/scwallet"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/hexutil"
+ "github.com/cryptoecc/ETH-ECC/common/math"
+ "github.com/cryptoecc/ETH-ECC/consensus/ethash"
+ "github.com/cryptoecc/ETH-ECC/consensus/misc"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/core/state"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/core/vm"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/eth/tracers/logger"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/p2p"
+ "github.com/cryptoecc/ETH-ECC/params"
+ "github.com/cryptoecc/ETH-ECC/rlp"
+ "github.com/cryptoecc/ETH-ECC/rpc"
"github.com/davecgh/go-spew/spew"
- "github.com/ethereum/go-ethereum/accounts"
- "github.com/ethereum/go-ethereum/accounts/abi"
- "github.com/ethereum/go-ethereum/accounts/keystore"
- "github.com/ethereum/go-ethereum/accounts/scwallet"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/common/math"
- "github.com/ethereum/go-ethereum/consensus/ethash"
- "github.com/ethereum/go-ethereum/consensus/misc"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/state"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/core/vm"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/eth/tracers/logger"
- "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/tyler-smith/go-bip39"
)
@@ -512,7 +512,7 @@ func (s *PersonalAccountAPI) SignTransaction(ctx context.Context, args Transacti
//
// The key used to calculate the signature is decrypted with the given password.
//
-// https://github.com/ethereum/go-ethereum/wiki/Management-APIs#personal_sign
+// https://github.com/cryptoecc/ETH-ECC/wiki/Management-APIs#personal_sign
func (s *PersonalAccountAPI) Sign(ctx context.Context, data hexutil.Bytes, addr common.Address, passwd string) (hexutil.Bytes, error) {
// Look up the wallet containing the requested signer
account := accounts.Account{Address: addr}
@@ -540,7 +540,7 @@ func (s *PersonalAccountAPI) Sign(ctx context.Context, data hexutil.Bytes, addr
// Note, the signature must conform to the secp256k1 curve R, S and V values, where
// the V value must be 27 or 28 for legacy reasons.
//
-// https://github.com/ethereum/go-ethereum/wiki/Management-APIs#personal_ecRecover
+// https://github.com/cryptoecc/ETH-ECC/wiki/Management-APIs#personal_ecRecover
func (s *PersonalAccountAPI) EcRecover(ctx context.Context, data, sig hexutil.Bytes) (common.Address, error) {
if len(sig) != crypto.SignatureLength {
return common.Address{}, fmt.Errorf("signature must be %d bytes long", crypto.SignatureLength)
@@ -731,10 +731,10 @@ func (s *BlockChainAPI) GetHeaderByHash(ctx context.Context, hash common.Hash) m
}
// GetBlockByNumber returns the requested canonical block.
-// * When blockNr is -1 the chain head is returned.
-// * When blockNr is -2 the pending chain head is returned.
-// * When fullTx is true all transactions in the block are returned, otherwise
-// only the transaction hash is returned.
+// - When blockNr is -1 the chain head is returned.
+// - When blockNr is -2 the pending chain head is returned.
+// - When fullTx is true all transactions in the block are returned, otherwise
+// only the transaction hash is returned.
func (s *BlockChainAPI) GetBlockByNumber(ctx context.Context, number rpc.BlockNumber, fullTx bool) (map[string]interface{}, error) {
block, err := s.b.BlockByNumber(ctx, number)
if block != nil && err == nil {
diff --git a/internal/ethapi/backend.go b/internal/ethapi/backend.go
index 5b4ceb6310..9c15c86441 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/state"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/core/vm"
- "github.com/ethereum/go-ethereum/eth/filters"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/event"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/rpc"
+ ethereum "github.com/cryptoecc/ETH-ECC"
+ "github.com/cryptoecc/ETH-ECC/accounts"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/consensus"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/core/state"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/core/vm"
+ "github.com/cryptoecc/ETH-ECC/eth/filters"
+ "github.com/cryptoecc/ETH-ECC/ethdb"
+ "github.com/cryptoecc/ETH-ECC/event"
+ "github.com/cryptoecc/ETH-ECC/params"
+ "github.com/cryptoecc/ETH-ECC/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..832802513e 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/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/hexutil"
)
// DbGet returns the raw value of a key stored in the database.
diff --git a/internal/ethapi/transaction_args.go b/internal/ethapi/transaction_args.go
index e07248db5d..09b54dae26 100644
--- a/internal/ethapi/transaction_args.go
+++ b/internal/ethapi/transaction_args.go
@@ -23,12 +23,12 @@ import (
"fmt"
"math/big"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/common/math"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/rpc"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/hexutil"
+ "github.com/cryptoecc/ETH-ECC/common/math"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/rpc"
)
// TransactionArgs represents the arguments to construct a new transaction
@@ -45,7 +45,7 @@ type TransactionArgs struct {
// We accept "data" and "input" for backwards-compatibility reasons.
// "input" is the newer name and should be preferred by clients.
- // Issue detail: https://github.com/ethereum/go-ethereum/issues/15628
+ // Issue detail: https://github.com/cryptoecc/ETH-ECC/issues/15628
Data *hexutil.Bytes `json:"data"`
Input *hexutil.Bytes `json:"input"`
@@ -138,7 +138,7 @@ func (args *TransactionArgs) setFeeDefaults(ctx context.Context, b Backend) erro
}
// 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 for more information.
+ // https://github.com/cryptoecc/ETH-ECC/pull/23274 for more information.
eip1559ParamsSet := args.MaxFeePerGas != nil && args.MaxPriorityFeePerGas != nil
if (args.GasPrice != nil && !eip1559ParamsSet) || (args.GasPrice == nil && eip1559ParamsSet) {
// 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 28dc561c36..fbf2d1b9d6 100644
--- a/internal/ethapi/transaction_args_test.go
+++ b/internal/ethapi/transaction_args_test.go
@@ -24,20 +24,20 @@ import (
"testing"
"time"
+ "github.com/cryptoecc/ETH-ECC/accounts"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/hexutil"
+ "github.com/cryptoecc/ETH-ECC/consensus"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/core/bloombits"
+ "github.com/cryptoecc/ETH-ECC/core/state"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/core/vm"
+ "github.com/cryptoecc/ETH-ECC/ethdb"
+ "github.com/cryptoecc/ETH-ECC/event"
+ "github.com/cryptoecc/ETH-ECC/params"
+ "github.com/cryptoecc/ETH-ECC/rpc"
"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/bloombits"
- "github.com/ethereum/go-ethereum/core/state"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/core/vm"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/event"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/rpc"
)
// 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 0ae2c6a512..01fd9218d9 100644
--- a/internal/flags/flags.go
+++ b/internal/flags/flags.go
@@ -26,7 +26,7 @@ import (
"path"
"strings"
- "github.com/ethereum/go-ethereum/common/math"
+ "github.com/cryptoecc/ETH-ECC/common/math"
"github.com/urfave/cli/v2"
)
diff --git a/internal/flags/helpers.go b/internal/flags/helpers.go
index 4bcdc816fe..8f9c6ce750 100644
--- a/internal/flags/helpers.go
+++ b/internal/flags/helpers.go
@@ -20,7 +20,7 @@ import (
"fmt"
"strings"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/cryptoecc/ETH-ECC/params"
"github.com/urfave/cli/v2"
)
@@ -54,11 +54,11 @@ var migrationApplied = map[*cli.Command]struct{}{}
//
// Example:
//
-// geth account new --keystore /tmp/mykeystore --lightkdf
+// geth account new --keystore /tmp/mykeystore --lightkdf
//
// is equivalent after calling this method with:
//
-// geth --keystore /tmp/mykeystore --lightkdf account new
+// geth --keystore /tmp/mykeystore --lightkdf account new
//
// i.e. in the subcommand Action function of 'account new', ctx.Bool("lightkdf)
// will return true even if --lightkdf is set as a global option.
diff --git a/internal/guide/guide_test.go b/internal/guide/guide_test.go
index cdf0ec4d26..e0eb0c3f01 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/cryptoecc/ETH-ECC/accounts/keystore"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/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 a291218ec5..9e047765b9 100644
--- a/internal/jsre/deps/web3.js
+++ b/internal/jsre/deps/web3.js
@@ -5880,7 +5880,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/cryptoecc/ETH-ECC/blob/swarm/internal/web3ext/web3ext.go#L33
*/
"use strict";
diff --git a/internal/jsre/jsre.go b/internal/jsre/jsre.go
index f6e21d2ef7..db5e7ca807 100644
--- a/internal/jsre/jsre.go
+++ b/internal/jsre/jsre.go
@@ -27,8 +27,8 @@ import (
"os"
"time"
+ "github.com/cryptoecc/ETH-ECC/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..43c3c4e8b1 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/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/ethdb"
+ "github.com/cryptoecc/ETH-ECC/log"
)
// ShutdownTracker is a service that reports previous unclean shutdowns
diff --git a/internal/testlog/testlog.go b/internal/testlog/testlog.go
index 684339f16d..23141f6ed3 100644
--- a/internal/testlog/testlog.go
+++ b/internal/testlog/testlog.go
@@ -21,7 +21,7 @@ import (
"sync"
"testing"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/cryptoecc/ETH-ECC/log"
)
// Handler returns a log handler which logs to the unit test log of t.
diff --git a/les/api.go b/les/api.go
index dc86393817..f75837453e 100644
--- a/les/api.go
+++ b/les/api.go
@@ -21,10 +21,10 @@ import (
"fmt"
"time"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/common/mclock"
- vfs "github.com/ethereum/go-ethereum/les/vflux/server"
- "github.com/ethereum/go-ethereum/p2p/enode"
+ "github.com/cryptoecc/ETH-ECC/common/hexutil"
+ "github.com/cryptoecc/ETH-ECC/common/mclock"
+ vfs "github.com/cryptoecc/ETH-ECC/les/vflux/server"
+ "github.com/cryptoecc/ETH-ECC/p2p/enode"
)
var (
@@ -366,10 +366,11 @@ func NewLightAPI(backend *lesCommons) *LightAPI {
// LatestCheckpoint returns the latest local checkpoint package.
//
// The checkpoint package consists of 4 strings:
-// result[0], hex encoded latest section index
-// result[1], 32 bytes hex encoded latest section head hash
-// result[2], 32 bytes hex encoded latest section canonical hash trie root hash
-// result[3], 32 bytes hex encoded latest section bloom trie root hash
+//
+// result[0], hex encoded latest section index
+// result[1], 32 bytes hex encoded latest section head hash
+// result[2], 32 bytes hex encoded latest section canonical hash trie root hash
+// result[3], 32 bytes hex encoded latest section bloom trie root hash
func (api *LightAPI) LatestCheckpoint() ([4]string, error) {
var res [4]string
cp := api.backend.latestLocalCheckpoint()
@@ -384,9 +385,10 @@ func (api *LightAPI) LatestCheckpoint() ([4]string, error) {
// GetLocalCheckpoint returns the specific local checkpoint package.
//
// The checkpoint package consists of 3 strings:
-// result[0], 32 bytes hex encoded latest section head hash
-// result[1], 32 bytes hex encoded latest section canonical hash trie root hash
-// result[2], 32 bytes hex encoded latest section bloom trie root hash
+//
+// result[0], 32 bytes hex encoded latest section head hash
+// result[1], 32 bytes hex encoded latest section canonical hash trie root hash
+// result[2], 32 bytes hex encoded latest section bloom trie root hash
func (api *LightAPI) GetCheckpoint(index uint64) ([3]string, error) {
var res [3]string
cp := api.backend.localCheckpoint(index)
diff --git a/les/api_backend.go b/les/api_backend.go
index 5b4213134b..b11ecf51ea 100644
--- a/les/api_backend.go
+++ b/les/api_backend.go
@@ -22,22 +22,22 @@ import (
"math/big"
"time"
- "github.com/ethereum/go-ethereum"
- "github.com/ethereum/go-ethereum/accounts"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/consensus"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/bloombits"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/state"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/core/vm"
- "github.com/ethereum/go-ethereum/eth/gasprice"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/event"
- "github.com/ethereum/go-ethereum/light"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/rpc"
+ ethereum "github.com/cryptoecc/ETH-ECC"
+ "github.com/cryptoecc/ETH-ECC/accounts"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/consensus"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/core/bloombits"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/core/state"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/core/vm"
+ "github.com/cryptoecc/ETH-ECC/eth/gasprice"
+ "github.com/cryptoecc/ETH-ECC/ethdb"
+ "github.com/cryptoecc/ETH-ECC/event"
+ "github.com/cryptoecc/ETH-ECC/light"
+ "github.com/cryptoecc/ETH-ECC/params"
+ "github.com/cryptoecc/ETH-ECC/rpc"
)
type LesApiBackend struct {
diff --git a/les/api_test.go b/les/api_test.go
index 3db1c5fd5e..77e3f3195b 100644
--- a/les/api_test.go
+++ b/les/api_test.go
@@ -27,20 +27,20 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/consensus/ethash"
- "github.com/ethereum/go-ethereum/eth"
- ethdownloader "github.com/ethereum/go-ethereum/eth/downloader"
- "github.com/ethereum/go-ethereum/eth/ethconfig"
- "github.com/ethereum/go-ethereum/les/downloader"
- "github.com/ethereum/go-ethereum/les/flowcontrol"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/node"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/simulations"
- "github.com/ethereum/go-ethereum/p2p/simulations/adapters"
- "github.com/ethereum/go-ethereum/rpc"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/hexutil"
+ "github.com/cryptoecc/ETH-ECC/consensus/ethash"
+ "github.com/cryptoecc/ETH-ECC/eth"
+ ethdownloader "github.com/cryptoecc/ETH-ECC/eth/downloader"
+ "github.com/cryptoecc/ETH-ECC/eth/ethconfig"
+ "github.com/cryptoecc/ETH-ECC/les/downloader"
+ "github.com/cryptoecc/ETH-ECC/les/flowcontrol"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/node"
+ "github.com/cryptoecc/ETH-ECC/p2p/enode"
+ "github.com/cryptoecc/ETH-ECC/p2p/simulations"
+ "github.com/cryptoecc/ETH-ECC/p2p/simulations/adapters"
+ "github.com/cryptoecc/ETH-ECC/rpc"
"github.com/mattn/go-colorable"
)
diff --git a/les/benchmark.go b/les/benchmark.go
index 757822a6b3..5c2f2c37f3 100644
--- a/les/benchmark.go
+++ b/les/benchmark.go
@@ -24,17 +24,17 @@ import (
"sync"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/mclock"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/les/flowcontrol"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/p2p"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/mclock"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/les/flowcontrol"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/p2p"
+ "github.com/cryptoecc/ETH-ECC/p2p/enode"
+ "github.com/cryptoecc/ETH-ECC/params"
+ "github.com/cryptoecc/ETH-ECC/rlp"
)
// requestBenchmark is an interface for different randomized request generators
diff --git a/les/bloombits.go b/les/bloombits.go
index a98524ce2e..e8981ad873 100644
--- a/les/bloombits.go
+++ b/les/bloombits.go
@@ -19,8 +19,8 @@ package les
import (
"time"
- "github.com/ethereum/go-ethereum/common/bitutil"
- "github.com/ethereum/go-ethereum/light"
+ "github.com/cryptoecc/ETH-ECC/common/bitutil"
+ "github.com/cryptoecc/ETH-ECC/light"
)
const (
diff --git a/les/catalyst/api.go b/les/catalyst/api.go
index 983fc7bff0..e152f46ba6 100644
--- a/les/catalyst/api.go
+++ b/les/catalyst/api.go
@@ -21,12 +21,12 @@ import (
"errors"
"fmt"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/beacon"
- "github.com/ethereum/go-ethereum/les"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/node"
- "github.com/ethereum/go-ethereum/rpc"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core/beacon"
+ "github.com/cryptoecc/ETH-ECC/les"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/node"
+ "github.com/cryptoecc/ETH-ECC/rpc"
)
// Register adds catalyst APIs to the light client.
@@ -57,14 +57,21 @@ func NewConsensusAPI(les *les.LightEthereum) *ConsensusAPI {
// ForkchoiceUpdatedV1 has several responsibilities:
// If the method is called with an empty head block:
-// we return success, which can be used to check if the catalyst mode is enabled
+//
+// we return success, which can be used to check if the catalyst mode is enabled
+//
// If the total difficulty was not reached:
-// we return INVALID
+//
+// we return INVALID
+//
// If the finalizedBlockHash is set:
-// we check if we have the finalizedBlockHash in our db, if not we start a sync
+//
+// we check if we have the finalizedBlockHash in our db, if not we start a sync
+//
// We try to set our blockchain to the headBlock
// If there are payloadAttributes:
-// we return an error since block creation is not supported in les mode
+//
+// we return an error since block creation is not supported in les mode
func (api *ConsensusAPI) ForkchoiceUpdatedV1(heads beacon.ForkchoiceStateV1, payloadAttributes *beacon.PayloadAttributesV1) (beacon.ForkChoiceResponse, error) {
if heads.HeadBlockHash == (common.Hash{}) {
log.Warn("Forkchoice requested update to zero hash")
diff --git a/les/catalyst/api_test.go b/les/catalyst/api_test.go
index 26c49d6ef9..e7bf64cdae 100644
--- a/les/catalyst/api_test.go
+++ b/les/catalyst/api_test.go
@@ -20,19 +20,19 @@ import (
"math/big"
"testing"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/consensus/ethash"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/beacon"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/eth/downloader"
- "github.com/ethereum/go-ethereum/eth/ethconfig"
- "github.com/ethereum/go-ethereum/les"
- "github.com/ethereum/go-ethereum/node"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/consensus/ethash"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/core/beacon"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/eth/downloader"
+ "github.com/cryptoecc/ETH-ECC/eth/ethconfig"
+ "github.com/cryptoecc/ETH-ECC/les"
+ "github.com/cryptoecc/ETH-ECC/node"
+ "github.com/cryptoecc/ETH-ECC/params"
+ "github.com/cryptoecc/ETH-ECC/trie"
)
var (
diff --git a/les/checkpointoracle/oracle.go b/les/checkpointoracle/oracle.go
index 6ad1ea2938..99a1975589 100644
--- a/les/checkpointoracle/oracle.go
+++ b/les/checkpointoracle/oracle.go
@@ -25,12 +25,12 @@ import (
"sync/atomic"
"time"
- "github.com/ethereum/go-ethereum/accounts/abi/bind"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/contracts/checkpointoracle"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/cryptoecc/ETH-ECC/accounts/abi/bind"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/contracts/checkpointoracle"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/params"
)
// CheckpointOracle is responsible for offering the latest stable checkpoint
diff --git a/les/client.go b/les/client.go
index 6e6beeb000..7a23fba881 100644
--- a/les/client.go
+++ b/les/client.go
@@ -22,32 +22,32 @@ import (
"strings"
"time"
- "github.com/ethereum/go-ethereum/accounts"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/common/mclock"
- "github.com/ethereum/go-ethereum/consensus"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/bloombits"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/eth/ethconfig"
- "github.com/ethereum/go-ethereum/eth/gasprice"
- "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/les/downloader"
- "github.com/ethereum/go-ethereum/les/vflux"
- vfc "github.com/ethereum/go-ethereum/les/vflux/client"
- "github.com/ethereum/go-ethereum/light"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/node"
- "github.com/ethereum/go-ethereum/p2p"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/enr"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/rlp"
- "github.com/ethereum/go-ethereum/rpc"
+ "github.com/cryptoecc/ETH-ECC/accounts"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/hexutil"
+ "github.com/cryptoecc/ETH-ECC/common/mclock"
+ "github.com/cryptoecc/ETH-ECC/consensus"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/core/bloombits"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/eth/ethconfig"
+ "github.com/cryptoecc/ETH-ECC/eth/gasprice"
+ "github.com/cryptoecc/ETH-ECC/event"
+ "github.com/cryptoecc/ETH-ECC/internal/ethapi"
+ "github.com/cryptoecc/ETH-ECC/internal/shutdowncheck"
+ "github.com/cryptoecc/ETH-ECC/les/downloader"
+ "github.com/cryptoecc/ETH-ECC/les/vflux"
+ vfc "github.com/cryptoecc/ETH-ECC/les/vflux/client"
+ "github.com/cryptoecc/ETH-ECC/light"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/node"
+ "github.com/cryptoecc/ETH-ECC/p2p"
+ "github.com/cryptoecc/ETH-ECC/p2p/enode"
+ "github.com/cryptoecc/ETH-ECC/p2p/enr"
+ "github.com/cryptoecc/ETH-ECC/params"
+ "github.com/cryptoecc/ETH-ECC/rlp"
+ "github.com/cryptoecc/ETH-ECC/rpc"
)
type LightEthereum struct {
diff --git a/les/client_handler.go b/les/client_handler.go
index e416f92e29..100f8e631b 100644
--- a/les/client_handler.go
+++ b/les/client_handler.go
@@ -24,16 +24,16 @@ import (
"sync/atomic"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/mclock"
- "github.com/ethereum/go-ethereum/core/forkid"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/eth/protocols/eth"
- "github.com/ethereum/go-ethereum/les/downloader"
- "github.com/ethereum/go-ethereum/light"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/p2p"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/mclock"
+ "github.com/cryptoecc/ETH-ECC/core/forkid"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/eth/protocols/eth"
+ "github.com/cryptoecc/ETH-ECC/les/downloader"
+ "github.com/cryptoecc/ETH-ECC/light"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/p2p"
+ "github.com/cryptoecc/ETH-ECC/params"
)
// clientHandler is responsible for receiving and processing all incoming server
diff --git a/les/commons.go b/les/commons.go
index d090fc21fc..9fac617f3a 100644
--- a/les/commons.go
+++ b/les/commons.go
@@ -21,20 +21,20 @@ import (
"math/big"
"sync"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/eth/ethconfig"
- "github.com/ethereum/go-ethereum/ethclient"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/les/checkpointoracle"
- "github.com/ethereum/go-ethereum/light"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/node"
- "github.com/ethereum/go-ethereum/p2p"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/eth/ethconfig"
+ "github.com/cryptoecc/ETH-ECC/ethclient"
+ "github.com/cryptoecc/ETH-ECC/ethdb"
+ "github.com/cryptoecc/ETH-ECC/les/checkpointoracle"
+ "github.com/cryptoecc/ETH-ECC/light"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/node"
+ "github.com/cryptoecc/ETH-ECC/p2p"
+ "github.com/cryptoecc/ETH-ECC/p2p/enode"
+ "github.com/cryptoecc/ETH-ECC/params"
)
func errResp(code errCode, format string, v ...interface{}) error {
diff --git a/les/costtracker.go b/les/costtracker.go
index 43e32a5b2d..065b985c73 100644
--- a/les/costtracker.go
+++ b/les/costtracker.go
@@ -23,12 +23,12 @@ import (
"sync/atomic"
"time"
- "github.com/ethereum/go-ethereum/common/mclock"
- "github.com/ethereum/go-ethereum/eth/ethconfig"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/les/flowcontrol"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/metrics"
+ "github.com/cryptoecc/ETH-ECC/common/mclock"
+ "github.com/cryptoecc/ETH-ECC/eth/ethconfig"
+ "github.com/cryptoecc/ETH-ECC/ethdb"
+ "github.com/cryptoecc/ETH-ECC/les/flowcontrol"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/metrics"
)
const makeCostStats = false // make request cost statistics during operation
diff --git a/les/distributor.go b/les/distributor.go
index a0319c67f7..af5d3871c5 100644
--- a/les/distributor.go
+++ b/les/distributor.go
@@ -21,8 +21,8 @@ import (
"sync"
"time"
- "github.com/ethereum/go-ethereum/common/mclock"
- "github.com/ethereum/go-ethereum/les/utils"
+ "github.com/cryptoecc/ETH-ECC/common/mclock"
+ "github.com/cryptoecc/ETH-ECC/les/utils"
)
// requestDistributor implements a mechanism that distributes requests to
diff --git a/les/distributor_test.go b/les/distributor_test.go
index 9a93dba145..c8c6c0b8d5 100644
--- a/les/distributor_test.go
+++ b/les/distributor_test.go
@@ -22,7 +22,7 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/common/mclock"
+ "github.com/cryptoecc/ETH-ECC/common/mclock"
)
type testDistReq struct {
diff --git a/les/downloader/api.go b/les/downloader/api.go
index 21200b676c..9f0eba077f 100644
--- a/les/downloader/api.go
+++ b/les/downloader/api.go
@@ -20,9 +20,9 @@ import (
"context"
"sync"
+ "github.com/cryptoecc/ETH-ECC/event"
+ "github.com/cryptoecc/ETH-ECC/rpc"
"github.com/ethereum/go-ethereum"
- "github.com/ethereum/go-ethereum/event"
- "github.com/ethereum/go-ethereum/rpc"
)
// DownloaderAPI provides an API which gives information about the current synchronisation status.
diff --git a/les/downloader/downloader.go b/les/downloader/downloader.go
index 6352b1c217..5bb908e886 100644
--- a/les/downloader/downloader.go
+++ b/les/downloader/downloader.go
@@ -28,18 +28,18 @@ import (
"sync/atomic"
"time"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/core/state/snapshot"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/eth/protocols/eth"
+ "github.com/cryptoecc/ETH-ECC/eth/protocols/snap"
+ "github.com/cryptoecc/ETH-ECC/ethdb"
+ "github.com/cryptoecc/ETH-ECC/event"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/metrics"
+ "github.com/cryptoecc/ETH-ECC/params"
"github.com/ethereum/go-ethereum"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/state/snapshot"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/eth/protocols/eth"
- "github.com/ethereum/go-ethereum/eth/protocols/snap"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/event"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/metrics"
- "github.com/ethereum/go-ethereum/params"
)
var (
@@ -693,9 +693,11 @@ func (d *Downloader) fetchHead(p *peerConnection) (head *types.Header, pivot *ty
// calculateRequestSpan calculates what headers to request from a peer when trying to determine the
// common ancestor.
// It returns parameters to be used for peer.RequestHeadersByNumber:
-// from - starting block number
-// count - number of headers to request
-// skip - number of headers to skip
+//
+// from - starting block number
+// count - number of headers to request
+// skip - number of headers to skip
+//
// and also returns 'max', the last block which is expected to be returned by the remote peers,
// given the (from,count,skip)
func calculateRequestSpan(remoteHeight, localHeight uint64) (int64, int, int, uint64) {
@@ -1310,22 +1312,22 @@ func (d *Downloader) fetchReceipts(from uint64) error {
// various callbacks to handle the slight differences between processing them.
//
// The instrumentation parameters:
-// - errCancel: error type to return if the fetch operation is cancelled (mostly makes logging nicer)
-// - deliveryCh: channel from which to retrieve downloaded data packets (merged from all concurrent peers)
-// - deliver: processing callback to deliver data packets into type specific download queues (usually within `queue`)
-// - wakeCh: notification channel for waking the fetcher when new tasks are available (or sync completed)
-// - expire: task callback method to abort requests that took too long and return the faulty peers (traffic shaping)
-// - pending: task callback for the number of requests still needing download (detect completion/non-completability)
-// - inFlight: task callback for the number of in-progress requests (wait for all active downloads to finish)
-// - throttle: task callback to check if the processing queue is full and activate throttling (bound memory use)
-// - reserve: task callback to reserve new download tasks to a particular peer (also signals partial completions)
-// - fetchHook: tester callback to notify of new tasks being initiated (allows testing the scheduling logic)
-// - fetch: network callback to actually send a particular download request to a physical remote peer
-// - cancel: task callback to abort an in-flight download request and allow rescheduling it (in case of lost peer)
-// - capacity: network callback to retrieve the estimated type-specific bandwidth capacity of a peer (traffic shaping)
-// - idle: network callback to retrieve the currently (type specific) idle peers that can be assigned tasks
-// - setIdle: network callback to set a peer back to idle and update its estimated capacity (traffic shaping)
-// - kind: textual label of the type being downloaded to display in log messages
+// - errCancel: error type to return if the fetch operation is cancelled (mostly makes logging nicer)
+// - deliveryCh: channel from which to retrieve downloaded data packets (merged from all concurrent peers)
+// - deliver: processing callback to deliver data packets into type specific download queues (usually within `queue`)
+// - wakeCh: notification channel for waking the fetcher when new tasks are available (or sync completed)
+// - expire: task callback method to abort requests that took too long and return the faulty peers (traffic shaping)
+// - pending: task callback for the number of requests still needing download (detect completion/non-completability)
+// - inFlight: task callback for the number of in-progress requests (wait for all active downloads to finish)
+// - throttle: task callback to check if the processing queue is full and activate throttling (bound memory use)
+// - reserve: task callback to reserve new download tasks to a particular peer (also signals partial completions)
+// - fetchHook: tester callback to notify of new tasks being initiated (allows testing the scheduling logic)
+// - fetch: network callback to actually send a particular download request to a physical remote peer
+// - cancel: task callback to abort an in-flight download request and allow rescheduling it (in case of lost peer)
+// - capacity: network callback to retrieve the estimated type-specific bandwidth capacity of a peer (traffic shaping)
+// - idle: network callback to retrieve the currently (type specific) idle peers that can be assigned tasks
+// - setIdle: network callback to set a peer back to idle and update its estimated capacity (traffic shaping)
+// - kind: textual label of the type being downloaded to display in log messages
func (d *Downloader) fetchParts(deliveryCh chan dataPack, deliver func(dataPack) (int, error), wakeCh chan bool,
expire func() map[string]int, pending func() int, inFlight func() bool, reserve func(*peerConnection, int) (*fetchRequest, bool, bool),
fetchHook func([]*types.Header), fetch func(*peerConnection, *fetchRequest) error, cancel func(*fetchRequest), capacity func(*peerConnection) int,
diff --git a/les/downloader/downloader_test.go b/les/downloader/downloader_test.go
index c56870ff17..936a31c4be 100644
--- a/les/downloader/downloader_test.go
+++ b/les/downloader/downloader_test.go
@@ -26,15 +26,15 @@ import (
"testing"
"time"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/core/state/snapshot"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/eth/protocols/eth"
+ "github.com/cryptoecc/ETH-ECC/ethdb"
+ "github.com/cryptoecc/ETH-ECC/event"
+ "github.com/cryptoecc/ETH-ECC/trie"
"github.com/ethereum/go-ethereum"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/state/snapshot"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/eth/protocols/eth"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/event"
- "github.com/ethereum/go-ethereum/trie"
)
// Reduce some of the parameters to make the tester faster.
diff --git a/les/downloader/events.go b/les/downloader/events.go
index 25255a3a72..0d198f6570 100644
--- a/les/downloader/events.go
+++ b/les/downloader/events.go
@@ -16,7 +16,7 @@
package downloader
-import "github.com/ethereum/go-ethereum/core/types"
+import "github.com/cryptoecc/ETH-ECC/core/types"
type DoneEvent struct {
Latest *types.Header
diff --git a/les/downloader/metrics.go b/les/downloader/metrics.go
index c38732043a..3f0125293e 100644
--- a/les/downloader/metrics.go
+++ b/les/downloader/metrics.go
@@ -19,7 +19,7 @@
package downloader
import (
- "github.com/ethereum/go-ethereum/metrics"
+ "github.com/cryptoecc/ETH-ECC/metrics"
)
var (
diff --git a/les/downloader/peer.go b/les/downloader/peer.go
index c2161e2dae..155e964e93 100644
--- a/les/downloader/peer.go
+++ b/les/downloader/peer.go
@@ -27,11 +27,11 @@ import (
"sync/atomic"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/eth/protocols/eth"
- "github.com/ethereum/go-ethereum/event"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/p2p/msgrate"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/eth/protocols/eth"
+ "github.com/cryptoecc/ETH-ECC/event"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/p2p/msgrate"
)
const (
diff --git a/les/downloader/queue.go b/les/downloader/queue.go
index b165b6b5c1..6bba0efef1 100644
--- a/les/downloader/queue.go
+++ b/les/downloader/queue.go
@@ -26,12 +26,12 @@ import (
"sync/atomic"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/prque"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/metrics"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/prque"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/metrics"
+ "github.com/cryptoecc/ETH-ECC/trie"
)
const (
@@ -477,9 +477,10 @@ func (q *queue) ReserveReceipts(p *peerConnection, count int) (*fetchRequest, bo
// to access the queue, so they already need a lock anyway.
//
// Returns:
-// item - the fetchRequest
-// progress - whether any progress was made
-// throttle - if the caller should throttle for a while
+//
+// item - the fetchRequest
+// progress - whether any progress was made
+// throttle - if the caller should throttle for a while
func (q *queue) reserveHeaders(p *peerConnection, count int, taskPool map[common.Hash]*types.Header, taskQueue *prque.Prque,
pendPool map[string]*fetchRequest, kind uint) (*fetchRequest, bool, bool) {
// Short circuit if the pool has been depleted, or if the peer's already
diff --git a/les/downloader/queue_test.go b/les/downloader/queue_test.go
index 44b2208595..e5c6a53a5e 100644
--- a/les/downloader/queue_test.go
+++ b/les/downloader/queue_test.go
@@ -24,12 +24,12 @@ 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/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/consensus/ethash"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/params"
)
// makeChain creates a chain of n blocks starting at and including parent.
diff --git a/les/downloader/resultstore.go b/les/downloader/resultstore.go
index 3162cd6d5b..1e4d1ff6b6 100644
--- a/les/downloader/resultstore.go
+++ b/les/downloader/resultstore.go
@@ -21,7 +21,7 @@ import (
"sync"
"sync/atomic"
- "github.com/ethereum/go-ethereum/core/types"
+ "github.com/cryptoecc/ETH-ECC/core/types"
)
// resultStore implements a structure for maintaining fetchResults, tracking their
@@ -71,10 +71,11 @@ func (r *resultStore) SetThrottleThreshold(threshold uint64) uint64 {
// wants to reserve headers for fetching.
//
// It returns the following:
-// stale - if true, this item is already passed, and should not be requested again
-// throttled - if true, the store is at capacity, this particular header is not prio now
-// item - the result to store data into
-// err - any error that occurred
+//
+// stale - if true, this item is already passed, and should not be requested again
+// throttled - if true, the store is at capacity, this particular header is not prio now
+// item - the result to store data into
+// err - any error that occurred
func (r *resultStore) AddFetch(header *types.Header, fastSync bool) (stale, throttled bool, item *fetchResult, err error) {
r.lock.Lock()
defer r.lock.Unlock()
diff --git a/les/downloader/statesync.go b/les/downloader/statesync.go
index 22f952155f..2758088e42 100644
--- a/les/downloader/statesync.go
+++ b/les/downloader/statesync.go
@@ -21,12 +21,12 @@ import (
"sync"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/state"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core/state"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/ethdb"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/trie"
"golang.org/x/crypto/sha3"
)
diff --git a/les/downloader/testchain_test.go b/les/downloader/testchain_test.go
index 400eec94e7..47ecd37ad1 100644
--- a/les/downloader/testchain_test.go
+++ b/les/downloader/testchain_test.go
@@ -21,13 +21,13 @@ import (
"math/big"
"sync"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/consensus/ethash"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/consensus/ethash"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/params"
)
// Test chain parameters.
diff --git a/les/downloader/types.go b/les/downloader/types.go
index ff70bfa0e3..f74d799673 100644
--- a/les/downloader/types.go
+++ b/les/downloader/types.go
@@ -19,7 +19,7 @@ package downloader
import (
"fmt"
- "github.com/ethereum/go-ethereum/core/types"
+ "github.com/cryptoecc/ETH-ECC/core/types"
)
// peerDropFn is a callback type for dropping a peer detected as malicious.
diff --git a/les/enr_entry.go b/les/enr_entry.go
index 307313fb10..309a239cf2 100644
--- a/les/enr_entry.go
+++ b/les/enr_entry.go
@@ -17,10 +17,10 @@
package les
import (
- "github.com/ethereum/go-ethereum/core/forkid"
- "github.com/ethereum/go-ethereum/p2p/dnsdisc"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/cryptoecc/ETH-ECC/core/forkid"
+ "github.com/cryptoecc/ETH-ECC/p2p/dnsdisc"
+ "github.com/cryptoecc/ETH-ECC/p2p/enode"
+ "github.com/cryptoecc/ETH-ECC/rlp"
)
// lesEntry is the "les" ENR entry. This is set for LES servers only.
diff --git a/les/fetcher.go b/les/fetcher.go
index 6861eebcf5..b057cdec4f 100644
--- a/les/fetcher.go
+++ b/les/fetcher.go
@@ -22,16 +22,16 @@ import (
"sync"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/consensus"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/les/fetcher"
- "github.com/ethereum/go-ethereum/light"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/p2p/enode"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/consensus"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/ethdb"
+ "github.com/cryptoecc/ETH-ECC/les/fetcher"
+ "github.com/cryptoecc/ETH-ECC/light"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/p2p/enode"
)
const (
@@ -242,18 +242,19 @@ func (f *lightFetcher) forEachPeer(check func(id enode.ID, p *fetcherPeer) bool)
}
// mainloop is the main event loop of the light fetcher, which is responsible for
-// - announcement maintenance(ulc)
-// If we are running in ultra light client mode, then all announcements from
-// the trusted servers are maintained. If the same announcements from trusted
-// servers reach the threshold, then the relevant header is requested for retrieval.
//
-// - block header retrieval
-// Whenever we receive announce with higher td compared with local chain, the
-// request will be made for header retrieval.
+// - announcement maintenance(ulc)
+// If we are running in ultra light client mode, then all announcements from
+// the trusted servers are maintained. If the same announcements from trusted
+// servers reach the threshold, then the relevant header is requested for retrieval.
//
-// - re-sync trigger
-// If the local chain lags too much, then the fetcher will enter "synchronise"
-// mode to retrieve missing headers in batch.
+// - block header retrieval
+// Whenever we receive announce with higher td compared with local chain, the
+// request will be made for header retrieval.
+//
+// - re-sync trigger
+// If the local chain lags too much, then the fetcher will enter "synchronise"
+// mode to retrieve missing headers in batch.
func (f *lightFetcher) mainloop() {
defer f.wg.Done()
diff --git a/les/fetcher/block_fetcher.go b/les/fetcher/block_fetcher.go
index 86b3c552ce..a489583888 100644
--- a/les/fetcher/block_fetcher.go
+++ b/les/fetcher/block_fetcher.go
@@ -25,13 +25,13 @@ import (
"math/rand"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/prque"
- "github.com/ethereum/go-ethereum/consensus"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/metrics"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/prque"
+ "github.com/cryptoecc/ETH-ECC/consensus"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/metrics"
+ "github.com/cryptoecc/ETH-ECC/trie"
)
const (
diff --git a/les/fetcher/block_fetcher_test.go b/les/fetcher/block_fetcher_test.go
index caff7a3b35..9194fb7cc8 100644
--- a/les/fetcher/block_fetcher_test.go
+++ b/les/fetcher/block_fetcher_test.go
@@ -24,14 +24,14 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/consensus/ethash"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/consensus/ethash"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/params"
+ "github.com/cryptoecc/ETH-ECC/trie"
)
var (
diff --git a/les/fetcher_test.go b/les/fetcher_test.go
index 6a17e73757..28c4a255dc 100644
--- a/les/fetcher_test.go
+++ b/les/fetcher_test.go
@@ -21,13 +21,13 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/consensus/ethash"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/light"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/cryptoecc/ETH-ECC/consensus/ethash"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/light"
+ "github.com/cryptoecc/ETH-ECC/p2p/enode"
+ "github.com/cryptoecc/ETH-ECC/params"
)
// verifyImportEvent verifies that one single event arrive on an import channel.
diff --git a/les/flowcontrol/control.go b/les/flowcontrol/control.go
index 76a241fa5a..b2a68cd634 100644
--- a/les/flowcontrol/control.go
+++ b/les/flowcontrol/control.go
@@ -23,8 +23,8 @@ import (
"sync"
"time"
- "github.com/ethereum/go-ethereum/common/mclock"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/cryptoecc/ETH-ECC/common/mclock"
+ "github.com/cryptoecc/ETH-ECC/log"
)
const (
diff --git a/les/flowcontrol/logger.go b/les/flowcontrol/logger.go
index 428d7fbf22..2d00af04ce 100644
--- a/les/flowcontrol/logger.go
+++ b/les/flowcontrol/logger.go
@@ -20,7 +20,7 @@ import (
"fmt"
"time"
- "github.com/ethereum/go-ethereum/common/mclock"
+ "github.com/cryptoecc/ETH-ECC/common/mclock"
)
// logger collects events in string format and discards events older than the
diff --git a/les/flowcontrol/manager.go b/les/flowcontrol/manager.go
index 4367974d63..2d31fadba7 100644
--- a/les/flowcontrol/manager.go
+++ b/les/flowcontrol/manager.go
@@ -22,8 +22,8 @@ import (
"sync"
"time"
- "github.com/ethereum/go-ethereum/common/mclock"
- "github.com/ethereum/go-ethereum/common/prque"
+ "github.com/cryptoecc/ETH-ECC/common/mclock"
+ "github.com/cryptoecc/ETH-ECC/common/prque"
)
// cmNodeFields are ClientNode fields used by the client manager
diff --git a/les/flowcontrol/manager_test.go b/les/flowcontrol/manager_test.go
index 564d813f15..0b854f9b3f 100644
--- a/les/flowcontrol/manager_test.go
+++ b/les/flowcontrol/manager_test.go
@@ -21,7 +21,7 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/common/mclock"
+ "github.com/cryptoecc/ETH-ECC/common/mclock"
)
type testNode struct {
diff --git a/les/handler_test.go b/les/handler_test.go
index 56d7d55b5a..f4092896ec 100644
--- a/les/handler_test.go
+++ b/les/handler_test.go
@@ -23,19 +23,19 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/mclock"
- "github.com/ethereum/go-ethereum/consensus/ethash"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/les/downloader"
- "github.com/ethereum/go-ethereum/light"
- "github.com/ethereum/go-ethereum/p2p"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/rlp"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/mclock"
+ "github.com/cryptoecc/ETH-ECC/consensus/ethash"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/les/downloader"
+ "github.com/cryptoecc/ETH-ECC/light"
+ "github.com/cryptoecc/ETH-ECC/p2p"
+ "github.com/cryptoecc/ETH-ECC/params"
+ "github.com/cryptoecc/ETH-ECC/rlp"
+ "github.com/cryptoecc/ETH-ECC/trie"
)
func expectResponse(r p2p.MsgReader, msgcode, reqID, bv uint64, data interface{}) error {
diff --git a/les/metrics.go b/les/metrics.go
index 07d3133c95..f556fcace5 100644
--- a/les/metrics.go
+++ b/les/metrics.go
@@ -17,8 +17,8 @@
package les
import (
- "github.com/ethereum/go-ethereum/metrics"
- "github.com/ethereum/go-ethereum/p2p"
+ "github.com/cryptoecc/ETH-ECC/metrics"
+ "github.com/cryptoecc/ETH-ECC/p2p"
)
var (
diff --git a/les/odr.go b/les/odr.go
index 2643a53478..4646ce9c35 100644
--- a/les/odr.go
+++ b/les/odr.go
@@ -22,10 +22,10 @@ import (
"sort"
"time"
- "github.com/ethereum/go-ethereum/common/mclock"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/light"
+ "github.com/cryptoecc/ETH-ECC/common/mclock"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/ethdb"
+ "github.com/cryptoecc/ETH-ECC/light"
)
// LesOdr implements light.OdrBackend
diff --git a/les/odr_requests.go b/les/odr_requests.go
index d548fb1ee0..06158dec5a 100644
--- a/les/odr_requests.go
+++ b/les/odr_requests.go
@@ -21,15 +21,15 @@ import (
"errors"
"fmt"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/light"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/rlp"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/ethdb"
+ "github.com/cryptoecc/ETH-ECC/light"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/rlp"
+ "github.com/cryptoecc/ETH-ECC/trie"
)
var (
diff --git a/les/odr_test.go b/les/odr_test.go
index 24b8e2ae31..77a6e482df 100644
--- a/les/odr_test.go
+++ b/les/odr_test.go
@@ -26,17 +26,17 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/math"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/state"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/core/vm"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/light"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/math"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/core/state"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/core/vm"
+ "github.com/cryptoecc/ETH-ECC/ethdb"
+ "github.com/cryptoecc/ETH-ECC/light"
+ "github.com/cryptoecc/ETH-ECC/params"
+ "github.com/cryptoecc/ETH-ECC/rlp"
)
type odrTestFn func(ctx context.Context, db ethdb.Database, config *params.ChainConfig, bc *core.BlockChain, lc *light.LightChain, bhash common.Hash) []byte
diff --git a/les/peer.go b/les/peer.go
index deda052a3b..f2c437f65b 100644
--- a/les/peer.go
+++ b/les/peer.go
@@ -27,20 +27,20 @@ import (
"sync/atomic"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/mclock"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/forkid"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/les/flowcontrol"
- "github.com/ethereum/go-ethereum/les/utils"
- vfc "github.com/ethereum/go-ethereum/les/vflux/client"
- vfs "github.com/ethereum/go-ethereum/les/vflux/server"
- "github.com/ethereum/go-ethereum/light"
- "github.com/ethereum/go-ethereum/p2p"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/mclock"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/core/forkid"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/les/flowcontrol"
+ "github.com/cryptoecc/ETH-ECC/les/utils"
+ vfc "github.com/cryptoecc/ETH-ECC/les/vflux/client"
+ vfs "github.com/cryptoecc/ETH-ECC/les/vflux/server"
+ "github.com/cryptoecc/ETH-ECC/light"
+ "github.com/cryptoecc/ETH-ECC/p2p"
+ "github.com/cryptoecc/ETH-ECC/p2p/enode"
+ "github.com/cryptoecc/ETH-ECC/params"
+ "github.com/cryptoecc/ETH-ECC/rlp"
)
var (
diff --git a/les/peer_test.go b/les/peer_test.go
index b8a1482a04..256a6d20ae 100644
--- a/les/peer_test.go
+++ b/les/peer_test.go
@@ -25,13 +25,13 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/forkid"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/p2p"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/core/forkid"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/p2p"
+ "github.com/cryptoecc/ETH-ECC/p2p/enode"
+ "github.com/cryptoecc/ETH-ECC/params"
)
type testServerPeerSub struct {
diff --git a/les/protocol.go b/les/protocol.go
index 06db9024eb..8405f8656d 100644
--- a/les/protocol.go
+++ b/les/protocol.go
@@ -23,12 +23,12 @@ import (
"io"
"math/big"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/crypto"
- vfc "github.com/ethereum/go-ethereum/les/vflux/client"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ vfc "github.com/cryptoecc/ETH-ECC/les/vflux/client"
+ "github.com/cryptoecc/ETH-ECC/p2p/enode"
+ "github.com/cryptoecc/ETH-ECC/rlp"
)
// Constants to match up protocol versions and messages
diff --git a/les/pruner.go b/les/pruner.go
index d115a61a70..4b5e5a39a2 100644
--- a/les/pruner.go
+++ b/les/pruner.go
@@ -20,10 +20,10 @@ import (
"sync"
"time"
- "github.com/ethereum/go-ethereum/common/math"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/cryptoecc/ETH-ECC/common/math"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/ethdb"
+ "github.com/cryptoecc/ETH-ECC/log"
)
// pruner is responsible for pruning historical light chain data.
diff --git a/les/pruner_test.go b/les/pruner_test.go
index 1672414937..f4e9ad3fd9 100644
--- a/les/pruner_test.go
+++ b/les/pruner_test.go
@@ -23,8 +23,8 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/light"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/light"
)
func TestLightPruner(t *testing.T) {
diff --git a/les/request_test.go b/les/request_test.go
index c65405e375..430a923a0f 100644
--- a/les/request_test.go
+++ b/les/request_test.go
@@ -21,11 +21,11 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/light"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/ethdb"
+ "github.com/cryptoecc/ETH-ECC/light"
)
var testBankSecureTrieKey = secAddr(bankAddr)
diff --git a/les/retrieve.go b/les/retrieve.go
index 307af04212..c174bb0258 100644
--- a/les/retrieve.go
+++ b/les/retrieve.go
@@ -22,7 +22,7 @@ import (
"sync"
"time"
- "github.com/ethereum/go-ethereum/light"
+ "github.com/cryptoecc/ETH-ECC/light"
)
var (
diff --git a/les/server.go b/les/server.go
index df453b4819..ae922db361 100644
--- a/les/server.go
+++ b/les/server.go
@@ -20,20 +20,20 @@ import (
"crypto/ecdsa"
"time"
- "github.com/ethereum/go-ethereum/common/mclock"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/eth/ethconfig"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/les/flowcontrol"
- vfs "github.com/ethereum/go-ethereum/les/vflux/server"
- "github.com/ethereum/go-ethereum/light"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/node"
- "github.com/ethereum/go-ethereum/p2p"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/enr"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/rpc"
+ "github.com/cryptoecc/ETH-ECC/common/mclock"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/eth/ethconfig"
+ "github.com/cryptoecc/ETH-ECC/ethdb"
+ "github.com/cryptoecc/ETH-ECC/les/flowcontrol"
+ vfs "github.com/cryptoecc/ETH-ECC/les/vflux/server"
+ "github.com/cryptoecc/ETH-ECC/light"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/node"
+ "github.com/cryptoecc/ETH-ECC/p2p"
+ "github.com/cryptoecc/ETH-ECC/p2p/enode"
+ "github.com/cryptoecc/ETH-ECC/p2p/enr"
+ "github.com/cryptoecc/ETH-ECC/params"
+ "github.com/cryptoecc/ETH-ECC/rpc"
)
var (
diff --git a/les/server_handler.go b/les/server_handler.go
index a199a34a72..990e14bd49 100644
--- a/les/server_handler.go
+++ b/les/server_handler.go
@@ -22,20 +22,20 @@ import (
"sync/atomic"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/mclock"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/forkid"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/les/flowcontrol"
- "github.com/ethereum/go-ethereum/light"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/metrics"
- "github.com/ethereum/go-ethereum/p2p"
- "github.com/ethereum/go-ethereum/rlp"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/mclock"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/core/forkid"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/ethdb"
+ "github.com/cryptoecc/ETH-ECC/les/flowcontrol"
+ "github.com/cryptoecc/ETH-ECC/light"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/metrics"
+ "github.com/cryptoecc/ETH-ECC/p2p"
+ "github.com/cryptoecc/ETH-ECC/rlp"
+ "github.com/cryptoecc/ETH-ECC/trie"
)
const (
diff --git a/les/server_requests.go b/les/server_requests.go
index bab5f733d5..b4f170c5d3 100644
--- a/les/server_requests.go
+++ b/les/server_requests.go
@@ -20,15 +20,15 @@ import (
"encoding/binary"
"encoding/json"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/state"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/light"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/metrics"
- "github.com/ethereum/go-ethereum/rlp"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/core/state"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/light"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/metrics"
+ "github.com/cryptoecc/ETH-ECC/rlp"
+ "github.com/cryptoecc/ETH-ECC/trie"
)
// serverBackend defines the backend functions needed for serving LES requests
diff --git a/les/servingqueue.go b/les/servingqueue.go
index 10c7e6f48c..8fdb79c6a7 100644
--- a/les/servingqueue.go
+++ b/les/servingqueue.go
@@ -21,8 +21,8 @@ import (
"sync"
"sync/atomic"
- "github.com/ethereum/go-ethereum/common/mclock"
- "github.com/ethereum/go-ethereum/common/prque"
+ "github.com/cryptoecc/ETH-ECC/common/mclock"
+ "github.com/cryptoecc/ETH-ECC/common/prque"
)
// servingQueue allows running tasks in a limited number of threads and puts the
diff --git a/les/state_accessor.go b/les/state_accessor.go
index 112e6fd44d..a35bbe1afe 100644
--- a/les/state_accessor.go
+++ b/les/state_accessor.go
@@ -21,11 +21,11 @@ import (
"errors"
"fmt"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/state"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/core/vm"
- "github.com/ethereum/go-ethereum/light"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/core/state"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/core/vm"
+ "github.com/cryptoecc/ETH-ECC/light"
)
// stateAtBlock retrieves the state database associated with a certain block.
diff --git a/les/sync.go b/les/sync.go
index 31cd06ca70..0a6fb2edbf 100644
--- a/les/sync.go
+++ b/les/sync.go
@@ -21,12 +21,12 @@ import (
"errors"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/les/downloader"
- "github.com/ethereum/go-ethereum/light"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/les/downloader"
+ "github.com/cryptoecc/ETH-ECC/light"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/params"
)
var errInvalidCheckpoint = errors.New("invalid advertised checkpoint")
diff --git a/les/sync_test.go b/les/sync_test.go
index 3fc2a9c154..e847b095ca 100644
--- a/les/sync_test.go
+++ b/les/sync_test.go
@@ -22,12 +22,12 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/accounts/abi/bind"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/light"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/cryptoecc/ETH-ECC/accounts/abi/bind"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/light"
+ "github.com/cryptoecc/ETH-ECC/params"
)
// Test light syncing which will download all headers from genesis.
@@ -196,7 +196,7 @@ func testMissOracleBackend(t *testing.T, hasCheckpoint bool, protocol int) {
// that user wants to unlock something which blocks the oracle backend
// initialisation. But at the same time syncing starts.
//
- // See https://github.com/ethereum/go-ethereum/issues/20097 for more detail.
+ // See https://github.com/cryptoecc/ETH-ECC/issues/20097 for more detail.
//
// In this case, client should run light sync or legacy checkpoint sync
// if hardcoded checkpoint is configured.
diff --git a/les/test_helper.go b/les/test_helper.go
index 8335e2c39a..7880e44eb0 100644
--- a/les/test_helper.go
+++ b/les/test_helper.go
@@ -29,28 +29,28 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/accounts/abi/bind"
- "github.com/ethereum/go-ethereum/accounts/abi/bind/backends"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/mclock"
- "github.com/ethereum/go-ethereum/consensus"
- "github.com/ethereum/go-ethereum/consensus/ethash"
- "github.com/ethereum/go-ethereum/contracts/checkpointoracle/contract"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/forkid"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/eth/ethconfig"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/event"
- "github.com/ethereum/go-ethereum/les/checkpointoracle"
- "github.com/ethereum/go-ethereum/les/flowcontrol"
- vfs "github.com/ethereum/go-ethereum/les/vflux/server"
- "github.com/ethereum/go-ethereum/light"
- "github.com/ethereum/go-ethereum/p2p"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/cryptoecc/ETH-ECC/accounts/abi/bind"
+ "github.com/cryptoecc/ETH-ECC/accounts/abi/bind/backends"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/mclock"
+ "github.com/cryptoecc/ETH-ECC/consensus"
+ "github.com/cryptoecc/ETH-ECC/consensus/ethash"
+ "github.com/cryptoecc/ETH-ECC/contracts/checkpointoracle/contract"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/core/forkid"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/eth/ethconfig"
+ "github.com/cryptoecc/ETH-ECC/ethdb"
+ "github.com/cryptoecc/ETH-ECC/event"
+ "github.com/cryptoecc/ETH-ECC/les/checkpointoracle"
+ "github.com/cryptoecc/ETH-ECC/les/flowcontrol"
+ vfs "github.com/cryptoecc/ETH-ECC/les/vflux/server"
+ "github.com/cryptoecc/ETH-ECC/light"
+ "github.com/cryptoecc/ETH-ECC/p2p"
+ "github.com/cryptoecc/ETH-ECC/p2p/enode"
+ "github.com/cryptoecc/ETH-ECC/params"
)
var (
diff --git a/les/txrelay.go b/les/txrelay.go
index 40a51fb76f..0429ee3d1b 100644
--- a/les/txrelay.go
+++ b/les/txrelay.go
@@ -21,9 +21,9 @@ import (
"math/rand"
"sync"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/rlp"
)
type lesTxRelay struct {
diff --git a/les/ulc.go b/les/ulc.go
index b97217e796..1ec4f634ce 100644
--- a/les/ulc.go
+++ b/les/ulc.go
@@ -19,8 +19,8 @@ package les
import (
"errors"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/p2p/enode"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/p2p/enode"
)
type ulc struct {
diff --git a/les/ulc_test.go b/les/ulc_test.go
index 9a29a24cee..a824eaf2a5 100644
--- a/les/ulc_test.go
+++ b/les/ulc_test.go
@@ -24,9 +24,9 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/p2p"
- "github.com/ethereum/go-ethereum/p2p/enode"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/p2p"
+ "github.com/cryptoecc/ETH-ECC/p2p/enode"
)
func TestULCAnnounceThresholdLes2(t *testing.T) { testULCAnnounceThreshold(t, 2) }
diff --git a/les/utils/expiredvalue.go b/les/utils/expiredvalue.go
index 3fd52616fa..f21ff4a2e0 100644
--- a/les/utils/expiredvalue.go
+++ b/les/utils/expiredvalue.go
@@ -20,7 +20,7 @@ import (
"math"
"sync"
- "github.com/ethereum/go-ethereum/common/mclock"
+ "github.com/cryptoecc/ETH-ECC/common/mclock"
)
// ExpiredValue is a scalar value that is continuously expired (decreased
diff --git a/les/utils/expiredvalue_test.go b/les/utils/expiredvalue_test.go
index 1c751d8cc6..99103da67f 100644
--- a/les/utils/expiredvalue_test.go
+++ b/les/utils/expiredvalue_test.go
@@ -19,7 +19,7 @@ package utils
import (
"testing"
- "github.com/ethereum/go-ethereum/common/mclock"
+ "github.com/cryptoecc/ETH-ECC/common/mclock"
)
func TestValueExpiration(t *testing.T) {
diff --git a/les/utils/limiter.go b/les/utils/limiter.go
index 84d186efd6..9c24c60d50 100644
--- a/les/utils/limiter.go
+++ b/les/utils/limiter.go
@@ -20,7 +20,7 @@ import (
"sort"
"sync"
- "github.com/ethereum/go-ethereum/p2p/enode"
+ "github.com/cryptoecc/ETH-ECC/p2p/enode"
)
const maxSelectionWeight = 1000000000 // maximum selection weight of each individual node/address group
diff --git a/les/utils/limiter_test.go b/les/utils/limiter_test.go
index 3fbdc60d7c..f288bad5ef 100644
--- a/les/utils/limiter_test.go
+++ b/les/utils/limiter_test.go
@@ -20,7 +20,7 @@ import (
"math/rand"
"testing"
- "github.com/ethereum/go-ethereum/p2p/enode"
+ "github.com/cryptoecc/ETH-ECC/p2p/enode"
)
const (
diff --git a/les/utils/timeutils.go b/les/utils/timeutils.go
index 62a4285d15..e70ea60bfd 100644
--- a/les/utils/timeutils.go
+++ b/les/utils/timeutils.go
@@ -20,7 +20,7 @@ import (
"sync"
"time"
- "github.com/ethereum/go-ethereum/common/mclock"
+ "github.com/cryptoecc/ETH-ECC/common/mclock"
)
type UpdateTimer struct {
diff --git a/les/utils/timeutils_test.go b/les/utils/timeutils_test.go
index b219d0439d..b821b6d5dd 100644
--- a/les/utils/timeutils_test.go
+++ b/les/utils/timeutils_test.go
@@ -20,7 +20,7 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/common/mclock"
+ "github.com/cryptoecc/ETH-ECC/common/mclock"
)
func TestUpdateTimer(t *testing.T) {
diff --git a/les/utils/weighted_select.go b/les/utils/weighted_select.go
index 486b00820a..6793d391ce 100644
--- a/les/utils/weighted_select.go
+++ b/les/utils/weighted_select.go
@@ -20,7 +20,7 @@ import (
"math"
"math/rand"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/cryptoecc/ETH-ECC/log"
)
type (
diff --git a/les/vflux/client/api.go b/les/vflux/client/api.go
index 135273ef96..fe9ea70a23 100644
--- a/les/vflux/client/api.go
+++ b/les/vflux/client/api.go
@@ -19,9 +19,9 @@ package client
import (
"time"
- "github.com/ethereum/go-ethereum/common/mclock"
- "github.com/ethereum/go-ethereum/les/utils"
- "github.com/ethereum/go-ethereum/p2p/enode"
+ "github.com/cryptoecc/ETH-ECC/common/mclock"
+ "github.com/cryptoecc/ETH-ECC/les/utils"
+ "github.com/cryptoecc/ETH-ECC/p2p/enode"
)
// PrivateClientAPI implements the vflux client side API
diff --git a/les/vflux/client/fillset.go b/les/vflux/client/fillset.go
index 0da850bcac..bb939368dd 100644
--- a/les/vflux/client/fillset.go
+++ b/les/vflux/client/fillset.go
@@ -19,8 +19,8 @@ package client
import (
"sync"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/nodestate"
+ "github.com/cryptoecc/ETH-ECC/p2p/enode"
+ "github.com/cryptoecc/ETH-ECC/p2p/nodestate"
)
// FillSet tries to read nodes from an input iterator and add them to a node set by
diff --git a/les/vflux/client/fillset_test.go b/les/vflux/client/fillset_test.go
index ddb12a82f9..a538677a9c 100644
--- a/les/vflux/client/fillset_test.go
+++ b/les/vflux/client/fillset_test.go
@@ -21,10 +21,10 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/common/mclock"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/enr"
- "github.com/ethereum/go-ethereum/p2p/nodestate"
+ "github.com/cryptoecc/ETH-ECC/common/mclock"
+ "github.com/cryptoecc/ETH-ECC/p2p/enode"
+ "github.com/cryptoecc/ETH-ECC/p2p/enr"
+ "github.com/cryptoecc/ETH-ECC/p2p/nodestate"
)
type testIter struct {
diff --git a/les/vflux/client/queueiterator.go b/les/vflux/client/queueiterator.go
index ad3f8df5bb..319829d044 100644
--- a/les/vflux/client/queueiterator.go
+++ b/les/vflux/client/queueiterator.go
@@ -19,8 +19,8 @@ package client
import (
"sync"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/nodestate"
+ "github.com/cryptoecc/ETH-ECC/p2p/enode"
+ "github.com/cryptoecc/ETH-ECC/p2p/nodestate"
)
// QueueIterator returns nodes from the specified selectable set in the same order as
diff --git a/les/vflux/client/queueiterator_test.go b/les/vflux/client/queueiterator_test.go
index 400d978e19..8626fa0439 100644
--- a/les/vflux/client/queueiterator_test.go
+++ b/les/vflux/client/queueiterator_test.go
@@ -20,10 +20,10 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/common/mclock"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/enr"
- "github.com/ethereum/go-ethereum/p2p/nodestate"
+ "github.com/cryptoecc/ETH-ECC/common/mclock"
+ "github.com/cryptoecc/ETH-ECC/p2p/enode"
+ "github.com/cryptoecc/ETH-ECC/p2p/enr"
+ "github.com/cryptoecc/ETH-ECC/p2p/nodestate"
)
func testNode(i int) *enode.Node {
diff --git a/les/vflux/client/requestbasket.go b/les/vflux/client/requestbasket.go
index 55d4b165df..df12790713 100644
--- a/les/vflux/client/requestbasket.go
+++ b/les/vflux/client/requestbasket.go
@@ -19,8 +19,8 @@ package client
import (
"io"
- "github.com/ethereum/go-ethereum/les/utils"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/cryptoecc/ETH-ECC/les/utils"
+ "github.com/cryptoecc/ETH-ECC/rlp"
)
const basketFactor = 1000000 // reference basket amount and value scale factor
diff --git a/les/vflux/client/requestbasket_test.go b/les/vflux/client/requestbasket_test.go
index 7c5f87c618..9516e766cb 100644
--- a/les/vflux/client/requestbasket_test.go
+++ b/les/vflux/client/requestbasket_test.go
@@ -20,7 +20,7 @@ import (
"math/rand"
"testing"
- "github.com/ethereum/go-ethereum/les/utils"
+ "github.com/cryptoecc/ETH-ECC/les/utils"
)
func checkU64(t *testing.T, name string, value, exp uint64) {
diff --git a/les/vflux/client/serverpool.go b/les/vflux/client/serverpool.go
index cf96f0ee3a..1aea46a1c0 100644
--- a/les/vflux/client/serverpool.go
+++ b/les/vflux/client/serverpool.go
@@ -24,15 +24,15 @@ import (
"sync/atomic"
"time"
- "github.com/ethereum/go-ethereum/common/mclock"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/les/utils"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/metrics"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/enr"
- "github.com/ethereum/go-ethereum/p2p/nodestate"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/cryptoecc/ETH-ECC/common/mclock"
+ "github.com/cryptoecc/ETH-ECC/ethdb"
+ "github.com/cryptoecc/ETH-ECC/les/utils"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/metrics"
+ "github.com/cryptoecc/ETH-ECC/p2p/enode"
+ "github.com/cryptoecc/ETH-ECC/p2p/enr"
+ "github.com/cryptoecc/ETH-ECC/p2p/nodestate"
+ "github.com/cryptoecc/ETH-ECC/rlp"
)
const (
diff --git a/les/vflux/client/serverpool_test.go b/les/vflux/client/serverpool_test.go
index f1fd987d7e..63b836e651 100644
--- a/les/vflux/client/serverpool_test.go
+++ b/les/vflux/client/serverpool_test.go
@@ -24,11 +24,11 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/common/mclock"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/ethdb/memorydb"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/enr"
+ "github.com/cryptoecc/ETH-ECC/common/mclock"
+ "github.com/cryptoecc/ETH-ECC/ethdb"
+ "github.com/cryptoecc/ETH-ECC/ethdb/memorydb"
+ "github.com/cryptoecc/ETH-ECC/p2p/enode"
+ "github.com/cryptoecc/ETH-ECC/p2p/enr"
)
const (
diff --git a/les/vflux/client/timestats.go b/les/vflux/client/timestats.go
index 7f1ffdbe26..92d7fe1bc9 100644
--- a/les/vflux/client/timestats.go
+++ b/les/vflux/client/timestats.go
@@ -21,8 +21,8 @@ import (
"math"
"time"
- "github.com/ethereum/go-ethereum/les/utils"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/cryptoecc/ETH-ECC/les/utils"
+ "github.com/cryptoecc/ETH-ECC/rlp"
)
const (
diff --git a/les/vflux/client/timestats_test.go b/les/vflux/client/timestats_test.go
index a28460171e..325df17fcb 100644
--- a/les/vflux/client/timestats_test.go
+++ b/les/vflux/client/timestats_test.go
@@ -22,7 +22,7 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/les/utils"
+ "github.com/cryptoecc/ETH-ECC/les/utils"
)
func TestTransition(t *testing.T) {
diff --git a/les/vflux/client/valuetracker.go b/les/vflux/client/valuetracker.go
index dcd2fcdfd9..e0a87fe8d4 100644
--- a/les/vflux/client/valuetracker.go
+++ b/les/vflux/client/valuetracker.go
@@ -23,12 +23,12 @@ import (
"sync"
"time"
- "github.com/ethereum/go-ethereum/common/mclock"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/les/utils"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/cryptoecc/ETH-ECC/common/mclock"
+ "github.com/cryptoecc/ETH-ECC/ethdb"
+ "github.com/cryptoecc/ETH-ECC/les/utils"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/p2p/enode"
+ "github.com/cryptoecc/ETH-ECC/rlp"
)
const (
diff --git a/les/vflux/client/valuetracker_test.go b/les/vflux/client/valuetracker_test.go
index 87a337be8d..3a54ae63f3 100644
--- a/les/vflux/client/valuetracker_test.go
+++ b/les/vflux/client/valuetracker_test.go
@@ -23,11 +23,11 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/common/mclock"
- "github.com/ethereum/go-ethereum/ethdb/memorydb"
- "github.com/ethereum/go-ethereum/p2p/enode"
+ "github.com/cryptoecc/ETH-ECC/common/mclock"
+ "github.com/cryptoecc/ETH-ECC/ethdb/memorydb"
+ "github.com/cryptoecc/ETH-ECC/p2p/enode"
- "github.com/ethereum/go-ethereum/les/utils"
+ "github.com/cryptoecc/ETH-ECC/les/utils"
)
const (
diff --git a/les/vflux/client/wrsiterator.go b/les/vflux/client/wrsiterator.go
index 1b37cba6e5..eff44afacf 100644
--- a/les/vflux/client/wrsiterator.go
+++ b/les/vflux/client/wrsiterator.go
@@ -19,9 +19,9 @@ package client
import (
"sync"
- "github.com/ethereum/go-ethereum/les/utils"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/nodestate"
+ "github.com/cryptoecc/ETH-ECC/les/utils"
+ "github.com/cryptoecc/ETH-ECC/p2p/enode"
+ "github.com/cryptoecc/ETH-ECC/p2p/nodestate"
)
// WrsIterator returns nodes from the specified selectable set with a weighted random
diff --git a/les/vflux/client/wrsiterator_test.go b/les/vflux/client/wrsiterator_test.go
index 77bb5ee0ca..34dd598202 100644
--- a/les/vflux/client/wrsiterator_test.go
+++ b/les/vflux/client/wrsiterator_test.go
@@ -21,8 +21,8 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/common/mclock"
- "github.com/ethereum/go-ethereum/p2p/nodestate"
+ "github.com/cryptoecc/ETH-ECC/common/mclock"
+ "github.com/cryptoecc/ETH-ECC/p2p/nodestate"
)
var (
diff --git a/les/vflux/requests.go b/les/vflux/requests.go
index 7d4bafc188..65d9d70c2f 100644
--- a/les/vflux/requests.go
+++ b/les/vflux/requests.go
@@ -21,7 +21,7 @@ import (
"math"
"math/big"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/cryptoecc/ETH-ECC/rlp"
)
var ErrNoReply = errors.New("no reply for given request")
diff --git a/les/vflux/server/balance.go b/les/vflux/server/balance.go
index b09f7bb501..d4fe63e38b 100644
--- a/les/vflux/server/balance.go
+++ b/les/vflux/server/balance.go
@@ -22,10 +22,10 @@ import (
"sync"
"time"
- "github.com/ethereum/go-ethereum/common/mclock"
- "github.com/ethereum/go-ethereum/les/utils"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/nodestate"
+ "github.com/cryptoecc/ETH-ECC/common/mclock"
+ "github.com/cryptoecc/ETH-ECC/les/utils"
+ "github.com/cryptoecc/ETH-ECC/p2p/enode"
+ "github.com/cryptoecc/ETH-ECC/p2p/nodestate"
)
var errBalanceOverflow = errors.New("balance overflow")
diff --git a/les/vflux/server/balance_test.go b/les/vflux/server/balance_test.go
index 7c100aab50..4145d5040f 100644
--- a/les/vflux/server/balance_test.go
+++ b/les/vflux/server/balance_test.go
@@ -23,13 +23,13 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/common/mclock"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/ethdb/memorydb"
- "github.com/ethereum/go-ethereum/les/utils"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/enr"
- "github.com/ethereum/go-ethereum/p2p/nodestate"
+ "github.com/cryptoecc/ETH-ECC/common/mclock"
+ "github.com/cryptoecc/ETH-ECC/ethdb"
+ "github.com/cryptoecc/ETH-ECC/ethdb/memorydb"
+ "github.com/cryptoecc/ETH-ECC/les/utils"
+ "github.com/cryptoecc/ETH-ECC/p2p/enode"
+ "github.com/cryptoecc/ETH-ECC/p2p/enr"
+ "github.com/cryptoecc/ETH-ECC/p2p/nodestate"
)
type zeroExpirer struct{}
diff --git a/les/vflux/server/balance_tracker.go b/les/vflux/server/balance_tracker.go
index 9695e79638..59e8987a20 100644
--- a/les/vflux/server/balance_tracker.go
+++ b/les/vflux/server/balance_tracker.go
@@ -20,12 +20,12 @@ import (
"sync"
"time"
- "github.com/ethereum/go-ethereum/common/mclock"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/les/utils"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/enr"
- "github.com/ethereum/go-ethereum/p2p/nodestate"
+ "github.com/cryptoecc/ETH-ECC/common/mclock"
+ "github.com/cryptoecc/ETH-ECC/ethdb"
+ "github.com/cryptoecc/ETH-ECC/les/utils"
+ "github.com/cryptoecc/ETH-ECC/p2p/enode"
+ "github.com/cryptoecc/ETH-ECC/p2p/enr"
+ "github.com/cryptoecc/ETH-ECC/p2p/nodestate"
)
const (
diff --git a/les/vflux/server/clientdb.go b/les/vflux/server/clientdb.go
index 30cd9a6528..758bd0b010 100644
--- a/les/vflux/server/clientdb.go
+++ b/les/vflux/server/clientdb.go
@@ -21,13 +21,13 @@ import (
"encoding/binary"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/mclock"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/les/utils"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/mclock"
+ "github.com/cryptoecc/ETH-ECC/ethdb"
+ "github.com/cryptoecc/ETH-ECC/les/utils"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/p2p/enode"
+ "github.com/cryptoecc/ETH-ECC/rlp"
lru "github.com/hashicorp/golang-lru"
)
diff --git a/les/vflux/server/clientdb_test.go b/les/vflux/server/clientdb_test.go
index 353d84aead..ba7e8974ac 100644
--- a/les/vflux/server/clientdb_test.go
+++ b/les/vflux/server/clientdb_test.go
@@ -21,10 +21,10 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/common/mclock"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/les/utils"
- "github.com/ethereum/go-ethereum/p2p/enode"
+ "github.com/cryptoecc/ETH-ECC/common/mclock"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/les/utils"
+ "github.com/cryptoecc/ETH-ECC/p2p/enode"
)
func expval(v uint64) utils.ExpiredValue {
diff --git a/les/vflux/server/clientpool.go b/les/vflux/server/clientpool.go
index 734d74f453..e1c791d2e0 100644
--- a/les/vflux/server/clientpool.go
+++ b/les/vflux/server/clientpool.go
@@ -21,14 +21,14 @@ import (
"sync"
"time"
- "github.com/ethereum/go-ethereum/common/mclock"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/les/utils"
- "github.com/ethereum/go-ethereum/les/vflux"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/nodestate"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/cryptoecc/ETH-ECC/common/mclock"
+ "github.com/cryptoecc/ETH-ECC/ethdb"
+ "github.com/cryptoecc/ETH-ECC/les/utils"
+ "github.com/cryptoecc/ETH-ECC/les/vflux"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/p2p/enode"
+ "github.com/cryptoecc/ETH-ECC/p2p/nodestate"
+ "github.com/cryptoecc/ETH-ECC/rlp"
)
var (
diff --git a/les/vflux/server/clientpool_test.go b/les/vflux/server/clientpool_test.go
index 790ec51360..2950923a97 100644
--- a/les/vflux/server/clientpool_test.go
+++ b/les/vflux/server/clientpool_test.go
@@ -22,11 +22,11 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/common/mclock"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/enr"
- "github.com/ethereum/go-ethereum/p2p/nodestate"
+ "github.com/cryptoecc/ETH-ECC/common/mclock"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/p2p/enode"
+ "github.com/cryptoecc/ETH-ECC/p2p/enr"
+ "github.com/cryptoecc/ETH-ECC/p2p/nodestate"
)
const defaultConnectedBias = time.Minute * 3
diff --git a/les/vflux/server/metrics.go b/les/vflux/server/metrics.go
index 680aebe2ea..839618b8c9 100644
--- a/les/vflux/server/metrics.go
+++ b/les/vflux/server/metrics.go
@@ -17,7 +17,7 @@
package server
import (
- "github.com/ethereum/go-ethereum/metrics"
+ "github.com/cryptoecc/ETH-ECC/metrics"
)
var (
diff --git a/les/vflux/server/prioritypool.go b/les/vflux/server/prioritypool.go
index 059dac0d46..5e8602780c 100644
--- a/les/vflux/server/prioritypool.go
+++ b/les/vflux/server/prioritypool.go
@@ -21,11 +21,11 @@ import (
"sync"
"time"
- "github.com/ethereum/go-ethereum/common/mclock"
- "github.com/ethereum/go-ethereum/common/prque"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/nodestate"
+ "github.com/cryptoecc/ETH-ECC/common/mclock"
+ "github.com/cryptoecc/ETH-ECC/common/prque"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/p2p/enode"
+ "github.com/cryptoecc/ETH-ECC/p2p/nodestate"
)
const (
diff --git a/les/vflux/server/prioritypool_test.go b/les/vflux/server/prioritypool_test.go
index 5152312116..f3ea7efd8f 100644
--- a/les/vflux/server/prioritypool_test.go
+++ b/les/vflux/server/prioritypool_test.go
@@ -22,10 +22,10 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/common/mclock"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/enr"
- "github.com/ethereum/go-ethereum/p2p/nodestate"
+ "github.com/cryptoecc/ETH-ECC/common/mclock"
+ "github.com/cryptoecc/ETH-ECC/p2p/enode"
+ "github.com/cryptoecc/ETH-ECC/p2p/enr"
+ "github.com/cryptoecc/ETH-ECC/p2p/nodestate"
)
const (
diff --git a/les/vflux/server/service.go b/les/vflux/server/service.go
index 40515f072e..d2ebe6dd13 100644
--- a/les/vflux/server/service.go
+++ b/les/vflux/server/service.go
@@ -22,11 +22,11 @@ import (
"sync"
"time"
- "github.com/ethereum/go-ethereum/les/utils"
- "github.com/ethereum/go-ethereum/les/vflux"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/cryptoecc/ETH-ECC/les/utils"
+ "github.com/cryptoecc/ETH-ECC/les/vflux"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/p2p/enode"
+ "github.com/cryptoecc/ETH-ECC/rlp"
)
type (
diff --git a/les/vflux/server/status.go b/les/vflux/server/status.go
index 2d7e25b684..4f679b7d88 100644
--- a/les/vflux/server/status.go
+++ b/les/vflux/server/status.go
@@ -19,7 +19,7 @@ package server
import (
"reflect"
- "github.com/ethereum/go-ethereum/p2p/nodestate"
+ "github.com/cryptoecc/ETH-ECC/p2p/nodestate"
)
type peerWrapper struct{ clientPeer } // the NodeStateMachine type system needs this wrapper
diff --git a/light/lightchain.go b/light/lightchain.go
index dca97ce45c..ab2f1f5f7f 100644
--- a/light/lightchain.go
+++ b/light/lightchain.go
@@ -26,17 +26,17 @@ import (
"sync/atomic"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/consensus"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/state"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/event"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/consensus"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/core/state"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/ethdb"
+ "github.com/cryptoecc/ETH-ECC/event"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/params"
+ "github.com/cryptoecc/ETH-ECC/rlp"
lru "github.com/hashicorp/golang-lru"
)
diff --git a/light/lightchain_test.go b/light/lightchain_test.go
index 8600e56345..5202e617f2 100644
--- a/light/lightchain_test.go
+++ b/light/lightchain_test.go
@@ -22,13 +22,13 @@ import (
"math/big"
"testing"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/consensus/ethash"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/consensus/ethash"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/ethdb"
+ "github.com/cryptoecc/ETH-ECC/params"
)
// So we can deterministically seed different blockchains
diff --git a/light/nodeset.go b/light/nodeset.go
index 3662596785..6d5dbf850f 100644
--- a/light/nodeset.go
+++ b/light/nodeset.go
@@ -20,10 +20,10 @@ import (
"errors"
"sync"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/ethdb"
+ "github.com/cryptoecc/ETH-ECC/rlp"
)
// NodeSet stores a set of trie nodes. It implements trie.Database and can also
diff --git a/light/odr.go b/light/odr.go
index 9521dd53e8..3649c8f0b6 100644
--- a/light/odr.go
+++ b/light/odr.go
@@ -21,11 +21,11 @@ import (
"errors"
"math/big"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/ethdb"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/ethdb"
)
// NoOdr is the default context passed to an ODR capable function when the ODR
diff --git a/light/odr_test.go b/light/odr_test.go
index d08963af66..1acfc53b22 100644
--- a/light/odr_test.go
+++ b/light/odr_test.go
@@ -24,19 +24,19 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/math"
- "github.com/ethereum/go-ethereum/consensus/ethash"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/state"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/core/vm"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/rlp"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/math"
+ "github.com/cryptoecc/ETH-ECC/consensus/ethash"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/core/state"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/core/vm"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/ethdb"
+ "github.com/cryptoecc/ETH-ECC/params"
+ "github.com/cryptoecc/ETH-ECC/rlp"
+ "github.com/cryptoecc/ETH-ECC/trie"
)
var (
diff --git a/light/odr_util.go b/light/odr_util.go
index 48631139b4..30bb8b2949 100644
--- a/light/odr_util.go
+++ b/light/odr_util.go
@@ -22,11 +22,11 @@ import (
"errors"
"math/big"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/rlp"
)
// errNonCanonicalHash is returned if the requested chain data doesn't belong
diff --git a/light/postprocess.go b/light/postprocess.go
index 3f9da65933..b49a64b417 100644
--- a/light/postprocess.go
+++ b/light/postprocess.go
@@ -25,17 +25,17 @@ import (
"math/big"
"time"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/bitutil"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/ethdb"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/params"
+ "github.com/cryptoecc/ETH-ECC/rlp"
+ "github.com/cryptoecc/ETH-ECC/trie"
mapset "github.com/deckarep/golang-set"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/bitutil"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/rlp"
- "github.com/ethereum/go-ethereum/trie"
)
// IndexerConfig includes a set of configs for chain indexers.
diff --git a/light/trie.go b/light/trie.go
index b88265e87d..ec5c14a50d 100644
--- a/light/trie.go
+++ b/light/trie.go
@@ -21,14 +21,14 @@ import (
"errors"
"fmt"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/state"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/rlp"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/core/state"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/ethdb"
+ "github.com/cryptoecc/ETH-ECC/rlp"
+ "github.com/cryptoecc/ETH-ECC/trie"
)
var (
diff --git a/light/trie_test.go b/light/trie_test.go
index 581469c41f..13f35c9b90 100644
--- a/light/trie_test.go
+++ b/light/trie_test.go
@@ -23,14 +23,14 @@ import (
"math/big"
"testing"
+ "github.com/cryptoecc/ETH-ECC/consensus/ethash"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/core/state"
+ "github.com/cryptoecc/ETH-ECC/core/vm"
+ "github.com/cryptoecc/ETH-ECC/params"
+ "github.com/cryptoecc/ETH-ECC/trie"
"github.com/davecgh/go-spew/spew"
- "github.com/ethereum/go-ethereum/consensus/ethash"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/state"
- "github.com/ethereum/go-ethereum/core/vm"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/trie"
)
func TestNodeIterator(t *testing.T) {
diff --git a/light/txpool.go b/light/txpool.go
index b3e1a62e18..7281bfa9e8 100644
--- a/light/txpool.go
+++ b/light/txpool.go
@@ -23,15 +23,15 @@ import (
"sync"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/state"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/event"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/core/state"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/ethdb"
+ "github.com/cryptoecc/ETH-ECC/event"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/params"
)
const (
@@ -76,10 +76,13 @@ type TxPool struct {
//
// Send instructs backend to forward new transactions
// NewHead notifies backend about a new head after processed by the tx pool,
-// including mined and rolled back transactions since the last event
+//
+// including mined and rolled back transactions since the last event
+//
// Discard notifies backend about transactions that should be discarded either
-// because they have been replaced by a re-send or because they have been mined
-// long ago and no rollback is expected
+//
+// because they have been replaced by a re-send or because they have been mined
+// long ago and no rollback is expected
type TxRelayBackend interface {
Send(txs types.Transactions)
NewHead(head common.Hash, mined []common.Hash, rollback []common.Hash)
diff --git a/light/txpool_test.go b/light/txpool_test.go
index 78cac513cb..0bc34b39d0 100644
--- a/light/txpool_test.go
+++ b/light/txpool_test.go
@@ -23,13 +23,13 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/consensus/ethash"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/core/vm"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/consensus/ethash"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/core/vm"
+ "github.com/cryptoecc/ETH-ECC/params"
)
type testTxRelay struct {
diff --git a/log/format.go b/log/format.go
index baf8fddac0..ffb96077df 100644
--- a/log/format.go
+++ b/log/format.go
@@ -24,7 +24,7 @@ const (
// locationTrims are trimmed for display to avoid unwieldy log lines.
var locationTrims = []string{
- "github.com/ethereum/go-ethereum/",
+ "github.com/cryptoecc/ETH-ECC/",
}
// PrintOrigins sets or unsets log location (file:line) printing for terminal
@@ -79,12 +79,11 @@ type TerminalStringer interface {
// a terminal with color-coded level output and terser human friendly timestamp.
// This format should only be used for interactive programs or while developing.
//
-// [LEVEL] [TIME] MESSAGE key=value key=value ...
+// [LEVEL] [TIME] MESSAGE key=value key=value ...
//
// Example:
//
-// [DBUG] [May 16 20:58:45] remove route ns=haproxy addr=127.0.0.1:50002
-//
+// [DBUG] [May 16 20:58:45] remove route ns=haproxy addr=127.0.0.1:50002
func TerminalFormat(usecolor bool) Format {
return FormatFunc(func(r *Record) []byte {
var color = 0
@@ -149,7 +148,6 @@ func TerminalFormat(usecolor bool) Format {
// format for key/value pairs.
//
// For more details see: http://godoc.org/github.com/kr/logfmt
-//
func LogfmtFormat() Format {
return FormatFunc(func(r *Record) []byte {
common := []interface{}{r.KeyNames.Time, r.Time, r.KeyNames.Lvl, r.Lvl, r.KeyNames.Msg, r.Msg}
diff --git a/metrics/cpu_enabled.go b/metrics/cpu_enabled.go
index 533d40b85a..0091923963 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/cryptoecc/ETH-ECC/log"
"github.com/shirou/gopsutil/cpu"
)
diff --git a/metrics/cputime_unix.go b/metrics/cputime_unix.go
index 3c56a75d00..10737be219 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/cryptoecc/ETH-ECC/log"
)
// getProcessCPUTime retrieves the process' CPU time since program startup.
diff --git a/metrics/exp/exp.go b/metrics/exp/exp.go
index 3ebe8cc68a..3ea81eea80 100644
--- a/metrics/exp/exp.go
+++ b/metrics/exp/exp.go
@@ -8,9 +8,9 @@ import (
"net/http"
"sync"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/metrics"
- "github.com/ethereum/go-ethereum/metrics/prometheus"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/metrics"
+ "github.com/cryptoecc/ETH-ECC/metrics/prometheus"
)
type exp struct {
diff --git a/metrics/influxdb/influxdb.go b/metrics/influxdb/influxdb.go
index e99717aeeb..73ab9f1ed0 100644
--- a/metrics/influxdb/influxdb.go
+++ b/metrics/influxdb/influxdb.go
@@ -5,8 +5,8 @@ import (
uurl "net/url"
"time"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/metrics"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/metrics"
"github.com/influxdata/influxdb/client"
)
diff --git a/metrics/influxdb/influxdbv2.go b/metrics/influxdb/influxdbv2.go
index c8eca41616..c973941d40 100644
--- a/metrics/influxdb/influxdbv2.go
+++ b/metrics/influxdb/influxdbv2.go
@@ -1,4 +1,3 @@
-//
// The go-ethereum library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
@@ -13,8 +12,8 @@ import (
"fmt"
"time"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/metrics"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/metrics"
influxdb2 "github.com/influxdata/influxdb-client-go/v2"
"github.com/influxdata/influxdb-client-go/v2/api"
)
diff --git a/metrics/librato/librato.go b/metrics/librato/librato.go
index b16493413e..d147630210 100644
--- a/metrics/librato/librato.go
+++ b/metrics/librato/librato.go
@@ -7,7 +7,7 @@ import (
"regexp"
"time"
- "github.com/ethereum/go-ethereum/metrics"
+ "github.com/cryptoecc/ETH-ECC/metrics"
)
// a regexp for extracting the unit from time.Duration.String
diff --git a/metrics/metrics.go b/metrics/metrics.go
index 747d6471a7..4d81b8274c 100644
--- a/metrics/metrics.go
+++ b/metrics/metrics.go
@@ -11,7 +11,7 @@ import (
"strings"
"time"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/cryptoecc/ETH-ECC/log"
)
// Enabled is checked by the constructor functions for all of the
diff --git a/metrics/prometheus/collector.go b/metrics/prometheus/collector.go
index e8d5e4f5d1..91424ad7bd 100644
--- a/metrics/prometheus/collector.go
+++ b/metrics/prometheus/collector.go
@@ -22,7 +22,7 @@ import (
"strconv"
"strings"
- "github.com/ethereum/go-ethereum/metrics"
+ "github.com/cryptoecc/ETH-ECC/metrics"
)
var (
diff --git a/metrics/prometheus/collector_test.go b/metrics/prometheus/collector_test.go
index 43f2f804d3..7d30b02445 100644
--- a/metrics/prometheus/collector_test.go
+++ b/metrics/prometheus/collector_test.go
@@ -5,7 +5,7 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/metrics"
+ "github.com/cryptoecc/ETH-ECC/metrics"
)
func TestMain(m *testing.M) {
diff --git a/metrics/prometheus/prometheus.go b/metrics/prometheus/prometheus.go
index c8408d8cab..5080667e54 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/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/metrics"
)
// Handler returns an HTTP handler which dump metrics in Prometheus format.
diff --git a/miner/miner.go b/miner/miner.go
index 1e9607a76a..10d62c34ca 100644
--- a/miner/miner.go
+++ b/miner/miner.go
@@ -23,16 +23,16 @@ import (
"sync"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/consensus"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/state"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/eth/downloader"
- "github.com/ethereum/go-ethereum/event"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/hexutil"
+ "github.com/cryptoecc/ETH-ECC/consensus"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/core/state"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/eth/downloader"
+ "github.com/cryptoecc/ETH-ECC/event"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/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 d49c07d964..cbacb7621a 100644
--- a/miner/miner_test.go
+++ b/miner/miner_test.go
@@ -22,17 +22,17 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/consensus/clique"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/state"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/core/vm"
- "github.com/ethereum/go-ethereum/eth/downloader"
- "github.com/ethereum/go-ethereum/ethdb/memorydb"
- "github.com/ethereum/go-ethereum/event"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/consensus/clique"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/core/state"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/core/vm"
+ "github.com/cryptoecc/ETH-ECC/eth/downloader"
+ "github.com/cryptoecc/ETH-ECC/ethdb/memorydb"
+ "github.com/cryptoecc/ETH-ECC/event"
+ "github.com/cryptoecc/ETH-ECC/trie"
)
type mockBackend struct {
diff --git a/miner/stress/1559/main.go b/miner/stress/1559/main.go
index 9c1ab0f4a1..65bf5d4414 100644
--- a/miner/stress/1559/main.go
+++ b/miner/stress/1559/main.go
@@ -25,21 +25,21 @@ import (
"os/signal"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/fdlimit"
- "github.com/ethereum/go-ethereum/consensus/ethash"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/eth"
- "github.com/ethereum/go-ethereum/eth/downloader"
- "github.com/ethereum/go-ethereum/eth/ethconfig"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/miner"
- "github.com/ethereum/go-ethereum/node"
- "github.com/ethereum/go-ethereum/p2p"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/fdlimit"
+ "github.com/cryptoecc/ETH-ECC/consensus/ethash"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/eth"
+ "github.com/cryptoecc/ETH-ECC/eth/downloader"
+ "github.com/cryptoecc/ETH-ECC/eth/ethconfig"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/miner"
+ "github.com/cryptoecc/ETH-ECC/node"
+ "github.com/cryptoecc/ETH-ECC/p2p"
+ "github.com/cryptoecc/ETH-ECC/p2p/enode"
+ "github.com/cryptoecc/ETH-ECC/params"
)
var (
diff --git a/miner/stress/beacon/main.go b/miner/stress/beacon/main.go
index 88af84c7fc..eb96bada89 100644
--- a/miner/stress/beacon/main.go
+++ b/miner/stress/beacon/main.go
@@ -26,26 +26,26 @@ import (
"path/filepath"
"time"
- "github.com/ethereum/go-ethereum/accounts/keystore"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/fdlimit"
- "github.com/ethereum/go-ethereum/consensus/ethash"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/beacon"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/eth"
- ethcatalyst "github.com/ethereum/go-ethereum/eth/catalyst"
- "github.com/ethereum/go-ethereum/eth/downloader"
- "github.com/ethereum/go-ethereum/eth/ethconfig"
- "github.com/ethereum/go-ethereum/les"
- lescatalyst "github.com/ethereum/go-ethereum/les/catalyst"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/miner"
- "github.com/ethereum/go-ethereum/node"
- "github.com/ethereum/go-ethereum/p2p"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/cryptoecc/ETH-ECC/accounts/keystore"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/fdlimit"
+ "github.com/cryptoecc/ETH-ECC/consensus/ethash"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/core/beacon"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/eth"
+ ethcatalyst "github.com/cryptoecc/ETH-ECC/eth/catalyst"
+ "github.com/cryptoecc/ETH-ECC/eth/downloader"
+ "github.com/cryptoecc/ETH-ECC/eth/ethconfig"
+ "github.com/cryptoecc/ETH-ECC/les"
+ lescatalyst "github.com/cryptoecc/ETH-ECC/les/catalyst"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/miner"
+ "github.com/cryptoecc/ETH-ECC/node"
+ "github.com/cryptoecc/ETH-ECC/p2p"
+ "github.com/cryptoecc/ETH-ECC/p2p/enode"
+ "github.com/cryptoecc/ETH-ECC/params"
)
type nodetype int
diff --git a/miner/stress/clique/main.go b/miner/stress/clique/main.go
index 070a6ed60e..1ef40e0506 100644
--- a/miner/stress/clique/main.go
+++ b/miner/stress/clique/main.go
@@ -26,21 +26,21 @@ import (
"os/signal"
"time"
- "github.com/ethereum/go-ethereum/accounts/keystore"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/fdlimit"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/eth"
- "github.com/ethereum/go-ethereum/eth/downloader"
- "github.com/ethereum/go-ethereum/eth/ethconfig"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/miner"
- "github.com/ethereum/go-ethereum/node"
- "github.com/ethereum/go-ethereum/p2p"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/cryptoecc/ETH-ECC/accounts/keystore"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/fdlimit"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/eth"
+ "github.com/cryptoecc/ETH-ECC/eth/downloader"
+ "github.com/cryptoecc/ETH-ECC/eth/ethconfig"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/miner"
+ "github.com/cryptoecc/ETH-ECC/node"
+ "github.com/cryptoecc/ETH-ECC/p2p"
+ "github.com/cryptoecc/ETH-ECC/p2p/enode"
+ "github.com/cryptoecc/ETH-ECC/params"
)
func main() {
diff --git a/miner/stress/ethash/main.go b/miner/stress/ethash/main.go
index 56a6e58173..99a4daa267 100644
--- a/miner/stress/ethash/main.go
+++ b/miner/stress/ethash/main.go
@@ -25,21 +25,21 @@ import (
"os/signal"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/fdlimit"
- "github.com/ethereum/go-ethereum/consensus/ethash"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/eth"
- "github.com/ethereum/go-ethereum/eth/downloader"
- "github.com/ethereum/go-ethereum/eth/ethconfig"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/miner"
- "github.com/ethereum/go-ethereum/node"
- "github.com/ethereum/go-ethereum/p2p"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/fdlimit"
+ "github.com/cryptoecc/ETH-ECC/consensus/ethash"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/eth"
+ "github.com/cryptoecc/ETH-ECC/eth/downloader"
+ "github.com/cryptoecc/ETH-ECC/eth/ethconfig"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/miner"
+ "github.com/cryptoecc/ETH-ECC/node"
+ "github.com/cryptoecc/ETH-ECC/p2p"
+ "github.com/cryptoecc/ETH-ECC/p2p/enode"
+ "github.com/cryptoecc/ETH-ECC/params"
)
func main() {
diff --git a/miner/unconfirmed.go b/miner/unconfirmed.go
index 0489f1ea4a..6f5998dd95 100644
--- a/miner/unconfirmed.go
+++ b/miner/unconfirmed.go
@@ -20,9 +20,9 @@ import (
"container/ring"
"sync"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/log"
)
// chainRetriever is used by the unconfirmed block set to verify whether a previously
diff --git a/miner/unconfirmed_test.go b/miner/unconfirmed_test.go
index 60958f658a..cdc9b4e681 100644
--- a/miner/unconfirmed_test.go
+++ b/miner/unconfirmed_test.go
@@ -19,7 +19,7 @@ package miner
import (
"testing"
- "github.com/ethereum/go-ethereum/core/types"
+ "github.com/cryptoecc/ETH-ECC/core/types"
)
// noopChainRetriever is an implementation of headerRetriever that always
diff --git a/miner/worker.go b/miner/worker.go
index 93fb6288bb..14f5b29477 100644
--- a/miner/worker.go
+++ b/miner/worker.go
@@ -24,17 +24,17 @@ import (
"sync/atomic"
"time"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/consensus"
+ "github.com/cryptoecc/ETH-ECC/consensus/misc"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/core/state"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/event"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/params"
+ "github.com/cryptoecc/ETH-ECC/trie"
mapset "github.com/deckarep/golang-set"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/consensus"
- "github.com/ethereum/go-ethereum/consensus/misc"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/state"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/event"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/trie"
)
const (
@@ -1140,7 +1140,7 @@ func (w *worker) commit(env *environment, interval func(), update bool, start ti
interval()
}
// Create a local environment copy, avoid the data race with snapshot state.
- // https://github.com/ethereum/go-ethereum/issues/24299
+ // https://github.com/cryptoecc/ETH-ECC/issues/24299
env := env.copy()
block, err := w.engine.FinalizeAndAssemble(w.chain, env.header, env.state, env.txs, env.unclelist(), env.receipts)
if err != nil {
diff --git a/miner/worker_test.go b/miner/worker_test.go
index 3c70b4baaf..54fd0e0641 100644
--- a/miner/worker_test.go
+++ b/miner/worker_test.go
@@ -24,20 +24,20 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/accounts"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/consensus"
- "github.com/ethereum/go-ethereum/consensus/clique"
- "github.com/ethereum/go-ethereum/consensus/ethash"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/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/event"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/cryptoecc/ETH-ECC/accounts"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/consensus"
+ "github.com/cryptoecc/ETH-ECC/consensus/clique"
+ "github.com/cryptoecc/ETH-ECC/consensus/ethash"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/core/state"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/core/vm"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/ethdb"
+ "github.com/cryptoecc/ETH-ECC/event"
+ "github.com/cryptoecc/ETH-ECC/params"
)
const (
diff --git a/mobile/accounts.go b/mobile/accounts.go
index d9eab93a74..594deab9a2 100644
--- a/mobile/accounts.go
+++ b/mobile/accounts.go
@@ -23,10 +23,10 @@ import (
"errors"
"time"
- "github.com/ethereum/go-ethereum/accounts"
- "github.com/ethereum/go-ethereum/accounts/keystore"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/crypto"
+ "github.com/cryptoecc/ETH-ECC/accounts"
+ "github.com/cryptoecc/ETH-ECC/accounts/keystore"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/crypto"
)
const (
diff --git a/mobile/android_test.go b/mobile/android_test.go
index 2ddf5d9d91..a179316e82 100644
--- a/mobile/android_test.go
+++ b/mobile/android_test.go
@@ -202,7 +202,7 @@ func TestAndroid(t *testing.T) {
}
}
// Generate the mobile bindings for Geth and add the tester class
- gobind := exec.Command("gomobile", "bind", "-javapkg", "org.ethereum", "github.com/ethereum/go-ethereum/mobile")
+ gobind := exec.Command("gomobile", "bind", "-javapkg", "org.ethereum", "github.com/cryptoecc/ETH-ECC/mobile")
if output, err := gobind.CombinedOutput(); err != nil {
t.Logf("%s", output)
t.Fatalf("failed to run gomobile bind: %v", err)
diff --git a/mobile/big.go b/mobile/big.go
index c08bcf93f2..46b4ccab30 100644
--- a/mobile/big.go
+++ b/mobile/big.go
@@ -22,7 +22,7 @@ import (
"errors"
"math/big"
- "github.com/ethereum/go-ethereum/common"
+ "github.com/cryptoecc/ETH-ECC/common"
)
// A BigInt represents a signed multi-precision integer.
@@ -77,7 +77,6 @@ func (bi *BigInt) SetInt64(x int64) {
// -1 if x < 0
// 0 if x == 0
// +1 if x > 0
-//
func (bi *BigInt) Sign() int {
return bi.bigint.Sign()
}
diff --git a/mobile/bind.go b/mobile/bind.go
index e32d864aa5..4f6027b141 100644
--- a/mobile/bind.go
+++ b/mobile/bind.go
@@ -22,11 +22,11 @@ import (
"math/big"
"strings"
- "github.com/ethereum/go-ethereum/accounts/abi"
- "github.com/ethereum/go-ethereum/accounts/abi/bind"
- "github.com/ethereum/go-ethereum/accounts/keystore"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/types"
+ "github.com/cryptoecc/ETH-ECC/accounts/abi"
+ "github.com/cryptoecc/ETH-ECC/accounts/abi/bind"
+ "github.com/cryptoecc/ETH-ECC/accounts/keystore"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core/types"
)
// Signer is an interface defining the callback when a contract requires a
diff --git a/mobile/common.go b/mobile/common.go
index 124712b4b1..d2e11f85d9 100644
--- a/mobile/common.go
+++ b/mobile/common.go
@@ -24,8 +24,8 @@ import (
"fmt"
"strings"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/hexutil"
)
// Hash represents the 32 byte Keccak256 hash of arbitrary data.
diff --git a/mobile/discover.go b/mobile/discover.go
index 2c699f08be..f8c42e4fab 100644
--- a/mobile/discover.go
+++ b/mobile/discover.go
@@ -22,7 +22,7 @@ package geth
import (
"errors"
- "github.com/ethereum/go-ethereum/p2p/enode"
+ "github.com/cryptoecc/ETH-ECC/p2p/enode"
)
// Enode represents a host on the network.
@@ -38,8 +38,8 @@ type Enode struct {
//
// For incomplete nodes, the designator must look like one of these
//
-// enode://
-//
+// enode://
+//
//
// For complete nodes, the node ID is encoded in the username portion
// of the URL, separated from the host by an @ sign. The hostname can
@@ -52,7 +52,7 @@ type Enode struct {
// a node with IP address 10.3.58.6, TCP listening port 30303
// and UDP discovery port 30301.
//
-// enode://@10.3.58.6:30303?discport=30301
+// enode://@10.3.58.6:30303?discport=30301
func NewEnode(rawurl string) (*Enode, error) {
node, err := enode.Parse(enode.ValidSchemes, rawurl)
if err != nil {
diff --git a/mobile/ethclient.go b/mobile/ethclient.go
index 00bcb3a2b9..68ad975a54 100644
--- a/mobile/ethclient.go
+++ b/mobile/ethclient.go
@@ -21,8 +21,8 @@ package geth
import (
"math/big"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/ethclient"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/ethclient"
)
// EthereumClient provides access to the Ethereum APIs.
diff --git a/mobile/ethereum.go b/mobile/ethereum.go
index d5058e4e20..3758042607 100644
--- a/mobile/ethereum.go
+++ b/mobile/ethereum.go
@@ -21,8 +21,8 @@ package geth
import (
"errors"
- "github.com/ethereum/go-ethereum"
- "github.com/ethereum/go-ethereum/common"
+ ethereum "github.com/cryptoecc/ETH-ECC"
+ "github.com/cryptoecc/ETH-ECC/common"
)
// Subscription represents an event subscription where events are
diff --git a/mobile/geth.go b/mobile/geth.go
index 204e29c8be..8aee585ff3 100644
--- a/mobile/geth.go
+++ b/mobile/geth.go
@@ -24,17 +24,17 @@ import (
"fmt"
"path/filepath"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/eth/downloader"
- "github.com/ethereum/go-ethereum/eth/ethconfig"
- "github.com/ethereum/go-ethereum/ethclient"
- "github.com/ethereum/go-ethereum/ethstats"
- "github.com/ethereum/go-ethereum/internal/debug"
- "github.com/ethereum/go-ethereum/les"
- "github.com/ethereum/go-ethereum/node"
- "github.com/ethereum/go-ethereum/p2p"
- "github.com/ethereum/go-ethereum/p2p/nat"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/eth/downloader"
+ "github.com/cryptoecc/ETH-ECC/eth/ethconfig"
+ "github.com/cryptoecc/ETH-ECC/ethclient"
+ "github.com/cryptoecc/ETH-ECC/ethstats"
+ "github.com/cryptoecc/ETH-ECC/internal/debug"
+ "github.com/cryptoecc/ETH-ECC/les"
+ "github.com/cryptoecc/ETH-ECC/node"
+ "github.com/cryptoecc/ETH-ECC/p2p"
+ "github.com/cryptoecc/ETH-ECC/p2p/nat"
+ "github.com/cryptoecc/ETH-ECC/params"
)
// NodeConfig represents the collection of configuration values to fine tune the Geth
diff --git a/mobile/init.go b/mobile/init.go
index 94f5baf28b..e71d16f36e 100644
--- a/mobile/init.go
+++ b/mobile/init.go
@@ -22,7 +22,7 @@ import (
"os"
"runtime"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/cryptoecc/ETH-ECC/log"
)
func init() {
diff --git a/mobile/interface.go b/mobile/interface.go
index d5200d5b1b..80a60f900f 100644
--- a/mobile/interface.go
+++ b/mobile/interface.go
@@ -22,7 +22,7 @@ import (
"errors"
"math/big"
- "github.com/ethereum/go-ethereum/common"
+ "github.com/cryptoecc/ETH-ECC/common"
)
// Interface represents a wrapped version of Go's interface{}, with the capacity
diff --git a/mobile/interface_test.go b/mobile/interface_test.go
index 4bd1af47aa..7baafe2594 100644
--- a/mobile/interface_test.go
+++ b/mobile/interface_test.go
@@ -22,7 +22,7 @@ import (
"reflect"
"testing"
- "github.com/ethereum/go-ethereum/common"
+ "github.com/cryptoecc/ETH-ECC/common"
)
func TestInterfaceGetSet(t *testing.T) {
diff --git a/mobile/logger.go b/mobile/logger.go
index 7078c4fd2c..52116c295e 100644
--- a/mobile/logger.go
+++ b/mobile/logger.go
@@ -19,7 +19,7 @@ package geth
import (
"os"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/cryptoecc/ETH-ECC/log"
)
// SetVerbosity sets the global verbosity level (between 0 and 6 - see logger/verbosity.go).
diff --git a/mobile/p2p.go b/mobile/p2p.go
index a80d9fff2e..1fc35f6848 100644
--- a/mobile/p2p.go
+++ b/mobile/p2p.go
@@ -21,7 +21,7 @@ package geth
import (
"errors"
- "github.com/ethereum/go-ethereum/p2p"
+ "github.com/cryptoecc/ETH-ECC/p2p"
)
// NodeInfo represents pi short summary of the information known about the host.
diff --git a/mobile/params.go b/mobile/params.go
index 2f4240b2e4..50a38362e1 100644
--- a/mobile/params.go
+++ b/mobile/params.go
@@ -21,9 +21,9 @@ package geth
import (
"encoding/json"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/p2p/enode"
+ "github.com/cryptoecc/ETH-ECC/params"
)
// MainnetGenesis returns the JSON spec to use for the main Ethereum network. It
diff --git a/mobile/primitives.go b/mobile/primitives.go
index 7e1ab26ef0..bb0583762f 100644
--- a/mobile/primitives.go
+++ b/mobile/primitives.go
@@ -22,7 +22,7 @@ import (
"errors"
"fmt"
- "github.com/ethereum/go-ethereum/common"
+ "github.com/cryptoecc/ETH-ECC/common"
)
// Strings represents s slice of strs.
diff --git a/mobile/types.go b/mobile/types.go
index f3f92e4d4a..880693f313 100644
--- a/mobile/types.go
+++ b/mobile/types.go
@@ -23,9 +23,9 @@ import (
"errors"
"fmt"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/rlp"
)
type jsonEncoder interface {
diff --git a/mobile/vm.go b/mobile/vm.go
index 72093e3d5b..ca95c742ba 100644
--- a/mobile/vm.go
+++ b/mobile/vm.go
@@ -21,7 +21,7 @@ package geth
import (
"errors"
- "github.com/ethereum/go-ethereum/core/types"
+ "github.com/cryptoecc/ETH-ECC/core/types"
)
// Log represents a contract log event. These events are generated by the LOG
diff --git a/node/api.go b/node/api.go
index 67953a812e..642f85cedb 100644
--- a/node/api.go
+++ b/node/api.go
@@ -21,13 +21,13 @@ import (
"fmt"
"strings"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/internal/debug"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/p2p"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/rpc"
+ "github.com/cryptoecc/ETH-ECC/common/hexutil"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/internal/debug"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/p2p"
+ "github.com/cryptoecc/ETH-ECC/p2p/enode"
+ "github.com/cryptoecc/ETH-ECC/rpc"
)
// apis returns the collection of built-in RPC APIs.
diff --git a/node/api_test.go b/node/api_test.go
index d76cb943e4..15780b8bb1 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/cryptoecc/ETH-ECC/rpc"
"github.com/stretchr/testify/assert"
)
diff --git a/node/config.go b/node/config.go
index 2047299fb5..8d62954170 100644
--- a/node/config.go
+++ b/node/config.go
@@ -25,12 +25,12 @@ import (
"strings"
"sync"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/p2p"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/rpc"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/p2p"
+ "github.com/cryptoecc/ETH-ECC/p2p/enode"
+ "github.com/cryptoecc/ETH-ECC/rpc"
)
const (
diff --git a/node/config_test.go b/node/config_test.go
index e8af8ddcd8..a6446076e7 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/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/p2p"
)
// Tests that datadirs can be successfully created, be them manually configured
diff --git a/node/defaults.go b/node/defaults.go
index fd0277e29d..0171a8ec36 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/cryptoecc/ETH-ECC/p2p"
+ "github.com/cryptoecc/ETH-ECC/p2p/nat"
+ "github.com/cryptoecc/ETH-ECC/rpc"
)
const (
diff --git a/node/endpoints.go b/node/endpoints.go
index 14c12fd1f1..9b6f8b6457 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/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/rpc"
)
// StartHTTPEndpoint starts the HTTP RPC endpoint.
diff --git a/node/node.go b/node/node.go
index b60e32f22f..1a4b191205 100644
--- a/node/node.go
+++ b/node/node.go
@@ -28,15 +28,15 @@ 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/event"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/p2p"
- "github.com/ethereum/go-ethereum/rpc"
+ "github.com/cryptoecc/ETH-ECC/accounts"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/hexutil"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/ethdb"
+ "github.com/cryptoecc/ETH-ECC/event"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/p2p"
+ "github.com/cryptoecc/ETH-ECC/rpc"
"github.com/prometheus/tsdb/fileutil"
)
diff --git a/node/node_example_test.go b/node/node_example_test.go
index d54fe03067..2d7c9c1de0 100644
--- a/node/node_example_test.go
+++ b/node/node_example_test.go
@@ -20,15 +20,15 @@ import (
"fmt"
"log"
- "github.com/ethereum/go-ethereum/node"
+ "github.com/cryptoecc/ETH-ECC/node"
)
// SampleLifecycle is a trivial network service that can be attached to a node for
// life cycle management.
//
// The following methods are needed to implement a node.Lifecycle:
-// - Start() error - method invoked when the node is ready to start the service
-// - Stop() error - method invoked when the node terminates the service
+// - Start() error - method invoked when the node is ready to start the service
+// - Stop() error - method invoked when the node terminates the service
type SampleLifecycle struct{}
func (s *SampleLifecycle) Start() error { fmt.Println("Service starting..."); return nil }
diff --git a/node/node_test.go b/node/node_test.go
index 7c76e21f6b..f9c72187cb 100644
--- a/node/node_test.go
+++ b/node/node_test.go
@@ -26,10 +26,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/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/ethdb"
+ "github.com/cryptoecc/ETH-ECC/p2p"
+ "github.com/cryptoecc/ETH-ECC/rpc"
"github.com/stretchr/testify/assert"
)
diff --git a/node/rpcstack.go b/node/rpcstack.go
index 5d411fa61e..f42debdeec 100644
--- a/node/rpcstack.go
+++ b/node/rpcstack.go
@@ -29,8 +29,8 @@ import (
"sync/atomic"
"time"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/rpc"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/rpc"
"github.com/rs/cors"
)
diff --git a/node/rpcstack_test.go b/node/rpcstack_test.go
index ebc2538006..69005c6b18 100644
--- a/node/rpcstack_test.go
+++ b/node/rpcstack_test.go
@@ -26,9 +26,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/cryptoecc/ETH-ECC/internal/testlog"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/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..b7f5634ddf 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/cryptoecc/ETH-ECC/p2p"
+ "github.com/cryptoecc/ETH-ECC/rpc"
)
// NoopLifecycle is a trivial implementation of the Service interface.
diff --git a/oss-fuzz.sh b/oss-fuzz.sh
index 745a5ba7c7..9817862d48 100644
--- a/oss-fuzz.sh
+++ b/oss-fuzz.sh
@@ -27,7 +27,7 @@
# $LIB_FUZZING_ENGINE C++ compiler argument to link fuzz target against the prebuilt engine library (e.g. libFuzzer).
# This sets the -coverpgk for the coverage report when the corpus is executed through go test
-coverpkg="github.com/ethereum/go-ethereum/..."
+coverpkg="github.com/cryptoecc/ETH-ECC/..."
function coverbuild {
path=$1
@@ -65,7 +65,7 @@ function compile_fuzzer {
# $2: The name of the fuzzing function
# $3: The name to give to the final fuzzing-binary
- path=$GOPATH/src/github.com/ethereum/go-ethereum/$1
+ path=$GOPATH/src/github.com/cryptoecc/ETH-ECC/$1
func=$2
fuzzer=$3
diff --git a/p2p/dial.go b/p2p/dial.go
index 0d70e6f4a3..316fbee2bf 100644
--- a/p2p/dial.go
+++ b/p2p/dial.go
@@ -27,10 +27,10 @@ import (
"sync"
"time"
- "github.com/ethereum/go-ethereum/common/mclock"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/netutil"
+ "github.com/cryptoecc/ETH-ECC/common/mclock"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/p2p/enode"
+ "github.com/cryptoecc/ETH-ECC/p2p/netutil"
)
const (
@@ -84,13 +84,12 @@ var (
// dialer creates outbound connections and submits them into Server.
// Two types of peer connections can be created:
//
-// - static dials are pre-configured connections. The dialer attempts
-// keep these nodes connected at all times.
-//
-// - dynamic dials are created from node discovery results. The dialer
-// continuously reads candidate nodes from its input iterator and attempts
-// to create peer connections to nodes arriving through the iterator.
+// - static dials are pre-configured connections. The dialer attempts
+// keep these nodes connected at all times.
//
+// - dynamic dials are created from node discovery results. The dialer
+// continuously reads candidate nodes from its input iterator and attempts
+// to create peer connections to nodes arriving through the iterator.
type dialScheduler struct {
dialConfig
setupFunc dialSetupFunc
diff --git a/p2p/dial_test.go b/p2p/dial_test.go
index cd8dedff1c..e9734ec3d4 100644
--- a/p2p/dial_test.go
+++ b/p2p/dial_test.go
@@ -27,11 +27,11 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/common/mclock"
- "github.com/ethereum/go-ethereum/internal/testlog"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/netutil"
+ "github.com/cryptoecc/ETH-ECC/common/mclock"
+ "github.com/cryptoecc/ETH-ECC/internal/testlog"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/p2p/enode"
+ "github.com/cryptoecc/ETH-ECC/p2p/netutil"
)
// This test checks that dynamic dials are launched from discovery results.
diff --git a/p2p/discover/common.go b/p2p/discover/common.go
index e389821fda..074617431c 100644
--- a/p2p/discover/common.go
+++ b/p2p/discover/common.go
@@ -20,11 +20,11 @@ import (
"crypto/ecdsa"
"net"
- "github.com/ethereum/go-ethereum/common/mclock"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/enr"
- "github.com/ethereum/go-ethereum/p2p/netutil"
+ "github.com/cryptoecc/ETH-ECC/common/mclock"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/p2p/enode"
+ "github.com/cryptoecc/ETH-ECC/p2p/enr"
+ "github.com/cryptoecc/ETH-ECC/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 b8d97b44e1..6552572400 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/cryptoecc/ETH-ECC/p2p/enode"
)
// lookup performs a network search for nodes close to the given target. It approaches the
diff --git a/p2p/discover/node.go b/p2p/discover/node.go
index 9ffe101ccf..a034b23881 100644
--- a/p2p/discover/node.go
+++ b/p2p/discover/node.go
@@ -24,9 +24,9 @@ import (
"net"
"time"
- "github.com/ethereum/go-ethereum/common/math"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/p2p/enode"
+ "github.com/cryptoecc/ETH-ECC/common/math"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/p2p/enode"
)
// node represents a host on the network.
diff --git a/p2p/discover/ntp.go b/p2p/discover/ntp.go
index 48ceffe95b..2f3ca9b91c 100644
--- a/p2p/discover/ntp.go
+++ b/p2p/discover/ntp.go
@@ -25,7 +25,7 @@ import (
"sort"
"time"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/cryptoecc/ETH-ECC/log"
)
const (
diff --git a/p2p/discover/table.go b/p2p/discover/table.go
index d08f8a6c69..065258ec49 100644
--- a/p2p/discover/table.go
+++ b/p2p/discover/table.go
@@ -32,10 +32,10 @@ import (
"sync"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/netutil"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/p2p/enode"
+ "github.com/cryptoecc/ETH-ECC/p2p/netutil"
)
const (
diff --git a/p2p/discover/table_test.go b/p2p/discover/table_test.go
index 5f40c967fd..9a5dc9e495 100644
--- a/p2p/discover/table_test.go
+++ b/p2p/discover/table_test.go
@@ -27,10 +27,10 @@ import (
"testing/quick"
"time"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/enr"
- "github.com/ethereum/go-ethereum/p2p/netutil"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/p2p/enode"
+ "github.com/cryptoecc/ETH-ECC/p2p/enr"
+ "github.com/cryptoecc/ETH-ECC/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 77e03ca9e7..ff543167ad 100644
--- a/p2p/discover/table_util_test.go
+++ b/p2p/discover/table_util_test.go
@@ -27,10 +27,10 @@ import (
"sort"
"sync"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/enr"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/p2p/enode"
+ "github.com/cryptoecc/ETH-ECC/p2p/enr"
)
var nullNode *enode.Node
diff --git a/p2p/discover/v4_lookup_test.go b/p2p/discover/v4_lookup_test.go
index a00de9ca18..bc589e3e1a 100644
--- a/p2p/discover/v4_lookup_test.go
+++ b/p2p/discover/v4_lookup_test.go
@@ -23,10 +23,10 @@ import (
"sort"
"testing"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/p2p/discover/v4wire"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/enr"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/p2p/discover/v4wire"
+ "github.com/cryptoecc/ETH-ECC/p2p/enode"
+ "github.com/cryptoecc/ETH-ECC/p2p/enr"
)
func TestUDPv4_Lookup(t *testing.T) {
diff --git a/p2p/discover/v4_udp.go b/p2p/discover/v4_udp.go
index 67cd2c004c..65f7401ed7 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/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/p2p/discover/v4wire"
+ "github.com/cryptoecc/ETH-ECC/p2p/enode"
+ "github.com/cryptoecc/ETH-ECC/p2p/netutil"
)
// Errors
diff --git a/p2p/discover/v4_udp_test.go b/p2p/discover/v4_udp_test.go
index e00bf2784c..4dd8a8483e 100644
--- a/p2p/discover/v4_udp_test.go
+++ b/p2p/discover/v4_udp_test.go
@@ -31,11 +31,11 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/internal/testlog"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/p2p/discover/v4wire"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/enr"
+ "github.com/cryptoecc/ETH-ECC/internal/testlog"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/p2p/discover/v4wire"
+ "github.com/cryptoecc/ETH-ECC/p2p/enode"
+ "github.com/cryptoecc/ETH-ECC/p2p/enr"
)
// shared test variables
diff --git a/p2p/discover/v4wire/v4wire.go b/p2p/discover/v4wire/v4wire.go
index 02ee459d14..a5eb92ae22 100644
--- a/p2p/discover/v4wire/v4wire.go
+++ b/p2p/discover/v4wire/v4wire.go
@@ -27,11 +27,11 @@ import (
"net"
"time"
- "github.com/ethereum/go-ethereum/common/math"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/enr"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/cryptoecc/ETH-ECC/common/math"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/p2p/enode"
+ "github.com/cryptoecc/ETH-ECC/p2p/enr"
+ "github.com/cryptoecc/ETH-ECC/rlp"
)
// RPC packet types
diff --git a/p2p/discover/v4wire/v4wire_test.go b/p2p/discover/v4wire/v4wire_test.go
index 38820f3b48..595eb00ed8 100644
--- a/p2p/discover/v4wire/v4wire_test.go
+++ b/p2p/discover/v4wire/v4wire_test.go
@@ -22,9 +22,9 @@ import (
"reflect"
"testing"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/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_udp.go b/p2p/discover/v5_udp.go
index 071ed65adc..b66e4df3f3 100644
--- a/p2p/discover/v5_udp.go
+++ b/p2p/discover/v5_udp.go
@@ -29,12 +29,12 @@ import (
"sync"
"time"
- "github.com/ethereum/go-ethereum/common/mclock"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/p2p/discover/v5wire"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/enr"
- "github.com/ethereum/go-ethereum/p2p/netutil"
+ "github.com/cryptoecc/ETH-ECC/common/mclock"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/p2p/discover/v5wire"
+ "github.com/cryptoecc/ETH-ECC/p2p/enode"
+ "github.com/cryptoecc/ETH-ECC/p2p/enr"
+ "github.com/cryptoecc/ETH-ECC/p2p/netutil"
)
const (
diff --git a/p2p/discover/v5_udp_test.go b/p2p/discover/v5_udp_test.go
index 30d610a4dd..b3c683bf41 100644
--- a/p2p/discover/v5_udp_test.go
+++ b/p2p/discover/v5_udp_test.go
@@ -28,12 +28,12 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/internal/testlog"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/p2p/discover/v5wire"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/enr"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/cryptoecc/ETH-ECC/internal/testlog"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/p2p/discover/v5wire"
+ "github.com/cryptoecc/ETH-ECC/p2p/enode"
+ "github.com/cryptoecc/ETH-ECC/p2p/enr"
+ "github.com/cryptoecc/ETH-ECC/rlp"
)
// Real sockets, real crypto: this test checks end-to-end connectivity for UDPv5.
diff --git a/p2p/discover/v5wire/crypto.go b/p2p/discover/v5wire/crypto.go
index fc0a0edef5..8e9e148c2c 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/cryptoecc/ETH-ECC/common/math"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/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..103fd3022c 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/cryptoecc/ETH-ECC/common/hexutil"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/p2p/enode"
)
func TestVector_ECDH(t *testing.T) {
diff --git a/p2p/discover/v5wire/encoding.go b/p2p/discover/v5wire/encoding.go
index 45f2f0883b..dd99e36ee4 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/cryptoecc/ETH-ECC/common/mclock"
+ "github.com/cryptoecc/ETH-ECC/p2p/enode"
+ "github.com/cryptoecc/ETH-ECC/p2p/enr"
+ "github.com/cryptoecc/ETH-ECC/rlp"
)
// TODO concurrent WHOAREYOU tie-breaker
diff --git a/p2p/discover/v5wire/encoding_test.go b/p2p/discover/v5wire/encoding_test.go
index 18aa1db1a4..d22618d332 100644
--- a/p2p/discover/v5wire/encoding_test.go
+++ b/p2p/discover/v5wire/encoding_test.go
@@ -29,17 +29,16 @@ import (
"strings"
"testing"
+ "github.com/cryptoecc/ETH-ECC/common/hexutil"
+ "github.com/cryptoecc/ETH-ECC/common/mclock"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/p2p/enode"
"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"
)
// To regenerate discv5 test vectors, run
//
-// go test -run TestVectors -write-test-vectors
-//
+// go test -run TestVectors -write-test-vectors
var writeTestVectorsFlag = flag.Bool("write-test-vectors", false, "Overwrite discv5 test vectors in testdata/")
var (
diff --git a/p2p/discover/v5wire/msg.go b/p2p/discover/v5wire/msg.go
index 2f387b4025..87aef5719a 100644
--- a/p2p/discover/v5wire/msg.go
+++ b/p2p/discover/v5wire/msg.go
@@ -20,10 +20,10 @@ import (
"fmt"
"net"
- "github.com/ethereum/go-ethereum/common/mclock"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/enr"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/cryptoecc/ETH-ECC/common/mclock"
+ "github.com/cryptoecc/ETH-ECC/p2p/enode"
+ "github.com/cryptoecc/ETH-ECC/p2p/enr"
+ "github.com/cryptoecc/ETH-ECC/rlp"
)
// Packet is implemented by all message types.
diff --git a/p2p/discover/v5wire/session.go b/p2p/discover/v5wire/session.go
index d52b5c1181..a50f06c58d 100644
--- a/p2p/discover/v5wire/session.go
+++ b/p2p/discover/v5wire/session.go
@@ -22,9 +22,9 @@ import (
"encoding/binary"
"time"
- "github.com/ethereum/go-ethereum/common/mclock"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/p2p/enode"
+ "github.com/cryptoecc/ETH-ECC/common/mclock"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/p2p/enode"
"github.com/hashicorp/golang-lru/simplelru"
)
diff --git a/p2p/dnsdisc/client.go b/p2p/dnsdisc/client.go
index 3f914d6e94..8e91f05143 100644
--- a/p2p/dnsdisc/client.go
+++ b/p2p/dnsdisc/client.go
@@ -27,11 +27,11 @@ import (
"sync"
"time"
- "github.com/ethereum/go-ethereum/common/mclock"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/enr"
+ "github.com/cryptoecc/ETH-ECC/common/mclock"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/p2p/enode"
+ "github.com/cryptoecc/ETH-ECC/p2p/enr"
lru "github.com/hashicorp/golang-lru"
"golang.org/x/sync/singleflight"
"golang.org/x/time/rate"
diff --git a/p2p/dnsdisc/client_test.go b/p2p/dnsdisc/client_test.go
index 0a9a96e621..7cf6c636a4 100644
--- a/p2p/dnsdisc/client_test.go
+++ b/p2p/dnsdisc/client_test.go
@@ -25,13 +25,13 @@ import (
"testing"
"time"
+ "github.com/cryptoecc/ETH-ECC/common/mclock"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/internal/testlog"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/p2p/enode"
+ "github.com/cryptoecc/ETH-ECC/p2p/enr"
"github.com/davecgh/go-spew/spew"
- "github.com/ethereum/go-ethereum/common/mclock"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/internal/testlog"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/enr"
)
const (
diff --git a/p2p/dnsdisc/sync.go b/p2p/dnsdisc/sync.go
index 073547c90d..bf821ddcdb 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/cryptoecc/ETH-ECC/common/mclock"
+ "github.com/cryptoecc/ETH-ECC/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 7d11e07ef7..d489d0b215 100644
--- a/p2p/dnsdisc/tree.go
+++ b/p2p/dnsdisc/tree.go
@@ -26,10 +26,10 @@ import (
"sort"
"strings"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/enr"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/p2p/enode"
+ "github.com/cryptoecc/ETH-ECC/p2p/enr"
+ "github.com/cryptoecc/ETH-ECC/rlp"
"golang.org/x/crypto/sha3"
)
@@ -117,21 +117,21 @@ func (t *Tree) Nodes() []*enode.Node {
We want to keep the UDP size below 512 bytes. The UDP size is roughly:
UDP length = 8 + UDP payload length ( 229 )
UPD Payload length:
- - dns.id 2
- - dns.flags 2
- - dns.count.queries 2
- - dns.count.answers 2
- - dns.count.auth_rr 2
- - dns.count.add_rr 2
- - queries (query-size + 6)
- - answers :
- - dns.resp.name 2
- - dns.resp.type 2
- - dns.resp.class 2
- - dns.resp.ttl 4
- - dns.resp.len 2
- - dns.txt.length 1
- - dns.txt resp_data_size
+ - dns.id 2
+ - dns.flags 2
+ - dns.count.queries 2
+ - dns.count.answers 2
+ - dns.count.auth_rr 2
+ - dns.count.add_rr 2
+ - queries (query-size + 6)
+ - answers :
+ - dns.resp.name 2
+ - dns.resp.type 2
+ - dns.resp.class 2
+ - dns.resp.ttl 4
+ - dns.resp.len 2
+ - dns.txt.length 1
+ - dns.txt resp_data_size
So the total size is roughly a fixed overhead of `39`, and the size of the
query (domain name) and response.
diff --git a/p2p/dnsdisc/tree_test.go b/p2p/dnsdisc/tree_test.go
index 461b9ec4fd..4b2586bd49 100644
--- a/p2p/dnsdisc/tree_test.go
+++ b/p2p/dnsdisc/tree_test.go
@@ -20,9 +20,9 @@ import (
"reflect"
"testing"
+ "github.com/cryptoecc/ETH-ECC/common/hexutil"
+ "github.com/cryptoecc/ETH-ECC/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 c1834f0699..60e87553e5 100644
--- a/p2p/enode/idscheme.go
+++ b/p2p/enode/idscheme.go
@@ -21,10 +21,10 @@ import (
"fmt"
"io"
- "github.com/ethereum/go-ethereum/common/math"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/p2p/enr"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/cryptoecc/ETH-ECC/common/math"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/p2p/enr"
+ "github.com/cryptoecc/ETH-ECC/rlp"
"golang.org/x/crypto/sha3"
)
diff --git a/p2p/enode/idscheme_test.go b/p2p/enode/idscheme_test.go
index 0910e6e83f..a9b93d85de 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/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/p2p/enr"
+ "github.com/cryptoecc/ETH-ECC/rlp"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
diff --git a/p2p/enode/iter_test.go b/p2p/enode/iter_test.go
index 5014346af4..cf55979809 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/cryptoecc/ETH-ECC/p2p/enr"
)
func TestReadNodes(t *testing.T) {
diff --git a/p2p/enode/localnode.go b/p2p/enode/localnode.go
index a18204e752..d7cf2321cb 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/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/p2p/enr"
+ "github.com/cryptoecc/ETH-ECC/p2p/netutil"
)
const (
diff --git a/p2p/enode/localnode_test.go b/p2p/enode/localnode_test.go
index 312df813bb..2ad0a5138a 100644
--- a/p2p/enode/localnode_test.go
+++ b/p2p/enode/localnode_test.go
@@ -21,8 +21,8 @@ import (
"net"
"testing"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/p2p/enr"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/p2p/enr"
"github.com/stretchr/testify/assert"
)
diff --git a/p2p/enode/node.go b/p2p/enode/node.go
index d747ca3313..2656abd483 100644
--- a/p2p/enode/node.go
+++ b/p2p/enode/node.go
@@ -26,8 +26,8 @@ import (
"net"
"strings"
- "github.com/ethereum/go-ethereum/p2p/enr"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/cryptoecc/ETH-ECC/p2p/enr"
+ "github.com/cryptoecc/ETH-ECC/rlp"
)
var errMissingPrefix = errors.New("missing 'enr:' prefix for base64-encoded record")
diff --git a/p2p/enode/node_test.go b/p2p/enode/node_test.go
index d15859c477..d5a8bfebfe 100644
--- a/p2p/enode/node_test.go
+++ b/p2p/enode/node_test.go
@@ -24,8 +24,8 @@ import (
"testing"
"testing/quick"
- "github.com/ethereum/go-ethereum/p2p/enr"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/cryptoecc/ETH-ECC/p2p/enr"
+ "github.com/cryptoecc/ETH-ECC/rlp"
"github.com/stretchr/testify/assert"
)
diff --git a/p2p/enode/nodedb.go b/p2p/enode/nodedb.go
index d1712f7597..1f4a03f2e7 100644
--- a/p2p/enode/nodedb.go
+++ b/p2p/enode/nodedb.go
@@ -26,7 +26,7 @@ import (
"sync"
"time"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/cryptoecc/ETH-ECC/rlp"
"github.com/syndtr/goleveldb/leveldb"
"github.com/syndtr/goleveldb/leveldb/errors"
"github.com/syndtr/goleveldb/leveldb/iterator"
diff --git a/p2p/enode/urlv4.go b/p2p/enode/urlv4.go
index c445049102..dd6402382d 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/cryptoecc/ETH-ECC/common/math"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/p2p/enr"
)
var (
@@ -54,8 +54,8 @@ func MustParseV4(rawurl string) *Node {
//
// For incomplete nodes, the designator must look like one of these
//
-// enode://
-//
+// enode://
+//
//
// For complete nodes, the node ID is encoded in the username portion
// of the URL, separated from the host by an @ sign. The hostname can
@@ -68,7 +68,7 @@ func MustParseV4(rawurl string) *Node {
// a node with IP address 10.3.58.6, TCP listening port 30303
// and UDP discovery port 30301.
//
-// enode://@10.3.58.6:30303?discport=30301
+// enode://@10.3.58.6:30303?discport=30301
func ParseV4(rawurl string) (*Node, error) {
if m := incompleteNodeURL.FindStringSubmatch(rawurl); m != nil {
id, err := parsePubkey(m[1])
diff --git a/p2p/enode/urlv4_test.go b/p2p/enode/urlv4_test.go
index 33de96cc57..9e3507bb61 100644
--- a/p2p/enode/urlv4_test.go
+++ b/p2p/enode/urlv4_test.go
@@ -24,8 +24,8 @@ import (
"strings"
"testing"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/p2p/enr"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/p2p/enr"
)
func init() {
diff --git a/p2p/enr/enr.go b/p2p/enr/enr.go
index 15891813b4..6624c01c70 100644
--- a/p2p/enr/enr.go
+++ b/p2p/enr/enr.go
@@ -19,7 +19,7 @@
// stored in key/value pairs. To store and retrieve key/values in a record, use the Entry
// interface.
//
-// Signature Handling
+// # Signature Handling
//
// Records must be signed before transmitting them to another node.
//
@@ -40,7 +40,7 @@ import (
"io"
"sort"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/cryptoecc/ETH-ECC/rlp"
)
const SizeLimit = 300 // maximum encoded size of a node record in bytes
diff --git a/p2p/enr/enr_test.go b/p2p/enr/enr_test.go
index bf3f104744..40cacdebee 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/cryptoecc/ETH-ECC/rlp"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
diff --git a/p2p/enr/entries.go b/p2p/enr/entries.go
index a8b0a3839b..133fe68700 100644
--- a/p2p/enr/entries.go
+++ b/p2p/enr/entries.go
@@ -22,7 +22,7 @@ import (
"io"
"net"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/cryptoecc/ETH-ECC/rlp"
)
// Entry is implemented by known node record entry types.
diff --git a/p2p/message.go b/p2p/message.go
index 7cbe0f1dc8..9e6ab9d922 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/cryptoecc/ETH-ECC/event"
+ "github.com/cryptoecc/ETH-ECC/p2p/enode"
+ "github.com/cryptoecc/ETH-ECC/rlp"
)
// Msg defines the structure of a p2p message.
@@ -107,12 +107,11 @@ func Send(w MsgWriter, msgcode uint64, data interface{}) error {
// SendItems writes an RLP with the given code and data elements.
// For a call such as:
//
-// SendItems(w, code, e1, e2, e3)
+// SendItems(w, code, e1, e2, e3)
//
// the message payload will be an RLP list containing the items:
//
-// [e1, e2, e3]
-//
+// [e1, e2, e3]
func SendItems(w MsgWriter, msgcode uint64, elems ...interface{}) error {
return Send(w, msgcode, elems)
}
diff --git a/p2p/metrics.go b/p2p/metrics.go
index 1bb505cdfb..8618459b5b 100644
--- a/p2p/metrics.go
+++ b/p2p/metrics.go
@@ -21,7 +21,7 @@ package p2p
import (
"net"
- "github.com/ethereum/go-ethereum/metrics"
+ "github.com/cryptoecc/ETH-ECC/metrics"
)
const (
diff --git a/p2p/msgrate/msgrate.go b/p2p/msgrate/msgrate.go
index d4e0eb8b5a..f0d370746a 100644
--- a/p2p/msgrate/msgrate.go
+++ b/p2p/msgrate/msgrate.go
@@ -24,7 +24,7 @@ import (
"sync"
"time"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/cryptoecc/ETH-ECC/log"
)
// measurementImpact is the impact a single measurement has on a peer's final
diff --git a/p2p/nat/nat.go b/p2p/nat/nat.go
index 9d5519b9c4..908f005fb3 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/cryptoecc/ETH-ECC/log"
natpmp "github.com/jackpal/go-nat-pmp"
)
@@ -53,12 +53,12 @@ type Interface interface {
// The following formats are currently accepted.
// Note that mechanism names are not case-sensitive.
//
-// "" or "none" return nil
-// "extip:77.12.33.4" will assume the local machine is reachable on the given IP
-// "any" uses the first auto-detected mechanism
-// "upnp" uses the Universal Plug and Play protocol
-// "pmp" uses NAT-PMP with an auto-detected gateway address
-// "pmp:192.168.0.1" uses NAT-PMP with the given gateway address
+// "" or "none" return nil
+// "extip:77.12.33.4" will assume the local machine is reachable on the given IP
+// "any" uses the first auto-detected mechanism
+// "upnp" uses the Universal Plug and Play protocol
+// "pmp" uses NAT-PMP with an auto-detected gateway address
+// "pmp:192.168.0.1" uses NAT-PMP with the given gateway address
func Parse(spec string) (Interface, error) {
var (
parts = strings.SplitN(spec, ":", 2)
diff --git a/p2p/nat/natupnp_test.go b/p2p/nat/natupnp_test.go
index 9072451d50..e6c23153e9 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/cryptoecc/ETH-ECC/issues/21476)")
}
}
upnp, _ := discovered.(*upnp)
diff --git a/p2p/netutil/iptrack.go b/p2p/netutil/iptrack.go
index b9cbd5e1ca..e195ed99a1 100644
--- a/p2p/netutil/iptrack.go
+++ b/p2p/netutil/iptrack.go
@@ -19,7 +19,7 @@ package netutil
import (
"time"
- "github.com/ethereum/go-ethereum/common/mclock"
+ "github.com/cryptoecc/ETH-ECC/common/mclock"
)
// IPTracker predicts the external endpoint, i.e. IP address and port, of the local host
diff --git a/p2p/netutil/iptrack_test.go b/p2p/netutil/iptrack_test.go
index a9a2998a65..baff559397 100644
--- a/p2p/netutil/iptrack_test.go
+++ b/p2p/netutil/iptrack_test.go
@@ -22,7 +22,7 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/common/mclock"
+ "github.com/cryptoecc/ETH-ECC/common/mclock"
)
const (
diff --git a/p2p/nodestate/nodestate.go b/p2p/nodestate/nodestate.go
index 2af0d0a6bd..8c04cf190d 100644
--- a/p2p/nodestate/nodestate.go
+++ b/p2p/nodestate/nodestate.go
@@ -23,13 +23,13 @@ import (
"time"
"unsafe"
- "github.com/ethereum/go-ethereum/common/mclock"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/metrics"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/enr"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/cryptoecc/ETH-ECC/common/mclock"
+ "github.com/cryptoecc/ETH-ECC/ethdb"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/metrics"
+ "github.com/cryptoecc/ETH-ECC/p2p/enode"
+ "github.com/cryptoecc/ETH-ECC/p2p/enr"
+ "github.com/cryptoecc/ETH-ECC/rlp"
)
var (
diff --git a/p2p/nodestate/nodestate_test.go b/p2p/nodestate/nodestate_test.go
index d06ad755e2..0203753776 100644
--- a/p2p/nodestate/nodestate_test.go
+++ b/p2p/nodestate/nodestate_test.go
@@ -23,11 +23,11 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/common/mclock"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/enr"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/cryptoecc/ETH-ECC/common/mclock"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/p2p/enode"
+ "github.com/cryptoecc/ETH-ECC/p2p/enr"
+ "github.com/cryptoecc/ETH-ECC/rlp"
)
func testSetup(flagPersist []bool, fieldType []reflect.Type) (*Setup, []Flags, []Field) {
diff --git a/p2p/peer.go b/p2p/peer.go
index 469a1b7974..541fbb5ddd 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/cryptoecc/ETH-ECC/common/mclock"
+ "github.com/cryptoecc/ETH-ECC/event"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/metrics"
+ "github.com/cryptoecc/ETH-ECC/p2p/enode"
+ "github.com/cryptoecc/ETH-ECC/p2p/enr"
+ "github.com/cryptoecc/ETH-ECC/rlp"
)
var (
diff --git a/p2p/peer_test.go b/p2p/peer_test.go
index 4308bbd2eb..108433b958 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/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/p2p/enode"
+ "github.com/cryptoecc/ETH-ECC/p2p/enr"
)
var discard = Protocol{
diff --git a/p2p/protocol.go b/p2p/protocol.go
index fa23a087c2..2588a749bd 100644
--- a/p2p/protocol.go
+++ b/p2p/protocol.go
@@ -19,8 +19,8 @@ package p2p
import (
"fmt"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/enr"
+ "github.com/cryptoecc/ETH-ECC/p2p/enode"
+ "github.com/cryptoecc/ETH-ECC/p2p/enr"
)
// Protocol represents a P2P subprotocol implementation.
diff --git a/p2p/rlpx/buffer_test.go b/p2p/rlpx/buffer_test.go
index 9fee4172bd..3721c876bb 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/cryptoecc/ETH-ECC/common/hexutil"
"github.com/stretchr/testify/assert"
)
diff --git a/p2p/rlpx/rlpx.go b/p2p/rlpx/rlpx.go
index 8bd6f64b9b..2d1c8f89de 100644
--- a/p2p/rlpx/rlpx.go
+++ b/p2p/rlpx/rlpx.go
@@ -34,9 +34,9 @@ import (
"net"
"time"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/crypto/ecies"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/crypto/ecies"
+ "github.com/cryptoecc/ETH-ECC/rlp"
"github.com/golang/snappy"
"golang.org/x/crypto/sha3"
)
diff --git a/p2p/rlpx/rlpx_test.go b/p2p/rlpx/rlpx_test.go
index 28759f2b49..6732168059 100644
--- a/p2p/rlpx/rlpx_test.go
+++ b/p2p/rlpx/rlpx_test.go
@@ -28,11 +28,11 @@ import (
"strings"
"testing"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/crypto/ecies"
+ "github.com/cryptoecc/ETH-ECC/p2p/simulations/pipes"
+ "github.com/cryptoecc/ETH-ECC/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/simulations/pipes"
- "github.com/ethereum/go-ethereum/rlp"
"github.com/stretchr/testify/assert"
)
diff --git a/p2p/server.go b/p2p/server.go
index 19f7935ffc..d68375a7a7 100644
--- a/p2p/server.go
+++ b/p2p/server.go
@@ -29,16 +29,16 @@ import (
"sync/atomic"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/mclock"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/event"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/p2p/discover"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/enr"
- "github.com/ethereum/go-ethereum/p2p/nat"
- "github.com/ethereum/go-ethereum/p2p/netutil"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/mclock"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/event"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/p2p/discover"
+ "github.com/cryptoecc/ETH-ECC/p2p/enode"
+ "github.com/cryptoecc/ETH-ECC/p2p/enr"
+ "github.com/cryptoecc/ETH-ECC/p2p/nat"
+ "github.com/cryptoecc/ETH-ECC/p2p/netutil"
)
const (
diff --git a/p2p/server_test.go b/p2p/server_test.go
index f6f5700c5e..d48ba9c90c 100644
--- a/p2p/server_test.go
+++ b/p2p/server_test.go
@@ -27,12 +27,12 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/internal/testlog"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/enr"
- "github.com/ethereum/go-ethereum/p2p/rlpx"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/internal/testlog"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/p2p/enode"
+ "github.com/cryptoecc/ETH-ECC/p2p/enr"
+ "github.com/cryptoecc/ETH-ECC/p2p/rlpx"
)
type testTransport struct {
diff --git a/p2p/simulations/adapters/exec.go b/p2p/simulations/adapters/exec.go
index 7bfa8aab6d..78e9871737 100644
--- a/p2p/simulations/adapters/exec.go
+++ b/p2p/simulations/adapters/exec.go
@@ -34,12 +34,12 @@ import (
"syscall"
"time"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/node"
+ "github.com/cryptoecc/ETH-ECC/p2p"
+ "github.com/cryptoecc/ETH-ECC/p2p/enode"
+ "github.com/cryptoecc/ETH-ECC/rpc"
"github.com/docker/docker/pkg/reexec"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/node"
- "github.com/ethereum/go-ethereum/p2p"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/rpc"
"github.com/gorilla/websocket"
)
diff --git a/p2p/simulations/adapters/inproc.go b/p2p/simulations/adapters/inproc.go
index 1cb26a8ea0..73a60ab3a7 100644
--- a/p2p/simulations/adapters/inproc.go
+++ b/p2p/simulations/adapters/inproc.go
@@ -24,13 +24,13 @@ import (
"net"
"sync"
- "github.com/ethereum/go-ethereum/event"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/node"
- "github.com/ethereum/go-ethereum/p2p"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/simulations/pipes"
- "github.com/ethereum/go-ethereum/rpc"
+ "github.com/cryptoecc/ETH-ECC/event"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/node"
+ "github.com/cryptoecc/ETH-ECC/p2p"
+ "github.com/cryptoecc/ETH-ECC/p2p/enode"
+ "github.com/cryptoecc/ETH-ECC/p2p/simulations/pipes"
+ "github.com/cryptoecc/ETH-ECC/rpc"
"github.com/gorilla/websocket"
)
diff --git a/p2p/simulations/adapters/inproc_test.go b/p2p/simulations/adapters/inproc_test.go
index 2a61508fe1..4345ea783a 100644
--- a/p2p/simulations/adapters/inproc_test.go
+++ b/p2p/simulations/adapters/inproc_test.go
@@ -23,7 +23,7 @@ import (
"sync"
"testing"
- "github.com/ethereum/go-ethereum/p2p/simulations/pipes"
+ "github.com/cryptoecc/ETH-ECC/p2p/simulations/pipes"
)
func TestTCPPipe(t *testing.T) {
diff --git a/p2p/simulations/adapters/types.go b/p2p/simulations/adapters/types.go
index aeb8ef7772..626590bc6f 100644
--- a/p2p/simulations/adapters/types.go
+++ b/p2p/simulations/adapters/types.go
@@ -25,14 +25,14 @@ import (
"os"
"strconv"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/node"
+ "github.com/cryptoecc/ETH-ECC/p2p"
+ "github.com/cryptoecc/ETH-ECC/p2p/enode"
+ "github.com/cryptoecc/ETH-ECC/p2p/enr"
+ "github.com/cryptoecc/ETH-ECC/rpc"
"github.com/docker/docker/pkg/reexec"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/node"
- "github.com/ethereum/go-ethereum/p2p"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/enr"
- "github.com/ethereum/go-ethereum/rpc"
"github.com/gorilla/websocket"
)
@@ -42,7 +42,6 @@ import (
// * SimNode - An in-memory node
// * ExecNode - A child process node
// * DockerNode - A Docker container node
-//
type Node interface {
// Addr returns the node's address (e.g. an Enode URL)
Addr() []byte
diff --git a/p2p/simulations/connect.go b/p2p/simulations/connect.go
index ede96b34c1..f96fe50097 100644
--- a/p2p/simulations/connect.go
+++ b/p2p/simulations/connect.go
@@ -20,7 +20,7 @@ import (
"errors"
"strings"
- "github.com/ethereum/go-ethereum/p2p/enode"
+ "github.com/cryptoecc/ETH-ECC/p2p/enode"
)
var (
diff --git a/p2p/simulations/connect_test.go b/p2p/simulations/connect_test.go
index 0154a18b03..3f0787b954 100644
--- a/p2p/simulations/connect_test.go
+++ b/p2p/simulations/connect_test.go
@@ -19,9 +19,9 @@ package simulations
import (
"testing"
- "github.com/ethereum/go-ethereum/node"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/simulations/adapters"
+ "github.com/cryptoecc/ETH-ECC/node"
+ "github.com/cryptoecc/ETH-ECC/p2p/enode"
+ "github.com/cryptoecc/ETH-ECC/p2p/simulations/adapters"
)
func newTestNetwork(t *testing.T, nodeCount int) (*Network, []enode.ID) {
diff --git a/p2p/simulations/examples/ping-pong.go b/p2p/simulations/examples/ping-pong.go
index 2f4c560548..9d1f02b2d3 100644
--- a/p2p/simulations/examples/ping-pong.go
+++ b/p2p/simulations/examples/ping-pong.go
@@ -25,12 +25,12 @@ import (
"sync/atomic"
"time"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/node"
- "github.com/ethereum/go-ethereum/p2p"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/simulations"
- "github.com/ethereum/go-ethereum/p2p/simulations/adapters"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/node"
+ "github.com/cryptoecc/ETH-ECC/p2p"
+ "github.com/cryptoecc/ETH-ECC/p2p/enode"
+ "github.com/cryptoecc/ETH-ECC/p2p/simulations"
+ "github.com/cryptoecc/ETH-ECC/p2p/simulations/adapters"
)
var adapterType = flag.String("adapter", "sim", `node adapter to use (one of "sim", "exec" or "docker")`)
diff --git a/p2p/simulations/http.go b/p2p/simulations/http.go
index b221a0597f..4188dbad98 100644
--- a/p2p/simulations/http.go
+++ b/p2p/simulations/http.go
@@ -30,11 +30,11 @@ import (
"strings"
"sync"
- "github.com/ethereum/go-ethereum/event"
- "github.com/ethereum/go-ethereum/p2p"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/simulations/adapters"
- "github.com/ethereum/go-ethereum/rpc"
+ "github.com/cryptoecc/ETH-ECC/event"
+ "github.com/cryptoecc/ETH-ECC/p2p"
+ "github.com/cryptoecc/ETH-ECC/p2p/enode"
+ "github.com/cryptoecc/ETH-ECC/p2p/simulations/adapters"
+ "github.com/cryptoecc/ETH-ECC/rpc"
"github.com/gorilla/websocket"
"github.com/julienschmidt/httprouter"
)
diff --git a/p2p/simulations/http_test.go b/p2p/simulations/http_test.go
index 5775977a41..0f69437463 100644
--- a/p2p/simulations/http_test.go
+++ b/p2p/simulations/http_test.go
@@ -29,13 +29,13 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/event"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/node"
- "github.com/ethereum/go-ethereum/p2p"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/simulations/adapters"
- "github.com/ethereum/go-ethereum/rpc"
+ "github.com/cryptoecc/ETH-ECC/event"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/node"
+ "github.com/cryptoecc/ETH-ECC/p2p"
+ "github.com/cryptoecc/ETH-ECC/p2p/enode"
+ "github.com/cryptoecc/ETH-ECC/p2p/simulations/adapters"
+ "github.com/cryptoecc/ETH-ECC/rpc"
"github.com/mattn/go-colorable"
)
diff --git a/p2p/simulations/mocker.go b/p2p/simulations/mocker.go
index 5a74b02c43..d40c41e0ca 100644
--- a/p2p/simulations/mocker.go
+++ b/p2p/simulations/mocker.go
@@ -24,25 +24,25 @@ import (
"sync"
"time"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/simulations/adapters"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/p2p/enode"
+ "github.com/cryptoecc/ETH-ECC/p2p/simulations/adapters"
)
-//a map of mocker names to its function
+// a map of mocker names to its function
var mockerList = map[string]func(net *Network, quit chan struct{}, nodeCount int){
"startStop": startStop,
"probabilistic": probabilistic,
"boot": boot,
}
-//Lookup a mocker by its name, returns the mockerFn
+// Lookup a mocker by its name, returns the mockerFn
func LookupMocker(mockerType string) func(net *Network, quit chan struct{}, nodeCount int) {
return mockerList[mockerType]
}
-//Get a list of mockers (keys of the map)
-//Useful for frontend to build available mocker selection
+// Get a list of mockers (keys of the map)
+// Useful for frontend to build available mocker selection
func GetMockerList() []string {
list := make([]string, 0, len(mockerList))
for k := range mockerList {
@@ -51,7 +51,7 @@ func GetMockerList() []string {
return list
}
-//The boot mockerFn only connects the node in a ring and doesn't do anything else
+// The boot mockerFn only connects the node in a ring and doesn't do anything else
func boot(net *Network, quit chan struct{}, nodeCount int) {
_, err := connectNodesInRing(net, nodeCount)
if err != nil {
@@ -59,7 +59,7 @@ func boot(net *Network, quit chan struct{}, nodeCount int) {
}
}
-//The startStop mockerFn stops and starts nodes in a defined period (ticker)
+// The startStop mockerFn stops and starts nodes in a defined period (ticker)
func startStop(net *Network, quit chan struct{}, nodeCount int) {
nodes, err := connectNodesInRing(net, nodeCount)
if err != nil {
@@ -96,10 +96,10 @@ func startStop(net *Network, quit chan struct{}, nodeCount int) {
}
}
-//The probabilistic mocker func has a more probabilistic pattern
-//(the implementation could probably be improved):
-//nodes are connected in a ring, then a varying number of random nodes is selected,
-//mocker then stops and starts them in random intervals, and continues the loop
+// The probabilistic mocker func has a more probabilistic pattern
+// (the implementation could probably be improved):
+// nodes are connected in a ring, then a varying number of random nodes is selected,
+// mocker then stops and starts them in random intervals, and continues the loop
func probabilistic(net *Network, quit chan struct{}, nodeCount int) {
nodes, err := connectNodesInRing(net, nodeCount)
if err != nil {
@@ -159,7 +159,7 @@ func probabilistic(net *Network, quit chan struct{}, nodeCount int) {
}
}
-//connect nodeCount number of nodes in a ring
+// connect nodeCount number of nodes in a ring
func connectNodesInRing(net *Network, nodeCount int) ([]enode.ID, error) {
ids := make([]enode.ID, nodeCount)
for i := 0; i < nodeCount; i++ {
diff --git a/p2p/simulations/mocker_test.go b/p2p/simulations/mocker_test.go
index 56d81942bb..2708f3e4bf 100644
--- a/p2p/simulations/mocker_test.go
+++ b/p2p/simulations/mocker_test.go
@@ -27,7 +27,7 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/p2p/enode"
+ "github.com/cryptoecc/ETH-ECC/p2p/enode"
)
func TestMocker(t *testing.T) {
diff --git a/p2p/simulations/network.go b/p2p/simulations/network.go
index d6c5aca73c..f68e589794 100644
--- a/p2p/simulations/network.go
+++ b/p2p/simulations/network.go
@@ -26,11 +26,11 @@ import (
"sync"
"time"
- "github.com/ethereum/go-ethereum/event"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/p2p"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/simulations/adapters"
+ "github.com/cryptoecc/ETH-ECC/event"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/p2p"
+ "github.com/cryptoecc/ETH-ECC/p2p/enode"
+ "github.com/cryptoecc/ETH-ECC/p2p/simulations/adapters"
)
var DialBanTimeout = 200 * time.Millisecond
diff --git a/p2p/simulations/network_test.go b/p2p/simulations/network_test.go
index ab8cf19462..8724e2e1c1 100644
--- a/p2p/simulations/network_test.go
+++ b/p2p/simulations/network_test.go
@@ -27,10 +27,10 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/node"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/simulations/adapters"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/node"
+ "github.com/cryptoecc/ETH-ECC/p2p/enode"
+ "github.com/cryptoecc/ETH-ECC/p2p/simulations/adapters"
)
// Tests that a created snapshot with a minimal service only contains the expected connections
diff --git a/p2p/simulations/simulation.go b/p2p/simulations/simulation.go
index ae62c42b9c..64bca81095 100644
--- a/p2p/simulations/simulation.go
+++ b/p2p/simulations/simulation.go
@@ -20,7 +20,7 @@ import (
"context"
"time"
- "github.com/ethereum/go-ethereum/p2p/enode"
+ "github.com/cryptoecc/ETH-ECC/p2p/enode"
)
// Simulation provides a framework for running actions in a simulated network
diff --git a/p2p/simulations/test.go b/p2p/simulations/test.go
index 0edb07b127..b457344118 100644
--- a/p2p/simulations/test.go
+++ b/p2p/simulations/test.go
@@ -19,10 +19,10 @@ package simulations
import (
"testing"
- "github.com/ethereum/go-ethereum/p2p"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/enr"
- "github.com/ethereum/go-ethereum/rpc"
+ "github.com/cryptoecc/ETH-ECC/p2p"
+ "github.com/cryptoecc/ETH-ECC/p2p/enode"
+ "github.com/cryptoecc/ETH-ECC/p2p/enr"
+ "github.com/cryptoecc/ETH-ECC/rpc"
)
// NoopService is the service that does not do anything
diff --git a/p2p/tracker/tracker.go b/p2p/tracker/tracker.go
index 6a733b9ba5..f296cc883d 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/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/metrics"
)
const (
diff --git a/p2p/transport.go b/p2p/transport.go
index 4f6bb569bf..f8dbe1b95b 100644
--- a/p2p/transport.go
+++ b/p2p/transport.go
@@ -25,11 +25,11 @@ import (
"sync"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/bitutil"
- "github.com/ethereum/go-ethereum/metrics"
- "github.com/ethereum/go-ethereum/p2p/rlpx"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/bitutil"
+ "github.com/cryptoecc/ETH-ECC/metrics"
+ "github.com/cryptoecc/ETH-ECC/p2p/rlpx"
+ "github.com/cryptoecc/ETH-ECC/rlp"
)
const (
diff --git a/p2p/transport_test.go b/p2p/transport_test.go
index 24e06c5a06..b34633592d 100644
--- a/p2p/transport_test.go
+++ b/p2p/transport_test.go
@@ -22,9 +22,9 @@ import (
"sync"
"testing"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/p2p/simulations/pipes"
"github.com/davecgh/go-spew/spew"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/p2p/simulations/pipes"
)
func TestProtocolHandshake(t *testing.T) {
diff --git a/p2p/util.go b/p2p/util.go
index 3c5f6b8508..f0c85a3a78 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/cryptoecc/ETH-ECC/common/mclock"
)
// expHeap tracks strings and their expiry time.
diff --git a/p2p/util_test.go b/p2p/util_test.go
index cc0d2b215f..18af8ed8ba 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/cryptoecc/ETH-ECC/common/mclock"
)
func TestExpHeap(t *testing.T) {
diff --git a/params/bootnodes.go b/params/bootnodes.go
index b809977745..05c3b034a5 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/cryptoecc/ETH-ECC/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 d535d23049..922a288cf7 100644
--- a/params/config.go
+++ b/params/config.go
@@ -21,7 +21,7 @@ import (
"fmt"
"math/big"
- "github.com/ethereum/go-ethereum/common"
+ "github.com/cryptoecc/ETH-ECC/common"
"golang.org/x/crypto/sha3"
)
diff --git a/params/dao.go b/params/dao.go
index da3c8dfc99..3ec76a919a 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/cryptoecc/ETH-ECC/common"
)
// DAOForkBlockExtra is the block header extra-data field to set for the DAO fork
diff --git a/rlp/decode.go b/rlp/decode.go
index 9214dbfb37..e2fca56c91 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/cryptoecc/ETH-ECC/rlp/internal/rlpstruct"
)
//lint:ignore ST1012 EOL is not an error.
@@ -76,7 +76,7 @@ type Decoder interface {
// Note that Decode does not set an input limit for all readers and may be vulnerable to
// panics cause by huge value sizes. If you need an input limit, use
//
-// NewStream(r, limit).Decode(val)
+// NewStream(r, limit).Decode(val)
func Decode(r io.Reader, val interface{}) error {
stream := streamPool.Get().(*Stream)
defer streamPool.Put(stream)
diff --git a/rlp/decode_test.go b/rlp/decode_test.go
index 00722f847b..dbb70e7a78 100644
--- a/rlp/decode_test.go
+++ b/rlp/decode_test.go
@@ -27,7 +27,7 @@ import (
"strings"
"testing"
- "github.com/ethereum/go-ethereum/common/math"
+ "github.com/cryptoecc/ETH-ECC/common/math"
)
func TestStreamKind(t *testing.T) {
diff --git a/rlp/encbuffer_example_test.go b/rlp/encbuffer_example_test.go
index ee15d82a77..8209c4fb9a 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/cryptoecc/ETH-ECC/rlp"
)
func ExampleEncoderBuffer() {
diff --git a/rlp/encode.go b/rlp/encode.go
index b96505f56d..545e23ed8f 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/cryptoecc/ETH-ECC/rlp/internal/rlpstruct"
)
var (
diff --git a/rlp/encode_test.go b/rlp/encode_test.go
index 58ddc0d120..d3367b7ae8 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/cryptoecc/ETH-ECC/common/math"
)
type testEncoder struct {
diff --git a/rlp/encoder_example_test.go b/rlp/encoder_example_test.go
index 4cd3cb8673..a140069e9b 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/cryptoecc/ETH-ECC/rlp"
)
type MyCoolType struct {
diff --git a/rlp/iterator_test.go b/rlp/iterator_test.go
index a22aaec862..49942ab633 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/cryptoecc/ETH-ECC/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 1deb5a93c2..53e6378402 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/cryptoecc/ETH-ECC/rlp/internal/rlpstruct"
)
// buildContext keeps the data needed for make*Op.
diff --git a/rlp/rlpgen/main.go b/rlp/rlpgen/main.go
index 25d4393cc6..cd77ba016b 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/cryptoecc/ETH-ECC/rlp"
func main() {
var (
diff --git a/rlp/rlpgen/testdata/bigint.out.txt b/rlp/rlpgen/testdata/bigint.out.txt
index f54d1faa15..abd5bb1d36 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/cryptoecc/ETH-ECC/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..2399d3bd5e 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/cryptoecc/ETH-ECC/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..fd300b7a1f 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/cryptoecc/ETH-ECC/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..f9e3881234 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/cryptoecc/ETH-ECC/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..d5e29c9771 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/cryptoecc/ETH-ECC/rlp"
import "io"
func (obj *Test) EncodeRLP(_w io.Writer) error {
diff --git a/rlp/rlpgen/testdata/uints.out.txt b/rlp/rlpgen/testdata/uints.out.txt
index 1a354956a4..f6bedcd818 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/cryptoecc/ETH-ECC/rlp"
import "io"
func (obj *Test) EncodeRLP(_w io.Writer) error {
diff --git a/rlp/typecache.go b/rlp/typecache.go
index 3e37c9d2fc..5d6bcc2ccb 100644
--- a/rlp/typecache.go
+++ b/rlp/typecache.go
@@ -22,7 +22,7 @@ import (
"sync"
"sync/atomic"
- "github.com/ethereum/go-ethereum/rlp/internal/rlpstruct"
+ "github.com/cryptoecc/ETH-ECC/rlp/internal/rlpstruct"
)
// typeinfo is an entry in the type cache.
diff --git a/rpc/client.go b/rpc/client.go
index d3ce029775..91fd17b351 100644
--- a/rpc/client.go
+++ b/rpc/client.go
@@ -27,7 +27,7 @@ import (
"sync/atomic"
"time"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/cryptoecc/ETH-ECC/log"
)
var (
diff --git a/rpc/client_example_test.go b/rpc/client_example_test.go
index 044b57a9c4..c330583689 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/cryptoecc/ETH-ECC/common/hexutil"
+ "github.com/cryptoecc/ETH-ECC/rpc"
)
// In this example, our client wishes to track the latest 'block number'
diff --git a/rpc/client_test.go b/rpc/client_test.go
index 04c847d0d6..87813c8bfa 100644
--- a/rpc/client_test.go
+++ b/rpc/client_test.go
@@ -32,8 +32,8 @@ import (
"testing"
"time"
+ "github.com/cryptoecc/ETH-ECC/log"
"github.com/davecgh/go-spew/spew"
- "github.com/ethereum/go-ethereum/log"
)
func TestClientRequest(t *testing.T) {
@@ -354,7 +354,7 @@ func TestClientSubscribeClose(t *testing.T) {
}
}
-// This test reproduces https://github.com/ethereum/go-ethereum/issues/17837 where the
+// This test reproduces https://github.com/cryptoecc/ETH-ECC/issues/17837 where the
// client hangs during shutdown when Unsubscribe races with Client.Close.
func TestClientCloseUnsubscribeRace(t *testing.T) {
server := newTestServer()
@@ -438,7 +438,7 @@ func TestClientSubscriptionUnsubscribeServer(t *testing.T) {
}
// This checks that the subscribed channel can be closed after Unsubscribe.
-// It is the reproducer for https://github.com/ethereum/go-ethereum/issues/22322
+// It is the reproducer for https://github.com/cryptoecc/ETH-ECC/issues/22322
func TestClientSubscriptionChannelClose(t *testing.T) {
t.Parallel()
diff --git a/rpc/doc.go b/rpc/doc.go
index e0a6324675..8d19d7dcbe 100644
--- a/rpc/doc.go
+++ b/rpc/doc.go
@@ -15,7 +15,6 @@
// along with the go-ethereum library. If not, see .
/*
-
Package rpc implements bi-directional JSON-RPC 2.0 on multiple transports.
It provides access to the exported methods of an object across a network or other I/O
@@ -23,16 +22,16 @@ connection. After creating a server or client instance, objects can be registere
them visible as 'services'. Exported methods that follow specific conventions can be
called remotely. It also has support for the publish/subscribe pattern.
-RPC Methods
+# RPC Methods
Methods that satisfy the following criteria are made available for remote access:
- - method must be exported
- - method returns 0, 1 (response or error) or 2 (response and error) values
+ - method must be exported
+ - method returns 0, 1 (response or error) or 2 (response and error) values
An example method:
- func (s *CalcService) Add(a, b int) (int, error)
+ func (s *CalcService) Add(a, b int) (int, error)
When the returned error isn't nil the returned integer is ignored and the error is sent
back to the client. Otherwise the returned integer is sent back to the client.
@@ -41,7 +40,7 @@ Optional arguments are supported by accepting pointer values as arguments. E.g.
to do the addition in an optional finite field we can accept a mod argument as pointer
value.
- func (s *CalcService) Add(a, b int, mod *int) (int, error)
+ func (s *CalcService) Add(a, b int, mod *int) (int, error)
This RPC method can be called with 2 integers and a null value as third argument. In that
case the mod argument will be nil. Or it can be called with 3 integers, in that case mod
@@ -56,40 +55,40 @@ to the client out of order.
An example server which uses the JSON codec:
- type CalculatorService struct {}
+ type CalculatorService struct {}
- func (s *CalculatorService) Add(a, b int) int {
- return a + b
- }
+ func (s *CalculatorService) Add(a, b int) int {
+ return a + b
+ }
- func (s *CalculatorService) Div(a, b int) (int, error) {
- if b == 0 {
- return 0, errors.New("divide by zero")
- }
- return a/b, nil
- }
+ func (s *CalculatorService) Div(a, b int) (int, error) {
+ if b == 0 {
+ return 0, errors.New("divide by zero")
+ }
+ return a/b, nil
+ }
- calculator := new(CalculatorService)
- server := NewServer()
- server.RegisterName("calculator", calculator)
- l, _ := net.ListenUnix("unix", &net.UnixAddr{Net: "unix", Name: "/tmp/calculator.sock"})
- server.ServeListener(l)
+ calculator := new(CalculatorService)
+ server := NewServer()
+ server.RegisterName("calculator", calculator)
+ l, _ := net.ListenUnix("unix", &net.UnixAddr{Net: "unix", Name: "/tmp/calculator.sock"})
+ server.ServeListener(l)
-Subscriptions
+# Subscriptions
The package also supports the publish subscribe pattern through the use of subscriptions.
A method that is considered eligible for notifications must satisfy the following
criteria:
- - method must be exported
- - first method argument type must be context.Context
- - method must have return types (rpc.Subscription, error)
+ - method must be exported
+ - first method argument type must be context.Context
+ - method must have return types (rpc.Subscription, error)
An example method:
- func (s *BlockChainService) NewBlocks(ctx context.Context) (rpc.Subscription, error) {
- ...
- }
+ func (s *BlockChainService) NewBlocks(ctx context.Context) (rpc.Subscription, error) {
+ ...
+ }
When the service containing the subscription method is registered to the server, for
example under the "blockchain" namespace, a subscription is created by calling the
@@ -99,9 +98,9 @@ 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/cryptoecc/ETH-ECC/wiki/RPC-PUB-SUB.
-Reverse Calls
+# Reverse Calls
In any method handler, an instance of rpc.Client can be accessed through the
ClientFromContext method. Using this client instance, server-to-client method calls can be
diff --git a/rpc/endpoints.go b/rpc/endpoints.go
index d78ebe2858..7c1d94e979 100644
--- a/rpc/endpoints.go
+++ b/rpc/endpoints.go
@@ -20,7 +20,7 @@ import (
"net"
"strings"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/cryptoecc/ETH-ECC/log"
)
// StartIPCEndpoint starts an IPC endpoint.
diff --git a/rpc/handler.go b/rpc/handler.go
index cd95a067f3..4b379b3415 100644
--- a/rpc/handler.go
+++ b/rpc/handler.go
@@ -25,7 +25,7 @@ import (
"sync"
"time"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/cryptoecc/ETH-ECC/log"
)
// handler handles JSON-RPC messages. There is one handler per connection. Note that
@@ -34,21 +34,20 @@ import (
//
// The entry points for incoming messages are:
//
-// h.handleMsg(message)
-// h.handleBatch(message)
+// h.handleMsg(message)
+// h.handleBatch(message)
//
// Outgoing calls use the requestOp struct. Register the request before sending it
// on the connection:
//
-// op := &requestOp{ids: ...}
-// h.addRequestOp(op)
+// op := &requestOp{ids: ...}
+// h.addRequestOp(op)
//
// Now send the request, then wait for the reply to be delivered through handleMsg:
//
-// if err := op.wait(...); err != nil {
-// h.removeRequestOp(op) // timeout, etc.
-// }
-//
+// if err := op.wait(...); err != nil {
+// h.removeRequestOp(op) // timeout, etc.
+// }
type handler struct {
reg *serviceRegistry
unsubscribeCb *callback
diff --git a/rpc/ipc.go b/rpc/ipc.go
index 07a211c627..1abffe859f 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/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/p2p/netutil"
)
// ServeListener accepts connections on l, serving JSON-RPC on them.
diff --git a/rpc/ipc_unix.go b/rpc/ipc_unix.go
index 249a9cf044..082521093f 100644
--- a/rpc/ipc_unix.go
+++ b/rpc/ipc_unix.go
@@ -26,7 +26,7 @@ import (
"os"
"path/filepath"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/cryptoecc/ETH-ECC/log"
)
// ipcListen will create a Unix socket on the given endpoint.
diff --git a/rpc/metrics.go b/rpc/metrics.go
index b1f1284535..b17211c5fd 100644
--- a/rpc/metrics.go
+++ b/rpc/metrics.go
@@ -20,7 +20,7 @@ import (
"fmt"
"time"
- "github.com/ethereum/go-ethereum/metrics"
+ "github.com/cryptoecc/ETH-ECC/metrics"
)
var (
diff --git a/rpc/server.go b/rpc/server.go
index bf1f71a28e..ee45236547 100644
--- a/rpc/server.go
+++ b/rpc/server.go
@@ -21,8 +21,8 @@ import (
"io"
"sync/atomic"
+ "github.com/cryptoecc/ETH-ECC/log"
mapset "github.com/deckarep/golang-set"
- "github.com/ethereum/go-ethereum/log"
)
const MetadataApi = "rpc"
diff --git a/rpc/service.go b/rpc/service.go
index bef891ea11..c4c923008a 100644
--- a/rpc/service.go
+++ b/rpc/service.go
@@ -26,7 +26,7 @@ import (
"sync"
"unicode"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/cryptoecc/ETH-ECC/log"
)
var (
diff --git a/rpc/types.go b/rpc/types.go
index e3d1a48968..b8d87c1b40 100644
--- a/rpc/types.go
+++ b/rpc/types.go
@@ -24,8 +24,8 @@ import (
"strconv"
"strings"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/hexutil"
)
// API describes the set of methods offered over the RPC interface
diff --git a/rpc/types_test.go b/rpc/types_test.go
index f110dee7c6..bade589a27 100644
--- a/rpc/types_test.go
+++ b/rpc/types_test.go
@@ -21,8 +21,8 @@ import (
"reflect"
"testing"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/math"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/math"
)
func TestBlockNumberJSONUnmarshal(t *testing.T) {
diff --git a/rpc/websocket.go b/rpc/websocket.go
index 28380d8aa4..2e0a97067a 100644
--- a/rpc/websocket.go
+++ b/rpc/websocket.go
@@ -27,8 +27,8 @@ import (
"sync"
"time"
+ "github.com/cryptoecc/ETH-ECC/log"
mapset "github.com/deckarep/golang-set"
- "github.com/ethereum/go-ethereum/log"
"github.com/gorilla/websocket"
)
diff --git a/rpc/websocket_test.go b/rpc/websocket_test.go
index f74b7fd08b..5c31bf3287 100644
--- a/rpc/websocket_test.go
+++ b/rpc/websocket_test.go
@@ -179,7 +179,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/cryptoecc/ETH-ECC/issues/19798
<-ctx.Done()
close(sendPing)
diff --git a/signer/core/api.go b/signer/core/api.go
index f10f03d83a..4fd2a07861 100644
--- a/signer/core/api.go
+++ b/signer/core/api.go
@@ -25,17 +25,17 @@ import (
"os"
"reflect"
- "github.com/ethereum/go-ethereum/accounts"
- "github.com/ethereum/go-ethereum/accounts/keystore"
- "github.com/ethereum/go-ethereum/accounts/scwallet"
- "github.com/ethereum/go-ethereum/accounts/usbwallet"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/internal/ethapi"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/rpc"
- "github.com/ethereum/go-ethereum/signer/core/apitypes"
- "github.com/ethereum/go-ethereum/signer/storage"
+ "github.com/cryptoecc/ETH-ECC/accounts"
+ "github.com/cryptoecc/ETH-ECC/accounts/keystore"
+ "github.com/cryptoecc/ETH-ECC/accounts/scwallet"
+ "github.com/cryptoecc/ETH-ECC/accounts/usbwallet"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/hexutil"
+ "github.com/cryptoecc/ETH-ECC/internal/ethapi"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/rpc"
+ "github.com/cryptoecc/ETH-ECC/signer/core/apitypes"
+ "github.com/cryptoecc/ETH-ECC/signer/storage"
)
const (
diff --git a/signer/core/api_test.go b/signer/core/api_test.go
index 6fa2af1836..89f25015fe 100644
--- a/signer/core/api_test.go
+++ b/signer/core/api_test.go
@@ -26,20 +26,20 @@ 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/cryptoecc/ETH-ECC/accounts"
+ "github.com/cryptoecc/ETH-ECC/accounts/keystore"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/hexutil"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/internal/ethapi"
+ "github.com/cryptoecc/ETH-ECC/rlp"
+ "github.com/cryptoecc/ETH-ECC/signer/core"
+ "github.com/cryptoecc/ETH-ECC/signer/core/apitypes"
+ "github.com/cryptoecc/ETH-ECC/signer/fourbyte"
+ "github.com/cryptoecc/ETH-ECC/signer/storage"
)
-//Used for testing
+// Used for testing
type headlessUi struct {
approveCh chan string // to send approve/deny
inputCh chan string // to send password
diff --git a/signer/core/apitypes/signed_data_internal_test.go b/signer/core/apitypes/signed_data_internal_test.go
index 121cc00dec..c6d5a77628 100644
--- a/signer/core/apitypes/signed_data_internal_test.go
+++ b/signer/core/apitypes/signed_data_internal_test.go
@@ -21,7 +21,7 @@ import (
"math/big"
"testing"
- "github.com/ethereum/go-ethereum/common/hexutil"
+ "github.com/cryptoecc/ETH-ECC/common/hexutil"
)
func TestBytesPadding(t *testing.T) {
diff --git a/signer/core/apitypes/types.go b/signer/core/apitypes/types.go
index 0652108f88..11a19d12fe 100644
--- a/signer/core/apitypes/types.go
+++ b/signer/core/apitypes/types.go
@@ -30,12 +30,12 @@ import (
"unicode"
"unicode/utf8"
- "github.com/ethereum/go-ethereum/accounts"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/common/math"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/crypto"
+ "github.com/cryptoecc/ETH-ECC/accounts"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/hexutil"
+ "github.com/cryptoecc/ETH-ECC/common/math"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/crypto"
)
var typedDataReferenceTypeRegexp = regexp.MustCompile(`^[A-Z](\w*)(\[\])?$`)
@@ -64,7 +64,7 @@ func (vs *ValidationMessages) Info(msg string) {
vs.Messages = append(vs.Messages, ValidationInfo{INFO, msg})
}
-/// getWarnings returns an error with all messages of type WARN of above, or nil if no warnings were present
+// / getWarnings returns an error with all messages of type WARN of above, or nil if no warnings were present
func (v *ValidationMessages) GetWarnings() error {
var messages []string
for _, msg := range v.Messages {
@@ -93,7 +93,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/cryptoecc/ETH-ECC/issues/15628
Data *hexutil.Bytes `json:"data"`
Input *hexutil.Bytes `json:"input,omitempty"`
diff --git a/signer/core/auditlog.go b/signer/core/auditlog.go
index a0b292bf71..dcda616317 100644
--- a/signer/core/auditlog.go
+++ b/signer/core/auditlog.go
@@ -20,11 +20,11 @@ import (
"context"
"encoding/json"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/internal/ethapi"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/signer/core/apitypes"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/hexutil"
+ "github.com/cryptoecc/ETH-ECC/internal/ethapi"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/signer/core/apitypes"
)
type AuditLogger struct {
diff --git a/signer/core/cliui.go b/signer/core/cliui.go
index 187eb1390a..4d587688c6 100644
--- a/signer/core/cliui.go
+++ b/signer/core/cliui.go
@@ -24,10 +24,10 @@ import (
"strings"
"sync"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/console/prompt"
- "github.com/ethereum/go-ethereum/internal/ethapi"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/cryptoecc/ETH-ECC/common/hexutil"
+ "github.com/cryptoecc/ETH-ECC/console/prompt"
+ "github.com/cryptoecc/ETH-ECC/internal/ethapi"
+ "github.com/cryptoecc/ETH-ECC/log"
)
type CommandlineUI struct {
diff --git a/signer/core/gnosis_safe.go b/signer/core/gnosis_safe.go
index 01724e5383..cac4c158f1 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/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/hexutil"
+ "github.com/cryptoecc/ETH-ECC/common/math"
+ "github.com/cryptoecc/ETH-ECC/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 c0da22e626..8a884d50a2 100644
--- a/signer/core/signed_data.go
+++ b/signer/core/signed_data.go
@@ -22,14 +22,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/cryptoecc/ETH-ECC/accounts"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/hexutil"
+ "github.com/cryptoecc/ETH-ECC/consensus/clique"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/rlp"
+ "github.com/cryptoecc/ETH-ECC/signer/core/apitypes"
)
// sign receives a request and produces a signature
@@ -271,7 +271,7 @@ func (api *SignerAPI) EcRecover(ctx context.Context, data hexutil.Bytes, sig hex
// Note, the signature must conform to the secp256k1 curve R, S and V values, where
// the V value must be 27 or 28 for legacy reasons.
//
- // https://github.com/ethereum/go-ethereum/wiki/Management-APIs#personal_ecRecover
+ // https://github.com/cryptoecc/ETH-ECC/wiki/Management-APIs#personal_ecRecover
if len(sig) != 65 {
return common.Address{}, fmt.Errorf("signature must be 65 bytes long")
}
diff --git a/signer/core/signed_data_test.go b/signer/core/signed_data_test.go
index 7d5661e7e6..a4b319230a 100644
--- a/signer/core/signed_data_test.go
+++ b/signer/core/signed_data_test.go
@@ -26,13 +26,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/cryptoecc/ETH-ECC/accounts/keystore"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/hexutil"
+ "github.com/cryptoecc/ETH-ECC/common/math"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/signer/core"
+ "github.com/cryptoecc/ETH-ECC/signer/core/apitypes"
)
var typesStandard = apitypes.Types{
diff --git a/signer/core/stdioui.go b/signer/core/stdioui.go
index 6963a89122..91e187d55b 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/cryptoecc/ETH-ECC/internal/ethapi"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/rpc"
)
type StdIOUI struct {
diff --git a/signer/core/uiapi.go b/signer/core/uiapi.go
index 59466d8fa0..0f9cc7b81b 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/cryptoecc/ETH-ECC/accounts"
+ "github.com/cryptoecc/ETH-ECC/accounts/keystore"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/math"
+ "github.com/cryptoecc/ETH-ECC/crypto"
)
// SignerUIAPI implements methods Clef provides for a UI to query, in the bidirectional communication
diff --git a/signer/fourbyte/abi.go b/signer/fourbyte/abi.go
index 352abc59e1..9b4e6afaab 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/cryptoecc/ETH-ECC/accounts/abi"
+ "github.com/cryptoecc/ETH-ECC/common"
)
// decodedCallData is an internal type to represent a method call parsed according
diff --git a/signer/fourbyte/abi_test.go b/signer/fourbyte/abi_test.go
index 68c027ecea..6bd57cc93b 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/cryptoecc/ETH-ECC/accounts/abi"
+ "github.com/cryptoecc/ETH-ECC/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 017001f97b..1d387909aa 100644
--- a/signer/fourbyte/fourbyte_test.go
+++ b/signer/fourbyte/fourbyte_test.go
@@ -21,8 +21,8 @@ import (
"strings"
"testing"
- "github.com/ethereum/go-ethereum/accounts/abi"
- "github.com/ethereum/go-ethereum/common"
+ "github.com/cryptoecc/ETH-ECC/accounts/abi"
+ "github.com/cryptoecc/ETH-ECC/common"
)
// Tests that all the selectors contained in the 4byte database are valid.
diff --git a/signer/fourbyte/validation.go b/signer/fourbyte/validation.go
index 58111e8e00..27b6c8b5e9 100644
--- a/signer/fourbyte/validation.go
+++ b/signer/fourbyte/validation.go
@@ -22,8 +22,8 @@ import (
"fmt"
"math/big"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/signer/core/apitypes"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/signer/core/apitypes"
)
// ValidateTransaction does a number of checks on the supplied transaction, and
@@ -49,7 +49,7 @@ func (db *Database) ValidateTransaction(selector *string, tx *apitypes.SendTxArg
if tx.To == nil {
// Contract creation should contain sufficient data to deploy a contract. A
// typical error is omitting sender due to some quirk in the javascript call
- // e.g. https://github.com/ethereum/go-ethereum/issues/16106.
+ // e.g. https://github.com/cryptoecc/ETH-ECC/issues/16106.
if len(data) == 0 {
// Prevent sending ether into black hole (show stopper)
if tx.Value.ToInt().Cmp(big.NewInt(0)) > 0 {
diff --git a/signer/fourbyte/validation_test.go b/signer/fourbyte/validation_test.go
index 1b0ab507a8..ac730ef8d0 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/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/hexutil"
+ "github.com/cryptoecc/ETH-ECC/signer/core/apitypes"
)
func mixAddr(a string) (*common.MixedcaseAddress, error) {
diff --git a/signer/rules/rules.go b/signer/rules/rules.go
index 5ed4514e02..9da7c8deb1 100644
--- a/signer/rules/rules.go
+++ b/signer/rules/rules.go
@@ -22,12 +22,12 @@ import (
"os"
"strings"
+ "github.com/cryptoecc/ETH-ECC/internal/ethapi"
+ "github.com/cryptoecc/ETH-ECC/internal/jsre/deps"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/signer/core"
+ "github.com/cryptoecc/ETH-ECC/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 c35da8ecc1..f5e7e4351e 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/cryptoecc/ETH-ECC/accounts"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/hexutil"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/internal/ethapi"
+ "github.com/cryptoecc/ETH-ECC/signer/core"
+ "github.com/cryptoecc/ETH-ECC/signer/core/apitypes"
+ "github.com/cryptoecc/ETH-ECC/signer/storage"
)
const JS = `
diff --git a/signer/storage/aes_gcm_storage.go b/signer/storage/aes_gcm_storage.go
index 928d643dd6..9b96568db5 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/cryptoecc/ETH-ECC/log"
)
type storedCredential struct {
diff --git a/signer/storage/aes_gcm_storage_test.go b/signer/storage/aes_gcm_storage_test.go
index e1fea59280..80b9368c01 100644
--- a/signer/storage/aes_gcm_storage_test.go
+++ b/signer/storage/aes_gcm_storage_test.go
@@ -23,8 +23,8 @@ import (
"os"
"testing"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/log"
"github.com/mattn/go-colorable"
)
diff --git a/tests/block_test_util.go b/tests/block_test_util.go
index 80f93d7c08..6603e1d4d3 100644
--- a/tests/block_test_util.go
+++ b/tests/block_test_util.go
@@ -25,18 +25,18 @@ import (
"math/big"
"os"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/common/math"
- "github.com/ethereum/go-ethereum/consensus"
- "github.com/ethereum/go-ethereum/consensus/ethash"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/state"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/core/vm"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/hexutil"
+ "github.com/cryptoecc/ETH-ECC/common/math"
+ "github.com/cryptoecc/ETH-ECC/consensus"
+ "github.com/cryptoecc/ETH-ECC/consensus/ethash"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/core/state"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/core/vm"
+ "github.com/cryptoecc/ETH-ECC/params"
+ "github.com/cryptoecc/ETH-ECC/rlp"
)
// A BlockTest checks handling of entire blocks.
@@ -175,17 +175,18 @@ func (t *BlockTest) genesis(config *params.ChainConfig) *core.Genesis {
}
}
-/* See https://github.com/ethereum/tests/wiki/Blockchain-Tests-II
+/*
+See https://github.com/ethereum/tests/wiki/Blockchain-Tests-II
- Whether a block is valid or not is a bit subtle, it's defined by presence of
- blockHeader, transactions and uncleHeaders fields. If they are missing, the block is
- invalid and we must verify that we do not accept it.
+ Whether a block is valid or not is a bit subtle, it's defined by presence of
+ blockHeader, transactions and uncleHeaders fields. If they are missing, the block is
+ invalid and we must verify that we do not accept it.
- Since some tests mix valid and invalid blocks we need to check this for every block.
+ Since some tests mix valid and invalid blocks we need to check this for every block.
- If a block is invalid it does not necessarily fail the test, if it's invalidness is
- expected we are expected to ignore it and continue processing and then validate the
- post state.
+ If a block is invalid it does not necessarily fail the test, if it's invalidness is
+ expected we are expected to ignore it and continue processing and then validate the
+ post state.
*/
func (t *BlockTest) insertBlocks(blockchain *core.BlockChain) ([]btBlock, error) {
validBlocks := make([]btBlock, 0)
diff --git a/tests/difficulty_test.go b/tests/difficulty_test.go
index 8239850b76..78f643ba61 100644
--- a/tests/difficulty_test.go
+++ b/tests/difficulty_test.go
@@ -20,8 +20,8 @@ import (
"math/big"
"testing"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/params"
)
var (
diff --git a/tests/difficulty_test_util.go b/tests/difficulty_test_util.go
index 62b978f9ef..308b781b91 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/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/math"
+ "github.com/cryptoecc/ETH-ECC/consensus/ethash"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/params"
)
//go:generate go run github.com/fjl/gencodec -type DifficultyTest -field-override difficultyTestMarshaling -out gen_difficultytest.go
diff --git a/tests/fuzzers/abi/abifuzzer.go b/tests/fuzzers/abi/abifuzzer.go
index 60233d158a..b23db215cb 100644
--- a/tests/fuzzers/abi/abifuzzer.go
+++ b/tests/fuzzers/abi/abifuzzer.go
@@ -21,7 +21,7 @@ import (
"reflect"
"strings"
- "github.com/ethereum/go-ethereum/accounts/abi"
+ "github.com/cryptoecc/ETH-ECC/accounts/abi"
fuzz "github.com/google/gofuzz"
)
diff --git a/tests/fuzzers/bitutil/compress_fuzz.go b/tests/fuzzers/bitutil/compress_fuzz.go
index 5903cf2f93..15b7668237 100644
--- a/tests/fuzzers/bitutil/compress_fuzz.go
+++ b/tests/fuzzers/bitutil/compress_fuzz.go
@@ -19,7 +19,7 @@ package bitutil
import (
"bytes"
- "github.com/ethereum/go-ethereum/common/bitutil"
+ "github.com/cryptoecc/ETH-ECC/common/bitutil"
)
// Fuzz implements a go-fuzz fuzzer method to test various encoding method
diff --git a/tests/fuzzers/bls12381/bls12381_fuzz.go b/tests/fuzzers/bls12381/bls12381_fuzz.go
index a5b4b9e798..b3e1fe56f9 100644
--- a/tests/fuzzers/bls12381/bls12381_fuzz.go
+++ b/tests/fuzzers/bls12381/bls12381_fuzz.go
@@ -29,8 +29,8 @@ import (
gnark "github.com/consensys/gnark-crypto/ecc/bls12-381"
"github.com/consensys/gnark-crypto/ecc/bls12-381/fp"
"github.com/consensys/gnark-crypto/ecc/bls12-381/fr"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/crypto/bls12381"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/crypto/bls12381"
blst "github.com/supranational/blst/bindings/go"
)
diff --git a/tests/fuzzers/bls12381/precompile_fuzzer.go b/tests/fuzzers/bls12381/precompile_fuzzer.go
index bc3c456526..3c51fa8c4b 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/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core/vm"
)
const (
@@ -72,8 +72,10 @@ func checkInput(id byte, inputLen int) bool {
// The fuzzer functions must return
// 1 if the fuzzer should increase priority of the
-// given input during subsequent fuzzing (for example, the input is lexically
-// correct and was parsed successfully);
+//
+// given input during subsequent fuzzing (for example, the input is lexically
+// correct and was parsed successfully);
+//
// -1 if the input must not be added to corpus even if gives new coverage; and
// 0 otherwise
// other values are reserved for future use.
diff --git a/tests/fuzzers/bn256/bn256_fuzz.go b/tests/fuzzers/bn256/bn256_fuzz.go
index 1ce20571fc..f93d1edd25 100644
--- a/tests/fuzzers/bn256/bn256_fuzz.go
+++ b/tests/fuzzers/bn256/bn256_fuzz.go
@@ -26,8 +26,8 @@ import (
"math/big"
"github.com/consensys/gnark-crypto/ecc/bn254"
- cloudflare "github.com/ethereum/go-ethereum/crypto/bn256/cloudflare"
- google "github.com/ethereum/go-ethereum/crypto/bn256/google"
+ cloudflare "github.com/cryptoecc/ETH-ECC/crypto/bn256/cloudflare"
+ google "github.com/cryptoecc/ETH-ECC/crypto/bn256/google"
)
func getG1Points(input io.Reader) (*cloudflare.G1, *google.G1, *bn254.G1Affine) {
diff --git a/tests/fuzzers/difficulty/debug/main.go b/tests/fuzzers/difficulty/debug/main.go
index 70cf092568..c232927a0b 100644
--- a/tests/fuzzers/difficulty/debug/main.go
+++ b/tests/fuzzers/difficulty/debug/main.go
@@ -20,7 +20,7 @@ import (
"fmt"
"os"
- "github.com/ethereum/go-ethereum/tests/fuzzers/difficulty"
+ "github.com/cryptoecc/ETH-ECC/tests/fuzzers/difficulty"
)
func main() {
diff --git a/tests/fuzzers/difficulty/difficulty-fuzz.go b/tests/fuzzers/difficulty/difficulty-fuzz.go
index 2112abac1a..448fcfbbfc 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/cryptoecc/ETH-ECC/consensus/ethash"
+ "github.com/cryptoecc/ETH-ECC/core/types"
)
type fuzzer struct {
@@ -68,8 +68,10 @@ func (f *fuzzer) readBool() bool {
// The function must return
// 1 if the fuzzer should increase priority of the
-// given input during subsequent fuzzing (for example, the input is lexically
-// correct and was parsed successfully);
+//
+// given input during subsequent fuzzing (for example, the input is lexically
+// correct and was parsed successfully);
+//
// -1 if the input must not be added to corpus even if gives new coverage; and
// 0 otherwise
// other values are reserved for future use.
diff --git a/tests/fuzzers/keystore/keystore-fuzzer.go b/tests/fuzzers/keystore/keystore-fuzzer.go
index e3bcae92e1..8610ad343d 100644
--- a/tests/fuzzers/keystore/keystore-fuzzer.go
+++ b/tests/fuzzers/keystore/keystore-fuzzer.go
@@ -19,7 +19,7 @@ package keystore
import (
"os"
- "github.com/ethereum/go-ethereum/accounts/keystore"
+ "github.com/cryptoecc/ETH-ECC/accounts/keystore"
)
func Fuzz(input []byte) int {
diff --git a/tests/fuzzers/les/debug/main.go b/tests/fuzzers/les/debug/main.go
index 77a6127030..5841ba8489 100644
--- a/tests/fuzzers/les/debug/main.go
+++ b/tests/fuzzers/les/debug/main.go
@@ -20,7 +20,7 @@ import (
"fmt"
"os"
- "github.com/ethereum/go-ethereum/tests/fuzzers/les"
+ "github.com/cryptoecc/ETH-ECC/tests/fuzzers/les"
)
func main() {
diff --git a/tests/fuzzers/les/les-fuzzer.go b/tests/fuzzers/les/les-fuzzer.go
index bb50da2bd8..21dc4b7c03 100644
--- a/tests/fuzzers/les/les-fuzzer.go
+++ b/tests/fuzzers/les/les-fuzzer.go
@@ -22,17 +22,17 @@ import (
"io"
"math/big"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/consensus/ethash"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/core/vm"
- "github.com/ethereum/go-ethereum/crypto"
- l "github.com/ethereum/go-ethereum/les"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/rlp"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/consensus/ethash"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/core/vm"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ l "github.com/cryptoecc/ETH-ECC/les"
+ "github.com/cryptoecc/ETH-ECC/params"
+ "github.com/cryptoecc/ETH-ECC/rlp"
+ "github.com/cryptoecc/ETH-ECC/trie"
)
var (
diff --git a/tests/fuzzers/rangeproof/debug/main.go b/tests/fuzzers/rangeproof/debug/main.go
index d4cab8ec46..af696bb9aa 100644
--- a/tests/fuzzers/rangeproof/debug/main.go
+++ b/tests/fuzzers/rangeproof/debug/main.go
@@ -20,7 +20,7 @@ import (
"fmt"
"os"
- "github.com/ethereum/go-ethereum/tests/fuzzers/rangeproof"
+ "github.com/cryptoecc/ETH-ECC/tests/fuzzers/rangeproof"
)
func main() {
diff --git a/tests/fuzzers/rangeproof/rangeproof-fuzzer.go b/tests/fuzzers/rangeproof/rangeproof-fuzzer.go
index c2db919d5a..ff0362a008 100644
--- a/tests/fuzzers/rangeproof/rangeproof-fuzzer.go
+++ b/tests/fuzzers/rangeproof/rangeproof-fuzzer.go
@@ -23,10 +23,10 @@ import (
"io"
"sort"
- "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/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/ethdb/memorydb"
+ "github.com/cryptoecc/ETH-ECC/trie"
)
type kv struct {
@@ -181,8 +181,10 @@ func (f *fuzzer) fuzz() int {
// The function must return
// 1 if the fuzzer should increase priority of the
-// given input during subsequent fuzzing (for example, the input is lexically
-// correct and was parsed successfully);
+//
+// given input during subsequent fuzzing (for example, the input is lexically
+// correct and was parsed successfully);
+//
// -1 if the input must not be added to corpus even if gives new coverage; and
// 0 otherwise; other values are reserved for future use.
func Fuzz(input []byte) int {
diff --git a/tests/fuzzers/rlp/rlp_fuzzer.go b/tests/fuzzers/rlp/rlp_fuzzer.go
index ac02e1651d..b292b3bbc2 100644
--- a/tests/fuzzers/rlp/rlp_fuzzer.go
+++ b/tests/fuzzers/rlp/rlp_fuzzer.go
@@ -20,8 +20,8 @@ import (
"bytes"
"fmt"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/rlp"
)
func decodeEncode(input []byte, val interface{}, i int) {
diff --git a/tests/fuzzers/runtime/runtime_fuzz.go b/tests/fuzzers/runtime/runtime_fuzz.go
index 9b96045752..078b53b94b 100644
--- a/tests/fuzzers/runtime/runtime_fuzz.go
+++ b/tests/fuzzers/runtime/runtime_fuzz.go
@@ -17,7 +17,7 @@
package runtime
import (
- "github.com/ethereum/go-ethereum/core/vm/runtime"
+ "github.com/cryptoecc/ETH-ECC/core/vm/runtime"
)
// Fuzz is the basic entry point for the go-fuzz tool
diff --git a/tests/fuzzers/secp256k1/secp_fuzzer.go b/tests/fuzzers/secp256k1/secp_fuzzer.go
index 47083d5fe3..028bb23c00 100644
--- a/tests/fuzzers/secp256k1/secp_fuzzer.go
+++ b/tests/fuzzers/secp256k1/secp_fuzzer.go
@@ -22,7 +22,7 @@ import (
"fmt"
"github.com/btcsuite/btcd/btcec/v2"
- "github.com/ethereum/go-ethereum/crypto/secp256k1"
+ "github.com/cryptoecc/ETH-ECC/crypto/secp256k1"
fuzz "github.com/google/gofuzz"
)
diff --git a/tests/fuzzers/snap/debug/main.go b/tests/fuzzers/snap/debug/main.go
index df46bb1e22..1fa5454b38 100644
--- a/tests/fuzzers/snap/debug/main.go
+++ b/tests/fuzzers/snap/debug/main.go
@@ -20,7 +20,7 @@ import (
"fmt"
"os"
- "github.com/ethereum/go-ethereum/tests/fuzzers/snap"
+ "github.com/cryptoecc/ETH-ECC/tests/fuzzers/snap"
)
func main() {
diff --git a/tests/fuzzers/snap/fuzz_handler.go b/tests/fuzzers/snap/fuzz_handler.go
index 6c370b043e..5852f1036a 100644
--- a/tests/fuzzers/snap/fuzz_handler.go
+++ b/tests/fuzzers/snap/fuzz_handler.go
@@ -23,16 +23,16 @@ import (
"math/big"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/consensus/ethash"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/vm"
- "github.com/ethereum/go-ethereum/eth/protocols/snap"
- "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/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/consensus/ethash"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/core/vm"
+ "github.com/cryptoecc/ETH-ECC/eth/protocols/snap"
+ "github.com/cryptoecc/ETH-ECC/p2p"
+ "github.com/cryptoecc/ETH-ECC/p2p/enode"
+ "github.com/cryptoecc/ETH-ECC/params"
+ "github.com/cryptoecc/ETH-ECC/rlp"
fuzz "github.com/google/gofuzz"
)
diff --git a/tests/fuzzers/stacktrie/debug/main.go b/tests/fuzzers/stacktrie/debug/main.go
index 6b634f05c2..143e935123 100644
--- a/tests/fuzzers/stacktrie/debug/main.go
+++ b/tests/fuzzers/stacktrie/debug/main.go
@@ -20,7 +20,7 @@ import (
"fmt"
"os"
- "github.com/ethereum/go-ethereum/tests/fuzzers/stacktrie"
+ "github.com/cryptoecc/ETH-ECC/tests/fuzzers/stacktrie"
)
func main() {
diff --git a/tests/fuzzers/stacktrie/trie_fuzzer.go b/tests/fuzzers/stacktrie/trie_fuzzer.go
index e6165df08c..59b379d817 100644
--- a/tests/fuzzers/stacktrie/trie_fuzzer.go
+++ b/tests/fuzzers/stacktrie/trie_fuzzer.go
@@ -25,8 +25,8 @@ import (
"io"
"sort"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/cryptoecc/ETH-ECC/ethdb"
+ "github.com/cryptoecc/ETH-ECC/trie"
"golang.org/x/crypto/sha3"
)
@@ -115,8 +115,10 @@ func (k kvs) Swap(i, j int) {
// The function must return
// 1 if the fuzzer should increase priority of the
-// given input during subsequent fuzzing (for example, the input is lexically
-// correct and was parsed successfully);
+//
+// given input during subsequent fuzzing (for example, the input is lexically
+// correct and was parsed successfully);
+//
// -1 if the input must not be added to corpus even if gives new coverage; and
// 0 otherwise
// other values are reserved for future use.
diff --git a/tests/fuzzers/trie/trie-fuzzer.go b/tests/fuzzers/trie/trie-fuzzer.go
index f36b613d47..3e6f6dad02 100644
--- a/tests/fuzzers/trie/trie-fuzzer.go
+++ b/tests/fuzzers/trie/trie-fuzzer.go
@@ -21,9 +21,9 @@ import (
"encoding/binary"
"fmt"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/ethdb/memorydb"
- "github.com/ethereum/go-ethereum/trie"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/ethdb/memorydb"
+ "github.com/cryptoecc/ETH-ECC/trie"
)
// randTest performs random trie operations.
@@ -120,8 +120,10 @@ func Generate(input []byte) randTest {
// The function must return
// 1 if the fuzzer should increase priority of the
-// given input during subsequent fuzzing (for example, the input is lexically
-// correct and was parsed successfully);
+//
+// given input during subsequent fuzzing (for example, the input is lexically
+// correct and was parsed successfully);
+//
// -1 if the input must not be added to corpus even if gives new coverage; and
// 0 otherwise
// other values are reserved for future use.
diff --git a/tests/fuzzers/txfetcher/txfetcher_fuzzer.go b/tests/fuzzers/txfetcher/txfetcher_fuzzer.go
index d1d6fdc665..c1ef9993c1 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/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/mclock"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/eth/fetcher"
)
var (
diff --git a/tests/fuzzers/vflux/clientpool-fuzzer.go b/tests/fuzzers/vflux/clientpool-fuzzer.go
index b3b523cc82..583caf3bb7 100644
--- a/tests/fuzzers/vflux/clientpool-fuzzer.go
+++ b/tests/fuzzers/vflux/clientpool-fuzzer.go
@@ -24,14 +24,14 @@ import (
"math/big"
"time"
- "github.com/ethereum/go-ethereum/common/mclock"
- "github.com/ethereum/go-ethereum/ethdb/memorydb"
- "github.com/ethereum/go-ethereum/les/vflux"
- vfs "github.com/ethereum/go-ethereum/les/vflux/server"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/p2p/enode"
- "github.com/ethereum/go-ethereum/p2p/enr"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/cryptoecc/ETH-ECC/common/mclock"
+ "github.com/cryptoecc/ETH-ECC/ethdb/memorydb"
+ "github.com/cryptoecc/ETH-ECC/les/vflux"
+ vfs "github.com/cryptoecc/ETH-ECC/les/vflux/server"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/p2p/enode"
+ "github.com/cryptoecc/ETH-ECC/p2p/enr"
+ "github.com/cryptoecc/ETH-ECC/rlp"
)
var (
diff --git a/tests/fuzzers/vflux/debug/main.go b/tests/fuzzers/vflux/debug/main.go
index e6cec04606..d7b7739c64 100644
--- a/tests/fuzzers/vflux/debug/main.go
+++ b/tests/fuzzers/vflux/debug/main.go
@@ -20,8 +20,8 @@ import (
"fmt"
"os"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/tests/fuzzers/vflux"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/tests/fuzzers/vflux"
)
func main() {
diff --git a/tests/gen_btheader.go b/tests/gen_btheader.go
index 4387f8db41..7f37a110fa 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/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/hexutil"
+ "github.com/cryptoecc/ETH-ECC/common/math"
+ "github.com/cryptoecc/ETH-ECC/core/types"
)
var _ = (*btHeaderMarshaling)(nil)
diff --git a/tests/gen_difficultytest.go b/tests/gen_difficultytest.go
index cd15ae31b5..86c82a0891 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/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/math"
)
var _ = (*difficultyTestMarshaling)(nil)
diff --git a/tests/gen_stenv.go b/tests/gen_stenv.go
index 71f0063178..6b74561228 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/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/math"
)
var _ = (*stEnvMarshaling)(nil)
diff --git a/tests/gen_sttransaction.go b/tests/gen_sttransaction.go
index 7693a207a5..ae9d07e7f7 100644
--- a/tests/gen_sttransaction.go
+++ b/tests/gen_sttransaction.go
@@ -6,9 +6,9 @@ import (
"encoding/json"
"math/big"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/common/math"
- "github.com/ethereum/go-ethereum/core/types"
+ "github.com/cryptoecc/ETH-ECC/common/hexutil"
+ "github.com/cryptoecc/ETH-ECC/common/math"
+ "github.com/cryptoecc/ETH-ECC/core/types"
)
var _ = (*stTransactionMarshaling)(nil)
diff --git a/tests/init.go b/tests/init.go
index 87ffc65a67..402c88e0dc 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/cryptoecc/ETH-ECC/params"
)
// Forks table defines supported forks and their chain config.
diff --git a/tests/init_test.go b/tests/init_test.go
index 4ef5aaf737..4bca0f7ca8 100644
--- a/tests/init_test.go
+++ b/tests/init_test.go
@@ -29,7 +29,7 @@ import (
"strings"
"testing"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/cryptoecc/ETH-ECC/params"
)
var (
@@ -116,6 +116,7 @@ func (tm *testMatcher) skipLoad(pattern string) {
}
// fails adds an expected failure for tests matching the pattern.
+//
//nolint:unused
func (tm *testMatcher) fails(pattern string, reason string) {
if reason == "" {
diff --git a/tests/rlp_test_util.go b/tests/rlp_test_util.go
index 15acb3a244..f54a2a5e6f 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/cryptoecc/ETH-ECC/rlp"
)
// RLPTest is the JSON structure of a single RLP test.
diff --git a/tests/state_test.go b/tests/state_test.go
index d33ebc4b00..7a8d174ecb 100644
--- a/tests/state_test.go
+++ b/tests/state_test.go
@@ -27,11 +27,11 @@ import (
"strings"
"testing"
- "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/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/core/vm"
+ "github.com/cryptoecc/ETH-ECC/eth/tracers/logger"
)
func TestState(t *testing.T) {
diff --git a/tests/state_test_util.go b/tests/state_test_util.go
index 38cdbc4d65..9384ff8794 100644
--- a/tests/state_test_util.go
+++ b/tests/state_test_util.go
@@ -24,19 +24,19 @@ import (
"strconv"
"strings"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/common/math"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/core/state"
- "github.com/ethereum/go-ethereum/core/state/snapshot"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/core/vm"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/hexutil"
+ "github.com/cryptoecc/ETH-ECC/common/math"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/core/state"
+ "github.com/cryptoecc/ETH-ECC/core/state/snapshot"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/core/vm"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/ethdb"
+ "github.com/cryptoecc/ETH-ECC/params"
+ "github.com/cryptoecc/ETH-ECC/rlp"
"golang.org/x/crypto/sha3"
)
diff --git a/tests/transaction_test.go b/tests/transaction_test.go
index cb0f262318..76fc870f4f 100644
--- a/tests/transaction_test.go
+++ b/tests/transaction_test.go
@@ -19,7 +19,7 @@ package tests
import (
"testing"
- "github.com/ethereum/go-ethereum/params"
+ "github.com/cryptoecc/ETH-ECC/params"
)
func TestTransaction(t *testing.T) {
diff --git a/tests/transaction_test_util.go b/tests/transaction_test_util.go
index 82ee01de15..b253a64f88 100644
--- a/tests/transaction_test_util.go
+++ b/tests/transaction_test_util.go
@@ -19,12 +19,12 @@ package tests
import (
"fmt"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/hexutil"
- "github.com/ethereum/go-ethereum/core"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/params"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/hexutil"
+ "github.com/cryptoecc/ETH-ECC/core"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/params"
+ "github.com/cryptoecc/ETH-ECC/rlp"
)
// TransactionTest checks RLP decoding and sender derivation of transactions.
diff --git a/trie/committer.go b/trie/committer.go
index d9f0ecf3de..3a1aa6bf55 100644
--- a/trie/committer.go
+++ b/trie/committer.go
@@ -19,7 +19,7 @@ package trie
import (
"fmt"
- "github.com/ethereum/go-ethereum/common"
+ "github.com/cryptoecc/ETH-ECC/common"
)
// leaf represents a trie leaf node
diff --git a/trie/database.go b/trie/database.go
index 8d426c2523..0aa927636f 100644
--- a/trie/database.go
+++ b/trie/database.go
@@ -26,13 +26,13 @@ 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/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/ethdb"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/metrics"
+ "github.com/cryptoecc/ETH-ECC/rlp"
)
var (
diff --git a/trie/database_test.go b/trie/database_test.go
index 81c469500f..ac982ebe42 100644
--- a/trie/database_test.go
+++ b/trie/database_test.go
@@ -19,8 +19,8 @@ package trie
import (
"testing"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/ethdb/memorydb"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/ethdb/memorydb"
)
// Tests that the trie database returns a missing trie node error if attempting
diff --git a/trie/errors.go b/trie/errors.go
index afe344bed2..e0b1909f4e 100644
--- a/trie/errors.go
+++ b/trie/errors.go
@@ -19,7 +19,7 @@ package trie
import (
"fmt"
- "github.com/ethereum/go-ethereum/common"
+ "github.com/cryptoecc/ETH-ECC/common"
)
// MissingNodeError is returned by the trie functions (TryGet, TryUpdate, TryDelete)
diff --git a/trie/hasher.go b/trie/hasher.go
index 183e96c229..10c5ac1e6c 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/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/rlp"
"golang.org/x/crypto/sha3"
)
@@ -170,8 +170,8 @@ func (h *hasher) fullnodeToHash(n *fullNode, force bool) node {
//
// All node encoding must be done like this:
//
-// node.encode(h.encbuf)
-// enc := h.encodedBytes()
+// node.encode(h.encbuf)
+// enc := h.encodedBytes()
//
// This convention exists because node.encode can only be inlined/escape-analyzed when
// called on a concrete receiver type.
diff --git a/trie/iterator.go b/trie/iterator.go
index 1e76625c62..c95a2f6202 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/ethdb"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/ethdb"
)
// Iterator is a key-value trie iterator that traverses a Trie.
diff --git a/trie/iterator_test.go b/trie/iterator_test.go
index e9d822a9a4..08935f50b6 100644
--- a/trie/iterator_test.go
+++ b/trie/iterator_test.go
@@ -23,11 +23,11 @@ import (
"math/rand"
"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/ethdb/memorydb"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/ethdb"
+ "github.com/cryptoecc/ETH-ECC/ethdb/memorydb"
)
func TestEmptyIterator(t *testing.T) {
diff --git a/trie/node.go b/trie/node.go
index 6ce6551ded..d18dccbd82 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/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/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 cade35b707..19bd8fc212 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/cryptoecc/ETH-ECC/rlp"
)
func nodeToBytes(n node) []byte {
diff --git a/trie/node_test.go b/trie/node_test.go
index 9b8b33748f..53e86e296c 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/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/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/cryptoecc/ETH-ECC/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/cryptoecc/ETH-ECC/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/cryptoecc/ETH-ECC/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/cryptoecc/ETH-ECC/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/cryptoecc/ETH-ECC/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/cryptoecc/ETH-ECC/trie
// BenchmarkDecodeFullNodeUnsafe
// BenchmarkDecodeFullNodeUnsafe-8 1789070 687.1 ns/op 704 B/op 17 allocs/op
func BenchmarkDecodeFullNodeUnsafe(b *testing.B) {
diff --git a/trie/nodeset.go b/trie/nodeset.go
index 08b9b35ebc..d3cf77b030 100644
--- a/trie/nodeset.go
+++ b/trie/nodeset.go
@@ -19,7 +19,7 @@ package trie
import (
"fmt"
- "github.com/ethereum/go-ethereum/common"
+ "github.com/cryptoecc/ETH-ECC/common"
)
// memoryNode is all the information we know about a single cached trie node
diff --git a/trie/preimages.go b/trie/preimages.go
index 66f34117c1..afc9475f1f 100644
--- a/trie/preimages.go
+++ b/trie/preimages.go
@@ -19,9 +19,9 @@ package trie
import (
"sync"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/ethdb"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/ethdb"
)
// preimageStore is the store for caching preimages of node key.
diff --git a/trie/proof.go b/trie/proof.go
index fa8361eefd..f5bbfbb4cf 100644
--- a/trie/proof.go
+++ b/trie/proof.go
@@ -21,10 +21,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/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/ethdb"
+ "github.com/cryptoecc/ETH-ECC/log"
)
// Prove constructs a merkle proof for key. The result contains all encoded nodes
@@ -339,9 +339,9 @@ findFork:
// unset removes all internal node references either the left most or right most.
// It can meet these scenarios:
//
-// - The given path is existent in the trie, unset the associated nodes with the
-// specific direction
-// - The given path is non-existent in the trie
+// - The given path is existent in the trie, unset the associated nodes with the
+// specific direction
+// - The given path is non-existent in the trie
// - the fork point is a fullnode, the corresponding child pointed by path
// is nil, return
// - the fork point is a shortnode, the shortnode is included in the range,
@@ -458,15 +458,15 @@ func hasRightElement(node node, key []byte) bool {
// Expect the normal case, this function can also be used to verify the following
// range proofs:
//
-// - All elements proof. In this case the proof can be nil, but the range should
-// be all the leaves in the trie.
+// - All elements proof. In this case the proof can be nil, but the range should
+// be all the leaves in the trie.
//
-// - One element proof. In this case no matter the edge proof is a non-existent
-// proof or not, we can always verify the correctness of the proof.
+// - One element proof. In this case no matter the edge proof is a non-existent
+// proof or not, we can always verify the correctness of the proof.
//
-// - Zero element proof. In this case a single non-existent proof is enough to prove.
-// Besides, if there are still some other leaves available on the right side, then
-// an error will be returned.
+// - Zero element proof. In this case a single non-existent proof is enough to prove.
+// Besides, if there are still some other leaves available on the right side, then
+// an error will be returned.
//
// Except returning the error to indicate the proof is valid or not, the function will
// also return a flag to indicate whether there exists more accounts/slots in the trie.
diff --git a/trie/proof_test.go b/trie/proof_test.go
index 61667b20ab..62227058d2 100644
--- a/trie/proof_test.go
+++ b/trie/proof_test.go
@@ -25,10 +25,10 @@ import (
"testing"
"time"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/ethdb/memorydb"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/ethdb/memorydb"
)
func init() {
diff --git a/trie/secure_trie.go b/trie/secure_trie.go
index 3d468f56ee..78227f6675 100644
--- a/trie/secure_trie.go
+++ b/trie/secure_trie.go
@@ -19,10 +19,10 @@ package trie
import (
"fmt"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/types"
- "github.com/ethereum/go-ethereum/log"
- "github.com/ethereum/go-ethereum/rlp"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/log"
+ "github.com/cryptoecc/ETH-ECC/rlp"
)
// SecureTrie is the old name of StateTrie.
diff --git a/trie/secure_trie_test.go b/trie/secure_trie_test.go
index 862c3a3ec4..bc8f8a5d4a 100644
--- a/trie/secure_trie_test.go
+++ b/trie/secure_trie_test.go
@@ -23,9 +23,9 @@ import (
"sync"
"testing"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/ethdb/memorydb"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/ethdb/memorydb"
)
func newEmptySecure() *StateTrie {
diff --git a/trie/stacktrie.go b/trie/stacktrie.go
index a22fa0dd67..04a21aa2f0 100644
--- a/trie/stacktrie.go
+++ b/trie/stacktrie.go
@@ -25,9 +25,9 @@ import (
"io"
"sync"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/ethdb"
+ "github.com/cryptoecc/ETH-ECC/log"
)
var ErrCommitDisabled = errors.New("no database for committing")
@@ -376,11 +376,12 @@ func (st *StackTrie) insert(key, value []byte) {
// hash converts st into a 'hashedNode', if possible. Possible outcomes:
//
// 1. The rlp-encoded value was >= 32 bytes:
-// - Then the 32-byte `hash` will be accessible in `st.val`.
-// - And the 'st.type' will be 'hashedNode'
+// - Then the 32-byte `hash` will be accessible in `st.val`.
+// - And the 'st.type' will be 'hashedNode'
+//
// 2. The rlp-encoded value was < 32 bytes
-// - Then the <32 byte rlp-encoded value will be accessible in 'st.val'.
-// - And the 'st.type' will be 'hashedNode' AGAIN
+// - Then the <32 byte rlp-encoded value will be accessible in 'st.val'.
+// - And the 'st.type' will be 'hashedNode' AGAIN
//
// This method also sets 'st.type' to hashedNode, and clears 'st.key'.
func (st *StackTrie) hash() {
diff --git a/trie/stacktrie_test.go b/trie/stacktrie_test.go
index 069e4981d7..7a1c5ce315 100644
--- a/trie/stacktrie_test.go
+++ b/trie/stacktrie_test.go
@@ -21,9 +21,9 @@ import (
"math/big"
"testing"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/ethdb/memorydb"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/ethdb/memorydb"
)
func TestStackTrieInsertAndHash(t *testing.T) {
diff --git a/trie/sync.go b/trie/sync.go
index 303fcbfa22..bdb1d3a50d 100644
--- a/trie/sync.go
+++ b/trie/sync.go
@@ -20,11 +20,11 @@ import (
"errors"
"fmt"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/common/prque"
- "github.com/ethereum/go-ethereum/core/rawdb"
- "github.com/ethereum/go-ethereum/ethdb"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/common/prque"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/ethdb"
+ "github.com/cryptoecc/ETH-ECC/log"
)
// 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 9fd1d636c0..fa0916f793 100644
--- a/trie/sync_test.go
+++ b/trie/sync_test.go
@@ -21,9 +21,9 @@ import (
"fmt"
"testing"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/ethdb/memorydb"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/ethdb/memorydb"
)
// makeTestTrie create a sample test trie to test node-wise reconstruction.
diff --git a/trie/trie.go b/trie/trie.go
index 9274d88380..24c23fb417 100644
--- a/trie/trie.go
+++ b/trie/trie.go
@@ -22,9 +22,9 @@ import (
"errors"
"fmt"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/crypto"
- "github.com/ethereum/go-ethereum/log"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/log"
)
var (
diff --git a/trie/trie_test.go b/trie/trie_test.go
index 3e29600bbd..cd084fbfcf 100644
--- a/trie/trie_test.go
+++ b/trie/trie_test.go
@@ -28,14 +28,14 @@ import (
"testing"
"testing/quick"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/core/types"
+ "github.com/cryptoecc/ETH-ECC/crypto"
+ "github.com/cryptoecc/ETH-ECC/ethdb"
+ "github.com/cryptoecc/ETH-ECC/ethdb/memorydb"
+ "github.com/cryptoecc/ETH-ECC/rlp"
"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/ethdb/memorydb"
- "github.com/ethereum/go-ethereum/rlp"
"golang.org/x/crypto/sha3"
)
diff --git a/trie/util_test.go b/trie/util_test.go
index 252dc09e08..87261efd75 100644
--- a/trie/util_test.go
+++ b/trie/util_test.go
@@ -19,8 +19,8 @@ package trie
import (
"testing"
- "github.com/ethereum/go-ethereum/common"
- "github.com/ethereum/go-ethereum/core/rawdb"
+ "github.com/cryptoecc/ETH-ECC/common"
+ "github.com/cryptoecc/ETH-ECC/core/rawdb"
)
// Tests if the trie diffs are tracked correctly.