From 53a8a47801d9cb4351ddcf48d2223eccb24287da Mon Sep 17 00:00:00 2001 From: pqv199x Date: Thu, 7 Nov 2019 16:12:03 +0700 Subject: [PATCH] change go-tomochain to tomochain --- .travis.yml | 2 +- accounts/abi/abi_test.go | 4 +- accounts/abi/bind/auth.go | 8 +-- accounts/abi/bind/backend.go | 6 +- accounts/abi/bind/backends/simulated.go | 30 +++++----- accounts/abi/bind/base.go | 12 ++-- accounts/abi/bind/bind.go | 2 +- accounts/abi/bind/bind_test.go | 2 +- accounts/abi/bind/template.go | 2 +- accounts/abi/bind/topics.go | 6 +- accounts/abi/bind/util.go | 6 +- accounts/abi/bind/util_test.go | 12 ++-- accounts/abi/event.go | 4 +- accounts/abi/event_test.go | 4 +- accounts/abi/method.go | 2 +- accounts/abi/numbers.go | 4 +- accounts/abi/pack.go | 4 +- accounts/abi/pack_test.go | 2 +- accounts/abi/type_test.go | 2 +- accounts/abi/unpack.go | 2 +- accounts/abi/unpack_test.go | 2 +- accounts/accounts.go | 8 +-- 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_passphrase.go | 8 +-- accounts/keystore/keystore_passphrase_test.go | 2 +- accounts/keystore/keystore_plain.go | 2 +- accounts/keystore/keystore_plain_test.go | 4 +- accounts/keystore/keystore_test.go | 6 +- accounts/keystore/keystore_wallet.go | 6 +- accounts/keystore/presale.go | 4 +- accounts/keystore/watch.go | 2 +- accounts/manager.go | 2 +- accounts/usbwallet/hub.go | 6 +- accounts/usbwallet/ledger.go | 12 ++-- accounts/usbwallet/trezor.go | 12 ++-- accounts/usbwallet/wallet.go | 10 ++-- bmt/bmt_test.go | 2 +- build/ci.go | 2 +- build/env.sh | 8 +-- cmd/abigen/main.go | 4 +- cmd/bootnode/main.go | 14 ++--- cmd/ethkey/generate.go | 6 +- cmd/ethkey/inspect.go | 6 +- cmd/ethkey/main.go | 2 +- cmd/ethkey/message.go | 8 +-- cmd/ethkey/run_test.go | 2 +- cmd/ethkey/utils.go | 6 +- cmd/evm/compiler.go | 2 +- cmd/evm/disasm.go | 2 +- cmd/evm/internal/compiler/compiler.go | 2 +- cmd/evm/json_logger.go | 6 +- cmd/evm/main.go | 2 +- cmd/evm/runner.go | 20 +++---- cmd/evm/staterunner.go | 8 +-- cmd/faucet/faucet.go | 36 +++++------ cmd/gc/main.go | 16 ++--- cmd/p2psim/main.go | 12 ++-- cmd/puppeth/genesis.go | 10 ++-- cmd/puppeth/module.go | 2 +- cmd/puppeth/module_dashboard.go | 2 +- 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/module_wallet.go | 2 +- cmd/puppeth/puppeth.go | 2 +- cmd/puppeth/ssh.go | 2 +- cmd/puppeth/wizard.go | 6 +- 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 | 24 ++++---- 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/puppeth/wizard_wallet.go | 2 +- cmd/rlpdump/main.go | 2 +- cmd/swarm/config.go | 12 ++-- cmd/swarm/config_test.go | 6 +- cmd/swarm/db.go | 6 +- cmd/swarm/hash.go | 4 +- cmd/swarm/list.go | 4 +- cmd/swarm/main.go | 32 +++++----- cmd/swarm/manifest.go | 6 +- cmd/swarm/run_test.go | 14 ++--- cmd/swarm/upload.go | 4 +- cmd/tomo/accountcmd.go | 12 ++-- cmd/tomo/bugcmd.go | 8 +-- cmd/tomo/chaincmd.go | 22 +++---- cmd/tomo/config.go | 20 +++---- cmd/tomo/consolecmd.go | 14 ++--- cmd/tomo/consolecmd_test.go | 2 +- cmd/tomo/dao_test.go | 6 +- cmd/tomo/main.go | 26 ++++---- cmd/tomo/misccmd.go | 8 +-- cmd/tomo/monitorcmd.go | 6 +- cmd/tomo/run_test.go | 2 +- cmd/tomo/usage.go | 4 +- cmd/utils/cmd.go | 18 +++--- cmd/utils/customflags.go | 2 +- cmd/utils/flags.go | 54 ++++++++--------- cmd/utils/utils.go | 16 ++--- cmd/wnode/main.go | 20 +++---- common/bitutil/compress_test.go | 2 +- common/debug.go | 2 +- common/hexutil/json_example_test.go | 2 +- common/math/big_test.go | 2 +- common/number/int.go | 2 +- common/number/uint_test.go | 2 +- common/types.go | 4 +- compression/rle/read_write.go | 2 +- consensus/clique/api.go | 8 +-- consensus/clique/clique.go | 28 ++++----- consensus/clique/snapshot.go | 8 +-- consensus/consensus.go | 10 ++-- consensus/ethash/algorithm.go | 10 ++-- consensus/ethash/algorithm_test.go | 6 +- consensus/ethash/consensus.go | 14 ++--- consensus/ethash/consensus_test.go | 6 +- consensus/ethash/ethash.go | 8 +-- consensus/ethash/ethash_test.go | 2 +- consensus/ethash/sealer.go | 8 +-- consensus/misc/dao.go | 6 +- consensus/misc/forks.go | 6 +- consensus/posv/api.go | 8 +-- consensus/posv/posv.go | 32 +++++----- consensus/posv/posv_test.go | 6 +- consensus/posv/snapshot.go | 10 ++-- console/bridge.go | 6 +- console/console.go | 6 +- console/console_test.go | 14 ++--- contracts/blocksigner/blocksigner.go | 6 +- contracts/blocksigner/blocksigner_test.go | 10 ++-- contracts/blocksigner/contract/blocksigner.go | 12 ++-- contracts/chequebook/api.go | 2 +- contracts/chequebook/cheque.go | 16 ++--- contracts/chequebook/cheque_test.go | 12 ++-- contracts/chequebook/contract/chequebook.go | 12 ++-- contracts/chequebook/gencode.go | 10 ++-- contracts/ens/contract/ens.go | 12 ++-- contracts/ens/contract/fifsregistrar.go | 8 +-- contracts/ens/contract/publicresolver.go | 12 ++-- contracts/ens/ens.go | 10 ++-- contracts/ens/ens_test.go | 10 ++-- .../multisigwallet/contract/multisigwallet.go | 12 ++-- contracts/multisigwallet/multisigwallet.go | 6 +- contracts/randomize/contract/randomize.go | 8 +-- contracts/randomize/randomize.go | 6 +- contracts/randomize/randomize_test.go | 14 ++--- contracts/tomox/contract/Registration.go | 12 ++-- contracts/tomox/contract/TOMOXListing.go | 8 +-- contracts/tomox/contract/TRC21.go | 12 ++-- contracts/tomox/contract/TRC21Issuer.go | 12 ++-- contracts/tomox/relayerRegistration.go | 6 +- contracts/tomox/simulation/constants.go | 4 +- contracts/tomox/simulation/deploy/main.go | 10 ++-- contracts/tomox/tomoxListing.go | 6 +- contracts/tomox/trc21.go | 6 +- contracts/tomox/trc21Issuer.go | 6 +- contracts/trc21issuer/contract/TRC21.go | 12 ++-- contracts/trc21issuer/contract/TRC21Issuer.go | 12 ++-- contracts/trc21issuer/simulation/common.go | 2 +- .../trc21issuer/simulation/deploy/main.go | 10 ++-- contracts/trc21issuer/simulation/test/main.go | 12 ++-- contracts/trc21issuer/trc21.go | 6 +- contracts/trc21issuer/trc21issuer.go | 6 +- contracts/trc21issuer/trc21issuer_test.go | 10 ++-- contracts/utils.go | 30 +++++----- contracts/utils_test.go | 16 ++--- contracts/validator/contract/validator.go | 12 ++-- contracts/validator/validator.go | 6 +- contracts/validator/validator_test.go | 14 ++--- core/asm/asm.go | 2 +- core/asm/compiler.go | 4 +- core/bench_test.go | 16 ++--- core/block_validator.go | 16 ++--- core/block_validator_test.go | 10 ++-- core/blockchain.go | 40 ++++++------- core/blockchain_test.go | 16 ++--- core/blocks.go | 2 +- core/bloombits/generator.go | 2 +- core/bloombits/generator_test.go | 2 +- core/bloombits/matcher.go | 4 +- core/bloombits/matcher_test.go | 2 +- core/chain_indexer.go | 10 ++-- core/chain_indexer_test.go | 6 +- core/chain_makers.go | 16 ++--- core/chain_makers_test.go | 12 ++-- core/dao_test.go | 8 +-- core/database_util.go | 14 ++--- core/database_util_test.go | 10 ++-- core/events.go | 4 +- core/evm.go | 8 +-- core/gen_genesis.go | 8 +-- core/gen_genesis_account.go | 6 +- core/genesis.go | 18 +++--- core/genesis_test.go | 10 ++-- core/headerchain.go | 12 ++-- core/helper_test.go | 6 +- core/mkalloc.go | 4 +- core/order_pool.go | 14 ++--- core/order_pool_test.go | 10 ++-- core/order_tx_journal.go | 8 +-- core/order_tx_list.go | 2 +- core/state/database.go | 6 +- core/state/dump.go | 6 +- core/state/iterator.go | 6 +- core/state/iterator_test.go | 4 +- core/state/journal.go | 2 +- core/state/managed_state.go | 2 +- core/state/managed_state_test.go | 4 +- core/state/state_object.go | 6 +- core/state/state_reader.go | 4 +- core/state/state_test.go | 6 +- core/state/statedb.go | 12 ++-- core/state/statedb_test.go | 6 +- core/state/statedb_utils.go | 6 +- core/state/sync.go | 6 +- core/state/sync_test.go | 8 +-- core/state/trc21_reader.go | 2 +- core/state_processor.go | 16 ++--- core/state_transition.go | 8 +-- core/tx_journal.go | 8 +-- core/tx_list.go | 6 +- core/tx_list_test.go | 4 +- core/tx_pool.go | 14 ++--- core/tx_pool_test.go | 14 ++--- core/types.go | 10 ++-- core/types/block.go | 8 +-- core/types/block_test.go | 4 +- core/types/bloom9.go | 4 +- core/types/bloom9_test.go | 2 +- core/types/derive_sha.go | 6 +- core/types/gen_header_json.go | 4 +- core/types/gen_log_json.go | 4 +- core/types/gen_receipt_json.go | 4 +- core/types/gen_tx_json.go | 4 +- core/types/log.go | 6 +- core/types/log_test.go | 4 +- core/types/order_signing.go | 6 +- core/types/order_transaction.go | 4 +- core/types/receipt.go | 6 +- core/types/transaction.go | 8 +-- core/types/transaction_signing.go | 6 +- core/types/transaction_signing_test.go | 6 +- core/types/transaction_test.go | 6 +- core/vm/analysis.go | 2 +- core/vm/common.go | 4 +- core/vm/contract.go | 2 +- core/vm/contracts.go | 10 ++-- core/vm/contracts_test.go | 2 +- core/vm/evm.go | 6 +- core/vm/gas.go | 2 +- core/vm/gas_table.go | 6 +- core/vm/gen_structlog.go | 6 +- core/vm/instructions.go | 10 ++-- core/vm/instructions_test.go | 4 +- core/vm/interface.go | 4 +- core/vm/interpreter.go | 4 +- core/vm/jump_table.go | 2 +- core/vm/logger.go | 8 +-- core/vm/logger_test.go | 4 +- core/vm/memory_table.go | 2 +- core/vm/noop.go | 4 +- core/vm/runtime/env.go | 6 +- core/vm/runtime/runtime.go | 12 ++-- core/vm/runtime/runtime_example_test.go | 4 +- core/vm/runtime/runtime_test.go | 10 ++-- core/vm/stack_table.go | 2 +- crypto/bn256/bn256_fast.go | 2 +- crypto/bn256/bn256_fuzz.go | 4 +- crypto/bn256/bn256_slow.go | 2 +- crypto/crypto.go | 8 +-- crypto/crypto_test.go | 2 +- crypto/ecies/ecies_test.go | 2 +- crypto/ecies/params.go | 2 +- crypto/secp256k1/curve.go | 2 +- crypto/secp256k1/secp256_test.go | 4 +- crypto/signature_cgo.go | 4 +- crypto/signature_test.go | 6 +- dashboard/assets.go | 2 +- dashboard/assets/components/Footer.jsx | 2 +- dashboard/cpu.go | 2 +- dashboard/dashboard.go | 10 ++-- eth/api.go | 22 +++---- eth/api_backend.go | 44 +++++++------- eth/api_test.go | 6 +- eth/api_tracer.go | 24 ++++---- eth/backend.go | 60 +++++++++---------- eth/backend_test.go | 2 +- eth/bloombits.go | 14 ++--- eth/config.go | 14 ++--- eth/db_upgrade.go | 10 ++-- eth/downloader/api.go | 6 +- eth/downloader/downloader.go | 18 +++--- eth/downloader/downloader_test.go | 18 +++--- eth/downloader/fakepeer.go | 8 +-- eth/downloader/metrics.go | 2 +- eth/downloader/peer.go | 6 +- eth/downloader/queue.go | 8 +-- eth/downloader/statesync.go | 14 ++--- eth/downloader/types.go | 2 +- eth/fetcher/fetcher.go | 8 +-- eth/fetcher/fetcher_test.go | 14 ++--- eth/fetcher/metrics.go | 2 +- eth/filters/api.go | 14 ++--- eth/filters/api_test.go | 4 +- eth/filters/bench_test.go | 16 ++--- eth/filters/filter.go | 14 ++--- eth/filters/filter_system.go | 12 ++-- eth/filters/filter_system_test.go | 20 +++---- eth/filters/filter_test.go | 16 ++--- eth/gasprice/gasprice.go | 10 ++-- eth/gen_config.go | 12 ++-- eth/handler.go | 28 ++++----- eth/handler_test.go | 24 ++++---- eth/helper_test.go | 24 ++++---- eth/metrics.go | 4 +- eth/peer.go | 8 +-- eth/protocol.go | 10 ++-- eth/protocol_test.go | 12 ++-- eth/sync.go | 10 ++-- eth/sync_test.go | 6 +- eth/tracers/tracer.go | 10 ++-- eth/tracers/tracer_test.go | 6 +- eth/tracers/tracers.go | 2 +- eth/tracers/tracers_test.go | 18 +++--- ethclient/ethclient.go | 12 ++-- ethclient/ethclient_test.go | 2 +- ethclient/signer.go | 4 +- ethdb/database.go | 4 +- ethdb/database_test.go | 2 +- ethdb/interface.go | 2 +- ethdb/memory_database.go | 2 +- ethstats/ethstats.go | 22 +++---- 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 +- interfaces.go | 4 +- internal/build/env.go | 2 +- internal/debug/api.go | 2 +- internal/debug/flags.go | 8 +-- internal/debug/trace.go | 2 +- internal/ethapi/addrlock.go | 2 +- internal/ethapi/api.go | 40 ++++++------- internal/ethapi/backend.go | 28 ++++----- internal/guide/guide_test.go | 4 +- internal/jsre/deps/web3.js | 2 +- internal/jsre/jsre.go | 4 +- les/api_backend.go | 36 +++++------ les/backend.go | 42 ++++++------- les/bloombits.go | 4 +- les/fetcher.go | 14 ++--- les/flowcontrol/control.go | 2 +- les/flowcontrol/manager.go | 2 +- les/handler.go | 32 +++++----- les/handler_test.go | 24 ++++---- les/helper_test.go | 28 ++++----- les/metrics.go | 4 +- les/odr.go | 8 +-- les/odr_requests.go | 18 +++--- les/odr_test.go | 22 +++---- les/peer.go | 14 ++--- les/protocol.go | 10 ++-- les/request_test.go | 12 ++-- les/retrieve.go | 2 +- les/server.go | 22 +++---- les/serverpool.go | 14 ++--- les/sync.go | 6 +- les/txrelay.go | 4 +- light/lightchain.go | 20 +++---- light/lightchain_test.go | 12 ++-- light/nodeset.go | 8 +-- light/odr.go | 8 +-- light/odr_test.go | 24 ++++---- light/odr_util.go | 10 ++-- light/postprocess.go | 18 +++--- light/trie.go | 12 ++-- light/trie_test.go | 14 ++--- light/txpool.go | 18 +++--- light/txpool_test.go | 14 ++--- log/format.go | 2 +- metrics/exp/exp.go | 2 +- metrics/influxdb/influxdb.go | 2 +- metrics/librato/librato.go | 2 +- metrics/metrics.go | 2 +- miner/agent.go | 4 +- miner/miner.go | 24 ++++---- miner/remote_agent.go | 10 ++-- miner/unconfirmed.go | 6 +- miner/unconfirmed_test.go | 4 +- miner/worker.go | 32 +++++----- mobile/accounts.go | 8 +-- mobile/android_test.go | 4 +- mobile/big.go | 2 +- mobile/bind.go | 8 +-- mobile/common.go | 2 +- mobile/discover.go | 2 +- mobile/ethclient.go | 4 +- mobile/ethereum.go | 4 +- mobile/geth.go | 22 +++---- mobile/init.go | 2 +- mobile/interface.go | 2 +- mobile/logger.go | 2 +- mobile/p2p.go | 2 +- mobile/params.go | 6 +- mobile/types.go | 6 +- mobile/vm.go | 2 +- node/api.go | 12 ++-- node/config.go | 16 ++--- node/config_test.go | 4 +- node/defaults.go | 4 +- node/node.go | 14 ++--- node/node_example_test.go | 6 +- node/node_test.go | 6 +- node/service.go | 10 ++-- node/utils_test.go | 4 +- p2p/dial.go | 6 +- p2p/dial_test.go | 4 +- p2p/discover/database.go | 6 +- p2p/discover/node.go | 6 +- p2p/discover/node_test.go | 4 +- p2p/discover/ntp.go | 2 +- p2p/discover/table.go | 8 +-- p2p/discover/table_test.go | 4 +- p2p/discover/udp.go | 10 ++-- p2p/discover/udp_test.go | 6 +- p2p/discv5/database.go | 6 +- p2p/discv5/net.go | 14 ++--- p2p/discv5/net_test.go | 4 +- p2p/discv5/node.go | 4 +- p2p/discv5/node_test.go | 4 +- p2p/discv5/ntp.go | 2 +- p2p/discv5/sim_test.go | 2 +- p2p/discv5/table.go | 2 +- p2p/discv5/table_test.go | 4 +- p2p/discv5/ticket.go | 8 +-- p2p/discv5/topic.go | 4 +- p2p/discv5/topic_test.go | 4 +- p2p/discv5/udp.go | 12 ++-- p2p/discv5/udp_test.go | 6 +- p2p/enr/enr.go | 6 +- p2p/enr/enr_test.go | 4 +- p2p/enr/entries.go | 4 +- p2p/message.go | 6 +- p2p/metrics.go | 2 +- p2p/nat/nat.go | 2 +- p2p/peer.go | 10 ++-- p2p/protocol.go | 2 +- p2p/protocols/protocol.go | 2 +- p2p/protocols/protocol_test.go | 8 +-- p2p/rlpx.go | 12 ++-- p2p/rlpx_test.go | 10 ++-- p2p/server.go | 16 ++--- p2p/server_test.go | 8 +-- p2p/simulations/adapters/docker.go | 6 +- p2p/simulations/adapters/exec.go | 10 ++-- p2p/simulations/adapters/inproc.go | 12 ++-- p2p/simulations/adapters/types.go | 10 ++-- p2p/simulations/examples/ping-pong.go | 14 ++--- p2p/simulations/http.go | 10 ++-- p2p/simulations/http_test.go | 12 ++-- p2p/simulations/mocker.go | 4 +- p2p/simulations/mocker_test.go | 2 +- p2p/simulations/network.go | 10 ++-- p2p/simulations/network_test.go | 4 +- p2p/simulations/simulation.go | 2 +- p2p/testing/peerpool.go | 4 +- p2p/testing/protocolsession.go | 8 +-- p2p/testing/protocoltester.go | 16 ++--- params/config.go | 2 +- params/dao.go | 2 +- rpc/client.go | 2 +- rpc/client_example_test.go | 2 +- rpc/client_test.go | 2 +- rpc/ipc.go | 2 +- rpc/json.go | 2 +- rpc/server.go | 2 +- rpc/types.go | 2 +- rpc/types_test.go | 2 +- rpc/websocket.go | 2 +- swarm/api/api.go | 8 +-- swarm/api/api_test.go | 6 +- swarm/api/client/client.go | 2 +- swarm/api/client/client_test.go | 4 +- swarm/api/config.go | 16 ++--- swarm/api/config_test.go | 4 +- swarm/api/filesystem.go | 6 +- swarm/api/filesystem_test.go | 4 +- swarm/api/http/error.go | 6 +- swarm/api/http/error_test.go | 2 +- swarm/api/http/roundtripper.go | 8 +-- swarm/api/http/server.go | 10 ++-- swarm/api/http/server_test.go | 10 ++-- swarm/api/http/templates.go | 2 +- swarm/api/manifest.go | 6 +- swarm/api/manifest_test.go | 2 +- swarm/api/testapi.go | 2 +- swarm/dev/Makefile | 8 +-- swarm/dev/bashrc | 2 +- swarm/dev/run.sh | 2 +- swarm/fuse/fuse_file.go | 4 +- swarm/fuse/swarmfs.go | 2 +- swarm/fuse/swarmfs_test.go | 4 +- swarm/fuse/swarmfs_unix.go | 6 +- swarm/fuse/swarmfs_util.go | 2 +- swarm/metrics/flags.go | 8 +-- swarm/network/depo.go | 6 +- swarm/network/forwarding.go | 4 +- swarm/network/hive.go | 14 ++--- swarm/network/kademlia/address.go | 2 +- swarm/network/kademlia/address_test.go | 2 +- swarm/network/kademlia/kaddb.go | 2 +- swarm/network/kademlia/kademlia.go | 4 +- swarm/network/messages.go | 10 ++-- swarm/network/protocol.go | 14 ++--- swarm/network/syncdb.go | 4 +- swarm/network/syncdb_test.go | 6 +- swarm/network/syncer.go | 4 +- swarm/services/swap/swap.go | 16 ++--- swarm/services/swap/swap/swap.go | 2 +- swarm/services/swap/swap/swap_test.go | 2 +- swarm/storage/chunker.go | 2 +- swarm/storage/chunker_test.go | 2 +- swarm/storage/common_test.go | 2 +- swarm/storage/database.go | 2 +- swarm/storage/dbstore.go | 6 +- swarm/storage/dbstore_test.go | 2 +- swarm/storage/dpa.go | 2 +- swarm/storage/localstore.go | 2 +- swarm/storage/memstore.go | 4 +- swarm/storage/netstore.go | 2 +- swarm/storage/types.go | 6 +- swarm/swarm.go | 36 +++++------ swarm/swarm_test.go | 2 +- swarm/testutil/http.go | 6 +- tests/block_test_util.go | 22 +++---- tests/difficulty_test.go | 4 +- tests/difficulty_test_util.go | 10 ++-- tests/gen_btheader.go | 8 +-- tests/gen_difficultytest.go | 4 +- tests/gen_stenv.go | 4 +- tests/gen_sttransaction.go | 4 +- tests/gen_tttransaction.go | 6 +- tests/gen_vmexec.go | 6 +- tests/init.go | 2 +- tests/init_test.go | 2 +- tests/rlp_test_util.go | 2 +- tests/state_test.go | 2 +- tests/state_test_util.go | 24 ++++---- tests/transaction_test.go | 2 +- tests/transaction_test_util.go | 12 ++-- tests/vm_test.go | 2 +- tests/vm_test_util.go | 18 +++--- tomox/api.go | 4 +- tomox/batchdb.go | 8 +-- tomox/interfaces.go | 6 +- tomox/mongodb.go | 8 +-- tomox/order.go | 2 +- tomox/order_processor.go | 8 +-- tomox/tomox.go | 16 ++--- tomox/tomox_state/common.go | 2 +- tomox/tomox_state/database.go | 6 +- tomox/tomox_state/dump.go | 6 +- tomox/tomox_state/encoding.go | 2 +- tomox/tomox_state/journal.go | 2 +- tomox/tomox_state/managed_state.go | 2 +- tomox/tomox_state/orderitem.go | 10 ++-- tomox/tomox_state/relayer_state.go | 8 +-- tomox/tomox_state/state_orderItem.go | 4 +- tomox/tomox_state/state_orderList.go | 4 +- tomox/tomox_state/state_orderbook.go | 6 +- tomox/tomox_state/statedb.go | 8 +-- tomox/tomox_state/statedb_test.go | 6 +- tomox/tomox_state/tomox_trie.go | 8 +-- tomox/tomox_state/tomox_trie_test.go | 4 +- tomox/trade.go | 4 +- trie/database.go | 6 +- trie/errors.go | 2 +- trie/hasher.go | 6 +- trie/iterator.go | 2 +- trie/iterator_test.go | 4 +- trie/node.go | 4 +- trie/proof.go | 10 ++-- trie/proof_test.go | 6 +- trie/secure_trie.go | 4 +- trie/secure_trie_test.go | 6 +- trie/sync.go | 4 +- trie/sync_test.go | 4 +- trie/trie.go | 8 +-- trie/trie_test.go | 8 +-- whisper/mailserver/mailserver.go | 12 ++-- whisper/mailserver/server_test.go | 6 +- whisper/shhclient/client.go | 8 +-- whisper/whisperv5/api.go | 12 ++-- whisper/whisperv5/benchmarks_test.go | 2 +- whisper/whisperv5/envelope.go | 10 ++-- whisper/whisperv5/filter.go | 6 +- whisper/whisperv5/filter_test.go | 4 +- whisper/whisperv5/gen_criteria_json.go | 2 +- whisper/whisperv5/gen_message_json.go | 2 +- whisper/whisperv5/gen_newmessage_json.go | 2 +- whisper/whisperv5/message.go | 8 +-- whisper/whisperv5/message_test.go | 4 +- whisper/whisperv5/peer.go | 8 +-- whisper/whisperv5/peer_test.go | 10 ++-- whisper/whisperv5/topic.go | 4 +- whisper/whisperv5/whisper.go | 10 ++-- whisper/whisperv5/whisper_test.go | 2 +- whisper/whisperv6/api.go | 12 ++-- whisper/whisperv6/api_test.go | 2 +- whisper/whisperv6/benchmarks_test.go | 2 +- whisper/whisperv6/envelope.go | 10 ++-- whisper/whisperv6/envelope_test.go | 2 +- whisper/whisperv6/filter.go | 6 +- whisper/whisperv6/filter_test.go | 4 +- whisper/whisperv6/gen_criteria_json.go | 2 +- whisper/whisperv6/gen_message_json.go | 2 +- whisper/whisperv6/gen_newmessage_json.go | 2 +- whisper/whisperv6/message.go | 8 +-- whisper/whisperv6/message_test.go | 6 +- whisper/whisperv6/peer.go | 8 +-- whisper/whisperv6/peer_test.go | 12 ++-- whisper/whisperv6/topic.go | 4 +- whisper/whisperv6/whisper.go | 12 ++-- whisper/whisperv6/whisper_test.go | 2 +- 636 files changed, 2431 insertions(+), 2431 deletions(-) diff --git a/.travis.yml b/.travis.yml index 5ea776c912..c468a32e92 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,6 @@ sudo: required language: go -go_import_path: github.com/tomochain/go-tomochain +go_import_path: github.com/tomochain/tomochain env: global: diff --git a/accounts/abi/abi_test.go b/accounts/abi/abi_test.go index cbac10d181..5a128bfe54 100644 --- a/accounts/abi/abi_test.go +++ b/accounts/abi/abi_test.go @@ -27,8 +27,8 @@ import ( "reflect" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/crypto" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/crypto" ) const jsondata = ` diff --git a/accounts/abi/bind/auth.go b/accounts/abi/bind/auth.go index 5506c79823..6c68a4e7a8 100644 --- a/accounts/abi/bind/auth.go +++ b/accounts/abi/bind/auth.go @@ -22,10 +22,10 @@ import ( "io" "io/ioutil" - "github.com/tomochain/go-tomochain/accounts/keystore" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/crypto" + "github.com/tomochain/tomochain/accounts/keystore" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/crypto" ) // NewTransactor is a utility method to easily create a transaction signer from diff --git a/accounts/abi/bind/backend.go b/accounts/abi/bind/backend.go index 4ce2bc8929..7c4f741a70 100644 --- a/accounts/abi/bind/backend.go +++ b/accounts/abi/bind/backend.go @@ -21,9 +21,9 @@ import ( "errors" "math/big" - "github.com/tomochain/go-tomochain" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/core/types" + "github.com/tomochain/tomochain" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/core/types" ) var ( diff --git a/accounts/abi/bind/backends/simulated.go b/accounts/abi/bind/backends/simulated.go index c581109a6f..b120dd4ca8 100644 --- a/accounts/abi/bind/backends/simulated.go +++ b/accounts/abi/bind/backends/simulated.go @@ -25,21 +25,21 @@ import ( "sync" "time" - "github.com/tomochain/go-tomochain" - "github.com/tomochain/go-tomochain/accounts/abi/bind" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/common/math" - "github.com/tomochain/go-tomochain/consensus/ethash" - "github.com/tomochain/go-tomochain/core" - "github.com/tomochain/go-tomochain/core/bloombits" - "github.com/tomochain/go-tomochain/core/state" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/core/vm" - "github.com/tomochain/go-tomochain/eth/filters" - "github.com/tomochain/go-tomochain/ethdb" - "github.com/tomochain/go-tomochain/event" - "github.com/tomochain/go-tomochain/params" - "github.com/tomochain/go-tomochain/rpc" + "github.com/tomochain/tomochain" + "github.com/tomochain/tomochain/accounts/abi/bind" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/common/math" + "github.com/tomochain/tomochain/consensus/ethash" + "github.com/tomochain/tomochain/core" + "github.com/tomochain/tomochain/core/bloombits" + "github.com/tomochain/tomochain/core/state" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/core/vm" + "github.com/tomochain/tomochain/eth/filters" + "github.com/tomochain/tomochain/ethdb" + "github.com/tomochain/tomochain/event" + "github.com/tomochain/tomochain/params" + "github.com/tomochain/tomochain/rpc" ) // This nil assignment ensures compile time that SimulatedBackend implements bind.ContractBackend. diff --git a/accounts/abi/bind/base.go b/accounts/abi/bind/base.go index 485e23668d..68036d48cb 100644 --- a/accounts/abi/bind/base.go +++ b/accounts/abi/bind/base.go @@ -22,12 +22,12 @@ import ( "fmt" "math/big" - "github.com/tomochain/go-tomochain" - "github.com/tomochain/go-tomochain/accounts/abi" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/crypto" - "github.com/tomochain/go-tomochain/event" + "github.com/tomochain/tomochain" + "github.com/tomochain/tomochain/accounts/abi" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/crypto" + "github.com/tomochain/tomochain/event" ) // SignerFn is a signer function callback when a contract requires a method to diff --git a/accounts/abi/bind/bind.go b/accounts/abi/bind/bind.go index 54dba3ac61..1ffd267206 100644 --- a/accounts/abi/bind/bind.go +++ b/accounts/abi/bind/bind.go @@ -28,7 +28,7 @@ import ( "text/template" "unicode" - "github.com/tomochain/go-tomochain/accounts/abi" + "github.com/tomochain/tomochain/accounts/abi" "golang.org/x/tools/imports" ) diff --git a/accounts/abi/bind/bind_test.go b/accounts/abi/bind/bind_test.go index 0595c07574..ae1d9275e9 100644 --- a/accounts/abi/bind/bind_test.go +++ b/accounts/abi/bind/bind_test.go @@ -26,7 +26,7 @@ import ( "strings" "testing" - "github.com/tomochain/go-tomochain/common" + "github.com/tomochain/tomochain/common" "golang.org/x/tools/imports" ) diff --git a/accounts/abi/bind/template.go b/accounts/abi/bind/template.go index b5fb87a32f..f49b0efd1c 100644 --- a/accounts/abi/bind/template.go +++ b/accounts/abi/bind/template.go @@ -16,7 +16,7 @@ package bind -import "github.com/tomochain/go-tomochain/accounts/abi" +import "github.com/tomochain/tomochain/accounts/abi" // tmplData is the data structure required to fill the binding template. type tmplData struct { diff --git a/accounts/abi/bind/topics.go b/accounts/abi/bind/topics.go index b44878aa9d..5076b36a2b 100644 --- a/accounts/abi/bind/topics.go +++ b/accounts/abi/bind/topics.go @@ -22,9 +22,9 @@ import ( "math/big" "reflect" - "github.com/tomochain/go-tomochain/accounts/abi" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/crypto" + "github.com/tomochain/tomochain/accounts/abi" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/crypto" ) // makeTopics converts a filter query argument list into a filter topic set. diff --git a/accounts/abi/bind/util.go b/accounts/abi/bind/util.go index baaece73f6..6f7983a856 100644 --- a/accounts/abi/bind/util.go +++ b/accounts/abi/bind/util.go @@ -21,9 +21,9 @@ import ( "fmt" "time" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/log" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/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 a6739a60bb..0a3290873e 100644 --- a/accounts/abi/bind/util_test.go +++ b/accounts/abi/bind/util_test.go @@ -22,12 +22,12 @@ import ( "testing" "time" - "github.com/tomochain/go-tomochain/accounts/abi/bind" - "github.com/tomochain/go-tomochain/accounts/abi/bind/backends" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/core" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/crypto" + "github.com/tomochain/tomochain/accounts/abi/bind" + "github.com/tomochain/tomochain/accounts/abi/bind/backends" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/core" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/crypto" ) var testKey, _ = crypto.HexToECDSA("b71c71a67e1177ad4e901695e1b4b9ee17ae16c6668d313eac2f96dbcda3f291") diff --git a/accounts/abi/event.go b/accounts/abi/event.go index 9ea777b50f..082fd71aea 100644 --- a/accounts/abi/event.go +++ b/accounts/abi/event.go @@ -20,8 +20,8 @@ import ( "fmt" "strings" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/crypto" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/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 e2cad335ff..e910d027ed 100644 --- a/accounts/abi/event_test.go +++ b/accounts/abi/event_test.go @@ -25,8 +25,8 @@ import ( "strings" "testing" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/crypto" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/crypto" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/accounts/abi/method.go b/accounts/abi/method.go index de5c8315ec..57a2f0e0a4 100644 --- a/accounts/abi/method.go +++ b/accounts/abi/method.go @@ -20,7 +20,7 @@ import ( "fmt" "strings" - "github.com/tomochain/go-tomochain/crypto" + "github.com/tomochain/tomochain/crypto" ) // Method represents a callable given a `Name` and whether the method is a constant. diff --git a/accounts/abi/numbers.go b/accounts/abi/numbers.go index d062cb152c..3d541ee9a2 100644 --- a/accounts/abi/numbers.go +++ b/accounts/abi/numbers.go @@ -20,8 +20,8 @@ import ( "math/big" "reflect" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/common/math" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/common/math" ) var ( diff --git a/accounts/abi/pack.go b/accounts/abi/pack.go index 2431aaf8df..7d422f579f 100644 --- a/accounts/abi/pack.go +++ b/accounts/abi/pack.go @@ -20,8 +20,8 @@ import ( "math/big" "reflect" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/common/math" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/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 131ac7fe09..be48cb5b15 100644 --- a/accounts/abi/pack_test.go +++ b/accounts/abi/pack_test.go @@ -24,7 +24,7 @@ import ( "strings" "testing" - "github.com/tomochain/go-tomochain/common" + "github.com/tomochain/tomochain/common" ) func TestPack(t *testing.T) { diff --git a/accounts/abi/type_test.go b/accounts/abi/type_test.go index b5fd6c1bfc..fc23b07520 100644 --- a/accounts/abi/type_test.go +++ b/accounts/abi/type_test.go @@ -22,7 +22,7 @@ import ( "testing" "github.com/davecgh/go-spew/spew" - "github.com/tomochain/go-tomochain/common" + "github.com/tomochain/tomochain/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 2a4197354e..208486349a 100644 --- a/accounts/abi/unpack.go +++ b/accounts/abi/unpack.go @@ -22,7 +22,7 @@ import ( "math/big" "reflect" - "github.com/tomochain/go-tomochain/common" + "github.com/tomochain/tomochain/common" ) // reads the integer based on its kind diff --git a/accounts/abi/unpack_test.go b/accounts/abi/unpack_test.go index 1543cd0e18..8dba7478a8 100644 --- a/accounts/abi/unpack_test.go +++ b/accounts/abi/unpack_test.go @@ -26,7 +26,7 @@ import ( "strings" "testing" - "github.com/tomochain/go-tomochain/common" + "github.com/tomochain/tomochain/common" "github.com/stretchr/testify/require" ) diff --git a/accounts/accounts.go b/accounts/accounts.go index e9737fa53c..5d9eead4c4 100644 --- a/accounts/accounts.go +++ b/accounts/accounts.go @@ -20,10 +20,10 @@ package accounts import ( "math/big" - ethereum "github.com/tomochain/go-tomochain" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/event" + ethereum "github.com/tomochain/tomochain" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/event" ) // Account represents an Ethereum account located at a specific location defined diff --git a/accounts/keystore/account_cache.go b/accounts/keystore/account_cache.go index b3c41dd1b6..910cefe4ca 100644 --- a/accounts/keystore/account_cache.go +++ b/accounts/keystore/account_cache.go @@ -27,9 +27,9 @@ import ( "sync" "time" - "github.com/tomochain/go-tomochain/accounts" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/log" + "github.com/tomochain/tomochain/accounts" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/log" mapset "github.com/deckarep/golang-set" ) diff --git a/accounts/keystore/account_cache_test.go b/accounts/keystore/account_cache_test.go index 909df3751f..c1107fd8b4 100644 --- a/accounts/keystore/account_cache_test.go +++ b/accounts/keystore/account_cache_test.go @@ -29,8 +29,8 @@ import ( "github.com/cespare/cp" "github.com/davecgh/go-spew/spew" - "github.com/tomochain/go-tomochain/accounts" - "github.com/tomochain/go-tomochain/common" + "github.com/tomochain/tomochain/accounts" + "github.com/tomochain/tomochain/common" ) var ( diff --git a/accounts/keystore/file_cache.go b/accounts/keystore/file_cache.go index d02e82a7c4..acf25436f6 100644 --- a/accounts/keystore/file_cache.go +++ b/accounts/keystore/file_cache.go @@ -24,7 +24,7 @@ import ( "sync" "time" - "github.com/tomochain/go-tomochain/log" + "github.com/tomochain/tomochain/log" mapset "github.com/deckarep/golang-set" ) diff --git a/accounts/keystore/key.go b/accounts/keystore/key.go index abd3b7a6b9..a98f96351c 100644 --- a/accounts/keystore/key.go +++ b/accounts/keystore/key.go @@ -29,9 +29,9 @@ import ( "strings" "time" - "github.com/tomochain/go-tomochain/accounts" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/crypto" + "github.com/tomochain/tomochain/accounts" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/crypto" "github.com/pborman/uuid" ) diff --git a/accounts/keystore/keystore.go b/accounts/keystore/keystore.go index 0d3c16f22a..4011061b96 100644 --- a/accounts/keystore/keystore.go +++ b/accounts/keystore/keystore.go @@ -33,11 +33,11 @@ import ( "sync" "time" - "github.com/tomochain/go-tomochain/accounts" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/crypto" - "github.com/tomochain/go-tomochain/event" + "github.com/tomochain/tomochain/accounts" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/crypto" + "github.com/tomochain/tomochain/event" ) var ( diff --git a/accounts/keystore/keystore_passphrase.go b/accounts/keystore/keystore_passphrase.go index a7cb170de1..d80832e904 100644 --- a/accounts/keystore/keystore_passphrase.go +++ b/accounts/keystore/keystore_passphrase.go @@ -36,10 +36,10 @@ import ( "io/ioutil" "path/filepath" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/common/math" - "github.com/tomochain/go-tomochain/crypto" - "github.com/tomochain/go-tomochain/crypto/randentropy" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/common/math" + "github.com/tomochain/tomochain/crypto" + "github.com/tomochain/tomochain/crypto/randentropy" "github.com/pborman/uuid" "golang.org/x/crypto/pbkdf2" "golang.org/x/crypto/scrypt" diff --git a/accounts/keystore/keystore_passphrase_test.go b/accounts/keystore/keystore_passphrase_test.go index bc599b9ca4..38a0425a9a 100644 --- a/accounts/keystore/keystore_passphrase_test.go +++ b/accounts/keystore/keystore_passphrase_test.go @@ -20,7 +20,7 @@ import ( "io/ioutil" "testing" - "github.com/tomochain/go-tomochain/common" + "github.com/tomochain/tomochain/common" ) const ( diff --git a/accounts/keystore/keystore_plain.go b/accounts/keystore/keystore_plain.go index 23551b3e85..11d449e5e7 100644 --- a/accounts/keystore/keystore_plain.go +++ b/accounts/keystore/keystore_plain.go @@ -22,7 +22,7 @@ import ( "os" "path/filepath" - "github.com/tomochain/go-tomochain/common" + "github.com/tomochain/tomochain/common" ) type keyStorePlain struct { diff --git a/accounts/keystore/keystore_plain_test.go b/accounts/keystore/keystore_plain_test.go index 475a65f8b9..aad5a654ae 100644 --- a/accounts/keystore/keystore_plain_test.go +++ b/accounts/keystore/keystore_plain_test.go @@ -27,8 +27,8 @@ import ( "strings" "testing" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/crypto" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/crypto" ) func tmpKeyStoreIface(t *testing.T, encrypted bool) (dir string, ks keyStore) { diff --git a/accounts/keystore/keystore_test.go b/accounts/keystore/keystore_test.go index f2627bb3d0..120019f315 100644 --- a/accounts/keystore/keystore_test.go +++ b/accounts/keystore/keystore_test.go @@ -26,9 +26,9 @@ import ( "testing" "time" - "github.com/tomochain/go-tomochain/accounts" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/event" + "github.com/tomochain/tomochain/accounts" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/event" ) var testSigData = make([]byte, 32) diff --git a/accounts/keystore/keystore_wallet.go b/accounts/keystore/keystore_wallet.go index 0f24c6bd5f..01ffd75a8e 100644 --- a/accounts/keystore/keystore_wallet.go +++ b/accounts/keystore/keystore_wallet.go @@ -19,9 +19,9 @@ package keystore import ( "math/big" - ethereum "github.com/tomochain/go-tomochain" - "github.com/tomochain/go-tomochain/accounts" - "github.com/tomochain/go-tomochain/core/types" + ethereum "github.com/tomochain/tomochain" + "github.com/tomochain/tomochain/accounts" + "github.com/tomochain/tomochain/core/types" ) // keystoreWallet implements the accounts.Wallet interface for the original diff --git a/accounts/keystore/presale.go b/accounts/keystore/presale.go index 9217f10aef..b59317a4f5 100644 --- a/accounts/keystore/presale.go +++ b/accounts/keystore/presale.go @@ -25,8 +25,8 @@ import ( "errors" "fmt" - "github.com/tomochain/go-tomochain/accounts" - "github.com/tomochain/go-tomochain/crypto" + "github.com/tomochain/tomochain/accounts" + "github.com/tomochain/tomochain/crypto" "github.com/pborman/uuid" "golang.org/x/crypto/pbkdf2" ) diff --git a/accounts/keystore/watch.go b/accounts/keystore/watch.go index 8a1431d16d..6e24275476 100644 --- a/accounts/keystore/watch.go +++ b/accounts/keystore/watch.go @@ -21,7 +21,7 @@ package keystore import ( "time" - "github.com/tomochain/go-tomochain/log" + "github.com/tomochain/tomochain/log" "github.com/rjeczalik/notify" ) diff --git a/accounts/manager.go b/accounts/manager.go index 2e5bc4ff7e..a2d47e604e 100644 --- a/accounts/manager.go +++ b/accounts/manager.go @@ -21,7 +21,7 @@ import ( "sort" "sync" - "github.com/tomochain/go-tomochain/event" + "github.com/tomochain/tomochain/event" ) // Manager is an overarching account manager that can communicate with various diff --git a/accounts/usbwallet/hub.go b/accounts/usbwallet/hub.go index de188d565f..55c7eab618 100644 --- a/accounts/usbwallet/hub.go +++ b/accounts/usbwallet/hub.go @@ -22,9 +22,9 @@ import ( "sync" "time" - "github.com/tomochain/go-tomochain/accounts" - "github.com/tomochain/go-tomochain/event" - "github.com/tomochain/go-tomochain/log" + "github.com/tomochain/tomochain/accounts" + "github.com/tomochain/tomochain/event" + "github.com/tomochain/tomochain/log" "github.com/karalabe/hid" ) diff --git a/accounts/usbwallet/ledger.go b/accounts/usbwallet/ledger.go index e85951259c..f7f7e6bd82 100644 --- a/accounts/usbwallet/ledger.go +++ b/accounts/usbwallet/ledger.go @@ -28,12 +28,12 @@ import ( "io" "math/big" - "github.com/tomochain/go-tomochain/accounts" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/common/hexutil" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/log" - "github.com/tomochain/go-tomochain/rlp" + "github.com/tomochain/tomochain/accounts" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/common/hexutil" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/log" + "github.com/tomochain/tomochain/rlp" ) // ledgerOpcode is an enumeration encoding the supported Ledger opcodes. diff --git a/accounts/usbwallet/trezor.go b/accounts/usbwallet/trezor.go index d10d0dcc78..0664569605 100644 --- a/accounts/usbwallet/trezor.go +++ b/accounts/usbwallet/trezor.go @@ -27,12 +27,12 @@ import ( "io" "math/big" - "github.com/tomochain/go-tomochain/accounts" - "github.com/tomochain/go-tomochain/accounts/usbwallet/internal/trezor" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/common/hexutil" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/log" + "github.com/tomochain/tomochain/accounts" + "github.com/tomochain/tomochain/accounts/usbwallet/internal/trezor" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/common/hexutil" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/log" "github.com/golang/protobuf/proto" ) diff --git a/accounts/usbwallet/wallet.go b/accounts/usbwallet/wallet.go index 8041eecd08..0d596b1d6d 100644 --- a/accounts/usbwallet/wallet.go +++ b/accounts/usbwallet/wallet.go @@ -25,11 +25,11 @@ import ( "sync" "time" - ethereum "github.com/tomochain/go-tomochain" - "github.com/tomochain/go-tomochain/accounts" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/log" + ethereum "github.com/tomochain/tomochain" + "github.com/tomochain/tomochain/accounts" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/log" "github.com/karalabe/hid" ) diff --git a/bmt/bmt_test.go b/bmt/bmt_test.go index e08818595e..30b178e773 100644 --- a/bmt/bmt_test.go +++ b/bmt/bmt_test.go @@ -28,7 +28,7 @@ import ( "testing" "time" - "github.com/tomochain/go-tomochain/crypto/sha3" + "github.com/tomochain/tomochain/crypto/sha3" ) const ( diff --git a/build/ci.go b/build/ci.go index 4abe925e22..d622fccda0 100644 --- a/build/ci.go +++ b/build/ci.go @@ -47,7 +47,7 @@ import ( "runtime" "strings" - "github.com/tomochain/go-tomochain/internal/build" + "github.com/tomochain/tomochain/internal/build" ) var ( diff --git a/build/env.sh b/build/env.sh index 4133a58f4f..87aec0f5c1 100755 --- a/build/env.sh +++ b/build/env.sh @@ -11,10 +11,10 @@ fi workspace="$PWD/build/_workspace" root="$PWD" ethdir="$workspace/src/github.com/tomochain" -if [ ! -L "$ethdir/go-tomochain" ]; then +if [ ! -L "$ethdir/tomochain" ]; then mkdir -p "$ethdir" cd "$ethdir" - ln -s ../../../../../. go-tomochain + ln -s ../../../../../. tomochain cd "$root" fi @@ -23,8 +23,8 @@ GOPATH="$workspace" export GOPATH # Run the command inside the workspace. -cd "$ethdir/go-tomochain" -PWD="$ethdir/go-tomochain" +cd "$ethdir/tomochain" +PWD="$ethdir/tomochain" # Launch the arguments with the configured environment. exec "$@" diff --git a/cmd/abigen/main.go b/cmd/abigen/main.go index ba7178391b..c2084e19fb 100644 --- a/cmd/abigen/main.go +++ b/cmd/abigen/main.go @@ -24,8 +24,8 @@ import ( "os" "strings" - "github.com/tomochain/go-tomochain/accounts/abi/bind" - "github.com/tomochain/go-tomochain/common/compiler" + "github.com/tomochain/tomochain/accounts/abi/bind" + "github.com/tomochain/tomochain/common/compiler" ) var ( diff --git a/cmd/bootnode/main.go b/cmd/bootnode/main.go index a51836251d..c582847c54 100644 --- a/cmd/bootnode/main.go +++ b/cmd/bootnode/main.go @@ -24,13 +24,13 @@ import ( "net" "os" - "github.com/tomochain/go-tomochain/cmd/utils" - "github.com/tomochain/go-tomochain/crypto" - "github.com/tomochain/go-tomochain/log" - "github.com/tomochain/go-tomochain/p2p/discover" - "github.com/tomochain/go-tomochain/p2p/discv5" - "github.com/tomochain/go-tomochain/p2p/nat" - "github.com/tomochain/go-tomochain/p2p/netutil" + "github.com/tomochain/tomochain/cmd/utils" + "github.com/tomochain/tomochain/crypto" + "github.com/tomochain/tomochain/log" + "github.com/tomochain/tomochain/p2p/discover" + "github.com/tomochain/tomochain/p2p/discv5" + "github.com/tomochain/tomochain/p2p/nat" + "github.com/tomochain/tomochain/p2p/netutil" ) func main() { diff --git a/cmd/ethkey/generate.go b/cmd/ethkey/generate.go index ce89e68809..87232f4d60 100644 --- a/cmd/ethkey/generate.go +++ b/cmd/ethkey/generate.go @@ -23,9 +23,9 @@ import ( "os" "path/filepath" - "github.com/tomochain/go-tomochain/accounts/keystore" - "github.com/tomochain/go-tomochain/cmd/utils" - "github.com/tomochain/go-tomochain/crypto" + "github.com/tomochain/tomochain/accounts/keystore" + "github.com/tomochain/tomochain/cmd/utils" + "github.com/tomochain/tomochain/crypto" "github.com/pborman/uuid" "gopkg.in/urfave/cli.v1" ) diff --git a/cmd/ethkey/inspect.go b/cmd/ethkey/inspect.go index 3d3e34764e..4eb7af9848 100644 --- a/cmd/ethkey/inspect.go +++ b/cmd/ethkey/inspect.go @@ -21,9 +21,9 @@ import ( "fmt" "io/ioutil" - "github.com/tomochain/go-tomochain/accounts/keystore" - "github.com/tomochain/go-tomochain/cmd/utils" - "github.com/tomochain/go-tomochain/crypto" + "github.com/tomochain/tomochain/accounts/keystore" + "github.com/tomochain/tomochain/cmd/utils" + "github.com/tomochain/tomochain/crypto" "gopkg.in/urfave/cli.v1" ) diff --git a/cmd/ethkey/main.go b/cmd/ethkey/main.go index ca48ba11bf..64ed30800d 100644 --- a/cmd/ethkey/main.go +++ b/cmd/ethkey/main.go @@ -20,7 +20,7 @@ import ( "fmt" "os" - "github.com/tomochain/go-tomochain/cmd/utils" + "github.com/tomochain/tomochain/cmd/utils" "gopkg.in/urfave/cli.v1" ) diff --git a/cmd/ethkey/message.go b/cmd/ethkey/message.go index 2146d1dcb3..a241174c5a 100644 --- a/cmd/ethkey/message.go +++ b/cmd/ethkey/message.go @@ -21,10 +21,10 @@ import ( "fmt" "io/ioutil" - "github.com/tomochain/go-tomochain/accounts/keystore" - "github.com/tomochain/go-tomochain/cmd/utils" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/crypto" + "github.com/tomochain/tomochain/accounts/keystore" + "github.com/tomochain/tomochain/cmd/utils" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/crypto" "gopkg.in/urfave/cli.v1" ) diff --git a/cmd/ethkey/run_test.go b/cmd/ethkey/run_test.go index c7eb99c365..173b589e90 100644 --- a/cmd/ethkey/run_test.go +++ b/cmd/ethkey/run_test.go @@ -22,7 +22,7 @@ import ( "testing" "github.com/docker/docker/pkg/reexec" - "github.com/tomochain/go-tomochain/internal/cmdtest" + "github.com/tomochain/tomochain/internal/cmdtest" ) type testEthkey struct { diff --git a/cmd/ethkey/utils.go b/cmd/ethkey/utils.go index f2ad013483..b716a05a8f 100644 --- a/cmd/ethkey/utils.go +++ b/cmd/ethkey/utils.go @@ -22,9 +22,9 @@ import ( "io/ioutil" "strings" - "github.com/tomochain/go-tomochain/cmd/utils" - "github.com/tomochain/go-tomochain/console" - "github.com/tomochain/go-tomochain/crypto" + "github.com/tomochain/tomochain/cmd/utils" + "github.com/tomochain/tomochain/console" + "github.com/tomochain/tomochain/crypto" "gopkg.in/urfave/cli.v1" ) diff --git a/cmd/evm/compiler.go b/cmd/evm/compiler.go index 5686194e5f..c4cd60886c 100644 --- a/cmd/evm/compiler.go +++ b/cmd/evm/compiler.go @@ -21,7 +21,7 @@ import ( "fmt" "io/ioutil" - "github.com/tomochain/go-tomochain/cmd/evm/internal/compiler" + "github.com/tomochain/tomochain/cmd/evm/internal/compiler" cli "gopkg.in/urfave/cli.v1" ) diff --git a/cmd/evm/disasm.go b/cmd/evm/disasm.go index a3cce54bc7..1776cd6580 100644 --- a/cmd/evm/disasm.go +++ b/cmd/evm/disasm.go @@ -22,7 +22,7 @@ import ( "io/ioutil" "strings" - "github.com/tomochain/go-tomochain/core/asm" + "github.com/tomochain/tomochain/core/asm" cli "gopkg.in/urfave/cli.v1" ) diff --git a/cmd/evm/internal/compiler/compiler.go b/cmd/evm/internal/compiler/compiler.go index 272b86ed15..0cf5c227ac 100644 --- a/cmd/evm/internal/compiler/compiler.go +++ b/cmd/evm/internal/compiler/compiler.go @@ -20,7 +20,7 @@ import ( "errors" "fmt" - "github.com/tomochain/go-tomochain/core/asm" + "github.com/tomochain/tomochain/core/asm" ) func Compile(fn string, src []byte, debug bool) (string, error) { diff --git a/cmd/evm/json_logger.go b/cmd/evm/json_logger.go index ed30db9298..1b401a5cae 100644 --- a/cmd/evm/json_logger.go +++ b/cmd/evm/json_logger.go @@ -22,9 +22,9 @@ import ( "math/big" "time" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/common/math" - "github.com/tomochain/go-tomochain/core/vm" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/common/math" + "github.com/tomochain/tomochain/core/vm" ) type JSONLogger struct { diff --git a/cmd/evm/main.go b/cmd/evm/main.go index 1ebff1ea8e..f28f4d02cf 100644 --- a/cmd/evm/main.go +++ b/cmd/evm/main.go @@ -22,7 +22,7 @@ import ( "math/big" "os" - "github.com/tomochain/go-tomochain/cmd/utils" + "github.com/tomochain/tomochain/cmd/utils" "gopkg.in/urfave/cli.v1" ) diff --git a/cmd/evm/runner.go b/cmd/evm/runner.go index 663234b034..536e9a0f00 100644 --- a/cmd/evm/runner.go +++ b/cmd/evm/runner.go @@ -27,16 +27,16 @@ import ( goruntime "runtime" - "github.com/tomochain/go-tomochain/cmd/evm/internal/compiler" - "github.com/tomochain/go-tomochain/cmd/utils" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/core" - "github.com/tomochain/go-tomochain/core/state" - "github.com/tomochain/go-tomochain/core/vm" - "github.com/tomochain/go-tomochain/core/vm/runtime" - "github.com/tomochain/go-tomochain/ethdb" - "github.com/tomochain/go-tomochain/log" - "github.com/tomochain/go-tomochain/params" + "github.com/tomochain/tomochain/cmd/evm/internal/compiler" + "github.com/tomochain/tomochain/cmd/utils" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/core" + "github.com/tomochain/tomochain/core/state" + "github.com/tomochain/tomochain/core/vm" + "github.com/tomochain/tomochain/core/vm/runtime" + "github.com/tomochain/tomochain/ethdb" + "github.com/tomochain/tomochain/log" + "github.com/tomochain/tomochain/params" cli "gopkg.in/urfave/cli.v1" ) diff --git a/cmd/evm/staterunner.go b/cmd/evm/staterunner.go index 40aac4971d..5499be6962 100644 --- a/cmd/evm/staterunner.go +++ b/cmd/evm/staterunner.go @@ -23,10 +23,10 @@ import ( "io/ioutil" "os" - "github.com/tomochain/go-tomochain/core/state" - "github.com/tomochain/go-tomochain/core/vm" - "github.com/tomochain/go-tomochain/log" - "github.com/tomochain/go-tomochain/tests" + "github.com/tomochain/tomochain/core/state" + "github.com/tomochain/tomochain/core/vm" + "github.com/tomochain/tomochain/log" + "github.com/tomochain/tomochain/tests" cli "gopkg.in/urfave/cli.v1" ) diff --git a/cmd/faucet/faucet.go b/cmd/faucet/faucet.go index c6fbbb7dc4..6014f3c5a2 100644 --- a/cmd/faucet/faucet.go +++ b/cmd/faucet/faucet.go @@ -41,23 +41,23 @@ import ( "sync" "time" - "github.com/tomochain/go-tomochain/accounts" - "github.com/tomochain/go-tomochain/accounts/keystore" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/core" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/eth" - "github.com/tomochain/go-tomochain/eth/downloader" - "github.com/tomochain/go-tomochain/ethclient" - "github.com/tomochain/go-tomochain/ethstats" - "github.com/tomochain/go-tomochain/les" - "github.com/tomochain/go-tomochain/log" - "github.com/tomochain/go-tomochain/node" - "github.com/tomochain/go-tomochain/p2p" - "github.com/tomochain/go-tomochain/p2p/discover" - "github.com/tomochain/go-tomochain/p2p/discv5" - "github.com/tomochain/go-tomochain/p2p/nat" - "github.com/tomochain/go-tomochain/params" + "github.com/tomochain/tomochain/accounts" + "github.com/tomochain/tomochain/accounts/keystore" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/core" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/eth" + "github.com/tomochain/tomochain/eth/downloader" + "github.com/tomochain/tomochain/ethclient" + "github.com/tomochain/tomochain/ethstats" + "github.com/tomochain/tomochain/les" + "github.com/tomochain/tomochain/log" + "github.com/tomochain/tomochain/node" + "github.com/tomochain/tomochain/p2p" + "github.com/tomochain/tomochain/p2p/discover" + "github.com/tomochain/tomochain/p2p/discv5" + "github.com/tomochain/tomochain/p2p/nat" + "github.com/tomochain/tomochain/params" "golang.org/x/net/websocket" ) @@ -450,7 +450,7 @@ func (f *faucet) apiHandler(conn *websocket.Conn) { case *noauthFlag: username, avatar, address, err = authNoAuth(msg.URL) default: - err = errors.New("Something funky happened, please open an issue at https://github.com/tomochain/go-tomochain/issues") + err = errors.New("Something funky happened, please open an issue at https://github.com/tomochain/tomochain/issues") } if err != nil { if err = sendError(conn, err); err != nil { diff --git a/cmd/gc/main.go b/cmd/gc/main.go index 6b3e6878ed..a79e09012f 100644 --- a/cmd/gc/main.go +++ b/cmd/gc/main.go @@ -10,14 +10,14 @@ import ( "sync/atomic" "time" - "github.com/tomochain/go-tomochain/cmd/utils" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/core" - "github.com/tomochain/go-tomochain/core/state" - "github.com/tomochain/go-tomochain/eth" - "github.com/tomochain/go-tomochain/ethdb" - "github.com/tomochain/go-tomochain/rlp" - "github.com/tomochain/go-tomochain/trie" + "github.com/tomochain/tomochain/cmd/utils" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/core" + "github.com/tomochain/tomochain/core/state" + "github.com/tomochain/tomochain/eth" + "github.com/tomochain/tomochain/ethdb" + "github.com/tomochain/tomochain/rlp" + "github.com/tomochain/tomochain/trie" "github.com/hashicorp/golang-lru" "github.com/syndtr/goleveldb/leveldb" "github.com/syndtr/goleveldb/leveldb/util" diff --git a/cmd/p2psim/main.go b/cmd/p2psim/main.go index 50ba532833..7ae0b8b56e 100644 --- a/cmd/p2psim/main.go +++ b/cmd/p2psim/main.go @@ -45,12 +45,12 @@ import ( "strings" "text/tabwriter" - "github.com/tomochain/go-tomochain/crypto" - "github.com/tomochain/go-tomochain/p2p" - "github.com/tomochain/go-tomochain/p2p/discover" - "github.com/tomochain/go-tomochain/p2p/simulations" - "github.com/tomochain/go-tomochain/p2p/simulations/adapters" - "github.com/tomochain/go-tomochain/rpc" + "github.com/tomochain/tomochain/crypto" + "github.com/tomochain/tomochain/p2p" + "github.com/tomochain/tomochain/p2p/discover" + "github.com/tomochain/tomochain/p2p/simulations" + "github.com/tomochain/tomochain/p2p/simulations/adapters" + "github.com/tomochain/tomochain/rpc" "gopkg.in/urfave/cli.v1" ) diff --git a/cmd/puppeth/genesis.go b/cmd/puppeth/genesis.go index 98e8c2d0ad..ebca4a082e 100644 --- a/cmd/puppeth/genesis.go +++ b/cmd/puppeth/genesis.go @@ -21,11 +21,11 @@ import ( "errors" "math" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/common/hexutil" - "github.com/tomochain/go-tomochain/consensus/ethash" - "github.com/tomochain/go-tomochain/core" - "github.com/tomochain/go-tomochain/params" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/common/hexutil" + "github.com/tomochain/tomochain/consensus/ethash" + "github.com/tomochain/tomochain/core" + "github.com/tomochain/tomochain/params" ) // cppEthereumGenesisSpec represents the genesis specification format used by the diff --git a/cmd/puppeth/module.go b/cmd/puppeth/module.go index 48d8551374..bef30e31af 100644 --- a/cmd/puppeth/module.go +++ b/cmd/puppeth/module.go @@ -25,7 +25,7 @@ import ( "strings" "time" - "github.com/tomochain/go-tomochain/log" + "github.com/tomochain/tomochain/log" ) var ( diff --git a/cmd/puppeth/module_dashboard.go b/cmd/puppeth/module_dashboard.go index 1feb75c727..d0ad1a9976 100644 --- a/cmd/puppeth/module_dashboard.go +++ b/cmd/puppeth/module_dashboard.go @@ -26,7 +26,7 @@ import ( "strconv" "strings" - "github.com/tomochain/go-tomochain/log" + "github.com/tomochain/tomochain/log" ) // dashboardContent is the actual dashboard HTML content to serve up when users diff --git a/cmd/puppeth/module_ethstats.go b/cmd/puppeth/module_ethstats.go index b3939112e0..2b53277526 100644 --- a/cmd/puppeth/module_ethstats.go +++ b/cmd/puppeth/module_ethstats.go @@ -25,7 +25,7 @@ import ( "strings" "text/template" - "github.com/tomochain/go-tomochain/log" + "github.com/tomochain/tomochain/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 21f51f21c1..54487d5185 100644 --- a/cmd/puppeth/module_explorer.go +++ b/cmd/puppeth/module_explorer.go @@ -25,7 +25,7 @@ import ( "strconv" "strings" - "github.com/tomochain/go-tomochain/log" + "github.com/tomochain/tomochain/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 2306956208..29aca4984d 100644 --- a/cmd/puppeth/module_faucet.go +++ b/cmd/puppeth/module_faucet.go @@ -26,8 +26,8 @@ import ( "strconv" "strings" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/log" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/log" ) // faucetDockerfile is the Dockerfile required to build an faucet container to diff --git a/cmd/puppeth/module_nginx.go b/cmd/puppeth/module_nginx.go index afb35bfbd8..3184538eae 100644 --- a/cmd/puppeth/module_nginx.go +++ b/cmd/puppeth/module_nginx.go @@ -24,7 +24,7 @@ import ( "path/filepath" "strconv" - "github.com/tomochain/go-tomochain/log" + "github.com/tomochain/tomochain/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 f68073aefe..07e6224420 100644 --- a/cmd/puppeth/module_node.go +++ b/cmd/puppeth/module_node.go @@ -26,8 +26,8 @@ import ( "strings" "text/template" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/log" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/log" ) // nodeDockerfile is the Dockerfile required to run an Ethereum node. diff --git a/cmd/puppeth/module_wallet.go b/cmd/puppeth/module_wallet.go index bcfb0f19c0..e620127ff0 100644 --- a/cmd/puppeth/module_wallet.go +++ b/cmd/puppeth/module_wallet.go @@ -25,7 +25,7 @@ import ( "strconv" "strings" - "github.com/tomochain/go-tomochain/log" + "github.com/tomochain/tomochain/log" ) // walletDockerfile is the Dockerfile required to run a web wallet. diff --git a/cmd/puppeth/puppeth.go b/cmd/puppeth/puppeth.go index a908b7e946..aecf7d1f92 100644 --- a/cmd/puppeth/puppeth.go +++ b/cmd/puppeth/puppeth.go @@ -23,7 +23,7 @@ import ( "strings" "time" - "github.com/tomochain/go-tomochain/log" + "github.com/tomochain/tomochain/log" "gopkg.in/urfave/cli.v1" ) diff --git a/cmd/puppeth/ssh.go b/cmd/puppeth/ssh.go index 0b0f37293e..85bd5645dc 100644 --- a/cmd/puppeth/ssh.go +++ b/cmd/puppeth/ssh.go @@ -28,7 +28,7 @@ import ( "path/filepath" "strings" - "github.com/tomochain/go-tomochain/log" + "github.com/tomochain/tomochain/log" "golang.org/x/crypto/ssh" "golang.org/x/crypto/ssh/terminal" ) diff --git a/cmd/puppeth/wizard.go b/cmd/puppeth/wizard.go index 90cc63f0ac..55b6b74554 100644 --- a/cmd/puppeth/wizard.go +++ b/cmd/puppeth/wizard.go @@ -30,9 +30,9 @@ import ( "strings" "sync" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/core" - "github.com/tomochain/go-tomochain/log" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/core" + "github.com/tomochain/tomochain/log" "golang.org/x/crypto/ssh/terminal" ) diff --git a/cmd/puppeth/wizard_dashboard.go b/cmd/puppeth/wizard_dashboard.go index b3e4705653..51c9ef0df9 100644 --- a/cmd/puppeth/wizard_dashboard.go +++ b/cmd/puppeth/wizard_dashboard.go @@ -19,7 +19,7 @@ package main import ( "fmt" - "github.com/tomochain/go-tomochain/log" + "github.com/tomochain/tomochain/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 0947e9232e..6846526d8a 100644 --- a/cmd/puppeth/wizard_ethstats.go +++ b/cmd/puppeth/wizard_ethstats.go @@ -20,7 +20,7 @@ import ( "fmt" "sort" - "github.com/tomochain/go-tomochain/log" + "github.com/tomochain/tomochain/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 f0f5c2d9e7..d846da69b0 100644 --- a/cmd/puppeth/wizard_explorer.go +++ b/cmd/puppeth/wizard_explorer.go @@ -21,7 +21,7 @@ import ( "fmt" "time" - "github.com/tomochain/go-tomochain/log" + "github.com/tomochain/tomochain/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 6e643dbb2a..99baa6336f 100644 --- a/cmd/puppeth/wizard_faucet.go +++ b/cmd/puppeth/wizard_faucet.go @@ -20,8 +20,8 @@ import ( "encoding/json" "fmt" - "github.com/tomochain/go-tomochain/accounts/keystore" - "github.com/tomochain/go-tomochain/log" + "github.com/tomochain/tomochain/accounts/keystore" + "github.com/tomochain/tomochain/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 dc9a224aec..1d278662c6 100644 --- a/cmd/puppeth/wizard_genesis.go +++ b/cmd/puppeth/wizard_genesis.go @@ -24,22 +24,22 @@ import ( "math/rand" "time" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/core" - "github.com/tomochain/go-tomochain/log" - "github.com/tomochain/go-tomochain/params" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/core" + "github.com/tomochain/tomochain/log" + "github.com/tomochain/tomochain/params" "context" "math/big" - "github.com/tomochain/go-tomochain/accounts/abi/bind" - "github.com/tomochain/go-tomochain/accounts/abi/bind/backends" - blockSignerContract "github.com/tomochain/go-tomochain/contracts/blocksigner" - multiSignWalletContract "github.com/tomochain/go-tomochain/contracts/multisigwallet" - randomizeContract "github.com/tomochain/go-tomochain/contracts/randomize" - validatorContract "github.com/tomochain/go-tomochain/contracts/validator" - "github.com/tomochain/go-tomochain/crypto" - "github.com/tomochain/go-tomochain/rlp" + "github.com/tomochain/tomochain/accounts/abi/bind" + "github.com/tomochain/tomochain/accounts/abi/bind/backends" + blockSignerContract "github.com/tomochain/tomochain/contracts/blocksigner" + multiSignWalletContract "github.com/tomochain/tomochain/contracts/multisigwallet" + randomizeContract "github.com/tomochain/tomochain/contracts/randomize" + validatorContract "github.com/tomochain/tomochain/contracts/validator" + "github.com/tomochain/tomochain/crypto" + "github.com/tomochain/tomochain/rlp" ) // 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 bc7aed868c..066b542a80 100644 --- a/cmd/puppeth/wizard_intro.go +++ b/cmd/puppeth/wizard_intro.go @@ -26,7 +26,7 @@ import ( "strings" "sync" - "github.com/tomochain/go-tomochain/log" + "github.com/tomochain/tomochain/log" ) // makeWizard creates and returns a new puppeth wizard. diff --git a/cmd/puppeth/wizard_netstats.go b/cmd/puppeth/wizard_netstats.go index 19cdb9fa65..89b421adb3 100644 --- a/cmd/puppeth/wizard_netstats.go +++ b/cmd/puppeth/wizard_netstats.go @@ -23,8 +23,8 @@ import ( "strings" "sync" - "github.com/tomochain/go-tomochain/core" - "github.com/tomochain/go-tomochain/log" + "github.com/tomochain/tomochain/core" + "github.com/tomochain/tomochain/log" "github.com/olekukonko/tablewriter" ) diff --git a/cmd/puppeth/wizard_network.go b/cmd/puppeth/wizard_network.go index 25e6005baf..e9a80dfc1a 100644 --- a/cmd/puppeth/wizard_network.go +++ b/cmd/puppeth/wizard_network.go @@ -20,7 +20,7 @@ import ( "fmt" "strings" - "github.com/tomochain/go-tomochain/log" + "github.com/tomochain/tomochain/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 b09c40dd40..6328de8e55 100644 --- a/cmd/puppeth/wizard_nginx.go +++ b/cmd/puppeth/wizard_nginx.go @@ -19,7 +19,7 @@ package main import ( "fmt" - "github.com/tomochain/go-tomochain/log" + "github.com/tomochain/tomochain/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 d23343ba34..feaa489c42 100644 --- a/cmd/puppeth/wizard_node.go +++ b/cmd/puppeth/wizard_node.go @@ -21,9 +21,9 @@ import ( "fmt" "time" - "github.com/tomochain/go-tomochain/accounts/keystore" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/log" + "github.com/tomochain/tomochain/accounts/keystore" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/log" ) // deployNode creates a new node configuration based on some user input. diff --git a/cmd/puppeth/wizard_wallet.go b/cmd/puppeth/wizard_wallet.go index 5f89bc9d57..a52ee449af 100644 --- a/cmd/puppeth/wizard_wallet.go +++ b/cmd/puppeth/wizard_wallet.go @@ -21,7 +21,7 @@ import ( "fmt" "time" - "github.com/tomochain/go-tomochain/log" + "github.com/tomochain/tomochain/log" ) // deployWallet creates a new web wallet based on some user input. diff --git a/cmd/rlpdump/main.go b/cmd/rlpdump/main.go index 382bb9fe9f..046511dc77 100644 --- a/cmd/rlpdump/main.go +++ b/cmd/rlpdump/main.go @@ -26,7 +26,7 @@ import ( "os" "strings" - "github.com/tomochain/go-tomochain/rlp" + "github.com/tomochain/tomochain/rlp" ) var ( diff --git a/cmd/swarm/config.go b/cmd/swarm/config.go index d43c23853d..4626014b02 100644 --- a/cmd/swarm/config.go +++ b/cmd/swarm/config.go @@ -28,13 +28,13 @@ import ( cli "gopkg.in/urfave/cli.v1" - "github.com/tomochain/go-tomochain/cmd/utils" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/log" - "github.com/tomochain/go-tomochain/node" + "github.com/tomochain/tomochain/cmd/utils" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/log" + "github.com/tomochain/tomochain/node" "github.com/naoina/toml" - bzzapi "github.com/tomochain/go-tomochain/swarm/api" + bzzapi "github.com/tomochain/tomochain/swarm/api" ) var ( @@ -84,7 +84,7 @@ var tomlSettings = toml.Config{ MissingField: func(rt reflect.Type, field string) error { link := "" if unicode.IsUpper(rune(rt.Name()[0])) && rt.PkgPath() != "main" { - link = fmt.Sprintf(", check github.com/tomochain/go-tomochain/swarm/api/config.go for available fields") + link = fmt.Sprintf(", check github.com/tomochain/tomochain/swarm/api/config.go for available fields") } return fmt.Errorf("field '%s' is not defined in %s%s", field, rt.String(), link) }, diff --git a/cmd/swarm/config_test.go b/cmd/swarm/config_test.go index ef649c4f79..05b5eeb90c 100644 --- a/cmd/swarm/config_test.go +++ b/cmd/swarm/config_test.go @@ -25,9 +25,9 @@ import ( "testing" "time" - "github.com/tomochain/go-tomochain/rpc" - "github.com/tomochain/go-tomochain/swarm" - "github.com/tomochain/go-tomochain/swarm/api" + "github.com/tomochain/tomochain/rpc" + "github.com/tomochain/tomochain/swarm" + "github.com/tomochain/tomochain/swarm/api" "github.com/docker/docker/pkg/reexec" ) diff --git a/cmd/swarm/db.go b/cmd/swarm/db.go index d79a0a4b59..2638c2a226 100644 --- a/cmd/swarm/db.go +++ b/cmd/swarm/db.go @@ -22,9 +22,9 @@ import ( "os" "path/filepath" - "github.com/tomochain/go-tomochain/cmd/utils" - "github.com/tomochain/go-tomochain/log" - "github.com/tomochain/go-tomochain/swarm/storage" + "github.com/tomochain/tomochain/cmd/utils" + "github.com/tomochain/tomochain/log" + "github.com/tomochain/tomochain/swarm/storage" "gopkg.in/urfave/cli.v1" ) diff --git a/cmd/swarm/hash.go b/cmd/swarm/hash.go index ee1aa53d5e..365b1b34c9 100644 --- a/cmd/swarm/hash.go +++ b/cmd/swarm/hash.go @@ -21,8 +21,8 @@ import ( "fmt" "os" - "github.com/tomochain/go-tomochain/cmd/utils" - "github.com/tomochain/go-tomochain/swarm/storage" + "github.com/tomochain/tomochain/cmd/utils" + "github.com/tomochain/tomochain/swarm/storage" "gopkg.in/urfave/cli.v1" ) diff --git a/cmd/swarm/list.go b/cmd/swarm/list.go index 798d8c56ed..748bcd0f31 100644 --- a/cmd/swarm/list.go +++ b/cmd/swarm/list.go @@ -22,8 +22,8 @@ import ( "strings" "text/tabwriter" - "github.com/tomochain/go-tomochain/cmd/utils" - swarm "github.com/tomochain/go-tomochain/swarm/api/client" + "github.com/tomochain/tomochain/cmd/utils" + swarm "github.com/tomochain/tomochain/swarm/api/client" "gopkg.in/urfave/cli.v1" ) diff --git a/cmd/swarm/main.go b/cmd/swarm/main.go index 0fee349e83..ecd6aae792 100644 --- a/cmd/swarm/main.go +++ b/cmd/swarm/main.go @@ -28,22 +28,22 @@ import ( "strings" "syscall" - "github.com/tomochain/go-tomochain/accounts" - "github.com/tomochain/go-tomochain/accounts/keystore" - "github.com/tomochain/go-tomochain/cmd/utils" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/console" - "github.com/tomochain/go-tomochain/crypto" - "github.com/tomochain/go-tomochain/ethclient" - "github.com/tomochain/go-tomochain/internal/debug" - "github.com/tomochain/go-tomochain/log" - "github.com/tomochain/go-tomochain/node" - "github.com/tomochain/go-tomochain/p2p" - "github.com/tomochain/go-tomochain/p2p/discover" - "github.com/tomochain/go-tomochain/params" - "github.com/tomochain/go-tomochain/swarm" - bzzapi "github.com/tomochain/go-tomochain/swarm/api" - swarmmetrics "github.com/tomochain/go-tomochain/swarm/metrics" + "github.com/tomochain/tomochain/accounts" + "github.com/tomochain/tomochain/accounts/keystore" + "github.com/tomochain/tomochain/cmd/utils" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/console" + "github.com/tomochain/tomochain/crypto" + "github.com/tomochain/tomochain/ethclient" + "github.com/tomochain/tomochain/internal/debug" + "github.com/tomochain/tomochain/log" + "github.com/tomochain/tomochain/node" + "github.com/tomochain/tomochain/p2p" + "github.com/tomochain/tomochain/p2p/discover" + "github.com/tomochain/tomochain/params" + "github.com/tomochain/tomochain/swarm" + bzzapi "github.com/tomochain/tomochain/swarm/api" + swarmmetrics "github.com/tomochain/tomochain/swarm/metrics" "gopkg.in/urfave/cli.v1" ) diff --git a/cmd/swarm/manifest.go b/cmd/swarm/manifest.go index 2387c4e18f..c01e00e83f 100644 --- a/cmd/swarm/manifest.go +++ b/cmd/swarm/manifest.go @@ -24,9 +24,9 @@ import ( "path/filepath" "strings" - "github.com/tomochain/go-tomochain/cmd/utils" - "github.com/tomochain/go-tomochain/swarm/api" - swarm "github.com/tomochain/go-tomochain/swarm/api/client" + "github.com/tomochain/tomochain/cmd/utils" + "github.com/tomochain/tomochain/swarm/api" + swarm "github.com/tomochain/tomochain/swarm/api/client" "gopkg.in/urfave/cli.v1" ) diff --git a/cmd/swarm/run_test.go b/cmd/swarm/run_test.go index bfb4dcad6c..6c6d3d66ed 100644 --- a/cmd/swarm/run_test.go +++ b/cmd/swarm/run_test.go @@ -27,13 +27,13 @@ import ( "time" "github.com/docker/docker/pkg/reexec" - "github.com/tomochain/go-tomochain/accounts" - "github.com/tomochain/go-tomochain/accounts/keystore" - "github.com/tomochain/go-tomochain/internal/cmdtest" - "github.com/tomochain/go-tomochain/node" - "github.com/tomochain/go-tomochain/p2p" - "github.com/tomochain/go-tomochain/rpc" - "github.com/tomochain/go-tomochain/swarm" + "github.com/tomochain/tomochain/accounts" + "github.com/tomochain/tomochain/accounts/keystore" + "github.com/tomochain/tomochain/internal/cmdtest" + "github.com/tomochain/tomochain/node" + "github.com/tomochain/tomochain/p2p" + "github.com/tomochain/tomochain/rpc" + "github.com/tomochain/tomochain/swarm" ) func init() { diff --git a/cmd/swarm/upload.go b/cmd/swarm/upload.go index 9ff40310b8..422f9a3b78 100644 --- a/cmd/swarm/upload.go +++ b/cmd/swarm/upload.go @@ -30,8 +30,8 @@ import ( "path/filepath" "strings" - "github.com/tomochain/go-tomochain/cmd/utils" - swarm "github.com/tomochain/go-tomochain/swarm/api/client" + "github.com/tomochain/tomochain/cmd/utils" + swarm "github.com/tomochain/tomochain/swarm/api/client" "gopkg.in/urfave/cli.v1" ) diff --git a/cmd/tomo/accountcmd.go b/cmd/tomo/accountcmd.go index 0ce684a3bb..1f7450c09e 100644 --- a/cmd/tomo/accountcmd.go +++ b/cmd/tomo/accountcmd.go @@ -20,12 +20,12 @@ import ( "fmt" "io/ioutil" - "github.com/tomochain/go-tomochain/accounts" - "github.com/tomochain/go-tomochain/accounts/keystore" - "github.com/tomochain/go-tomochain/cmd/utils" - "github.com/tomochain/go-tomochain/console" - "github.com/tomochain/go-tomochain/crypto" - "github.com/tomochain/go-tomochain/log" + "github.com/tomochain/tomochain/accounts" + "github.com/tomochain/tomochain/accounts/keystore" + "github.com/tomochain/tomochain/cmd/utils" + "github.com/tomochain/tomochain/console" + "github.com/tomochain/tomochain/crypto" + "github.com/tomochain/tomochain/log" "gopkg.in/urfave/cli.v1" ) diff --git a/cmd/tomo/bugcmd.go b/cmd/tomo/bugcmd.go index 812237e79c..3174f73881 100644 --- a/cmd/tomo/bugcmd.go +++ b/cmd/tomo/bugcmd.go @@ -26,10 +26,10 @@ import ( "runtime" "strings" - "github.com/tomochain/go-tomochain/cmd/internal/browser" - "github.com/tomochain/go-tomochain/params" + "github.com/tomochain/tomochain/cmd/internal/browser" + "github.com/tomochain/tomochain/params" - "github.com/tomochain/go-tomochain/cmd/utils" + "github.com/tomochain/tomochain/cmd/utils" cli "gopkg.in/urfave/cli.v1" ) @@ -41,7 +41,7 @@ var bugCommand = cli.Command{ Category: "MISCELLANEOUS COMMANDS", } -const issueUrl = "https://github.com/tomochain/go-tomochain/issues/new" +const issueUrl = "https://github.com/tomochain/tomochain/issues/new" // reportBug reports a bug by opening a new URL to the go-ethereum GH issue // tracker and setting default values as the issue body. diff --git a/cmd/tomo/chaincmd.go b/cmd/tomo/chaincmd.go index a9f9e0f319..9311ada722 100644 --- a/cmd/tomo/chaincmd.go +++ b/cmd/tomo/chaincmd.go @@ -25,17 +25,17 @@ import ( "sync/atomic" "time" - "github.com/tomochain/go-tomochain/cmd/utils" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/console" - "github.com/tomochain/go-tomochain/core" - "github.com/tomochain/go-tomochain/core/state" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/eth/downloader" - "github.com/tomochain/go-tomochain/ethdb" - "github.com/tomochain/go-tomochain/event" - "github.com/tomochain/go-tomochain/log" - "github.com/tomochain/go-tomochain/trie" + "github.com/tomochain/tomochain/cmd/utils" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/console" + "github.com/tomochain/tomochain/core" + "github.com/tomochain/tomochain/core/state" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/eth/downloader" + "github.com/tomochain/tomochain/ethdb" + "github.com/tomochain/tomochain/event" + "github.com/tomochain/tomochain/log" + "github.com/tomochain/tomochain/trie" "github.com/syndtr/goleveldb/leveldb/util" "gopkg.in/urfave/cli.v1" ) diff --git a/cmd/tomo/config.go b/cmd/tomo/config.go index 06ecfac54c..881fb1c001 100644 --- a/cmd/tomo/config.go +++ b/cmd/tomo/config.go @@ -28,16 +28,16 @@ import ( "strings" "unicode" - "github.com/tomochain/go-tomochain/cmd/utils" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/dashboard" - "github.com/tomochain/go-tomochain/eth" - "github.com/tomochain/go-tomochain/internal/debug" - "github.com/tomochain/go-tomochain/log" - "github.com/tomochain/go-tomochain/node" - "github.com/tomochain/go-tomochain/params" - "github.com/tomochain/go-tomochain/tomox" - whisper "github.com/tomochain/go-tomochain/whisper/whisperv6" + "github.com/tomochain/tomochain/cmd/utils" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/dashboard" + "github.com/tomochain/tomochain/eth" + "github.com/tomochain/tomochain/internal/debug" + "github.com/tomochain/tomochain/log" + "github.com/tomochain/tomochain/node" + "github.com/tomochain/tomochain/params" + "github.com/tomochain/tomochain/tomox" + whisper "github.com/tomochain/tomochain/whisper/whisperv6" "github.com/naoina/toml" ) diff --git a/cmd/tomo/consolecmd.go b/cmd/tomo/consolecmd.go index 515b2207f5..10a36b54d7 100644 --- a/cmd/tomo/consolecmd.go +++ b/cmd/tomo/consolecmd.go @@ -24,10 +24,10 @@ import ( "strings" "syscall" - "github.com/tomochain/go-tomochain/cmd/utils" - "github.com/tomochain/go-tomochain/console" - "github.com/tomochain/go-tomochain/node" - "github.com/tomochain/go-tomochain/rpc" + "github.com/tomochain/tomochain/cmd/utils" + "github.com/tomochain/tomochain/console" + "github.com/tomochain/tomochain/node" + "github.com/tomochain/tomochain/rpc" "gopkg.in/urfave/cli.v1" ) @@ -43,7 +43,7 @@ var ( Description: ` The Tomo console is an interactive shell for the JavaScript runtime environment which exposes a node admin interface as well as the Ðapp JavaScript API. -See https://github.com/tomochain/go-tomochain/wiki/JavaScript-Console.`, +See https://github.com/tomochain/tomochain/wiki/JavaScript-Console.`, } attachCommand = cli.Command{ @@ -56,7 +56,7 @@ See https://github.com/tomochain/go-tomochain/wiki/JavaScript-Console.`, Description: ` The Tomo console is an interactive shell for the JavaScript runtime environment which exposes a node admin interface as well as the Ðapp JavaScript API. -See https://github.com/tomochain/go-tomochain/wiki/JavaScript-Console. +See https://github.com/tomochain/tomochain/wiki/JavaScript-Console. This command allows to open a console on a running tomo node.`, } @@ -69,7 +69,7 @@ This command allows to open a console on a running tomo node.`, Category: "CONSOLE COMMANDS", Description: ` The JavaScript VM exposes a node admin interface as well as the Ðapp -JavaScript API. See https://github.com/tomochain/go-tomochain/wiki/JavaScript-Console`, +JavaScript API. See https://github.com/tomochain/tomochain/wiki/JavaScript-Console`, } ) diff --git a/cmd/tomo/consolecmd_test.go b/cmd/tomo/consolecmd_test.go index 8a79ac4dbb..bd46cad861 100644 --- a/cmd/tomo/consolecmd_test.go +++ b/cmd/tomo/consolecmd_test.go @@ -27,7 +27,7 @@ import ( "testing" "time" - "github.com/tomochain/go-tomochain/params" + "github.com/tomochain/tomochain/params" ) const ( diff --git a/cmd/tomo/dao_test.go b/cmd/tomo/dao_test.go index 8de2c23852..390aa72175 100644 --- a/cmd/tomo/dao_test.go +++ b/cmd/tomo/dao_test.go @@ -23,9 +23,9 @@ import ( "path/filepath" "testing" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/core" - "github.com/tomochain/go-tomochain/ethdb" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/core" + "github.com/tomochain/tomochain/ethdb" ) // Genesis block for nodes which don't care about the DAO fork (i.e. not configured) diff --git a/cmd/tomo/main.go b/cmd/tomo/main.go index bf417f0e74..cc1604cbd7 100644 --- a/cmd/tomo/main.go +++ b/cmd/tomo/main.go @@ -24,19 +24,19 @@ import ( "strings" "time" - "github.com/tomochain/go-tomochain/accounts" - "github.com/tomochain/go-tomochain/accounts/keystore" - "github.com/tomochain/go-tomochain/cmd/utils" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/consensus/posv" - "github.com/tomochain/go-tomochain/console" - "github.com/tomochain/go-tomochain/core" - "github.com/tomochain/go-tomochain/eth" - "github.com/tomochain/go-tomochain/ethclient" - "github.com/tomochain/go-tomochain/internal/debug" - "github.com/tomochain/go-tomochain/log" - "github.com/tomochain/go-tomochain/metrics" - "github.com/tomochain/go-tomochain/node" + "github.com/tomochain/tomochain/accounts" + "github.com/tomochain/tomochain/accounts/keystore" + "github.com/tomochain/tomochain/cmd/utils" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/consensus/posv" + "github.com/tomochain/tomochain/console" + "github.com/tomochain/tomochain/core" + "github.com/tomochain/tomochain/eth" + "github.com/tomochain/tomochain/ethclient" + "github.com/tomochain/tomochain/internal/debug" + "github.com/tomochain/tomochain/log" + "github.com/tomochain/tomochain/metrics" + "github.com/tomochain/tomochain/node" "gopkg.in/urfave/cli.v1" ) diff --git a/cmd/tomo/misccmd.go b/cmd/tomo/misccmd.go index 75d4d0f26a..ce9b3fe3ab 100644 --- a/cmd/tomo/misccmd.go +++ b/cmd/tomo/misccmd.go @@ -23,10 +23,10 @@ import ( "strconv" "strings" - "github.com/tomochain/go-tomochain/cmd/utils" - "github.com/tomochain/go-tomochain/consensus/ethash" - "github.com/tomochain/go-tomochain/eth" - "github.com/tomochain/go-tomochain/params" + "github.com/tomochain/tomochain/cmd/utils" + "github.com/tomochain/tomochain/consensus/ethash" + "github.com/tomochain/tomochain/eth" + "github.com/tomochain/tomochain/params" "gopkg.in/urfave/cli.v1" ) diff --git a/cmd/tomo/monitorcmd.go b/cmd/tomo/monitorcmd.go index a7b8858799..1c990f84bf 100644 --- a/cmd/tomo/monitorcmd.go +++ b/cmd/tomo/monitorcmd.go @@ -25,9 +25,9 @@ import ( "strings" "time" - "github.com/tomochain/go-tomochain/cmd/utils" - "github.com/tomochain/go-tomochain/node" - "github.com/tomochain/go-tomochain/rpc" + "github.com/tomochain/tomochain/cmd/utils" + "github.com/tomochain/tomochain/node" + "github.com/tomochain/tomochain/rpc" "github.com/gizak/termui" "gopkg.in/urfave/cli.v1" ) diff --git a/cmd/tomo/run_test.go b/cmd/tomo/run_test.go index ce382dbbe4..da9d1d0c0c 100644 --- a/cmd/tomo/run_test.go +++ b/cmd/tomo/run_test.go @@ -23,7 +23,7 @@ import ( "testing" "github.com/docker/docker/pkg/reexec" - "github.com/tomochain/go-tomochain/internal/cmdtest" + "github.com/tomochain/tomochain/internal/cmdtest" ) func tmpdir(t *testing.T) string { diff --git a/cmd/tomo/usage.go b/cmd/tomo/usage.go index f1535569ff..7c20094d0f 100644 --- a/cmd/tomo/usage.go +++ b/cmd/tomo/usage.go @@ -24,8 +24,8 @@ import ( "strings" - "github.com/tomochain/go-tomochain/cmd/utils" - "github.com/tomochain/go-tomochain/internal/debug" + "github.com/tomochain/tomochain/cmd/utils" + "github.com/tomochain/tomochain/internal/debug" "gopkg.in/urfave/cli.v1" ) diff --git a/cmd/utils/cmd.go b/cmd/utils/cmd.go index 4609c414ea..d78b62f94f 100644 --- a/cmd/utils/cmd.go +++ b/cmd/utils/cmd.go @@ -27,15 +27,15 @@ import ( "strings" "syscall" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/core" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/crypto" - "github.com/tomochain/go-tomochain/ethdb" - "github.com/tomochain/go-tomochain/internal/debug" - "github.com/tomochain/go-tomochain/log" - "github.com/tomochain/go-tomochain/node" - "github.com/tomochain/go-tomochain/rlp" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/core" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/crypto" + "github.com/tomochain/tomochain/ethdb" + "github.com/tomochain/tomochain/internal/debug" + "github.com/tomochain/tomochain/log" + "github.com/tomochain/tomochain/node" + "github.com/tomochain/tomochain/rlp" ) const ( diff --git a/cmd/utils/customflags.go b/cmd/utils/customflags.go index 29ca429a27..9b2339d080 100644 --- a/cmd/utils/customflags.go +++ b/cmd/utils/customflags.go @@ -27,7 +27,7 @@ import ( "path" "strings" - "github.com/tomochain/go-tomochain/common/math" + "github.com/tomochain/tomochain/common/math" "gopkg.in/urfave/cli.v1" ) diff --git a/cmd/utils/flags.go b/cmd/utils/flags.go index 04a3c1b3be..673106d811 100644 --- a/cmd/utils/flags.go +++ b/cmd/utils/flags.go @@ -28,33 +28,33 @@ import ( "strconv" "strings" - "github.com/tomochain/go-tomochain/accounts" - "github.com/tomochain/go-tomochain/accounts/keystore" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/common/fdlimit" - "github.com/tomochain/go-tomochain/consensus" - "github.com/tomochain/go-tomochain/consensus/ethash" - "github.com/tomochain/go-tomochain/consensus/posv" - "github.com/tomochain/go-tomochain/core" - "github.com/tomochain/go-tomochain/core/state" - "github.com/tomochain/go-tomochain/core/vm" - "github.com/tomochain/go-tomochain/crypto" - "github.com/tomochain/go-tomochain/dashboard" - "github.com/tomochain/go-tomochain/eth" - "github.com/tomochain/go-tomochain/eth/downloader" - "github.com/tomochain/go-tomochain/eth/gasprice" - "github.com/tomochain/go-tomochain/ethdb" - "github.com/tomochain/go-tomochain/log" - "github.com/tomochain/go-tomochain/metrics" - "github.com/tomochain/go-tomochain/node" - "github.com/tomochain/go-tomochain/p2p" - "github.com/tomochain/go-tomochain/p2p/discover" - "github.com/tomochain/go-tomochain/p2p/discv5" - "github.com/tomochain/go-tomochain/p2p/nat" - "github.com/tomochain/go-tomochain/p2p/netutil" - "github.com/tomochain/go-tomochain/params" - "github.com/tomochain/go-tomochain/tomox" - whisper "github.com/tomochain/go-tomochain/whisper/whisperv6" + "github.com/tomochain/tomochain/accounts" + "github.com/tomochain/tomochain/accounts/keystore" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/common/fdlimit" + "github.com/tomochain/tomochain/consensus" + "github.com/tomochain/tomochain/consensus/ethash" + "github.com/tomochain/tomochain/consensus/posv" + "github.com/tomochain/tomochain/core" + "github.com/tomochain/tomochain/core/state" + "github.com/tomochain/tomochain/core/vm" + "github.com/tomochain/tomochain/crypto" + "github.com/tomochain/tomochain/dashboard" + "github.com/tomochain/tomochain/eth" + "github.com/tomochain/tomochain/eth/downloader" + "github.com/tomochain/tomochain/eth/gasprice" + "github.com/tomochain/tomochain/ethdb" + "github.com/tomochain/tomochain/log" + "github.com/tomochain/tomochain/metrics" + "github.com/tomochain/tomochain/node" + "github.com/tomochain/tomochain/p2p" + "github.com/tomochain/tomochain/p2p/discover" + "github.com/tomochain/tomochain/p2p/discv5" + "github.com/tomochain/tomochain/p2p/nat" + "github.com/tomochain/tomochain/p2p/netutil" + "github.com/tomochain/tomochain/params" + "github.com/tomochain/tomochain/tomox" + whisper "github.com/tomochain/tomochain/whisper/whisperv6" "gopkg.in/urfave/cli.v1" ) diff --git a/cmd/utils/utils.go b/cmd/utils/utils.go index db81e32dcb..95197b0e09 100644 --- a/cmd/utils/utils.go +++ b/cmd/utils/utils.go @@ -1,14 +1,14 @@ package utils import ( - "github.com/tomochain/go-tomochain/dashboard" - "github.com/tomochain/go-tomochain/eth" - "github.com/tomochain/go-tomochain/eth/downloader" - "github.com/tomochain/go-tomochain/ethstats" - "github.com/tomochain/go-tomochain/les" - "github.com/tomochain/go-tomochain/node" - "github.com/tomochain/go-tomochain/tomox" - whisper "github.com/tomochain/go-tomochain/whisper/whisperv6" + "github.com/tomochain/tomochain/dashboard" + "github.com/tomochain/tomochain/eth" + "github.com/tomochain/tomochain/eth/downloader" + "github.com/tomochain/tomochain/ethstats" + "github.com/tomochain/tomochain/les" + "github.com/tomochain/tomochain/node" + "github.com/tomochain/tomochain/tomox" + whisper "github.com/tomochain/tomochain/whisper/whisperv6" ) // RegisterEthService adds an Ethereum client to the stack. diff --git a/cmd/wnode/main.go b/cmd/wnode/main.go index e7c47c4e5b..78c558bc12 100644 --- a/cmd/wnode/main.go +++ b/cmd/wnode/main.go @@ -35,16 +35,16 @@ import ( "strings" "time" - "github.com/tomochain/go-tomochain/cmd/utils" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/console" - "github.com/tomochain/go-tomochain/crypto" - "github.com/tomochain/go-tomochain/log" - "github.com/tomochain/go-tomochain/p2p" - "github.com/tomochain/go-tomochain/p2p/discover" - "github.com/tomochain/go-tomochain/p2p/nat" - "github.com/tomochain/go-tomochain/whisper/mailserver" - whisper "github.com/tomochain/go-tomochain/whisper/whisperv6" + "github.com/tomochain/tomochain/cmd/utils" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/console" + "github.com/tomochain/tomochain/crypto" + "github.com/tomochain/tomochain/log" + "github.com/tomochain/tomochain/p2p" + "github.com/tomochain/tomochain/p2p/discover" + "github.com/tomochain/tomochain/p2p/nat" + "github.com/tomochain/tomochain/whisper/mailserver" + whisper "github.com/tomochain/tomochain/whisper/whisperv6" "golang.org/x/crypto/pbkdf2" ) diff --git a/common/bitutil/compress_test.go b/common/bitutil/compress_test.go index ab383bf788..d92cfa6c96 100644 --- a/common/bitutil/compress_test.go +++ b/common/bitutil/compress_test.go @@ -21,7 +21,7 @@ import ( "math/rand" "testing" - "github.com/tomochain/go-tomochain/common/hexutil" + "github.com/tomochain/tomochain/common/hexutil" ) // Tests that data bitset encoding and decoding works and is bijective. diff --git a/common/debug.go b/common/debug.go index 55de2e8418..4128c7b95b 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/tomochain/go-tomochain/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/tomochain/tomochain/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 614755547e..89e573d072 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/tomochain/go-tomochain/common/hexutil" + "github.com/tomochain/tomochain/common/hexutil" ) type MyType [5]byte diff --git a/common/math/big_test.go b/common/math/big_test.go index fe3a794d19..13b419182c 100644 --- a/common/math/big_test.go +++ b/common/math/big_test.go @@ -22,7 +22,7 @@ import ( "math/big" "testing" - "github.com/tomochain/go-tomochain/common" + "github.com/tomochain/tomochain/common" ) func TestHexOrDecimal256(t *testing.T) { diff --git a/common/number/int.go b/common/number/int.go index 7bbe6e5e9a..c8ef5ce846 100644 --- a/common/number/int.go +++ b/common/number/int.go @@ -19,7 +19,7 @@ package number import ( "math/big" - "github.com/tomochain/go-tomochain/common" + "github.com/tomochain/tomochain/common" ) var tt256 = new(big.Int).Lsh(big.NewInt(1), 256) diff --git a/common/number/uint_test.go b/common/number/uint_test.go index c6f4df2977..57dbed0b4c 100644 --- a/common/number/uint_test.go +++ b/common/number/uint_test.go @@ -20,7 +20,7 @@ import ( "math/big" "testing" - "github.com/tomochain/go-tomochain/common" + "github.com/tomochain/tomochain/common" ) func TestSet(t *testing.T) { diff --git a/common/types.go b/common/types.go index e637027a60..d1cf32c81a 100644 --- a/common/types.go +++ b/common/types.go @@ -23,8 +23,8 @@ import ( "math/rand" "reflect" - "github.com/tomochain/go-tomochain/common/hexutil" - "github.com/tomochain/go-tomochain/crypto/sha3" + "github.com/tomochain/tomochain/common/hexutil" + "github.com/tomochain/tomochain/crypto/sha3" ) const ( diff --git a/compression/rle/read_write.go b/compression/rle/read_write.go index c42998e5b5..a84edc8628 100644 --- a/compression/rle/read_write.go +++ b/compression/rle/read_write.go @@ -21,7 +21,7 @@ import ( "bytes" "errors" - "github.com/tomochain/go-tomochain/crypto" + "github.com/tomochain/tomochain/crypto" ) const ( diff --git a/consensus/clique/api.go b/consensus/clique/api.go index 935beab015..9e1e6e0597 100644 --- a/consensus/clique/api.go +++ b/consensus/clique/api.go @@ -17,10 +17,10 @@ package clique import ( - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/consensus" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/rpc" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/consensus" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/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 6ce98d7a61..a90516d53a 100644 --- a/consensus/clique/clique.go +++ b/consensus/clique/clique.go @@ -25,20 +25,20 @@ import ( "sync" "time" - "github.com/tomochain/go-tomochain/accounts" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/common/hexutil" - "github.com/tomochain/go-tomochain/consensus" - "github.com/tomochain/go-tomochain/consensus/misc" - "github.com/tomochain/go-tomochain/core/state" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/crypto" - "github.com/tomochain/go-tomochain/crypto/sha3" - "github.com/tomochain/go-tomochain/ethdb" - "github.com/tomochain/go-tomochain/log" - "github.com/tomochain/go-tomochain/params" - "github.com/tomochain/go-tomochain/rlp" - "github.com/tomochain/go-tomochain/rpc" + "github.com/tomochain/tomochain/accounts" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/common/hexutil" + "github.com/tomochain/tomochain/consensus" + "github.com/tomochain/tomochain/consensus/misc" + "github.com/tomochain/tomochain/core/state" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/crypto" + "github.com/tomochain/tomochain/crypto/sha3" + "github.com/tomochain/tomochain/ethdb" + "github.com/tomochain/tomochain/log" + "github.com/tomochain/tomochain/params" + "github.com/tomochain/tomochain/rlp" + "github.com/tomochain/tomochain/rpc" lru "github.com/hashicorp/golang-lru" ) diff --git a/consensus/clique/snapshot.go b/consensus/clique/snapshot.go index e0b0ff723b..fb167bb064 100644 --- a/consensus/clique/snapshot.go +++ b/consensus/clique/snapshot.go @@ -20,10 +20,10 @@ import ( "bytes" "encoding/json" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/ethdb" - "github.com/tomochain/go-tomochain/params" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/ethdb" + "github.com/tomochain/tomochain/params" lru "github.com/hashicorp/golang-lru" ) diff --git a/consensus/consensus.go b/consensus/consensus.go index 25db35d47a..9d185f4d58 100644 --- a/consensus/consensus.go +++ b/consensus/consensus.go @@ -18,11 +18,11 @@ package consensus import ( - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/core/state" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/params" - "github.com/tomochain/go-tomochain/rpc" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/core/state" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/params" + "github.com/tomochain/tomochain/rpc" "math/big" ) diff --git a/consensus/ethash/algorithm.go b/consensus/ethash/algorithm.go index 1cee1f6745..e4b570aafa 100644 --- a/consensus/ethash/algorithm.go +++ b/consensus/ethash/algorithm.go @@ -27,11 +27,11 @@ import ( "time" "unsafe" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/common/bitutil" - "github.com/tomochain/go-tomochain/crypto" - "github.com/tomochain/go-tomochain/crypto/sha3" - "github.com/tomochain/go-tomochain/log" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/common/bitutil" + "github.com/tomochain/tomochain/crypto" + "github.com/tomochain/tomochain/crypto/sha3" + "github.com/tomochain/tomochain/log" ) const ( diff --git a/consensus/ethash/algorithm_test.go b/consensus/ethash/algorithm_test.go index d10267d257..69f5d044c8 100644 --- a/consensus/ethash/algorithm_test.go +++ b/consensus/ethash/algorithm_test.go @@ -25,9 +25,9 @@ import ( "sync" "testing" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/common/hexutil" - "github.com/tomochain/go-tomochain/core/types" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/common/hexutil" + "github.com/tomochain/tomochain/core/types" ) // Tests whether the dataset size calculator works correctly by cross checking the diff --git a/consensus/ethash/consensus.go b/consensus/ethash/consensus.go index 743869e193..59caa284d7 100644 --- a/consensus/ethash/consensus.go +++ b/consensus/ethash/consensus.go @@ -24,13 +24,13 @@ import ( "runtime" "time" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/common/math" - "github.com/tomochain/go-tomochain/consensus" - "github.com/tomochain/go-tomochain/consensus/misc" - "github.com/tomochain/go-tomochain/core/state" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/params" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/common/math" + "github.com/tomochain/tomochain/consensus" + "github.com/tomochain/tomochain/consensus/misc" + "github.com/tomochain/tomochain/core/state" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/params" mapset "github.com/deckarep/golang-set" ) diff --git a/consensus/ethash/consensus_test.go b/consensus/ethash/consensus_test.go index b92008dbd3..0bc1c09e15 100644 --- a/consensus/ethash/consensus_test.go +++ b/consensus/ethash/consensus_test.go @@ -23,9 +23,9 @@ import ( "path/filepath" "testing" - "github.com/tomochain/go-tomochain/common/math" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/params" + "github.com/tomochain/tomochain/common/math" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/params" ) type diffTest struct { diff --git a/consensus/ethash/ethash.go b/consensus/ethash/ethash.go index a385921f64..2cc7383b45 100644 --- a/consensus/ethash/ethash.go +++ b/consensus/ethash/ethash.go @@ -33,10 +33,10 @@ import ( "unsafe" mmap "github.com/edsrzf/mmap-go" - "github.com/tomochain/go-tomochain/consensus" - "github.com/tomochain/go-tomochain/log" - "github.com/tomochain/go-tomochain/metrics" - "github.com/tomochain/go-tomochain/rpc" + "github.com/tomochain/tomochain/consensus" + "github.com/tomochain/tomochain/log" + "github.com/tomochain/tomochain/metrics" + "github.com/tomochain/tomochain/rpc" "github.com/hashicorp/golang-lru/simplelru" ) diff --git a/consensus/ethash/ethash_test.go b/consensus/ethash/ethash_test.go index 22ddfa2091..42a1f445f5 100644 --- a/consensus/ethash/ethash_test.go +++ b/consensus/ethash/ethash_test.go @@ -24,7 +24,7 @@ import ( "sync" "testing" - "github.com/tomochain/go-tomochain/core/types" + "github.com/tomochain/tomochain/core/types" ) // Tests that ethash works correctly in test mode. diff --git a/consensus/ethash/sealer.go b/consensus/ethash/sealer.go index 770c4dc665..7af7976852 100644 --- a/consensus/ethash/sealer.go +++ b/consensus/ethash/sealer.go @@ -24,10 +24,10 @@ import ( "runtime" "sync" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/consensus" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/log" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/consensus" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/log" ) // Seal implements consensus.Engine, attempting to find a nonce that satisfies diff --git a/consensus/misc/dao.go b/consensus/misc/dao.go index 8c1d475c7d..6ee20b34bb 100644 --- a/consensus/misc/dao.go +++ b/consensus/misc/dao.go @@ -21,9 +21,9 @@ import ( "errors" "math/big" - "github.com/tomochain/go-tomochain/core/state" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/params" + "github.com/tomochain/tomochain/core/state" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/params" ) var ( diff --git a/consensus/misc/forks.go b/consensus/misc/forks.go index 768116eba9..b802777a8f 100644 --- a/consensus/misc/forks.go +++ b/consensus/misc/forks.go @@ -19,9 +19,9 @@ package misc import ( "fmt" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/params" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/params" ) // VerifyForkHashes verifies that blocks conforming to network hard-forks do have diff --git a/consensus/posv/api.go b/consensus/posv/api.go index d02a000211..7aa9f3e970 100644 --- a/consensus/posv/api.go +++ b/consensus/posv/api.go @@ -16,10 +16,10 @@ package posv import ( - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/consensus" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/rpc" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/consensus" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/rpc" ) // API is a user facing RPC API to allow controlling the signer and voting diff --git a/consensus/posv/posv.go b/consensus/posv/posv.go index 81ae8c4d52..13d4a181aa 100644 --- a/consensus/posv/posv.go +++ b/consensus/posv/posv.go @@ -21,7 +21,7 @@ import ( "encoding/json" "errors" "fmt" - "github.com/ethereum/go-tomochain/tomox/tomox_state" + "github.com/ethereum/tomochain/tomox/tomox_state" "gopkg.in/karalabe/cookiejar.v2/collections/prque" "io/ioutil" "math/big" @@ -33,21 +33,21 @@ import ( "sync" "time" - "github.com/tomochain/go-tomochain/accounts" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/common/hexutil" - "github.com/tomochain/go-tomochain/consensus" - "github.com/tomochain/go-tomochain/consensus/clique" - "github.com/tomochain/go-tomochain/consensus/misc" - "github.com/tomochain/go-tomochain/core/state" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/crypto" - "github.com/tomochain/go-tomochain/crypto/sha3" - "github.com/tomochain/go-tomochain/ethdb" - "github.com/tomochain/go-tomochain/log" - "github.com/tomochain/go-tomochain/params" - "github.com/tomochain/go-tomochain/rlp" - "github.com/tomochain/go-tomochain/rpc" + "github.com/tomochain/tomochain/accounts" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/common/hexutil" + "github.com/tomochain/tomochain/consensus" + "github.com/tomochain/tomochain/consensus/clique" + "github.com/tomochain/tomochain/consensus/misc" + "github.com/tomochain/tomochain/core/state" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/crypto" + "github.com/tomochain/tomochain/crypto/sha3" + "github.com/tomochain/tomochain/ethdb" + "github.com/tomochain/tomochain/log" + "github.com/tomochain/tomochain/params" + "github.com/tomochain/tomochain/rlp" + "github.com/tomochain/tomochain/rpc" lru "github.com/hashicorp/golang-lru" ) diff --git a/consensus/posv/posv_test.go b/consensus/posv/posv_test.go index 023fe4705a..ae192bc5b0 100644 --- a/consensus/posv/posv_test.go +++ b/consensus/posv/posv_test.go @@ -5,9 +5,9 @@ import ( "math/big" "testing" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/params" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/params" ) func TestGetM1M2FromCheckpointHeader(t *testing.T) { diff --git a/consensus/posv/snapshot.go b/consensus/posv/snapshot.go index bcde6d1ef8..f78e06891d 100644 --- a/consensus/posv/snapshot.go +++ b/consensus/posv/snapshot.go @@ -19,11 +19,11 @@ import ( "bytes" "encoding/json" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/consensus/clique" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/ethdb" - "github.com/tomochain/go-tomochain/params" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/consensus/clique" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/ethdb" + "github.com/tomochain/tomochain/params" lru "github.com/hashicorp/golang-lru" ) diff --git a/console/bridge.go b/console/bridge.go index c2d3a7f8e3..8f4a38f033 100644 --- a/console/bridge.go +++ b/console/bridge.go @@ -23,9 +23,9 @@ import ( "strings" "time" - "github.com/tomochain/go-tomochain/accounts/usbwallet" - "github.com/tomochain/go-tomochain/log" - "github.com/tomochain/go-tomochain/rpc" + "github.com/tomochain/tomochain/accounts/usbwallet" + "github.com/tomochain/tomochain/log" + "github.com/tomochain/tomochain/rpc" "github.com/robertkrimen/otto" ) diff --git a/console/console.go b/console/console.go index a11b4bbd59..e85d8354c0 100644 --- a/console/console.go +++ b/console/console.go @@ -28,9 +28,9 @@ import ( "strings" "syscall" - "github.com/tomochain/go-tomochain/internal/jsre" - "github.com/tomochain/go-tomochain/internal/web3ext" - "github.com/tomochain/go-tomochain/rpc" + "github.com/tomochain/tomochain/internal/jsre" + "github.com/tomochain/tomochain/internal/web3ext" + "github.com/tomochain/tomochain/rpc" "github.com/mattn/go-colorable" "github.com/peterh/liner" "github.com/robertkrimen/otto" diff --git a/console/console_test.go b/console/console_test.go index f78a24432c..23bc6a53fc 100644 --- a/console/console_test.go +++ b/console/console_test.go @@ -19,19 +19,19 @@ package console import ( "bytes" "errors" - "github.com/tomochain/go-tomochain/tomox" + "github.com/tomochain/tomochain/tomox" "io/ioutil" "os" "strings" "testing" "time" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/consensus/ethash" - "github.com/tomochain/go-tomochain/core" - "github.com/tomochain/go-tomochain/eth" - "github.com/tomochain/go-tomochain/internal/jsre" - "github.com/tomochain/go-tomochain/node" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/consensus/ethash" + "github.com/tomochain/tomochain/core" + "github.com/tomochain/tomochain/eth" + "github.com/tomochain/tomochain/internal/jsre" + "github.com/tomochain/tomochain/node" ) const ( diff --git a/contracts/blocksigner/blocksigner.go b/contracts/blocksigner/blocksigner.go index bb5769656d..3d98e444b7 100644 --- a/contracts/blocksigner/blocksigner.go +++ b/contracts/blocksigner/blocksigner.go @@ -16,9 +16,9 @@ package blocksigner import ( - "github.com/tomochain/go-tomochain/accounts/abi/bind" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/contracts/blocksigner/contract" + "github.com/tomochain/tomochain/accounts/abi/bind" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/contracts/blocksigner/contract" "math/big" ) diff --git a/contracts/blocksigner/blocksigner_test.go b/contracts/blocksigner/blocksigner_test.go index a721f23eef..051f42f9d7 100644 --- a/contracts/blocksigner/blocksigner_test.go +++ b/contracts/blocksigner/blocksigner_test.go @@ -21,11 +21,11 @@ import ( "testing" "time" - "github.com/tomochain/go-tomochain/accounts/abi/bind" - "github.com/tomochain/go-tomochain/accounts/abi/bind/backends" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/core" - "github.com/tomochain/go-tomochain/crypto" + "github.com/tomochain/tomochain/accounts/abi/bind" + "github.com/tomochain/tomochain/accounts/abi/bind/backends" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/core" + "github.com/tomochain/tomochain/crypto" "math/rand" ) diff --git a/contracts/blocksigner/contract/blocksigner.go b/contracts/blocksigner/contract/blocksigner.go index 81aeb5d67e..69ff644a0b 100644 --- a/contracts/blocksigner/contract/blocksigner.go +++ b/contracts/blocksigner/contract/blocksigner.go @@ -7,12 +7,12 @@ import ( "math/big" "strings" - ethereum "github.com/tomochain/go-tomochain" - "github.com/tomochain/go-tomochain/accounts/abi" - "github.com/tomochain/go-tomochain/accounts/abi/bind" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/event" + ethereum "github.com/tomochain/tomochain" + "github.com/tomochain/tomochain/accounts/abi" + "github.com/tomochain/tomochain/accounts/abi/bind" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/event" ) // BlockSignerABI is the input ABI used to generate the binding from. diff --git a/contracts/chequebook/api.go b/contracts/chequebook/api.go index e36edeb2d5..0f8ab43cee 100644 --- a/contracts/chequebook/api.go +++ b/contracts/chequebook/api.go @@ -20,7 +20,7 @@ import ( "errors" "math/big" - "github.com/tomochain/go-tomochain/common" + "github.com/tomochain/tomochain/common" ) const Version = "1.0" diff --git a/contracts/chequebook/cheque.go b/contracts/chequebook/cheque.go index 1e3c30f00a..bd5088d6e7 100644 --- a/contracts/chequebook/cheque.go +++ b/contracts/chequebook/cheque.go @@ -36,14 +36,14 @@ import ( "sync" "time" - "github.com/tomochain/go-tomochain/accounts/abi/bind" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/common/hexutil" - "github.com/tomochain/go-tomochain/contracts/chequebook/contract" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/crypto" - "github.com/tomochain/go-tomochain/log" - "github.com/tomochain/go-tomochain/swarm/services/swap/swap" + "github.com/tomochain/tomochain/accounts/abi/bind" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/common/hexutil" + "github.com/tomochain/tomochain/contracts/chequebook/contract" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/crypto" + "github.com/tomochain/tomochain/log" + "github.com/tomochain/tomochain/swarm/services/swap/swap" ) // TODO(zelig): watch peer solvency and notify of bouncing cheques diff --git a/contracts/chequebook/cheque_test.go b/contracts/chequebook/cheque_test.go index 66968d9be0..3461cda03c 100644 --- a/contracts/chequebook/cheque_test.go +++ b/contracts/chequebook/cheque_test.go @@ -24,12 +24,12 @@ import ( "testing" "time" - "github.com/tomochain/go-tomochain/accounts/abi/bind" - "github.com/tomochain/go-tomochain/accounts/abi/bind/backends" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/contracts/chequebook/contract" - "github.com/tomochain/go-tomochain/core" - "github.com/tomochain/go-tomochain/crypto" + "github.com/tomochain/tomochain/accounts/abi/bind" + "github.com/tomochain/tomochain/accounts/abi/bind/backends" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/contracts/chequebook/contract" + "github.com/tomochain/tomochain/core" + "github.com/tomochain/tomochain/crypto" ) var ( diff --git a/contracts/chequebook/contract/chequebook.go b/contracts/chequebook/contract/chequebook.go index 914a81bfa6..ba5e561d50 100644 --- a/contracts/chequebook/contract/chequebook.go +++ b/contracts/chequebook/contract/chequebook.go @@ -7,12 +7,12 @@ import ( "math/big" "strings" - ethereum "github.com/tomochain/go-tomochain" - "github.com/tomochain/go-tomochain/accounts/abi" - "github.com/tomochain/go-tomochain/accounts/abi/bind" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/event" + ethereum "github.com/tomochain/tomochain" + "github.com/tomochain/tomochain/accounts/abi" + "github.com/tomochain/tomochain/accounts/abi/bind" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/event" ) // ChequebookABI is the input ABI used to generate the binding from. diff --git a/contracts/chequebook/gencode.go b/contracts/chequebook/gencode.go index 548f394d54..8ea759dde4 100644 --- a/contracts/chequebook/gencode.go +++ b/contracts/chequebook/gencode.go @@ -25,11 +25,11 @@ import ( "io/ioutil" "math/big" - "github.com/tomochain/go-tomochain/accounts/abi/bind" - "github.com/tomochain/go-tomochain/accounts/abi/bind/backends" - "github.com/tomochain/go-tomochain/contracts/chequebook/contract" - "github.com/tomochain/go-tomochain/core" - "github.com/tomochain/go-tomochain/crypto" + "github.com/tomochain/tomochain/accounts/abi/bind" + "github.com/tomochain/tomochain/accounts/abi/bind/backends" + "github.com/tomochain/tomochain/contracts/chequebook/contract" + "github.com/tomochain/tomochain/core" + "github.com/tomochain/tomochain/crypto" ) var ( diff --git a/contracts/ens/contract/ens.go b/contracts/ens/contract/ens.go index b2e6d76bb9..c9e0b29c26 100644 --- a/contracts/ens/contract/ens.go +++ b/contracts/ens/contract/ens.go @@ -6,12 +6,12 @@ package contract import ( "strings" - ethereum "github.com/tomochain/go-tomochain" - "github.com/tomochain/go-tomochain/accounts/abi" - "github.com/tomochain/go-tomochain/accounts/abi/bind" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/event" + ethereum "github.com/tomochain/tomochain" + "github.com/tomochain/tomochain/accounts/abi" + "github.com/tomochain/tomochain/accounts/abi/bind" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/event" ) // ENSABI is the input ABI used to generate the binding from. diff --git a/contracts/ens/contract/fifsregistrar.go b/contracts/ens/contract/fifsregistrar.go index ed7e3b7b91..e5a4caae3e 100644 --- a/contracts/ens/contract/fifsregistrar.go +++ b/contracts/ens/contract/fifsregistrar.go @@ -6,10 +6,10 @@ package contract import ( "strings" - "github.com/tomochain/go-tomochain/accounts/abi" - "github.com/tomochain/go-tomochain/accounts/abi/bind" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/core/types" + "github.com/tomochain/tomochain/accounts/abi" + "github.com/tomochain/tomochain/accounts/abi/bind" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/core/types" ) // FIFSRegistrarABI is the input ABI used to generate the binding from. diff --git a/contracts/ens/contract/publicresolver.go b/contracts/ens/contract/publicresolver.go index ee580a6c91..8a537149df 100644 --- a/contracts/ens/contract/publicresolver.go +++ b/contracts/ens/contract/publicresolver.go @@ -7,12 +7,12 @@ import ( "math/big" "strings" - ethereum "github.com/tomochain/go-tomochain" - "github.com/tomochain/go-tomochain/accounts/abi" - "github.com/tomochain/go-tomochain/accounts/abi/bind" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/event" + ethereum "github.com/tomochain/tomochain" + "github.com/tomochain/tomochain/accounts/abi" + "github.com/tomochain/tomochain/accounts/abi/bind" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/event" ) // PublicResolverABI is the input ABI used to generate the binding from. diff --git a/contracts/ens/ens.go b/contracts/ens/ens.go index f6602cfb6c..045bd2e5b1 100644 --- a/contracts/ens/ens.go +++ b/contracts/ens/ens.go @@ -23,11 +23,11 @@ package ens import ( "strings" - "github.com/tomochain/go-tomochain/accounts/abi/bind" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/contracts/ens/contract" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/crypto" + "github.com/tomochain/tomochain/accounts/abi/bind" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/contracts/ens/contract" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/crypto" ) var ( diff --git a/contracts/ens/ens_test.go b/contracts/ens/ens_test.go index 7e348c4ff2..acd32eb9d2 100644 --- a/contracts/ens/ens_test.go +++ b/contracts/ens/ens_test.go @@ -20,11 +20,11 @@ import ( "math/big" "testing" - "github.com/tomochain/go-tomochain/accounts/abi/bind" - "github.com/tomochain/go-tomochain/accounts/abi/bind/backends" - "github.com/tomochain/go-tomochain/contracts/ens/contract" - "github.com/tomochain/go-tomochain/core" - "github.com/tomochain/go-tomochain/crypto" + "github.com/tomochain/tomochain/accounts/abi/bind" + "github.com/tomochain/tomochain/accounts/abi/bind/backends" + "github.com/tomochain/tomochain/contracts/ens/contract" + "github.com/tomochain/tomochain/core" + "github.com/tomochain/tomochain/crypto" ) var ( diff --git a/contracts/multisigwallet/contract/multisigwallet.go b/contracts/multisigwallet/contract/multisigwallet.go index 3b06334c19..eaf9ad0228 100644 --- a/contracts/multisigwallet/contract/multisigwallet.go +++ b/contracts/multisigwallet/contract/multisigwallet.go @@ -7,12 +7,12 @@ import ( "math/big" "strings" - ethereum "github.com/tomochain/go-tomochain" - "github.com/tomochain/go-tomochain/accounts/abi" - "github.com/tomochain/go-tomochain/accounts/abi/bind" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/event" + ethereum "github.com/tomochain/tomochain" + "github.com/tomochain/tomochain/accounts/abi" + "github.com/tomochain/tomochain/accounts/abi/bind" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/event" ) // MultiSigWalletABI is the input ABI used to generate the binding from. diff --git a/contracts/multisigwallet/multisigwallet.go b/contracts/multisigwallet/multisigwallet.go index ca995ad51b..8bd46dfb3b 100644 --- a/contracts/multisigwallet/multisigwallet.go +++ b/contracts/multisigwallet/multisigwallet.go @@ -16,9 +16,9 @@ package multisigwallet import ( - "github.com/tomochain/go-tomochain/accounts/abi/bind" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/contracts/multisigwallet/contract" + "github.com/tomochain/tomochain/accounts/abi/bind" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/contracts/multisigwallet/contract" "math/big" ) diff --git a/contracts/randomize/contract/randomize.go b/contracts/randomize/contract/randomize.go index ec9ffbabbb..440ff67b7a 100644 --- a/contracts/randomize/contract/randomize.go +++ b/contracts/randomize/contract/randomize.go @@ -6,10 +6,10 @@ package contract import ( "strings" - "github.com/tomochain/go-tomochain/accounts/abi" - "github.com/tomochain/go-tomochain/accounts/abi/bind" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/core/types" + "github.com/tomochain/tomochain/accounts/abi" + "github.com/tomochain/tomochain/accounts/abi/bind" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/core/types" ) // SafeMathABI is the input ABI used to generate the binding from. diff --git a/contracts/randomize/randomize.go b/contracts/randomize/randomize.go index 328a59f4e2..16d64f98d5 100644 --- a/contracts/randomize/randomize.go +++ b/contracts/randomize/randomize.go @@ -16,9 +16,9 @@ package randomize import ( - "github.com/tomochain/go-tomochain/accounts/abi/bind" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/contracts/randomize/contract" + "github.com/tomochain/tomochain/accounts/abi/bind" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/contracts/randomize/contract" ) type Randomize struct { diff --git a/contracts/randomize/randomize_test.go b/contracts/randomize/randomize_test.go index f9393717c7..651ee9d823 100644 --- a/contracts/randomize/randomize_test.go +++ b/contracts/randomize/randomize_test.go @@ -21,13 +21,13 @@ import ( "testing" "time" - "github.com/tomochain/go-tomochain/accounts/abi/bind" - "github.com/tomochain/go-tomochain/accounts/abi/bind/backends" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/contracts" - "github.com/tomochain/go-tomochain/core" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/crypto" + "github.com/tomochain/tomochain/accounts/abi/bind" + "github.com/tomochain/tomochain/accounts/abi/bind/backends" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/contracts" + "github.com/tomochain/tomochain/core" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/crypto" ) var ( diff --git a/contracts/tomox/contract/Registration.go b/contracts/tomox/contract/Registration.go index 43339e90ee..5bbc35cf9a 100644 --- a/contracts/tomox/contract/Registration.go +++ b/contracts/tomox/contract/Registration.go @@ -7,12 +7,12 @@ import ( "math/big" "strings" - ethereum "github.com/tomochain/go-tomochain" - "github.com/tomochain/go-tomochain/accounts/abi" - "github.com/tomochain/go-tomochain/accounts/abi/bind" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/event" + ethereum "github.com/tomochain/tomochain" + "github.com/tomochain/tomochain/accounts/abi" + "github.com/tomochain/tomochain/accounts/abi/bind" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/event" ) // RelayerRegistrationABI is the input ABI used to generate the binding from. diff --git a/contracts/tomox/contract/TOMOXListing.go b/contracts/tomox/contract/TOMOXListing.go index 2c6724f3bd..bf35a927db 100644 --- a/contracts/tomox/contract/TOMOXListing.go +++ b/contracts/tomox/contract/TOMOXListing.go @@ -4,10 +4,10 @@ package contract import ( - "github.com/tomochain/go-tomochain/accounts/abi" - "github.com/tomochain/go-tomochain/accounts/abi/bind" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/core/types" + "github.com/tomochain/tomochain/accounts/abi" + "github.com/tomochain/tomochain/accounts/abi/bind" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/core/types" "strings" ) diff --git a/contracts/tomox/contract/TRC21.go b/contracts/tomox/contract/TRC21.go index 66a751930e..c6b2d888a1 100644 --- a/contracts/tomox/contract/TRC21.go +++ b/contracts/tomox/contract/TRC21.go @@ -4,12 +4,12 @@ package contract import ( - "github.com/tomochain/go-tomochain" - "github.com/tomochain/go-tomochain/accounts/abi" - "github.com/tomochain/go-tomochain/accounts/abi/bind" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/event" + "github.com/tomochain/tomochain" + "github.com/tomochain/tomochain/accounts/abi" + "github.com/tomochain/tomochain/accounts/abi/bind" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/event" "math/big" "strings" ) diff --git a/contracts/tomox/contract/TRC21Issuer.go b/contracts/tomox/contract/TRC21Issuer.go index 08a4c95817..04853ffcd6 100644 --- a/contracts/tomox/contract/TRC21Issuer.go +++ b/contracts/tomox/contract/TRC21Issuer.go @@ -4,12 +4,12 @@ package contract import ( - "github.com/tomochain/go-tomochain" - "github.com/tomochain/go-tomochain/accounts/abi" - "github.com/tomochain/go-tomochain/accounts/abi/bind" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/event" + "github.com/tomochain/tomochain" + "github.com/tomochain/tomochain/accounts/abi" + "github.com/tomochain/tomochain/accounts/abi/bind" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/event" "math/big" "strings" ) diff --git a/contracts/tomox/relayerRegistration.go b/contracts/tomox/relayerRegistration.go index 68858340ca..98ea46c718 100644 --- a/contracts/tomox/relayerRegistration.go +++ b/contracts/tomox/relayerRegistration.go @@ -3,9 +3,9 @@ package tomox import ( "math/big" - "github.com/tomochain/go-tomochain/accounts/abi/bind" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/contracts/tomox/contract" + "github.com/tomochain/tomochain/accounts/abi/bind" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/contracts/tomox/contract" ) type RelayerRegistration struct { diff --git a/contracts/tomox/simulation/constants.go b/contracts/tomox/simulation/constants.go index d500b9e1cd..694d27e8bc 100644 --- a/contracts/tomox/simulation/constants.go +++ b/contracts/tomox/simulation/constants.go @@ -4,8 +4,8 @@ import ( "math/big" "os" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/crypto" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/crypto" ) var ( diff --git a/contracts/tomox/simulation/deploy/main.go b/contracts/tomox/simulation/deploy/main.go index 47b1ea823f..84722450e7 100644 --- a/contracts/tomox/simulation/deploy/main.go +++ b/contracts/tomox/simulation/deploy/main.go @@ -7,11 +7,11 @@ import ( "math/big" "time" - "github.com/tomochain/go-tomochain/accounts/abi/bind" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/contracts/tomox" - "github.com/tomochain/go-tomochain/contracts/tomox/simulation" - "github.com/tomochain/go-tomochain/ethclient" + "github.com/tomochain/tomochain/accounts/abi/bind" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/contracts/tomox" + "github.com/tomochain/tomochain/contracts/tomox/simulation" + "github.com/tomochain/tomochain/ethclient" ) func main() { diff --git a/contracts/tomox/tomoxListing.go b/contracts/tomox/tomoxListing.go index bc44e4d6e5..122ab33104 100644 --- a/contracts/tomox/tomoxListing.go +++ b/contracts/tomox/tomoxListing.go @@ -1,9 +1,9 @@ package tomox import ( - "github.com/tomochain/go-tomochain/accounts/abi/bind" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/contracts/tomox/contract" + "github.com/tomochain/tomochain/accounts/abi/bind" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/contracts/tomox/contract" ) type TOMOXListing struct { diff --git a/contracts/tomox/trc21.go b/contracts/tomox/trc21.go index 4841064fcc..e5309161f0 100644 --- a/contracts/tomox/trc21.go +++ b/contracts/tomox/trc21.go @@ -1,9 +1,9 @@ package tomox import ( - "github.com/tomochain/go-tomochain/accounts/abi/bind" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/contracts/tomox/contract" + "github.com/tomochain/tomochain/accounts/abi/bind" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/contracts/tomox/contract" "math/big" ) diff --git a/contracts/tomox/trc21Issuer.go b/contracts/tomox/trc21Issuer.go index 7fc2e5ea55..0613927e58 100644 --- a/contracts/tomox/trc21Issuer.go +++ b/contracts/tomox/trc21Issuer.go @@ -1,9 +1,9 @@ package tomox import ( - "github.com/tomochain/go-tomochain/accounts/abi/bind" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/contracts/tomox/contract" + "github.com/tomochain/tomochain/accounts/abi/bind" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/contracts/tomox/contract" "math/big" ) diff --git a/contracts/trc21issuer/contract/TRC21.go b/contracts/trc21issuer/contract/TRC21.go index bbe4491d88..6230317e5e 100644 --- a/contracts/trc21issuer/contract/TRC21.go +++ b/contracts/trc21issuer/contract/TRC21.go @@ -7,12 +7,12 @@ import ( "math/big" "strings" - ethereum "github.com/tomochain/go-tomochain" - "github.com/tomochain/go-tomochain/accounts/abi" - "github.com/tomochain/go-tomochain/accounts/abi/bind" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/event" + ethereum "github.com/tomochain/tomochain" + "github.com/tomochain/tomochain/accounts/abi" + "github.com/tomochain/tomochain/accounts/abi/bind" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/event" ) // ITRC21ABI is the input ABI used to generate the binding from. diff --git a/contracts/trc21issuer/contract/TRC21Issuer.go b/contracts/trc21issuer/contract/TRC21Issuer.go index 0b08a85c06..cfddf380d6 100644 --- a/contracts/trc21issuer/contract/TRC21Issuer.go +++ b/contracts/trc21issuer/contract/TRC21Issuer.go @@ -7,12 +7,12 @@ import ( "math/big" "strings" - ethereum "github.com/tomochain/go-tomochain" - "github.com/tomochain/go-tomochain/accounts/abi" - "github.com/tomochain/go-tomochain/accounts/abi/bind" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/event" + ethereum "github.com/tomochain/tomochain" + "github.com/tomochain/tomochain/accounts/abi" + "github.com/tomochain/tomochain/accounts/abi/bind" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/event" ) // AbstractTokenTRC21ABI is the input ABI used to generate the binding from. diff --git a/contracts/trc21issuer/simulation/common.go b/contracts/trc21issuer/simulation/common.go index e90da6ada3..386cf4619f 100644 --- a/contracts/trc21issuer/simulation/common.go +++ b/contracts/trc21issuer/simulation/common.go @@ -1,7 +1,7 @@ package simulation import ( - "github.com/tomochain/go-tomochain/crypto" + "github.com/tomochain/tomochain/crypto" "math/big" ) diff --git a/contracts/trc21issuer/simulation/deploy/main.go b/contracts/trc21issuer/simulation/deploy/main.go index 8d25167ccd..53d4b3a877 100644 --- a/contracts/trc21issuer/simulation/deploy/main.go +++ b/contracts/trc21issuer/simulation/deploy/main.go @@ -3,11 +3,11 @@ package main import ( "context" "fmt" - "github.com/tomochain/go-tomochain/accounts/abi/bind" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/contracts/trc21issuer" - "github.com/tomochain/go-tomochain/contracts/trc21issuer/simulation" - "github.com/tomochain/go-tomochain/ethclient" + "github.com/tomochain/tomochain/accounts/abi/bind" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/contracts/trc21issuer" + "github.com/tomochain/tomochain/contracts/trc21issuer/simulation" + "github.com/tomochain/tomochain/ethclient" "log" "math/big" "time" diff --git a/contracts/trc21issuer/simulation/test/main.go b/contracts/trc21issuer/simulation/test/main.go index 7ed6c6a259..70eea4907c 100644 --- a/contracts/trc21issuer/simulation/test/main.go +++ b/contracts/trc21issuer/simulation/test/main.go @@ -4,12 +4,12 @@ import ( "context" "encoding/json" "fmt" - "github.com/tomochain/go-tomochain/accounts/abi/bind" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/common/hexutil" - "github.com/tomochain/go-tomochain/contracts/trc21issuer" - "github.com/tomochain/go-tomochain/contracts/trc21issuer/simulation" - "github.com/tomochain/go-tomochain/ethclient" + "github.com/tomochain/tomochain/accounts/abi/bind" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/common/hexutil" + "github.com/tomochain/tomochain/contracts/trc21issuer" + "github.com/tomochain/tomochain/contracts/trc21issuer/simulation" + "github.com/tomochain/tomochain/ethclient" "log" "math/big" "time" diff --git a/contracts/trc21issuer/trc21.go b/contracts/trc21issuer/trc21.go index ecb77135eb..3b1be1847b 100644 --- a/contracts/trc21issuer/trc21.go +++ b/contracts/trc21issuer/trc21.go @@ -1,9 +1,9 @@ package trc21issuer import ( - "github.com/tomochain/go-tomochain/accounts/abi/bind" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/contracts/trc21issuer/contract" + "github.com/tomochain/tomochain/accounts/abi/bind" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/contracts/trc21issuer/contract" "math/big" ) diff --git a/contracts/trc21issuer/trc21issuer.go b/contracts/trc21issuer/trc21issuer.go index fd34100eec..369d3e86f2 100644 --- a/contracts/trc21issuer/trc21issuer.go +++ b/contracts/trc21issuer/trc21issuer.go @@ -1,9 +1,9 @@ package trc21issuer import ( - "github.com/tomochain/go-tomochain/accounts/abi/bind" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/contracts/trc21issuer/contract" + "github.com/tomochain/tomochain/accounts/abi/bind" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/contracts/trc21issuer/contract" "math/big" ) diff --git a/contracts/trc21issuer/trc21issuer_test.go b/contracts/trc21issuer/trc21issuer_test.go index 7654f312de..08ba96c1d0 100644 --- a/contracts/trc21issuer/trc21issuer_test.go +++ b/contracts/trc21issuer/trc21issuer_test.go @@ -1,11 +1,11 @@ package trc21issuer import ( - "github.com/tomochain/go-tomochain/accounts/abi/bind" - "github.com/tomochain/go-tomochain/accounts/abi/bind/backends" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/core" - "github.com/tomochain/go-tomochain/crypto" + "github.com/tomochain/tomochain/accounts/abi/bind" + "github.com/tomochain/tomochain/accounts/abi/bind/backends" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/core" + "github.com/tomochain/tomochain/crypto" "math/big" "testing" ) diff --git a/contracts/utils.go b/contracts/utils.go index 65d2af80a5..ce1ef56f42 100644 --- a/contracts/utils.go +++ b/contracts/utils.go @@ -30,21 +30,21 @@ import ( "sync" "time" - "github.com/tomochain/go-tomochain/accounts" - "github.com/tomochain/go-tomochain/accounts/abi/bind" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/common/hexutil" - "github.com/tomochain/go-tomochain/consensus" - "github.com/tomochain/go-tomochain/consensus/posv" - "github.com/tomochain/go-tomochain/contracts/blocksigner/contract" - randomizeContract "github.com/tomochain/go-tomochain/contracts/randomize/contract" - "github.com/tomochain/go-tomochain/core" - "github.com/tomochain/go-tomochain/core/state" - stateDatabase "github.com/tomochain/go-tomochain/core/state" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/ethdb" - "github.com/tomochain/go-tomochain/log" - "github.com/tomochain/go-tomochain/params" + "github.com/tomochain/tomochain/accounts" + "github.com/tomochain/tomochain/accounts/abi/bind" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/common/hexutil" + "github.com/tomochain/tomochain/consensus" + "github.com/tomochain/tomochain/consensus/posv" + "github.com/tomochain/tomochain/contracts/blocksigner/contract" + randomizeContract "github.com/tomochain/tomochain/contracts/randomize/contract" + "github.com/tomochain/tomochain/core" + "github.com/tomochain/tomochain/core/state" + stateDatabase "github.com/tomochain/tomochain/core/state" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/ethdb" + "github.com/tomochain/tomochain/log" + "github.com/tomochain/tomochain/params" ) const ( diff --git a/contracts/utils_test.go b/contracts/utils_test.go index 801dae9c85..016684600f 100644 --- a/contracts/utils_test.go +++ b/contracts/utils_test.go @@ -19,14 +19,14 @@ import ( "bytes" "context" "crypto/ecdsa" - "github.com/tomochain/go-tomochain/accounts/abi/bind" - "github.com/tomochain/go-tomochain/accounts/abi/bind/backends" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/consensus/posv" - "github.com/tomochain/go-tomochain/contracts/blocksigner" - "github.com/tomochain/go-tomochain/core" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/crypto" + "github.com/tomochain/tomochain/accounts/abi/bind" + "github.com/tomochain/tomochain/accounts/abi/bind/backends" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/consensus/posv" + "github.com/tomochain/tomochain/contracts/blocksigner" + "github.com/tomochain/tomochain/core" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/crypto" "math/big" "math/rand" "testing" diff --git a/contracts/validator/contract/validator.go b/contracts/validator/contract/validator.go index 6a9622876f..2a82339ede 100644 --- a/contracts/validator/contract/validator.go +++ b/contracts/validator/contract/validator.go @@ -7,12 +7,12 @@ import ( "math/big" "strings" - ethereum "github.com/tomochain/go-tomochain" - "github.com/tomochain/go-tomochain/accounts/abi" - "github.com/tomochain/go-tomochain/accounts/abi/bind" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/event" + ethereum "github.com/tomochain/tomochain" + "github.com/tomochain/tomochain/accounts/abi" + "github.com/tomochain/tomochain/accounts/abi/bind" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/event" ) // SafeMathABI is the input ABI used to generate the binding from. diff --git a/contracts/validator/validator.go b/contracts/validator/validator.go index 7390d3cc73..a9d03dcda8 100644 --- a/contracts/validator/validator.go +++ b/contracts/validator/validator.go @@ -16,9 +16,9 @@ package validator import ( - "github.com/tomochain/go-tomochain/accounts/abi/bind" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/contracts/validator/contract" + "github.com/tomochain/tomochain/accounts/abi/bind" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/contracts/validator/contract" "math/big" ) diff --git a/contracts/validator/validator_test.go b/contracts/validator/validator_test.go index 24c51f6784..c7a452d751 100644 --- a/contracts/validator/validator_test.go +++ b/contracts/validator/validator_test.go @@ -23,13 +23,13 @@ import ( "testing" "time" - "github.com/tomochain/go-tomochain/accounts/abi/bind" - "github.com/tomochain/go-tomochain/accounts/abi/bind/backends" - "github.com/tomochain/go-tomochain/common" - contractValidator "github.com/tomochain/go-tomochain/contracts/validator/contract" - "github.com/tomochain/go-tomochain/core" - "github.com/tomochain/go-tomochain/crypto" - "github.com/tomochain/go-tomochain/log" + "github.com/tomochain/tomochain/accounts/abi/bind" + "github.com/tomochain/tomochain/accounts/abi/bind/backends" + "github.com/tomochain/tomochain/common" + contractValidator "github.com/tomochain/tomochain/contracts/validator/contract" + "github.com/tomochain/tomochain/core" + "github.com/tomochain/tomochain/crypto" + "github.com/tomochain/tomochain/log" ) var ( diff --git a/core/asm/asm.go b/core/asm/asm.go index 6b5c286dcd..204e2e6082 100644 --- a/core/asm/asm.go +++ b/core/asm/asm.go @@ -21,7 +21,7 @@ import ( "encoding/hex" "fmt" - "github.com/tomochain/go-tomochain/core/vm" + "github.com/tomochain/tomochain/core/vm" ) // Iterator for disassembled EVM instructions diff --git a/core/asm/compiler.go b/core/asm/compiler.go index 25be0fa7f9..e4599aced2 100644 --- a/core/asm/compiler.go +++ b/core/asm/compiler.go @@ -23,8 +23,8 @@ import ( "os" "strings" - "github.com/tomochain/go-tomochain/common/math" - "github.com/tomochain/go-tomochain/core/vm" + "github.com/tomochain/tomochain/common/math" + "github.com/tomochain/tomochain/core/vm" ) // Compiler contains information about the parsed source diff --git a/core/bench_test.go b/core/bench_test.go index 8ef591cdd1..618aa9fbe7 100644 --- a/core/bench_test.go +++ b/core/bench_test.go @@ -23,14 +23,14 @@ import ( "os" "testing" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/common/math" - "github.com/tomochain/go-tomochain/consensus/ethash" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/core/vm" - "github.com/tomochain/go-tomochain/crypto" - "github.com/tomochain/go-tomochain/ethdb" - "github.com/tomochain/go-tomochain/params" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/common/math" + "github.com/tomochain/tomochain/consensus/ethash" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/core/vm" + "github.com/tomochain/tomochain/crypto" + "github.com/tomochain/tomochain/ethdb" + "github.com/tomochain/tomochain/params" ) func BenchmarkInsertChain_empty_memdb(b *testing.B) { diff --git a/core/block_validator.go b/core/block_validator.go index 46d257a672..cebc984a86 100644 --- a/core/block_validator.go +++ b/core/block_validator.go @@ -18,15 +18,15 @@ package core import ( "fmt" - "github.com/ethereum/go-tomochain/consensus/posv" - "github.com/ethereum/go-tomochain/tomox/tomox_state" + "github.com/ethereum/tomochain/consensus/posv" + "github.com/ethereum/tomochain/tomox/tomox_state" - "github.com/ethereum/go-tomochain/common" - "github.com/ethereum/go-tomochain/consensus" - "github.com/ethereum/go-tomochain/core/state" - "github.com/ethereum/go-tomochain/core/types" - "github.com/ethereum/go-tomochain/log" - "github.com/ethereum/go-tomochain/params" + "github.com/ethereum/tomochain/common" + "github.com/ethereum/tomochain/consensus" + "github.com/ethereum/tomochain/core/state" + "github.com/ethereum/tomochain/core/types" + "github.com/ethereum/tomochain/log" + "github.com/ethereum/tomochain/params" ) // BlockValidator is responsible for validating block headers, uncles and diff --git a/core/block_validator_test.go b/core/block_validator_test.go index 6ad00e79ef..5b6474620f 100644 --- a/core/block_validator_test.go +++ b/core/block_validator_test.go @@ -21,11 +21,11 @@ import ( "testing" "time" - "github.com/tomochain/go-tomochain/consensus/ethash" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/core/vm" - "github.com/tomochain/go-tomochain/ethdb" - "github.com/tomochain/go-tomochain/params" + "github.com/tomochain/tomochain/consensus/ethash" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/core/vm" + "github.com/tomochain/tomochain/ethdb" + "github.com/tomochain/tomochain/params" ) // Tests that simple header verification works, for both good and bad blocks. diff --git a/core/blockchain.go b/core/blockchain.go index 3520e64cee..3b725a928f 100644 --- a/core/blockchain.go +++ b/core/blockchain.go @@ -28,26 +28,26 @@ import ( "sync/atomic" "time" - "github.com/ethereum/go-tomochain/accounts/abi/bind" - "github.com/ethereum/go-tomochain/tomox/tomox_state" - - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/common/mclock" - "github.com/tomochain/go-tomochain/consensus" - "github.com/tomochain/go-tomochain/consensus/posv" - contractValidator "github.com/tomochain/go-tomochain/contracts/validator/contract" - "github.com/tomochain/go-tomochain/core/state" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/core/vm" - "github.com/tomochain/go-tomochain/crypto" - "github.com/tomochain/go-tomochain/ethclient" - "github.com/tomochain/go-tomochain/ethdb" - "github.com/tomochain/go-tomochain/event" - "github.com/tomochain/go-tomochain/log" - "github.com/tomochain/go-tomochain/metrics" - "github.com/tomochain/go-tomochain/params" - "github.com/tomochain/go-tomochain/rlp" - "github.com/tomochain/go-tomochain/trie" + "github.com/ethereum/tomochain/accounts/abi/bind" + "github.com/ethereum/tomochain/tomox/tomox_state" + + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/common/mclock" + "github.com/tomochain/tomochain/consensus" + "github.com/tomochain/tomochain/consensus/posv" + contractValidator "github.com/tomochain/tomochain/contracts/validator/contract" + "github.com/tomochain/tomochain/core/state" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/core/vm" + "github.com/tomochain/tomochain/crypto" + "github.com/tomochain/tomochain/ethclient" + "github.com/tomochain/tomochain/ethdb" + "github.com/tomochain/tomochain/event" + "github.com/tomochain/tomochain/log" + "github.com/tomochain/tomochain/metrics" + "github.com/tomochain/tomochain/params" + "github.com/tomochain/tomochain/rlp" + "github.com/tomochain/tomochain/trie" lru "github.com/hashicorp/golang-lru" "gopkg.in/karalabe/cookiejar.v2/collections/prque" ) diff --git a/core/blockchain_test.go b/core/blockchain_test.go index d74f2e438f..7476b0ef54 100644 --- a/core/blockchain_test.go +++ b/core/blockchain_test.go @@ -24,14 +24,14 @@ import ( "testing" "time" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/consensus/ethash" - "github.com/tomochain/go-tomochain/core/state" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/core/vm" - "github.com/tomochain/go-tomochain/crypto" - "github.com/tomochain/go-tomochain/ethdb" - "github.com/tomochain/go-tomochain/params" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/consensus/ethash" + "github.com/tomochain/tomochain/core/state" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/core/vm" + "github.com/tomochain/tomochain/crypto" + "github.com/tomochain/tomochain/ethdb" + "github.com/tomochain/tomochain/params" ) // Test fork of length N starting from block i diff --git a/core/blocks.go b/core/blocks.go index d8f9ab9f3f..6dc0191374 100644 --- a/core/blocks.go +++ b/core/blocks.go @@ -16,7 +16,7 @@ package core -import "github.com/tomochain/go-tomochain/common" +import "github.com/tomochain/tomochain/common" // BadHashes represent a set of manually tracked bad hashes (usually hard forks) var BadHashes = map[common.Hash]bool{ diff --git a/core/bloombits/generator.go b/core/bloombits/generator.go index 83f1b7fad3..210537c7a4 100644 --- a/core/bloombits/generator.go +++ b/core/bloombits/generator.go @@ -19,7 +19,7 @@ package bloombits import ( "errors" - "github.com/tomochain/go-tomochain/core/types" + "github.com/tomochain/tomochain/core/types" ) // errSectionOutOfBounds is returned if the user tried to add more bloom filters diff --git a/core/bloombits/generator_test.go b/core/bloombits/generator_test.go index 3fb403b269..4689592b64 100644 --- a/core/bloombits/generator_test.go +++ b/core/bloombits/generator_test.go @@ -21,7 +21,7 @@ import ( "math/rand" "testing" - "github.com/tomochain/go-tomochain/core/types" + "github.com/tomochain/tomochain/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 9d1a640b56..64f9ae4c7c 100644 --- a/core/bloombits/matcher.go +++ b/core/bloombits/matcher.go @@ -26,8 +26,8 @@ import ( "sync/atomic" "time" - "github.com/tomochain/go-tomochain/common/bitutil" - "github.com/tomochain/go-tomochain/crypto" + "github.com/tomochain/tomochain/common/bitutil" + "github.com/tomochain/tomochain/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 3d40f3f1f2..310a9a12cf 100644 --- a/core/bloombits/matcher_test.go +++ b/core/bloombits/matcher_test.go @@ -23,7 +23,7 @@ import ( "testing" "time" - "github.com/tomochain/go-tomochain/common" + "github.com/tomochain/tomochain/common" ) const testSectionSize = 4096 diff --git a/core/chain_indexer.go b/core/chain_indexer.go index 1c36a09ffe..95190eea93 100644 --- a/core/chain_indexer.go +++ b/core/chain_indexer.go @@ -23,11 +23,11 @@ import ( "sync/atomic" "time" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/ethdb" - "github.com/tomochain/go-tomochain/event" - "github.com/tomochain/go-tomochain/log" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/ethdb" + "github.com/tomochain/tomochain/event" + "github.com/tomochain/tomochain/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 584e6f0de4..5f1d389d33 100644 --- a/core/chain_indexer_test.go +++ b/core/chain_indexer_test.go @@ -23,9 +23,9 @@ import ( "testing" "time" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/ethdb" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/ethdb" ) // Runs multiple tests with randomized parameters. diff --git a/core/chain_makers.go b/core/chain_makers.go index 2ed4d88fb8..70653fee06 100644 --- a/core/chain_makers.go +++ b/core/chain_makers.go @@ -20,14 +20,14 @@ import ( "fmt" "math/big" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/consensus" - "github.com/tomochain/go-tomochain/consensus/misc" - "github.com/tomochain/go-tomochain/core/state" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/core/vm" - "github.com/tomochain/go-tomochain/ethdb" - "github.com/tomochain/go-tomochain/params" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/consensus" + "github.com/tomochain/tomochain/consensus/misc" + "github.com/tomochain/tomochain/core/state" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/core/vm" + "github.com/tomochain/tomochain/ethdb" + "github.com/tomochain/tomochain/params" ) // So we can deterministically seed different blockchains diff --git a/core/chain_makers_test.go b/core/chain_makers_test.go index 4125a481ab..3a5f557493 100644 --- a/core/chain_makers_test.go +++ b/core/chain_makers_test.go @@ -20,12 +20,12 @@ import ( "fmt" "math/big" - "github.com/tomochain/go-tomochain/consensus/ethash" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/core/vm" - "github.com/tomochain/go-tomochain/crypto" - "github.com/tomochain/go-tomochain/ethdb" - "github.com/tomochain/go-tomochain/params" + "github.com/tomochain/tomochain/consensus/ethash" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/core/vm" + "github.com/tomochain/tomochain/crypto" + "github.com/tomochain/tomochain/ethdb" + "github.com/tomochain/tomochain/params" ) func ExampleGenerateChain() { diff --git a/core/dao_test.go b/core/dao_test.go index 42d79de8f1..4818393a34 100644 --- a/core/dao_test.go +++ b/core/dao_test.go @@ -20,10 +20,10 @@ import ( "math/big" "testing" - "github.com/tomochain/go-tomochain/consensus/ethash" - "github.com/tomochain/go-tomochain/core/vm" - "github.com/tomochain/go-tomochain/ethdb" - "github.com/tomochain/go-tomochain/params" + "github.com/tomochain/tomochain/consensus/ethash" + "github.com/tomochain/tomochain/core/vm" + "github.com/tomochain/tomochain/ethdb" + "github.com/tomochain/tomochain/params" ) // Tests that DAO-fork enabled clients can properly filter out fork-commencing diff --git a/core/database_util.go b/core/database_util.go index f30ce0f922..e261f341cc 100644 --- a/core/database_util.go +++ b/core/database_util.go @@ -24,13 +24,13 @@ import ( "fmt" "math/big" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/ethdb" - "github.com/tomochain/go-tomochain/log" - "github.com/tomochain/go-tomochain/metrics" - "github.com/tomochain/go-tomochain/params" - "github.com/tomochain/go-tomochain/rlp" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/ethdb" + "github.com/tomochain/tomochain/log" + "github.com/tomochain/tomochain/metrics" + "github.com/tomochain/tomochain/params" + "github.com/tomochain/tomochain/rlp" ) // DatabaseReader wraps the Get method of a backing data store. diff --git a/core/database_util_test.go b/core/database_util_test.go index 377c2f3949..797cb6b1ec 100644 --- a/core/database_util_test.go +++ b/core/database_util_test.go @@ -21,11 +21,11 @@ import ( "math/big" "testing" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/crypto/sha3" - "github.com/tomochain/go-tomochain/ethdb" - "github.com/tomochain/go-tomochain/rlp" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/crypto/sha3" + "github.com/tomochain/tomochain/ethdb" + "github.com/tomochain/tomochain/rlp" ) // Tests block header storage and retrieval operations. diff --git a/core/events.go b/core/events.go index 0c63997c0b..ce1c464a52 100644 --- a/core/events.go +++ b/core/events.go @@ -17,8 +17,8 @@ package core import ( - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/core/types" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/core/types" ) // TxPreEvent is posted when a transaction enters the transaction pool. diff --git a/core/evm.go b/core/evm.go index 3082531d55..75eae999d3 100644 --- a/core/evm.go +++ b/core/evm.go @@ -19,10 +19,10 @@ package core import ( "math/big" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/consensus" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/core/vm" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/consensus" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/core/vm" ) diff --git a/core/gen_genesis.go b/core/gen_genesis.go index fc6b1cc943..b0cf82a1da 100644 --- a/core/gen_genesis.go +++ b/core/gen_genesis.go @@ -7,10 +7,10 @@ import ( "errors" "math/big" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/common/hexutil" - "github.com/tomochain/go-tomochain/common/math" - "github.com/tomochain/go-tomochain/params" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/common/hexutil" + "github.com/tomochain/tomochain/common/math" + "github.com/tomochain/tomochain/params" ) var _ = (*genesisSpecMarshaling)(nil) diff --git a/core/gen_genesis_account.go b/core/gen_genesis_account.go index 66138aea4c..7f3863356a 100644 --- a/core/gen_genesis_account.go +++ b/core/gen_genesis_account.go @@ -7,9 +7,9 @@ import ( "errors" "math/big" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/common/hexutil" - "github.com/tomochain/go-tomochain/common/math" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/common/hexutil" + "github.com/tomochain/tomochain/common/math" ) var _ = (*genesisAccountMarshaling)(nil) diff --git a/core/genesis.go b/core/genesis.go index 643b0ad269..c3f21468e8 100644 --- a/core/genesis.go +++ b/core/genesis.go @@ -25,15 +25,15 @@ import ( "math/big" "strings" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/common/hexutil" - "github.com/tomochain/go-tomochain/common/math" - "github.com/tomochain/go-tomochain/core/state" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/ethdb" - "github.com/tomochain/go-tomochain/log" - "github.com/tomochain/go-tomochain/params" - "github.com/tomochain/go-tomochain/rlp" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/common/hexutil" + "github.com/tomochain/tomochain/common/math" + "github.com/tomochain/tomochain/core/state" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/ethdb" + "github.com/tomochain/tomochain/log" + "github.com/tomochain/tomochain/params" + "github.com/tomochain/tomochain/rlp" ) //go:generate gencodec -type Genesis -field-override genesisSpecMarshaling -out gen_genesis.go diff --git a/core/genesis_test.go b/core/genesis_test.go index f3398aa32f..a60b06ced1 100644 --- a/core/genesis_test.go +++ b/core/genesis_test.go @@ -22,11 +22,11 @@ import ( "testing" "github.com/davecgh/go-spew/spew" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/consensus/ethash" - "github.com/tomochain/go-tomochain/core/vm" - "github.com/tomochain/go-tomochain/ethdb" - "github.com/tomochain/go-tomochain/params" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/consensus/ethash" + "github.com/tomochain/tomochain/core/vm" + "github.com/tomochain/tomochain/ethdb" + "github.com/tomochain/tomochain/params" ) func TestDefaultGenesisBlock(t *testing.T) { diff --git a/core/headerchain.go b/core/headerchain.go index 35d27e98f4..ff7b851cae 100644 --- a/core/headerchain.go +++ b/core/headerchain.go @@ -26,12 +26,12 @@ import ( "sync/atomic" "time" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/consensus" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/ethdb" - "github.com/tomochain/go-tomochain/log" - "github.com/tomochain/go-tomochain/params" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/consensus" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/ethdb" + "github.com/tomochain/tomochain/log" + "github.com/tomochain/tomochain/params" "github.com/hashicorp/golang-lru" ) diff --git a/core/helper_test.go b/core/helper_test.go index 57e5d3c08b..94ea60c509 100644 --- a/core/helper_test.go +++ b/core/helper_test.go @@ -20,9 +20,9 @@ import ( "container/list" "fmt" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/ethdb" - "github.com/tomochain/go-tomochain/event" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/ethdb" + "github.com/tomochain/tomochain/event" ) // Implement our EthTest Manager diff --git a/core/mkalloc.go b/core/mkalloc.go index 2f0596f136..0e22ddb5d4 100644 --- a/core/mkalloc.go +++ b/core/mkalloc.go @@ -34,8 +34,8 @@ import ( "sort" "strconv" - "github.com/tomochain/go-tomochain/core" - "github.com/tomochain/go-tomochain/rlp" + "github.com/tomochain/tomochain/core" + "github.com/tomochain/tomochain/rlp" ) type allocItem struct{ Addr, Balance *big.Int } diff --git a/core/order_pool.go b/core/order_pool.go index 591b564639..01c3c09d53 100644 --- a/core/order_pool.go +++ b/core/order_pool.go @@ -19,18 +19,18 @@ package core import ( "errors" "fmt" - "github.com/tomochain/go-tomochain/tomox/tomox_state" + "github.com/tomochain/tomochain/tomox/tomox_state" "math/big" "sort" "sync" "time" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/core/state" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/event" - "github.com/tomochain/go-tomochain/log" - "github.com/tomochain/go-tomochain/params" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/core/state" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/event" + "github.com/tomochain/tomochain/log" + "github.com/tomochain/tomochain/params" "gopkg.in/karalabe/cookiejar.v2/collections/prque" ) diff --git a/core/order_pool_test.go b/core/order_pool_test.go index 895602dcca..f481c5ad11 100644 --- a/core/order_pool_test.go +++ b/core/order_pool_test.go @@ -9,11 +9,11 @@ import ( "testing" "time" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/crypto" - "github.com/tomochain/go-tomochain/ethclient" - "github.com/tomochain/go-tomochain/rpc" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/crypto" + "github.com/tomochain/tomochain/ethclient" + "github.com/tomochain/tomochain/rpc" ) type OrderMsg struct { diff --git a/core/order_tx_journal.go b/core/order_tx_journal.go index 9d187193e8..e01441a4b8 100644 --- a/core/order_tx_journal.go +++ b/core/order_tx_journal.go @@ -20,10 +20,10 @@ import ( "io" "os" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/log" - "github.com/tomochain/go-tomochain/rlp" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/log" + "github.com/tomochain/tomochain/rlp" ) // ordertxJournal is a rotating log of transactions with the aim of storing locally diff --git a/core/order_tx_list.go b/core/order_tx_list.go index 451042af6e..ebc0914831 100644 --- a/core/order_tx_list.go +++ b/core/order_tx_list.go @@ -20,7 +20,7 @@ import ( "container/heap" "sort" - "github.com/tomochain/go-tomochain/core/types" + "github.com/tomochain/tomochain/core/types" ) // txSortedMap is a nonce->transaction hash map with a heap based index to allow diff --git a/core/state/database.go b/core/state/database.go index af7afb4486..f942a0e3ce 100644 --- a/core/state/database.go +++ b/core/state/database.go @@ -20,9 +20,9 @@ import ( "fmt" "sync" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/ethdb" - "github.com/tomochain/go-tomochain/trie" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/ethdb" + "github.com/tomochain/tomochain/trie" lru "github.com/hashicorp/golang-lru" ) diff --git a/core/state/dump.go b/core/state/dump.go index c1005e97d7..f08c6e7df3 100644 --- a/core/state/dump.go +++ b/core/state/dump.go @@ -20,9 +20,9 @@ import ( "encoding/json" "fmt" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/rlp" - "github.com/tomochain/go-tomochain/trie" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/rlp" + "github.com/tomochain/tomochain/trie" ) type DumpAccount struct { diff --git a/core/state/iterator.go b/core/state/iterator.go index 7ecaad82a4..3cfc592ecb 100644 --- a/core/state/iterator.go +++ b/core/state/iterator.go @@ -20,9 +20,9 @@ import ( "bytes" "fmt" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/rlp" - "github.com/tomochain/go-tomochain/trie" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/rlp" + "github.com/tomochain/tomochain/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 c52ac82fc8..fb40cb0768 100644 --- a/core/state/iterator_test.go +++ b/core/state/iterator_test.go @@ -20,8 +20,8 @@ import ( "bytes" "testing" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/ethdb" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/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 da7df5806d..1ac5cdbf25 100644 --- a/core/state/journal.go +++ b/core/state/journal.go @@ -19,7 +19,7 @@ package state import ( "math/big" - "github.com/tomochain/go-tomochain/common" + "github.com/tomochain/tomochain/common" ) type journalEntry interface { diff --git a/core/state/managed_state.go b/core/state/managed_state.go index 3d9af91e36..a95e47557f 100644 --- a/core/state/managed_state.go +++ b/core/state/managed_state.go @@ -19,7 +19,7 @@ package state import ( "sync" - "github.com/tomochain/go-tomochain/common" + "github.com/tomochain/tomochain/common" ) type account struct { diff --git a/core/state/managed_state_test.go b/core/state/managed_state_test.go index f828c2d741..155317b726 100644 --- a/core/state/managed_state_test.go +++ b/core/state/managed_state_test.go @@ -19,8 +19,8 @@ package state import ( "testing" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/ethdb" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/ethdb" ) var addr = common.BytesToAddress([]byte("test")) diff --git a/core/state/state_object.go b/core/state/state_object.go index a1181163de..b6a93d7a7d 100644 --- a/core/state/state_object.go +++ b/core/state/state_object.go @@ -22,9 +22,9 @@ import ( "io" "math/big" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/crypto" - "github.com/tomochain/go-tomochain/rlp" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/crypto" + "github.com/tomochain/tomochain/rlp" ) var emptyCodeHash = crypto.Keccak256(nil) diff --git a/core/state/state_reader.go b/core/state/state_reader.go index 8e61784ece..66c80a1bcb 100644 --- a/core/state/state_reader.go +++ b/core/state/state_reader.go @@ -1,8 +1,8 @@ package state import ( - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/crypto" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/crypto" "math/big" ) diff --git a/core/state/state_test.go b/core/state/state_test.go index 1cf2491367..01163ec6f2 100644 --- a/core/state/state_test.go +++ b/core/state/state_test.go @@ -21,9 +21,9 @@ import ( "math/big" "testing" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/crypto" - "github.com/tomochain/go-tomochain/ethdb" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/crypto" + "github.com/tomochain/tomochain/ethdb" checker "gopkg.in/check.v1" ) diff --git a/core/state/statedb.go b/core/state/statedb.go index 146f9b951a..1240d6cbec 100644 --- a/core/state/statedb.go +++ b/core/state/statedb.go @@ -23,12 +23,12 @@ import ( "sort" "sync" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/crypto" - "github.com/tomochain/go-tomochain/log" - "github.com/tomochain/go-tomochain/rlp" - "github.com/tomochain/go-tomochain/trie" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/crypto" + "github.com/tomochain/tomochain/log" + "github.com/tomochain/tomochain/rlp" + "github.com/tomochain/tomochain/trie" ) type revision struct { diff --git a/core/state/statedb_test.go b/core/state/statedb_test.go index 0baccfb9d1..a6058ffbcc 100644 --- a/core/state/statedb_test.go +++ b/core/state/statedb_test.go @@ -30,9 +30,9 @@ import ( check "gopkg.in/check.v1" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/ethdb" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/ethdb" ) // Tests that updating a state trie does not leak any database writes prior to diff --git a/core/state/statedb_utils.go b/core/state/statedb_utils.go index eb7f1968db..ffbcf35a1e 100644 --- a/core/state/statedb_utils.go +++ b/core/state/statedb_utils.go @@ -3,10 +3,10 @@ package state import ( "math/big" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/core/types" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/core/types" - "github.com/tomochain/go-tomochain/crypto" + "github.com/tomochain/tomochain/crypto" ) var ( diff --git a/core/state/sync.go b/core/state/sync.go index 0a5d5b3f51..9d07ce17b0 100644 --- a/core/state/sync.go +++ b/core/state/sync.go @@ -19,9 +19,9 @@ package state import ( "bytes" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/rlp" - "github.com/tomochain/go-tomochain/trie" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/rlp" + "github.com/tomochain/tomochain/trie" ) // NewStateSync create a new state trie download scheduler. diff --git a/core/state/sync_test.go b/core/state/sync_test.go index 4eedc61ed4..11e5178ee1 100644 --- a/core/state/sync_test.go +++ b/core/state/sync_test.go @@ -21,10 +21,10 @@ import ( "math/big" "testing" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/crypto" - "github.com/tomochain/go-tomochain/ethdb" - "github.com/tomochain/go-tomochain/trie" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/crypto" + "github.com/tomochain/tomochain/ethdb" + "github.com/tomochain/tomochain/trie" ) // testAccount is the data associated with an account used by the state tests. diff --git a/core/state/trc21_reader.go b/core/state/trc21_reader.go index 070af20c17..9d67871006 100644 --- a/core/state/trc21_reader.go +++ b/core/state/trc21_reader.go @@ -2,7 +2,7 @@ package state import ( "bytes" - "github.com/tomochain/go-tomochain/common" + "github.com/tomochain/tomochain/common" "github.com/hashicorp/golang-lru" "math/big" ) diff --git a/core/state_processor.go b/core/state_processor.go index d15780607f..4b0dc8955b 100644 --- a/core/state_processor.go +++ b/core/state_processor.go @@ -22,14 +22,14 @@ import ( "runtime" "sync" - "github.com/ethereum/go-tomochain/common" - "github.com/ethereum/go-tomochain/consensus" - "github.com/ethereum/go-tomochain/consensus/misc" - "github.com/ethereum/go-tomochain/core/state" - "github.com/ethereum/go-tomochain/core/types" - "github.com/ethereum/go-tomochain/core/vm" - "github.com/ethereum/go-tomochain/crypto" - "github.com/ethereum/go-tomochain/params" + "github.com/ethereum/tomochain/common" + "github.com/ethereum/tomochain/consensus" + "github.com/ethereum/tomochain/consensus/misc" + "github.com/ethereum/tomochain/core/state" + "github.com/ethereum/tomochain/core/types" + "github.com/ethereum/tomochain/core/vm" + "github.com/ethereum/tomochain/crypto" + "github.com/ethereum/tomochain/params" ) // StateProcessor is a basic Processor, which takes care of transitioning diff --git a/core/state_transition.go b/core/state_transition.go index 8787495690..9a2b079249 100644 --- a/core/state_transition.go +++ b/core/state_transition.go @@ -21,10 +21,10 @@ import ( "math" "math/big" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/core/vm" - "github.com/tomochain/go-tomochain/log" - "github.com/tomochain/go-tomochain/params" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/core/vm" + "github.com/tomochain/tomochain/log" + "github.com/tomochain/tomochain/params" ) var ( diff --git a/core/tx_journal.go b/core/tx_journal.go index aa2c706410..d3cb856055 100644 --- a/core/tx_journal.go +++ b/core/tx_journal.go @@ -21,10 +21,10 @@ import ( "io" "os" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/log" - "github.com/tomochain/go-tomochain/rlp" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/log" + "github.com/tomochain/tomochain/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 6343443d61..b7f6ed9660 100644 --- a/core/tx_list.go +++ b/core/tx_list.go @@ -22,9 +22,9 @@ import ( "math/big" "sort" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/log" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/log" ) // 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 dd39f6e260..e83bccac04 100644 --- a/core/tx_list_test.go +++ b/core/tx_list_test.go @@ -20,8 +20,8 @@ import ( "math/rand" "testing" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/crypto" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/crypto" ) // Tests that transactions can be added to strict lists and list contents and diff --git a/core/tx_pool.go b/core/tx_pool.go index ed37738b26..6e0058002d 100644 --- a/core/tx_pool.go +++ b/core/tx_pool.go @@ -25,13 +25,13 @@ import ( "sync" "time" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/core/state" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/event" - "github.com/tomochain/go-tomochain/log" - "github.com/tomochain/go-tomochain/metrics" - "github.com/tomochain/go-tomochain/params" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/core/state" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/event" + "github.com/tomochain/tomochain/log" + "github.com/tomochain/tomochain/metrics" + "github.com/tomochain/tomochain/params" "gopkg.in/karalabe/cookiejar.v2/collections/prque" ) diff --git a/core/tx_pool_test.go b/core/tx_pool_test.go index 91545805b6..3447c1f63b 100644 --- a/core/tx_pool_test.go +++ b/core/tx_pool_test.go @@ -26,13 +26,13 @@ import ( "testing" "time" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/core/state" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/crypto" - "github.com/tomochain/go-tomochain/ethdb" - "github.com/tomochain/go-tomochain/event" - "github.com/tomochain/go-tomochain/params" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/core/state" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/crypto" + "github.com/tomochain/tomochain/ethdb" + "github.com/tomochain/tomochain/event" + "github.com/tomochain/tomochain/params" ) // testTxPoolConfig is a transaction pool configuration without stateful disk diff --git a/core/types.go b/core/types.go index 9cf28293b3..67e2002a41 100644 --- a/core/types.go +++ b/core/types.go @@ -17,11 +17,11 @@ package core import ( - "github.com/ethereum/go-tomochain/common" - "github.com/ethereum/go-tomochain/core/state" - "github.com/ethereum/go-tomochain/core/types" - "github.com/ethereum/go-tomochain/core/vm" - "github.com/ethereum/go-tomochain/tomox/tomox_state" + "github.com/ethereum/tomochain/common" + "github.com/ethereum/tomochain/core/state" + "github.com/ethereum/tomochain/core/types" + "github.com/ethereum/tomochain/core/vm" + "github.com/ethereum/tomochain/tomox/tomox_state" "math/big" ) diff --git a/core/types/block.go b/core/types/block.go index c512124371..a055ced147 100644 --- a/core/types/block.go +++ b/core/types/block.go @@ -27,10 +27,10 @@ import ( "time" "unsafe" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/common/hexutil" - "github.com/tomochain/go-tomochain/crypto/sha3" - "github.com/tomochain/go-tomochain/rlp" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/common/hexutil" + "github.com/tomochain/tomochain/crypto/sha3" + "github.com/tomochain/tomochain/rlp" ) var ( diff --git a/core/types/block_test.go b/core/types/block_test.go index 8b0424baed..9b78b653c7 100644 --- a/core/types/block_test.go +++ b/core/types/block_test.go @@ -21,8 +21,8 @@ import ( "testing" "bytes" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/rlp" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/rlp" "reflect" ) diff --git a/core/types/bloom9.go b/core/types/bloom9.go index 49eede277f..02d676751a 100644 --- a/core/types/bloom9.go +++ b/core/types/bloom9.go @@ -20,8 +20,8 @@ import ( "fmt" "math/big" - "github.com/tomochain/go-tomochain/common/hexutil" - "github.com/tomochain/go-tomochain/crypto" + "github.com/tomochain/tomochain/common/hexutil" + "github.com/tomochain/tomochain/crypto" ) type bytesBacked interface { diff --git a/core/types/bloom9_test.go b/core/types/bloom9_test.go index 72ace21d11..95b50a0aeb 100644 --- a/core/types/bloom9_test.go +++ b/core/types/bloom9_test.go @@ -54,7 +54,7 @@ func TestBloom(t *testing.T) { import ( "testing" - "github.com/tomochain/go-tomochain/core/state" + "github.com/tomochain/tomochain/core/state" ) func TestBloom9(t *testing.T) { diff --git a/core/types/derive_sha.go b/core/types/derive_sha.go index 1bcc585f33..2731c39cbb 100644 --- a/core/types/derive_sha.go +++ b/core/types/derive_sha.go @@ -19,9 +19,9 @@ package types import ( "bytes" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/rlp" - "github.com/tomochain/go-tomochain/trie" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/rlp" + "github.com/tomochain/tomochain/trie" ) type DerivableList interface { diff --git a/core/types/gen_header_json.go b/core/types/gen_header_json.go index 82b18ffe7e..e03527d801 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/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/common/hexutil" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/common/hexutil" ) var _ = (*headerMarshaling)(nil) diff --git a/core/types/gen_log_json.go b/core/types/gen_log_json.go index 50063081d0..759ff8814c 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/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/common/hexutil" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/common/hexutil" ) var _ = (*logMarshaling)(nil) diff --git a/core/types/gen_receipt_json.go b/core/types/gen_receipt_json.go index b37e395cdb..ffc851f2db 100644 --- a/core/types/gen_receipt_json.go +++ b/core/types/gen_receipt_json.go @@ -6,8 +6,8 @@ import ( "encoding/json" "errors" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/common/hexutil" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/common/hexutil" ) var _ = (*receiptMarshaling)(nil) diff --git a/core/types/gen_tx_json.go b/core/types/gen_tx_json.go index cb96211b9e..f43cb04e57 100644 --- a/core/types/gen_tx_json.go +++ b/core/types/gen_tx_json.go @@ -7,8 +7,8 @@ import ( "errors" "math/big" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/common/hexutil" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/common/hexutil" ) var _ = (*txdataMarshaling)(nil) diff --git a/core/types/log.go b/core/types/log.go index 296075a1aa..af8e515eac 100644 --- a/core/types/log.go +++ b/core/types/log.go @@ -20,9 +20,9 @@ import ( "fmt" "io" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/common/hexutil" - "github.com/tomochain/go-tomochain/rlp" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/common/hexutil" + "github.com/tomochain/tomochain/rlp" ) //go:generate gencodec -type Log -field-override logMarshaling -out gen_log_json.go diff --git a/core/types/log_test.go b/core/types/log_test.go index 99fc1e8433..a9c90ef74c 100644 --- a/core/types/log_test.go +++ b/core/types/log_test.go @@ -23,8 +23,8 @@ import ( "testing" "github.com/davecgh/go-spew/spew" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/common/hexutil" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/common/hexutil" ) var unmarshalLogTests = map[string]struct { diff --git a/core/types/order_signing.go b/core/types/order_signing.go index 55a42c117c..15d1b5cba2 100644 --- a/core/types/order_signing.go +++ b/core/types/order_signing.go @@ -22,9 +22,9 @@ import ( "math/big" "strconv" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/crypto" - "github.com/tomochain/go-tomochain/crypto/sha3" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/crypto" + "github.com/tomochain/tomochain/crypto/sha3" ) // OrderSigner interface for order transaction diff --git a/core/types/order_transaction.go b/core/types/order_transaction.go index 1992c68ac1..2647af0ae3 100644 --- a/core/types/order_transaction.go +++ b/core/types/order_transaction.go @@ -23,8 +23,8 @@ import ( "math/big" "sync/atomic" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/rlp" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/rlp" ) //go:generate gencodec -type txdata -field-override txdataMarshaling -out gen_tx_json.go diff --git a/core/types/receipt.go b/core/types/receipt.go index 90385586fb..3c55c12247 100644 --- a/core/types/receipt.go +++ b/core/types/receipt.go @@ -22,9 +22,9 @@ import ( "io" "unsafe" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/common/hexutil" - "github.com/tomochain/go-tomochain/rlp" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/common/hexutil" + "github.com/tomochain/tomochain/rlp" ) //go:generate gencodec -type Receipt -field-override receiptMarshaling -out gen_receipt_json.go diff --git a/core/types/transaction.go b/core/types/transaction.go index c2f4f67732..2cc566075a 100644 --- a/core/types/transaction.go +++ b/core/types/transaction.go @@ -24,10 +24,10 @@ import ( "math/big" "sync/atomic" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/common/hexutil" - "github.com/tomochain/go-tomochain/crypto" - "github.com/tomochain/go-tomochain/rlp" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/common/hexutil" + "github.com/tomochain/tomochain/crypto" + "github.com/tomochain/tomochain/rlp" ) //go:generate gencodec -type txdata -field-override txdataMarshaling -out gen_tx_json.go diff --git a/core/types/transaction_signing.go b/core/types/transaction_signing.go index 12740d9f00..5f353a5733 100644 --- a/core/types/transaction_signing.go +++ b/core/types/transaction_signing.go @@ -22,9 +22,9 @@ import ( "fmt" "math/big" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/crypto" - "github.com/tomochain/go-tomochain/params" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/crypto" + "github.com/tomochain/tomochain/params" ) var ( diff --git a/core/types/transaction_signing_test.go b/core/types/transaction_signing_test.go index bf4cb969b2..e538ee3b27 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/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/crypto" - "github.com/tomochain/go-tomochain/rlp" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/crypto" + "github.com/tomochain/tomochain/rlp" ) func TestEIP155Signing(t *testing.T) { diff --git a/core/types/transaction_test.go b/core/types/transaction_test.go index 2750ba1027..bc8195c986 100644 --- a/core/types/transaction_test.go +++ b/core/types/transaction_test.go @@ -23,9 +23,9 @@ import ( "math/big" "testing" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/crypto" - "github.com/tomochain/go-tomochain/rlp" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/crypto" + "github.com/tomochain/tomochain/rlp" ) // The values in those tests are from the Transaction Tests diff --git a/core/vm/analysis.go b/core/vm/analysis.go index e5b7c6f5f7..e50d514a0e 100644 --- a/core/vm/analysis.go +++ b/core/vm/analysis.go @@ -19,7 +19,7 @@ package vm import ( "math/big" - "github.com/tomochain/go-tomochain/common" + "github.com/tomochain/tomochain/common" ) // destinations stores one map per contract (keyed by hash of code). diff --git a/core/vm/common.go b/core/vm/common.go index f9fabdbbdf..59b2706e01 100644 --- a/core/vm/common.go +++ b/core/vm/common.go @@ -19,8 +19,8 @@ package vm import ( "math/big" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/common/math" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/common/math" ) // calculates the memory size required for a step diff --git a/core/vm/contract.go b/core/vm/contract.go index 47d74eba44..cfb1d5382a 100644 --- a/core/vm/contract.go +++ b/core/vm/contract.go @@ -19,7 +19,7 @@ package vm import ( "math/big" - "github.com/tomochain/go-tomochain/common" + "github.com/tomochain/tomochain/common" ) // ContractRef is a reference to the contract's backing object diff --git a/core/vm/contracts.go b/core/vm/contracts.go index 029eff9a4f..5b914249d9 100644 --- a/core/vm/contracts.go +++ b/core/vm/contracts.go @@ -21,11 +21,11 @@ import ( "errors" "math/big" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/common/math" - "github.com/tomochain/go-tomochain/crypto" - "github.com/tomochain/go-tomochain/crypto/bn256" - "github.com/tomochain/go-tomochain/params" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/common/math" + "github.com/tomochain/tomochain/crypto" + "github.com/tomochain/tomochain/crypto/bn256" + "github.com/tomochain/tomochain/params" "golang.org/x/crypto/ripemd160" ) diff --git a/core/vm/contracts_test.go b/core/vm/contracts_test.go index f82e826249..a2afb818e9 100644 --- a/core/vm/contracts_test.go +++ b/core/vm/contracts_test.go @@ -21,7 +21,7 @@ import ( "math/big" "testing" - "github.com/tomochain/go-tomochain/common" + "github.com/tomochain/tomochain/common" ) // precompiledTest defines the input/output pairs for precompiled contract tests. diff --git a/core/vm/evm.go b/core/vm/evm.go index 1e1c132179..034b8bcdcb 100644 --- a/core/vm/evm.go +++ b/core/vm/evm.go @@ -21,9 +21,9 @@ import ( "sync/atomic" "time" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/crypto" - "github.com/tomochain/go-tomochain/params" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/crypto" + "github.com/tomochain/tomochain/params" ) // emptyCodeHash is used by create to ensure deployment is disallowed to already diff --git a/core/vm/gas.go b/core/vm/gas.go index 3c9a1dc3c0..1a66c4c8a8 100644 --- a/core/vm/gas.go +++ b/core/vm/gas.go @@ -19,7 +19,7 @@ package vm import ( "math/big" - "github.com/tomochain/go-tomochain/params" + "github.com/tomochain/tomochain/params" ) const ( diff --git a/core/vm/gas_table.go b/core/vm/gas_table.go index 32d94332f6..b142373dd7 100644 --- a/core/vm/gas_table.go +++ b/core/vm/gas_table.go @@ -17,9 +17,9 @@ package vm import ( - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/common/math" - "github.com/tomochain/go-tomochain/params" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/common/math" + "github.com/tomochain/tomochain/params" ) // memoryGasCosts calculates the quadratic gas for memory expansion. It does so diff --git a/core/vm/gen_structlog.go b/core/vm/gen_structlog.go index 5382d83923..4aeb933a9a 100644 --- a/core/vm/gen_structlog.go +++ b/core/vm/gen_structlog.go @@ -6,9 +6,9 @@ import ( "encoding/json" "math/big" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/common/hexutil" - "github.com/tomochain/go-tomochain/common/math" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/common/hexutil" + "github.com/tomochain/tomochain/common/math" ) var _ = (*structLogMarshaling)(nil) diff --git a/core/vm/instructions.go b/core/vm/instructions.go index 0b269ec8ab..6c9216ef72 100644 --- a/core/vm/instructions.go +++ b/core/vm/instructions.go @@ -21,11 +21,11 @@ import ( "fmt" "math/big" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/common/math" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/crypto" - "github.com/tomochain/go-tomochain/params" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/common/math" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/crypto" + "github.com/tomochain/tomochain/params" ) var ( diff --git a/core/vm/instructions_test.go b/core/vm/instructions_test.go index a72e9d835a..3b49515c16 100644 --- a/core/vm/instructions_test.go +++ b/core/vm/instructions_test.go @@ -20,8 +20,8 @@ import ( "math/big" "testing" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/params" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/params" ) type twoOperandTest struct { diff --git a/core/vm/interface.go b/core/vm/interface.go index 0520cb54bf..489c1023bc 100644 --- a/core/vm/interface.go +++ b/core/vm/interface.go @@ -19,8 +19,8 @@ package vm import ( "math/big" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/core/types" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/core/types" ) // StateDB is an EVM database for full state querying. diff --git a/core/vm/interpreter.go b/core/vm/interpreter.go index edd6528516..f230acbd72 100644 --- a/core/vm/interpreter.go +++ b/core/vm/interpreter.go @@ -20,8 +20,8 @@ import ( "fmt" "sync/atomic" - "github.com/tomochain/go-tomochain/common/math" - "github.com/tomochain/go-tomochain/params" + "github.com/tomochain/tomochain/common/math" + "github.com/tomochain/tomochain/params" ) // Config are the configuration options for the Interpreter diff --git a/core/vm/jump_table.go b/core/vm/jump_table.go index d2cd9d56a1..0d47492a4e 100644 --- a/core/vm/jump_table.go +++ b/core/vm/jump_table.go @@ -20,7 +20,7 @@ import ( "errors" "math/big" - "github.com/tomochain/go-tomochain/params" + "github.com/tomochain/tomochain/params" ) type ( diff --git a/core/vm/logger.go b/core/vm/logger.go index 3444ec663b..9b26e8ccb1 100644 --- a/core/vm/logger.go +++ b/core/vm/logger.go @@ -23,10 +23,10 @@ import ( "math/big" "time" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/common/hexutil" - "github.com/tomochain/go-tomochain/common/math" - "github.com/tomochain/go-tomochain/core/types" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/common/hexutil" + "github.com/tomochain/tomochain/common/math" + "github.com/tomochain/tomochain/core/types" ) type Storage map[common.Hash]common.Hash diff --git a/core/vm/logger_test.go b/core/vm/logger_test.go index f009bb5c1c..87cda8a517 100644 --- a/core/vm/logger_test.go +++ b/core/vm/logger_test.go @@ -20,8 +20,8 @@ import ( "math/big" "testing" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/params" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/params" ) type dummyContractRef struct { diff --git a/core/vm/memory_table.go b/core/vm/memory_table.go index 9b659705dd..ed56564b5f 100644 --- a/core/vm/memory_table.go +++ b/core/vm/memory_table.go @@ -19,7 +19,7 @@ package vm import ( "math/big" - "github.com/tomochain/go-tomochain/common/math" + "github.com/tomochain/tomochain/common/math" ) func memorySha3(stack *Stack) *big.Int { diff --git a/core/vm/noop.go b/core/vm/noop.go index 7df02ff38d..9c35a5a344 100644 --- a/core/vm/noop.go +++ b/core/vm/noop.go @@ -19,8 +19,8 @@ package vm import ( "math/big" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/core/types" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/core/types" ) func NoopCanTransfer(db StateDB, from common.Address, balance *big.Int) bool { diff --git a/core/vm/runtime/env.go b/core/vm/runtime/env.go index 953060d6e0..0b4b6fa31d 100644 --- a/core/vm/runtime/env.go +++ b/core/vm/runtime/env.go @@ -17,9 +17,9 @@ package runtime import ( - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/core" - "github.com/tomochain/go-tomochain/core/vm" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/core" + "github.com/tomochain/tomochain/core/vm" ) func NewEnv(cfg *Config) *vm.EVM { diff --git a/core/vm/runtime/runtime.go b/core/vm/runtime/runtime.go index a4de991bed..f0a147edbd 100644 --- a/core/vm/runtime/runtime.go +++ b/core/vm/runtime/runtime.go @@ -21,12 +21,12 @@ import ( "math/big" "time" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/core/state" - "github.com/tomochain/go-tomochain/core/vm" - "github.com/tomochain/go-tomochain/crypto" - "github.com/tomochain/go-tomochain/ethdb" - "github.com/tomochain/go-tomochain/params" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/core/state" + "github.com/tomochain/tomochain/core/vm" + "github.com/tomochain/tomochain/crypto" + "github.com/tomochain/tomochain/ethdb" + "github.com/tomochain/tomochain/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 843c9dc56a..6fec1e807c 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/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/core/vm/runtime" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/core/vm/runtime" ) func ExampleExecute() { diff --git a/core/vm/runtime/runtime_test.go b/core/vm/runtime/runtime_test.go index 7dfd70aa58..00d47195ae 100644 --- a/core/vm/runtime/runtime_test.go +++ b/core/vm/runtime/runtime_test.go @@ -21,11 +21,11 @@ import ( "strings" "testing" - "github.com/tomochain/go-tomochain/accounts/abi" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/core/state" - "github.com/tomochain/go-tomochain/core/vm" - "github.com/tomochain/go-tomochain/ethdb" + "github.com/tomochain/tomochain/accounts/abi" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/core/state" + "github.com/tomochain/tomochain/core/vm" + "github.com/tomochain/tomochain/ethdb" ) func TestDefaults(t *testing.T) { diff --git a/core/vm/stack_table.go b/core/vm/stack_table.go index 1d886dfe39..06313fa038 100644 --- a/core/vm/stack_table.go +++ b/core/vm/stack_table.go @@ -19,7 +19,7 @@ package vm import ( "fmt" - "github.com/tomochain/go-tomochain/params" + "github.com/tomochain/tomochain/params" ) func makeStackFunc(pop, push int) stackValidationFunc { diff --git a/crypto/bn256/bn256_fast.go b/crypto/bn256/bn256_fast.go index a6f245b637..2c8099e737 100644 --- a/crypto/bn256/bn256_fast.go +++ b/crypto/bn256/bn256_fast.go @@ -19,7 +19,7 @@ // Package bn256 implements the Optimal Ate pairing over a 256-bit Barreto-Naehrig curve. package bn256 -import "github.com/tomochain/go-tomochain/crypto/bn256/cloudflare" +import "github.com/tomochain/tomochain/crypto/bn256/cloudflare" // 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/bn256/bn256_fuzz.go b/crypto/bn256/bn256_fuzz.go index 63e1694a0b..d57d36dee1 100644 --- a/crypto/bn256/bn256_fuzz.go +++ b/crypto/bn256/bn256_fuzz.go @@ -22,8 +22,8 @@ import ( "bytes" "math/big" - cloudflare "github.com/tomochain/go-tomochain/crypto/bn256/cloudflare" - google "github.com/tomochain/go-tomochain/crypto/bn256/google" + cloudflare "github.com/tomochain/tomochain/crypto/bn256/cloudflare" + google "github.com/tomochain/tomochain/crypto/bn256/google" ) // FuzzAdd fuzzez bn256 addition between the Google and Cloudflare libraries. diff --git a/crypto/bn256/bn256_slow.go b/crypto/bn256/bn256_slow.go index a0255aaa50..260378001f 100644 --- a/crypto/bn256/bn256_slow.go +++ b/crypto/bn256/bn256_slow.go @@ -19,7 +19,7 @@ // Package bn256 implements the Optimal Ate pairing over a 256-bit Barreto-Naehrig curve. package bn256 -import "github.com/tomochain/go-tomochain/crypto/bn256/google" +import "github.com/tomochain/tomochain/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 eb26f93d1b..41d95bf9c7 100644 --- a/crypto/crypto.go +++ b/crypto/crypto.go @@ -28,10 +28,10 @@ import ( "math/big" "os" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/common/math" - "github.com/tomochain/go-tomochain/crypto/sha3" - "github.com/tomochain/go-tomochain/rlp" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/common/math" + "github.com/tomochain/tomochain/crypto/sha3" + "github.com/tomochain/tomochain/rlp" ) var ( diff --git a/crypto/crypto_test.go b/crypto/crypto_test.go index c609cf27e6..63d3fac0bc 100644 --- a/crypto/crypto_test.go +++ b/crypto/crypto_test.go @@ -25,7 +25,7 @@ import ( "os" "testing" - "github.com/tomochain/go-tomochain/common" + "github.com/tomochain/tomochain/common" ) var testAddrHex = "970e8128ab834e8eac17ab8e3812f010678cf791" diff --git a/crypto/ecies/ecies_test.go b/crypto/ecies/ecies_test.go index bab24a6483..7ee8128bac 100644 --- a/crypto/ecies/ecies_test.go +++ b/crypto/ecies/ecies_test.go @@ -40,7 +40,7 @@ import ( "math/big" "testing" - "github.com/tomochain/go-tomochain/crypto" + "github.com/tomochain/tomochain/crypto" ) var dumpEnc bool diff --git a/crypto/ecies/params.go b/crypto/ecies/params.go index abd4e49c00..fab8f07dc2 100644 --- a/crypto/ecies/params.go +++ b/crypto/ecies/params.go @@ -42,7 +42,7 @@ import ( "fmt" "hash" - ethcrypto "github.com/tomochain/go-tomochain/crypto" + ethcrypto "github.com/tomochain/tomochain/crypto" ) var ( diff --git a/crypto/secp256k1/curve.go b/crypto/secp256k1/curve.go index ee18bffc39..9884a76b84 100644 --- a/crypto/secp256k1/curve.go +++ b/crypto/secp256k1/curve.go @@ -36,7 +36,7 @@ import ( "math/big" "unsafe" - "github.com/tomochain/go-tomochain/common/math" + "github.com/tomochain/tomochain/common/math" ) /* diff --git a/crypto/secp256k1/secp256_test.go b/crypto/secp256k1/secp256_test.go index 1d48af04ab..077a56c781 100644 --- a/crypto/secp256k1/secp256_test.go +++ b/crypto/secp256k1/secp256_test.go @@ -24,8 +24,8 @@ import ( "encoding/hex" "testing" - "github.com/tomochain/go-tomochain/common/math" - "github.com/tomochain/go-tomochain/crypto/randentropy" + "github.com/tomochain/tomochain/common/math" + "github.com/tomochain/tomochain/crypto/randentropy" ) const TestCount = 1000 diff --git a/crypto/signature_cgo.go b/crypto/signature_cgo.go index 456e98a743..ad0b3f5cca 100644 --- a/crypto/signature_cgo.go +++ b/crypto/signature_cgo.go @@ -23,8 +23,8 @@ import ( "crypto/elliptic" "fmt" - "github.com/tomochain/go-tomochain/common/math" - "github.com/tomochain/go-tomochain/crypto/secp256k1" + "github.com/tomochain/tomochain/common/math" + "github.com/tomochain/tomochain/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 42d53eafe1..a4caafe510 100644 --- a/crypto/signature_test.go +++ b/crypto/signature_test.go @@ -22,9 +22,9 @@ import ( "reflect" "testing" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/common/hexutil" - "github.com/tomochain/go-tomochain/common/math" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/common/hexutil" + "github.com/tomochain/tomochain/common/math" ) var ( diff --git a/dashboard/assets.go b/dashboard/assets.go index 071c0583ea..d275066f34 100644 --- a/dashboard/assets.go +++ b/dashboard/assets.go @@ -31423,7 +31423,7 @@ var _bundleJs = []byte((((((((((`!function(modules) { }, _react2.default.createElement("span", { style: _common.styles.light }, "Commit "), _react2.default.createElement("a", { - href: "https://github.com/tomochain/go-tomochain/commit/" + general.commit, + href: "https://github.com/tomochain/tomochain/commit/" + general.commit, target: "_blank", style: { color: "inherit", diff --git a/dashboard/assets/components/Footer.jsx b/dashboard/assets/components/Footer.jsx index 2e30c2b7bf..45fb32e1ab 100644 --- a/dashboard/assets/components/Footer.jsx +++ b/dashboard/assets/components/Footer.jsx @@ -165,7 +165,7 @@ class Footer extends Component { {general.commit && ( {'Commit '} - + {general.commit.substring(0, 8)} diff --git a/dashboard/cpu.go b/dashboard/cpu.go index 90fad5ac91..efe0431146 100644 --- a/dashboard/cpu.go +++ b/dashboard/cpu.go @@ -21,7 +21,7 @@ package dashboard import ( "syscall" - "github.com/tomochain/go-tomochain/log" + "github.com/tomochain/tomochain/log" ) // getProcessCPUTime retrieves the process' CPU time since program startup. diff --git a/dashboard/dashboard.go b/dashboard/dashboard.go index b4523aba75..22ebe23aed 100644 --- a/dashboard/dashboard.go +++ b/dashboard/dashboard.go @@ -33,11 +33,11 @@ import ( "time" "github.com/elastic/gosigar" - "github.com/tomochain/go-tomochain/log" - "github.com/tomochain/go-tomochain/metrics" - "github.com/tomochain/go-tomochain/p2p" - "github.com/tomochain/go-tomochain/params" - "github.com/tomochain/go-tomochain/rpc" + "github.com/tomochain/tomochain/log" + "github.com/tomochain/tomochain/metrics" + "github.com/tomochain/tomochain/p2p" + "github.com/tomochain/tomochain/params" + "github.com/tomochain/tomochain/rpc" "golang.org/x/net/websocket" ) diff --git a/eth/api.go b/eth/api.go index d3d026e0ee..87d6520234 100644 --- a/eth/api.go +++ b/eth/api.go @@ -25,17 +25,17 @@ import ( "os" "strings" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/common/hexutil" - "github.com/tomochain/go-tomochain/core" - "github.com/tomochain/go-tomochain/core/state" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/log" - "github.com/tomochain/go-tomochain/miner" - "github.com/tomochain/go-tomochain/params" - "github.com/tomochain/go-tomochain/rlp" - "github.com/tomochain/go-tomochain/rpc" - "github.com/tomochain/go-tomochain/trie" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/common/hexutil" + "github.com/tomochain/tomochain/core" + "github.com/tomochain/tomochain/core/state" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/log" + "github.com/tomochain/tomochain/miner" + "github.com/tomochain/tomochain/params" + "github.com/tomochain/tomochain/rlp" + "github.com/tomochain/tomochain/rpc" + "github.com/tomochain/tomochain/trie" ) // PublicEthereumAPI provides an API to access Ethereum full node-related diff --git a/eth/api_backend.go b/eth/api_backend.go index 50a9793b6b..56baa5d174 100644 --- a/eth/api_backend.go +++ b/eth/api_backend.go @@ -21,32 +21,32 @@ import ( "encoding/json" "errors" "fmt" - "github.com/tomochain/go-tomochain/tomox" + "github.com/tomochain/tomochain/tomox" "io/ioutil" "math/big" "path/filepath" - "github.com/tomochain/go-tomochain/consensus/posv" - - "github.com/tomochain/go-tomochain/accounts" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/common/math" - "github.com/tomochain/go-tomochain/consensus" - "github.com/tomochain/go-tomochain/contracts" - "github.com/tomochain/go-tomochain/core" - "github.com/tomochain/go-tomochain/core/bloombits" - "github.com/tomochain/go-tomochain/core/state" - stateDatabase "github.com/tomochain/go-tomochain/core/state" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/core/vm" - "github.com/tomochain/go-tomochain/eth/downloader" - "github.com/tomochain/go-tomochain/eth/gasprice" - "github.com/tomochain/go-tomochain/ethclient" - "github.com/tomochain/go-tomochain/ethdb" - "github.com/tomochain/go-tomochain/event" - "github.com/tomochain/go-tomochain/log" - "github.com/tomochain/go-tomochain/params" - "github.com/tomochain/go-tomochain/rpc" + "github.com/tomochain/tomochain/consensus/posv" + + "github.com/tomochain/tomochain/accounts" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/common/math" + "github.com/tomochain/tomochain/consensus" + "github.com/tomochain/tomochain/contracts" + "github.com/tomochain/tomochain/core" + "github.com/tomochain/tomochain/core/bloombits" + "github.com/tomochain/tomochain/core/state" + stateDatabase "github.com/tomochain/tomochain/core/state" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/core/vm" + "github.com/tomochain/tomochain/eth/downloader" + "github.com/tomochain/tomochain/eth/gasprice" + "github.com/tomochain/tomochain/ethclient" + "github.com/tomochain/tomochain/ethdb" + "github.com/tomochain/tomochain/event" + "github.com/tomochain/tomochain/log" + "github.com/tomochain/tomochain/params" + "github.com/tomochain/tomochain/rpc" ) // EthApiBackend implements ethapi.Backend for full nodes diff --git a/eth/api_test.go b/eth/api_test.go index f58ebfaa07..37cee21838 100644 --- a/eth/api_test.go +++ b/eth/api_test.go @@ -21,9 +21,9 @@ import ( "testing" "github.com/davecgh/go-spew/spew" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/core/state" - "github.com/tomochain/go-tomochain/ethdb" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/core/state" + "github.com/tomochain/tomochain/ethdb" ) var dumper = spew.ConfigState{Indent: " "} diff --git a/eth/api_tracer.go b/eth/api_tracer.go index 7e4d5898fe..14798822d6 100644 --- a/eth/api_tracer.go +++ b/eth/api_tracer.go @@ -27,18 +27,18 @@ import ( "sync" "time" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/common/hexutil" - "github.com/tomochain/go-tomochain/core" - "github.com/tomochain/go-tomochain/core/state" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/core/vm" - "github.com/tomochain/go-tomochain/eth/tracers" - "github.com/tomochain/go-tomochain/internal/ethapi" - "github.com/tomochain/go-tomochain/log" - "github.com/tomochain/go-tomochain/rlp" - "github.com/tomochain/go-tomochain/rpc" - "github.com/tomochain/go-tomochain/trie" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/common/hexutil" + "github.com/tomochain/tomochain/core" + "github.com/tomochain/tomochain/core/state" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/core/vm" + "github.com/tomochain/tomochain/eth/tracers" + "github.com/tomochain/tomochain/internal/ethapi" + "github.com/tomochain/tomochain/log" + "github.com/tomochain/tomochain/rlp" + "github.com/tomochain/tomochain/rpc" + "github.com/tomochain/tomochain/trie" ) const ( diff --git a/eth/backend.go b/eth/backend.go index cf54091e9a..07d29e5087 100644 --- a/eth/backend.go +++ b/eth/backend.go @@ -27,39 +27,39 @@ import ( "sync/atomic" "time" - "github.com/tomochain/go-tomochain/accounts/abi/bind" - "github.com/tomochain/go-tomochain/common/hexutil" - "github.com/tomochain/go-tomochain/core/state" - "github.com/tomochain/go-tomochain/eth/filters" - "github.com/tomochain/go-tomochain/rlp" + "github.com/tomochain/tomochain/accounts/abi/bind" + "github.com/tomochain/tomochain/common/hexutil" + "github.com/tomochain/tomochain/core/state" + "github.com/tomochain/tomochain/eth/filters" + "github.com/tomochain/tomochain/rlp" "bytes" - "github.com/tomochain/go-tomochain/accounts" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/consensus" - "github.com/tomochain/go-tomochain/consensus/ethash" - "github.com/tomochain/go-tomochain/consensus/posv" - "github.com/tomochain/go-tomochain/contracts" - contractValidator "github.com/tomochain/go-tomochain/contracts/validator/contract" - "github.com/tomochain/go-tomochain/core" - "github.com/tomochain/go-tomochain/core/bloombits" - - //"github.com/tomochain/go-tomochain/core/state" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/core/vm" - "github.com/tomochain/go-tomochain/eth/downloader" - "github.com/tomochain/go-tomochain/eth/gasprice" - "github.com/tomochain/go-tomochain/ethdb" - "github.com/tomochain/go-tomochain/event" - "github.com/tomochain/go-tomochain/internal/ethapi" - "github.com/tomochain/go-tomochain/log" - "github.com/tomochain/go-tomochain/miner" - "github.com/tomochain/go-tomochain/node" - "github.com/tomochain/go-tomochain/p2p" - "github.com/tomochain/go-tomochain/params" - "github.com/tomochain/go-tomochain/rpc" - "github.com/tomochain/go-tomochain/tomox" + "github.com/tomochain/tomochain/accounts" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/consensus" + "github.com/tomochain/tomochain/consensus/ethash" + "github.com/tomochain/tomochain/consensus/posv" + "github.com/tomochain/tomochain/contracts" + contractValidator "github.com/tomochain/tomochain/contracts/validator/contract" + "github.com/tomochain/tomochain/core" + "github.com/tomochain/tomochain/core/bloombits" + + //"github.com/tomochain/tomochain/core/state" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/core/vm" + "github.com/tomochain/tomochain/eth/downloader" + "github.com/tomochain/tomochain/eth/gasprice" + "github.com/tomochain/tomochain/ethdb" + "github.com/tomochain/tomochain/event" + "github.com/tomochain/tomochain/internal/ethapi" + "github.com/tomochain/tomochain/log" + "github.com/tomochain/tomochain/miner" + "github.com/tomochain/tomochain/node" + "github.com/tomochain/tomochain/p2p" + "github.com/tomochain/tomochain/params" + "github.com/tomochain/tomochain/rpc" + "github.com/tomochain/tomochain/tomox" ) type LesServer interface { diff --git a/eth/backend_test.go b/eth/backend_test.go index 5eddd5b3a9..d91045649d 100644 --- a/eth/backend_test.go +++ b/eth/backend_test.go @@ -1,7 +1,7 @@ package eth import ( - "github.com/tomochain/go-tomochain/params" + "github.com/tomochain/tomochain/params" "math/big" "testing" ) diff --git a/eth/bloombits.go b/eth/bloombits.go index 8fc6b03b41..f95a4c2d06 100644 --- a/eth/bloombits.go +++ b/eth/bloombits.go @@ -19,13 +19,13 @@ package eth import ( "time" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/common/bitutil" - "github.com/tomochain/go-tomochain/core" - "github.com/tomochain/go-tomochain/core/bloombits" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/ethdb" - "github.com/tomochain/go-tomochain/params" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/common/bitutil" + "github.com/tomochain/tomochain/core" + "github.com/tomochain/tomochain/core/bloombits" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/ethdb" + "github.com/tomochain/tomochain/params" ) const ( diff --git a/eth/config.go b/eth/config.go index db6f6cc53e..a86f084561 100644 --- a/eth/config.go +++ b/eth/config.go @@ -24,13 +24,13 @@ import ( "runtime" "time" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/common/hexutil" - "github.com/tomochain/go-tomochain/consensus/ethash" - "github.com/tomochain/go-tomochain/core" - "github.com/tomochain/go-tomochain/eth/downloader" - "github.com/tomochain/go-tomochain/eth/gasprice" - "github.com/tomochain/go-tomochain/params" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/common/hexutil" + "github.com/tomochain/tomochain/consensus/ethash" + "github.com/tomochain/tomochain/core" + "github.com/tomochain/tomochain/eth/downloader" + "github.com/tomochain/tomochain/eth/gasprice" + "github.com/tomochain/tomochain/params" ) // DefaultConfig contains default settings for use on the Ethereum main net. diff --git a/eth/db_upgrade.go b/eth/db_upgrade.go index d8ce312114..fae59a520f 100644 --- a/eth/db_upgrade.go +++ b/eth/db_upgrade.go @@ -21,11 +21,11 @@ import ( "bytes" "time" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/core" - "github.com/tomochain/go-tomochain/ethdb" - "github.com/tomochain/go-tomochain/log" - "github.com/tomochain/go-tomochain/rlp" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/core" + "github.com/tomochain/tomochain/ethdb" + "github.com/tomochain/tomochain/log" + "github.com/tomochain/tomochain/rlp" ) var deduplicateData = []byte("dbUpgrade_20170714deduplicateData") diff --git a/eth/downloader/api.go b/eth/downloader/api.go index 3e06bac1bb..a8b17bd84c 100644 --- a/eth/downloader/api.go +++ b/eth/downloader/api.go @@ -20,9 +20,9 @@ import ( "context" "sync" - ethereum "github.com/tomochain/go-tomochain" - "github.com/tomochain/go-tomochain/event" - "github.com/tomochain/go-tomochain/rpc" + ethereum "github.com/tomochain/tomochain" + "github.com/tomochain/tomochain/event" + "github.com/tomochain/tomochain/rpc" ) // PublicDownloaderAPI provides an API which gives information about the current synchronisation status. diff --git a/eth/downloader/downloader.go b/eth/downloader/downloader.go index c3237f5207..811feeb098 100644 --- a/eth/downloader/downloader.go +++ b/eth/downloader/downloader.go @@ -25,15 +25,15 @@ import ( "sync/atomic" "time" - "github.com/tomochain/go-tomochain" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/core" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/ethdb" - "github.com/tomochain/go-tomochain/event" - "github.com/tomochain/go-tomochain/log" - "github.com/tomochain/go-tomochain/metrics" - "github.com/tomochain/go-tomochain/params" + "github.com/tomochain/tomochain" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/core" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/ethdb" + "github.com/tomochain/tomochain/event" + "github.com/tomochain/tomochain/log" + "github.com/tomochain/tomochain/metrics" + "github.com/tomochain/tomochain/params" ) var ( diff --git a/eth/downloader/downloader_test.go b/eth/downloader/downloader_test.go index 691de47d33..728bd9676a 100644 --- a/eth/downloader/downloader_test.go +++ b/eth/downloader/downloader_test.go @@ -25,15 +25,15 @@ import ( "testing" "time" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/consensus/ethash" - "github.com/tomochain/go-tomochain/core" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/crypto" - "github.com/tomochain/go-tomochain/ethdb" - "github.com/tomochain/go-tomochain/event" - "github.com/tomochain/go-tomochain/params" - "github.com/tomochain/go-tomochain/trie" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/consensus/ethash" + "github.com/tomochain/tomochain/core" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/crypto" + "github.com/tomochain/tomochain/ethdb" + "github.com/tomochain/tomochain/event" + "github.com/tomochain/tomochain/params" + "github.com/tomochain/tomochain/trie" ) var ( diff --git a/eth/downloader/fakepeer.go b/eth/downloader/fakepeer.go index d35c60be34..4d7c5ac280 100644 --- a/eth/downloader/fakepeer.go +++ b/eth/downloader/fakepeer.go @@ -19,10 +19,10 @@ package downloader import ( "math/big" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/core" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/ethdb" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/core" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/ethdb" ) // FakePeer is a mock downloader peer that operates on a local database instance diff --git a/eth/downloader/metrics.go b/eth/downloader/metrics.go index db080e4d08..eb52d4d0ee 100644 --- a/eth/downloader/metrics.go +++ b/eth/downloader/metrics.go @@ -19,7 +19,7 @@ package downloader import ( - "github.com/tomochain/go-tomochain/metrics" + "github.com/tomochain/tomochain/metrics" ) var ( diff --git a/eth/downloader/peer.go b/eth/downloader/peer.go index 7e43d09917..bef44a761c 100644 --- a/eth/downloader/peer.go +++ b/eth/downloader/peer.go @@ -29,9 +29,9 @@ import ( "sync/atomic" "time" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/event" - "github.com/tomochain/go-tomochain/log" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/event" + "github.com/tomochain/tomochain/log" ) const ( diff --git a/eth/downloader/queue.go b/eth/downloader/queue.go index 9f1923856d..0ed4e75faa 100644 --- a/eth/downloader/queue.go +++ b/eth/downloader/queue.go @@ -25,10 +25,10 @@ import ( "sync" "time" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/log" - "github.com/tomochain/go-tomochain/metrics" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/log" + "github.com/tomochain/tomochain/metrics" "gopkg.in/karalabe/cookiejar.v2/collections/prque" ) diff --git a/eth/downloader/statesync.go b/eth/downloader/statesync.go index 12a4bb346f..e23a6d810f 100644 --- a/eth/downloader/statesync.go +++ b/eth/downloader/statesync.go @@ -22,13 +22,13 @@ import ( "sync" "time" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/core" - "github.com/tomochain/go-tomochain/core/state" - "github.com/tomochain/go-tomochain/crypto/sha3" - "github.com/tomochain/go-tomochain/ethdb" - "github.com/tomochain/go-tomochain/log" - "github.com/tomochain/go-tomochain/trie" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/core" + "github.com/tomochain/tomochain/core/state" + "github.com/tomochain/tomochain/crypto/sha3" + "github.com/tomochain/tomochain/ethdb" + "github.com/tomochain/tomochain/log" + "github.com/tomochain/tomochain/trie" ) // stateReq represents a batch of state fetch requests groupped together into diff --git a/eth/downloader/types.go b/eth/downloader/types.go index ef4e46b792..5574abdc4b 100644 --- a/eth/downloader/types.go +++ b/eth/downloader/types.go @@ -19,7 +19,7 @@ package downloader import ( "fmt" - "github.com/tomochain/go-tomochain/core/types" + "github.com/tomochain/tomochain/core/types" ) // peerDropFn is a callback type for dropping a peer detected as malicious. diff --git a/eth/fetcher/fetcher.go b/eth/fetcher/fetcher.go index 9f5271bab9..65b15094d2 100644 --- a/eth/fetcher/fetcher.go +++ b/eth/fetcher/fetcher.go @@ -23,10 +23,10 @@ import ( "math/rand" "time" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/consensus" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/log" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/consensus" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/log" "gopkg.in/karalabe/cookiejar.v2/collections/prque" ) diff --git a/eth/fetcher/fetcher_test.go b/eth/fetcher/fetcher_test.go index 7f7bf4e605..f3946b9ce7 100644 --- a/eth/fetcher/fetcher_test.go +++ b/eth/fetcher/fetcher_test.go @@ -24,13 +24,13 @@ import ( "testing" "time" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/consensus/ethash" - "github.com/tomochain/go-tomochain/core" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/crypto" - "github.com/tomochain/go-tomochain/ethdb" - "github.com/tomochain/go-tomochain/params" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/consensus/ethash" + "github.com/tomochain/tomochain/core" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/crypto" + "github.com/tomochain/tomochain/ethdb" + "github.com/tomochain/tomochain/params" ) var ( diff --git a/eth/fetcher/metrics.go b/eth/fetcher/metrics.go index 6a96bd3607..5038acb1c0 100644 --- a/eth/fetcher/metrics.go +++ b/eth/fetcher/metrics.go @@ -19,7 +19,7 @@ package fetcher import ( - "github.com/tomochain/go-tomochain/metrics" + "github.com/tomochain/tomochain/metrics" ) var ( diff --git a/eth/filters/api.go b/eth/filters/api.go index 0831b07423..72c811313e 100644 --- a/eth/filters/api.go +++ b/eth/filters/api.go @@ -25,13 +25,13 @@ import ( "sync" "time" - ethereum "github.com/tomochain/go-tomochain" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/common/hexutil" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/ethdb" - "github.com/tomochain/go-tomochain/event" - "github.com/tomochain/go-tomochain/rpc" + ethereum "github.com/tomochain/tomochain" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/common/hexutil" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/ethdb" + "github.com/tomochain/tomochain/event" + "github.com/tomochain/tomochain/rpc" ) var ( diff --git a/eth/filters/api_test.go b/eth/filters/api_test.go index 8b50501829..bfaa185ca7 100644 --- a/eth/filters/api_test.go +++ b/eth/filters/api_test.go @@ -21,8 +21,8 @@ import ( "fmt" "testing" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/rpc" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/rpc" ) func TestUnmarshalJSONNewFilterArgs(t *testing.T) { diff --git a/eth/filters/bench_test.go b/eth/filters/bench_test.go index bcbff3fed2..1e94b673b7 100644 --- a/eth/filters/bench_test.go +++ b/eth/filters/bench_test.go @@ -23,14 +23,14 @@ import ( "testing" "time" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/common/bitutil" - "github.com/tomochain/go-tomochain/core" - "github.com/tomochain/go-tomochain/core/bloombits" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/ethdb" - "github.com/tomochain/go-tomochain/event" - "github.com/tomochain/go-tomochain/node" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/common/bitutil" + "github.com/tomochain/tomochain/core" + "github.com/tomochain/tomochain/core/bloombits" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/ethdb" + "github.com/tomochain/tomochain/event" + "github.com/tomochain/tomochain/node" ) func BenchmarkBloomBits512(b *testing.B) { diff --git a/eth/filters/filter.go b/eth/filters/filter.go index 477b19c3c4..534439074a 100644 --- a/eth/filters/filter.go +++ b/eth/filters/filter.go @@ -20,13 +20,13 @@ import ( "context" "math/big" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/core" - "github.com/tomochain/go-tomochain/core/bloombits" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/ethdb" - "github.com/tomochain/go-tomochain/event" - "github.com/tomochain/go-tomochain/rpc" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/core" + "github.com/tomochain/tomochain/core/bloombits" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/ethdb" + "github.com/tomochain/tomochain/event" + "github.com/tomochain/tomochain/rpc" ) type Backend interface { diff --git a/eth/filters/filter_system.go b/eth/filters/filter_system.go index 78c18f148a..3d92fc1ac7 100644 --- a/eth/filters/filter_system.go +++ b/eth/filters/filter_system.go @@ -25,12 +25,12 @@ import ( "sync" "time" - ethereum "github.com/tomochain/go-tomochain" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/core" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/event" - "github.com/tomochain/go-tomochain/rpc" + ethereum "github.com/tomochain/tomochain" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/core" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/event" + "github.com/tomochain/tomochain/rpc" ) // Type determines the kind of filter and is used to put the filter in to diff --git a/eth/filters/filter_system_test.go b/eth/filters/filter_system_test.go index 101037894b..9662e019ab 100644 --- a/eth/filters/filter_system_test.go +++ b/eth/filters/filter_system_test.go @@ -25,16 +25,16 @@ import ( "testing" "time" - ethereum "github.com/tomochain/go-tomochain" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/consensus/ethash" - "github.com/tomochain/go-tomochain/core" - "github.com/tomochain/go-tomochain/core/bloombits" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/ethdb" - "github.com/tomochain/go-tomochain/event" - "github.com/tomochain/go-tomochain/params" - "github.com/tomochain/go-tomochain/rpc" + ethereum "github.com/tomochain/tomochain" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/consensus/ethash" + "github.com/tomochain/tomochain/core" + "github.com/tomochain/tomochain/core/bloombits" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/ethdb" + "github.com/tomochain/tomochain/event" + "github.com/tomochain/tomochain/params" + "github.com/tomochain/tomochain/rpc" ) type testBackend struct { diff --git a/eth/filters/filter_test.go b/eth/filters/filter_test.go index 846f562cef..bb86212dc4 100644 --- a/eth/filters/filter_test.go +++ b/eth/filters/filter_test.go @@ -23,14 +23,14 @@ import ( "os" "testing" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/consensus/ethash" - "github.com/tomochain/go-tomochain/core" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/crypto" - "github.com/tomochain/go-tomochain/ethdb" - "github.com/tomochain/go-tomochain/event" - "github.com/tomochain/go-tomochain/params" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/consensus/ethash" + "github.com/tomochain/tomochain/core" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/crypto" + "github.com/tomochain/tomochain/ethdb" + "github.com/tomochain/tomochain/event" + "github.com/tomochain/tomochain/params" ) func makeReceipt(addr common.Address) *types.Receipt { diff --git a/eth/gasprice/gasprice.go b/eth/gasprice/gasprice.go index 41d860263d..46b4f21005 100644 --- a/eth/gasprice/gasprice.go +++ b/eth/gasprice/gasprice.go @@ -22,11 +22,11 @@ import ( "sort" "sync" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/internal/ethapi" - "github.com/tomochain/go-tomochain/params" - "github.com/tomochain/go-tomochain/rpc" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/internal/ethapi" + "github.com/tomochain/tomochain/params" + "github.com/tomochain/tomochain/rpc" ) var maxPrice = big.NewInt(500 * params.Shannon) diff --git a/eth/gen_config.go b/eth/gen_config.go index e9f95e1891..5464b7a792 100644 --- a/eth/gen_config.go +++ b/eth/gen_config.go @@ -5,12 +5,12 @@ package eth import ( "math/big" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/common/hexutil" - "github.com/tomochain/go-tomochain/consensus/ethash" - "github.com/tomochain/go-tomochain/core" - "github.com/tomochain/go-tomochain/eth/downloader" - "github.com/tomochain/go-tomochain/eth/gasprice" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/common/hexutil" + "github.com/tomochain/tomochain/consensus/ethash" + "github.com/tomochain/tomochain/core" + "github.com/tomochain/tomochain/eth/downloader" + "github.com/tomochain/tomochain/eth/gasprice" ) var _ = (*configMarshaling)(nil) diff --git a/eth/handler.go b/eth/handler.go index fb919dc2d0..bc592641a9 100644 --- a/eth/handler.go +++ b/eth/handler.go @@ -27,20 +27,20 @@ import ( lru "github.com/hashicorp/golang-lru" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/consensus" - "github.com/tomochain/go-tomochain/consensus/misc" - "github.com/tomochain/go-tomochain/core" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/eth/downloader" - "github.com/tomochain/go-tomochain/eth/fetcher" - "github.com/tomochain/go-tomochain/ethdb" - "github.com/tomochain/go-tomochain/event" - "github.com/tomochain/go-tomochain/log" - "github.com/tomochain/go-tomochain/p2p" - "github.com/tomochain/go-tomochain/p2p/discover" - "github.com/tomochain/go-tomochain/params" - "github.com/tomochain/go-tomochain/rlp" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/consensus" + "github.com/tomochain/tomochain/consensus/misc" + "github.com/tomochain/tomochain/core" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/eth/downloader" + "github.com/tomochain/tomochain/eth/fetcher" + "github.com/tomochain/tomochain/ethdb" + "github.com/tomochain/tomochain/event" + "github.com/tomochain/tomochain/log" + "github.com/tomochain/tomochain/p2p" + "github.com/tomochain/tomochain/p2p/discover" + "github.com/tomochain/tomochain/params" + "github.com/tomochain/tomochain/rlp" ) const ( diff --git a/eth/handler_test.go b/eth/handler_test.go index c0199f5771..3af7d7a5b5 100644 --- a/eth/handler_test.go +++ b/eth/handler_test.go @@ -23,18 +23,18 @@ import ( "testing" "time" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/consensus/ethash" - "github.com/tomochain/go-tomochain/core" - "github.com/tomochain/go-tomochain/core/state" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/core/vm" - "github.com/tomochain/go-tomochain/crypto" - "github.com/tomochain/go-tomochain/eth/downloader" - "github.com/tomochain/go-tomochain/ethdb" - "github.com/tomochain/go-tomochain/event" - "github.com/tomochain/go-tomochain/p2p" - "github.com/tomochain/go-tomochain/params" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/consensus/ethash" + "github.com/tomochain/tomochain/core" + "github.com/tomochain/tomochain/core/state" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/core/vm" + "github.com/tomochain/tomochain/crypto" + "github.com/tomochain/tomochain/eth/downloader" + "github.com/tomochain/tomochain/ethdb" + "github.com/tomochain/tomochain/event" + "github.com/tomochain/tomochain/p2p" + "github.com/tomochain/tomochain/params" ) // Tests that protocol versions and modes of operations are matched up properly. diff --git a/eth/helper_test.go b/eth/helper_test.go index b370a4dfd8..34ad0f4563 100644 --- a/eth/helper_test.go +++ b/eth/helper_test.go @@ -27,18 +27,18 @@ import ( "sync" "testing" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/consensus/ethash" - "github.com/tomochain/go-tomochain/core" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/core/vm" - "github.com/tomochain/go-tomochain/crypto" - "github.com/tomochain/go-tomochain/eth/downloader" - "github.com/tomochain/go-tomochain/ethdb" - "github.com/tomochain/go-tomochain/event" - "github.com/tomochain/go-tomochain/p2p" - "github.com/tomochain/go-tomochain/p2p/discover" - "github.com/tomochain/go-tomochain/params" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/consensus/ethash" + "github.com/tomochain/tomochain/core" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/core/vm" + "github.com/tomochain/tomochain/crypto" + "github.com/tomochain/tomochain/eth/downloader" + "github.com/tomochain/tomochain/ethdb" + "github.com/tomochain/tomochain/event" + "github.com/tomochain/tomochain/p2p" + "github.com/tomochain/tomochain/p2p/discover" + "github.com/tomochain/tomochain/params" ) var ( diff --git a/eth/metrics.go b/eth/metrics.go index 3bbcb86220..95f40a6b01 100644 --- a/eth/metrics.go +++ b/eth/metrics.go @@ -17,8 +17,8 @@ package eth import ( - "github.com/tomochain/go-tomochain/metrics" - "github.com/tomochain/go-tomochain/p2p" + "github.com/tomochain/tomochain/metrics" + "github.com/tomochain/tomochain/p2p" ) var ( diff --git a/eth/peer.go b/eth/peer.go index ddb5a018fe..9f35bc6dd5 100644 --- a/eth/peer.go +++ b/eth/peer.go @@ -23,10 +23,10 @@ import ( "sync" "time" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/p2p" - "github.com/tomochain/go-tomochain/rlp" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/p2p" + "github.com/tomochain/tomochain/rlp" mapset "github.com/deckarep/golang-set" ) diff --git a/eth/protocol.go b/eth/protocol.go index ff15964325..f6249b4dbb 100644 --- a/eth/protocol.go +++ b/eth/protocol.go @@ -21,11 +21,11 @@ import ( "io" "math/big" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/core" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/event" - "github.com/tomochain/go-tomochain/rlp" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/core" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/event" + "github.com/tomochain/tomochain/rlp" ) // Constants to match up protocol versions and messages diff --git a/eth/protocol_test.go b/eth/protocol_test.go index 24d923eece..f9e6183aa1 100644 --- a/eth/protocol_test.go +++ b/eth/protocol_test.go @@ -22,12 +22,12 @@ import ( "testing" "time" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/crypto" - "github.com/tomochain/go-tomochain/eth/downloader" - "github.com/tomochain/go-tomochain/p2p" - "github.com/tomochain/go-tomochain/rlp" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/crypto" + "github.com/tomochain/tomochain/eth/downloader" + "github.com/tomochain/tomochain/p2p" + "github.com/tomochain/tomochain/rlp" ) func init() { diff --git a/eth/sync.go b/eth/sync.go index c5c6c60c50..a1224b3caf 100644 --- a/eth/sync.go +++ b/eth/sync.go @@ -21,11 +21,11 @@ import ( "sync/atomic" "time" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/eth/downloader" - "github.com/tomochain/go-tomochain/log" - "github.com/tomochain/go-tomochain/p2p/discover" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/eth/downloader" + "github.com/tomochain/tomochain/log" + "github.com/tomochain/tomochain/p2p/discover" ) const ( diff --git a/eth/sync_test.go b/eth/sync_test.go index bc02551747..9b447f2a1c 100644 --- a/eth/sync_test.go +++ b/eth/sync_test.go @@ -21,9 +21,9 @@ import ( "testing" "time" - "github.com/tomochain/go-tomochain/eth/downloader" - "github.com/tomochain/go-tomochain/p2p" - "github.com/tomochain/go-tomochain/p2p/discover" + "github.com/tomochain/tomochain/eth/downloader" + "github.com/tomochain/tomochain/p2p" + "github.com/tomochain/tomochain/p2p/discover" ) // Tests that fast sync gets disabled as soon as a real block is successfully diff --git a/eth/tracers/tracer.go b/eth/tracers/tracer.go index 0f2555d827..b226d1db27 100644 --- a/eth/tracers/tracer.go +++ b/eth/tracers/tracer.go @@ -25,11 +25,11 @@ import ( "time" "unsafe" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/common/hexutil" - "github.com/tomochain/go-tomochain/core/vm" - "github.com/tomochain/go-tomochain/crypto" - "github.com/tomochain/go-tomochain/log" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/common/hexutil" + "github.com/tomochain/tomochain/core/vm" + "github.com/tomochain/tomochain/crypto" + "github.com/tomochain/tomochain/log" duktape "gopkg.in/olebedev/go-duktape.v3" ) diff --git a/eth/tracers/tracer_test.go b/eth/tracers/tracer_test.go index 312b58a890..10326edb6e 100644 --- a/eth/tracers/tracer_test.go +++ b/eth/tracers/tracer_test.go @@ -24,9 +24,9 @@ import ( "testing" "time" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/core/vm" - "github.com/tomochain/go-tomochain/params" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/core/vm" + "github.com/tomochain/tomochain/params" ) type account struct{} diff --git a/eth/tracers/tracers.go b/eth/tracers/tracers.go index 39cade2374..e22bf6f29e 100644 --- a/eth/tracers/tracers.go +++ b/eth/tracers/tracers.go @@ -21,7 +21,7 @@ import ( "strings" "unicode" - "github.com/tomochain/go-tomochain/eth/tracers/internal/tracers" + "github.com/tomochain/tomochain/eth/tracers/internal/tracers" ) // all contains all the built in JavaScript tracers by name. diff --git a/eth/tracers/tracers_test.go b/eth/tracers/tracers_test.go index 05f7538e21..9d936b42ce 100644 --- a/eth/tracers/tracers_test.go +++ b/eth/tracers/tracers_test.go @@ -25,15 +25,15 @@ import ( "strings" "testing" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/common/hexutil" - "github.com/tomochain/go-tomochain/common/math" - "github.com/tomochain/go-tomochain/core" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/core/vm" - "github.com/tomochain/go-tomochain/ethdb" - "github.com/tomochain/go-tomochain/rlp" - "github.com/tomochain/go-tomochain/tests" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/common/hexutil" + "github.com/tomochain/tomochain/common/math" + "github.com/tomochain/tomochain/core" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/core/vm" + "github.com/tomochain/tomochain/ethdb" + "github.com/tomochain/tomochain/rlp" + "github.com/tomochain/tomochain/tests" ) // To generate a new callTracer test, copy paste the makeTest method below into diff --git a/ethclient/ethclient.go b/ethclient/ethclient.go index 20dd9564ff..3c7dc79a19 100644 --- a/ethclient/ethclient.go +++ b/ethclient/ethclient.go @@ -24,12 +24,12 @@ import ( "fmt" "math/big" - "github.com/tomochain/go-tomochain" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/common/hexutil" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/rlp" - "github.com/tomochain/go-tomochain/rpc" + "github.com/tomochain/tomochain" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/common/hexutil" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/rlp" + "github.com/tomochain/tomochain/rpc" ) // Client defines typed wrappers for the Ethereum RPC API. diff --git a/ethclient/ethclient_test.go b/ethclient/ethclient_test.go index 9b905b221c..56841d61c2 100644 --- a/ethclient/ethclient_test.go +++ b/ethclient/ethclient_test.go @@ -16,7 +16,7 @@ package ethclient -import "github.com/tomochain/go-tomochain" +import "github.com/tomochain/tomochain" // Verify that Client implements the ethereum interfaces. var ( diff --git a/ethclient/signer.go b/ethclient/signer.go index fef36eb9e0..664fdc6693 100644 --- a/ethclient/signer.go +++ b/ethclient/signer.go @@ -20,8 +20,8 @@ import ( "errors" "math/big" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/core/types" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/core/types" ) // senderFromServer is a types.Signer that remembers the sender address returned by the RPC diff --git a/ethdb/database.go b/ethdb/database.go index 2f0b6b2fe8..99c980b4ce 100644 --- a/ethdb/database.go +++ b/ethdb/database.go @@ -22,8 +22,8 @@ import ( "sync" "time" - "github.com/tomochain/go-tomochain/log" - "github.com/tomochain/go-tomochain/metrics" + "github.com/tomochain/tomochain/log" + "github.com/tomochain/tomochain/metrics" "github.com/syndtr/goleveldb/leveldb" "github.com/syndtr/goleveldb/leveldb/errors" "github.com/syndtr/goleveldb/leveldb/filter" diff --git a/ethdb/database_test.go b/ethdb/database_test.go index 4f7fe519db..a7c9aefaee 100644 --- a/ethdb/database_test.go +++ b/ethdb/database_test.go @@ -25,7 +25,7 @@ import ( "sync" "testing" - "github.com/tomochain/go-tomochain/ethdb" + "github.com/tomochain/tomochain/ethdb" ) func newTestLDB() (*ethdb.LDBDatabase, func()) { diff --git a/ethdb/interface.go b/ethdb/interface.go index f446a8eeb7..95f7067073 100644 --- a/ethdb/interface.go +++ b/ethdb/interface.go @@ -16,7 +16,7 @@ package ethdb -import "github.com/tomochain/go-tomochain/common" +import "github.com/tomochain/tomochain/common" // Code using batches should try to add this much data to the batch. // The value was determined empirically. diff --git a/ethdb/memory_database.go b/ethdb/memory_database.go index f4f8980589..b858bee822 100644 --- a/ethdb/memory_database.go +++ b/ethdb/memory_database.go @@ -20,7 +20,7 @@ import ( "errors" "sync" - "github.com/tomochain/go-tomochain/common" + "github.com/tomochain/tomochain/common" ) /* diff --git a/ethstats/ethstats.go b/ethstats/ethstats.go index 439fe76e4c..5181b9bbca 100644 --- a/ethstats/ethstats.go +++ b/ethstats/ethstats.go @@ -30,17 +30,17 @@ import ( "strings" "time" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/common/mclock" - "github.com/tomochain/go-tomochain/consensus" - "github.com/tomochain/go-tomochain/core" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/eth" - "github.com/tomochain/go-tomochain/event" - "github.com/tomochain/go-tomochain/les" - "github.com/tomochain/go-tomochain/log" - "github.com/tomochain/go-tomochain/p2p" - "github.com/tomochain/go-tomochain/rpc" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/common/mclock" + "github.com/tomochain/tomochain/consensus" + "github.com/tomochain/tomochain/core" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/eth" + "github.com/tomochain/tomochain/event" + "github.com/tomochain/tomochain/les" + "github.com/tomochain/tomochain/log" + "github.com/tomochain/tomochain/p2p" + "github.com/tomochain/tomochain/rpc" "golang.org/x/net/websocket" ) diff --git a/event/example_feed_test.go b/event/example_feed_test.go index 573d5728cf..ebd83c4176 100644 --- a/event/example_feed_test.go +++ b/event/example_feed_test.go @@ -19,7 +19,7 @@ package event_test import ( "fmt" - "github.com/tomochain/go-tomochain/event" + "github.com/tomochain/tomochain/event" ) func ExampleFeed_acknowledgedEvents() { diff --git a/event/example_scope_test.go b/event/example_scope_test.go index 03ffb824ac..50e343d1b3 100644 --- a/event/example_scope_test.go +++ b/event/example_scope_test.go @@ -20,7 +20,7 @@ import ( "fmt" "sync" - "github.com/tomochain/go-tomochain/event" + "github.com/tomochain/tomochain/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 fca4d55f38..18552affb0 100644 --- a/event/example_subscription_test.go +++ b/event/example_subscription_test.go @@ -19,7 +19,7 @@ package event_test import ( "fmt" - "github.com/tomochain/go-tomochain/event" + "github.com/tomochain/tomochain/event" ) func ExampleNewSubscription() { diff --git a/event/subscription.go b/event/subscription.go index 43c89025dd..55c3fa6a31 100644 --- a/event/subscription.go +++ b/event/subscription.go @@ -21,7 +21,7 @@ import ( "sync" "time" - "github.com/tomochain/go-tomochain/common/mclock" + "github.com/tomochain/tomochain/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 174ec9f55b..01da2608af 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/tomochain/go-tomochain +module github.com/tomochain/tomochain go 1.13 diff --git a/interfaces.go b/interfaces.go index fb7371d404..a999869c1d 100644 --- a/interfaces.go +++ b/interfaces.go @@ -22,8 +22,8 @@ import ( "errors" "math/big" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/core/types" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/core/types" ) // NotFound is returned by API methods if the requested item does not exist. diff --git a/internal/build/env.go b/internal/build/env.go index b3e6d24d51..8b27617484 100644 --- a/internal/build/env.go +++ b/internal/build/env.go @@ -81,7 +81,7 @@ func Env() Environment { // LocalEnv returns build environment metadata gathered from git. func LocalEnv() Environment { - env := applyEnvFlags(Environment{Name: "local", Repo: "tomochain/go-tomochain"}) + env := applyEnvFlags(Environment{Name: "local", Repo: "tomochain/tomochain"}) head := readGitFile("HEAD") if splits := strings.Split(head, " "); len(splits) == 2 { diff --git a/internal/debug/api.go b/internal/debug/api.go index 81bd97cd25..9d97327d85 100644 --- a/internal/debug/api.go +++ b/internal/debug/api.go @@ -33,7 +33,7 @@ import ( "sync" "time" - "github.com/tomochain/go-tomochain/log" + "github.com/tomochain/tomochain/log" ) // Handler is the global debugging handler. diff --git a/internal/debug/flags.go b/internal/debug/flags.go index 408f5226e3..815fe6d1ca 100644 --- a/internal/debug/flags.go +++ b/internal/debug/flags.go @@ -24,10 +24,10 @@ import ( "os" "runtime" - "github.com/tomochain/go-tomochain/log" - "github.com/tomochain/go-tomochain/log/term" - "github.com/tomochain/go-tomochain/metrics" - "github.com/tomochain/go-tomochain/metrics/exp" + "github.com/tomochain/tomochain/log" + "github.com/tomochain/tomochain/log/term" + "github.com/tomochain/tomochain/metrics" + "github.com/tomochain/tomochain/metrics/exp" colorable "github.com/mattn/go-colorable" "gopkg.in/urfave/cli.v1" ) diff --git a/internal/debug/trace.go b/internal/debug/trace.go index 3d78e2f9ca..efc042c699 100644 --- a/internal/debug/trace.go +++ b/internal/debug/trace.go @@ -23,7 +23,7 @@ import ( "os" "runtime/trace" - "github.com/tomochain/go-tomochain/log" + "github.com/tomochain/tomochain/log" ) // StartGoTrace turns on tracing, writing to the given file. diff --git a/internal/ethapi/addrlock.go b/internal/ethapi/addrlock.go index 5523977b12..5bf39e22f0 100644 --- a/internal/ethapi/addrlock.go +++ b/internal/ethapi/addrlock.go @@ -19,7 +19,7 @@ package ethapi import ( "sync" - "github.com/tomochain/go-tomochain/common" + "github.com/tomochain/tomochain/common" ) type AddrLocker struct { diff --git a/internal/ethapi/api.go b/internal/ethapi/api.go index 60664347e3..43ded17f1d 100644 --- a/internal/ethapi/api.go +++ b/internal/ethapi/api.go @@ -21,31 +21,31 @@ import ( "context" "errors" "fmt" - "github.com/ethereum/go-tomochain/tomox/tomox_state" + "github.com/ethereum/tomochain/tomox/tomox_state" "math/big" "sort" "strings" "time" - "github.com/tomochain/go-tomochain/accounts" - "github.com/tomochain/go-tomochain/accounts/abi/bind" - "github.com/tomochain/go-tomochain/accounts/keystore" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/common/hexutil" - "github.com/tomochain/go-tomochain/common/math" - "github.com/tomochain/go-tomochain/consensus/ethash" - "github.com/tomochain/go-tomochain/consensus/posv" - contractValidator "github.com/tomochain/go-tomochain/contracts/validator/contract" - "github.com/tomochain/go-tomochain/core" - "github.com/tomochain/go-tomochain/core/state" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/core/vm" - "github.com/tomochain/go-tomochain/crypto" - "github.com/tomochain/go-tomochain/log" - "github.com/tomochain/go-tomochain/p2p" - "github.com/tomochain/go-tomochain/params" - "github.com/tomochain/go-tomochain/rlp" - "github.com/tomochain/go-tomochain/rpc" + "github.com/tomochain/tomochain/accounts" + "github.com/tomochain/tomochain/accounts/abi/bind" + "github.com/tomochain/tomochain/accounts/keystore" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/common/hexutil" + "github.com/tomochain/tomochain/common/math" + "github.com/tomochain/tomochain/consensus/ethash" + "github.com/tomochain/tomochain/consensus/posv" + contractValidator "github.com/tomochain/tomochain/contracts/validator/contract" + "github.com/tomochain/tomochain/core" + "github.com/tomochain/tomochain/core/state" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/core/vm" + "github.com/tomochain/tomochain/crypto" + "github.com/tomochain/tomochain/log" + "github.com/tomochain/tomochain/p2p" + "github.com/tomochain/tomochain/params" + "github.com/tomochain/tomochain/rlp" + "github.com/tomochain/tomochain/rpc" "github.com/syndtr/goleveldb/leveldb" "github.com/syndtr/goleveldb/leveldb/util" ) diff --git a/internal/ethapi/backend.go b/internal/ethapi/backend.go index 4c02496565..cf675926d5 100644 --- a/internal/ethapi/backend.go +++ b/internal/ethapi/backend.go @@ -19,22 +19,22 @@ package ethapi import ( "context" - "github.com/tomochain/go-tomochain/tomox" + "github.com/tomochain/tomochain/tomox" "math/big" - "github.com/tomochain/go-tomochain/accounts" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/consensus" - "github.com/tomochain/go-tomochain/core" - "github.com/tomochain/go-tomochain/core/state" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/core/vm" - "github.com/tomochain/go-tomochain/eth/downloader" - "github.com/tomochain/go-tomochain/ethclient" - "github.com/tomochain/go-tomochain/ethdb" - "github.com/tomochain/go-tomochain/event" - "github.com/tomochain/go-tomochain/params" - "github.com/tomochain/go-tomochain/rpc" + "github.com/tomochain/tomochain/accounts" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/consensus" + "github.com/tomochain/tomochain/core" + "github.com/tomochain/tomochain/core/state" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/core/vm" + "github.com/tomochain/tomochain/eth/downloader" + "github.com/tomochain/tomochain/ethclient" + "github.com/tomochain/tomochain/ethdb" + "github.com/tomochain/tomochain/event" + "github.com/tomochain/tomochain/params" + "github.com/tomochain/tomochain/rpc" ) // Backend interface provides the common API services (that are provided by diff --git a/internal/guide/guide_test.go b/internal/guide/guide_test.go index 606e8ba873..8b82725811 100644 --- a/internal/guide/guide_test.go +++ b/internal/guide/guide_test.go @@ -30,8 +30,8 @@ import ( "testing" "time" - "github.com/tomochain/go-tomochain/accounts/keystore" - "github.com/tomochain/go-tomochain/core/types" + "github.com/tomochain/tomochain/accounts/keystore" + "github.com/tomochain/tomochain/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 6d52e53dc4..30a48b851f 100644 --- a/internal/jsre/deps/web3.js +++ b/internal/jsre/deps/web3.js @@ -5942,7 +5942,7 @@ module.exports = Shh; * @author Alex Beregszaszi * @date 2016 * - * Reference: https://github.com/tomochain/go-tomochain/blob/swarm/internal/web3ext/web3ext.go#L33 + * Reference: https://github.com/tomochain/tomochain/blob/swarm/internal/web3ext/web3ext.go#L33 */ "use strict"; diff --git a/internal/jsre/jsre.go b/internal/jsre/jsre.go index 82fffdcfc6..7f292e7f7b 100644 --- a/internal/jsre/jsre.go +++ b/internal/jsre/jsre.go @@ -26,8 +26,8 @@ import ( "math/rand" "time" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/internal/jsre/deps" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/internal/jsre/deps" "github.com/robertkrimen/otto" ) diff --git a/les/api_backend.go b/les/api_backend.go index 6a331abcf5..4e061b9c61 100644 --- a/les/api_backend.go +++ b/les/api_backend.go @@ -20,28 +20,28 @@ import ( "context" "encoding/json" "errors" - "github.com/tomochain/go-tomochain/tomox" + "github.com/tomochain/tomochain/tomox" "io/ioutil" "math/big" "path/filepath" - "github.com/tomochain/go-tomochain/accounts" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/common/math" - "github.com/tomochain/go-tomochain/consensus" - "github.com/tomochain/go-tomochain/core" - "github.com/tomochain/go-tomochain/core/bloombits" - "github.com/tomochain/go-tomochain/core/state" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/core/vm" - "github.com/tomochain/go-tomochain/eth/downloader" - "github.com/tomochain/go-tomochain/eth/gasprice" - "github.com/tomochain/go-tomochain/ethclient" - "github.com/tomochain/go-tomochain/ethdb" - "github.com/tomochain/go-tomochain/event" - "github.com/tomochain/go-tomochain/light" - "github.com/tomochain/go-tomochain/params" - "github.com/tomochain/go-tomochain/rpc" + "github.com/tomochain/tomochain/accounts" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/common/math" + "github.com/tomochain/tomochain/consensus" + "github.com/tomochain/tomochain/core" + "github.com/tomochain/tomochain/core/bloombits" + "github.com/tomochain/tomochain/core/state" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/core/vm" + "github.com/tomochain/tomochain/eth/downloader" + "github.com/tomochain/tomochain/eth/gasprice" + "github.com/tomochain/tomochain/ethclient" + "github.com/tomochain/tomochain/ethdb" + "github.com/tomochain/tomochain/event" + "github.com/tomochain/tomochain/light" + "github.com/tomochain/tomochain/params" + "github.com/tomochain/tomochain/rpc" ) type LesApiBackend struct { diff --git a/les/backend.go b/les/backend.go index 1119918a93..cdd44ff04c 100644 --- a/les/backend.go +++ b/les/backend.go @@ -22,27 +22,27 @@ import ( "sync" "time" - "github.com/tomochain/go-tomochain/accounts" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/common/hexutil" - "github.com/tomochain/go-tomochain/consensus" - "github.com/tomochain/go-tomochain/core" - "github.com/tomochain/go-tomochain/core/bloombits" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/eth" - "github.com/tomochain/go-tomochain/eth/downloader" - "github.com/tomochain/go-tomochain/eth/filters" - "github.com/tomochain/go-tomochain/eth/gasprice" - "github.com/tomochain/go-tomochain/ethdb" - "github.com/tomochain/go-tomochain/event" - "github.com/tomochain/go-tomochain/internal/ethapi" - "github.com/tomochain/go-tomochain/light" - "github.com/tomochain/go-tomochain/log" - "github.com/tomochain/go-tomochain/node" - "github.com/tomochain/go-tomochain/p2p" - "github.com/tomochain/go-tomochain/p2p/discv5" - "github.com/tomochain/go-tomochain/params" - rpc "github.com/tomochain/go-tomochain/rpc" + "github.com/tomochain/tomochain/accounts" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/common/hexutil" + "github.com/tomochain/tomochain/consensus" + "github.com/tomochain/tomochain/core" + "github.com/tomochain/tomochain/core/bloombits" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/eth" + "github.com/tomochain/tomochain/eth/downloader" + "github.com/tomochain/tomochain/eth/filters" + "github.com/tomochain/tomochain/eth/gasprice" + "github.com/tomochain/tomochain/ethdb" + "github.com/tomochain/tomochain/event" + "github.com/tomochain/tomochain/internal/ethapi" + "github.com/tomochain/tomochain/light" + "github.com/tomochain/tomochain/log" + "github.com/tomochain/tomochain/node" + "github.com/tomochain/tomochain/p2p" + "github.com/tomochain/tomochain/p2p/discv5" + "github.com/tomochain/tomochain/params" + rpc "github.com/tomochain/tomochain/rpc" ) type LightEthereum struct { diff --git a/les/bloombits.go b/les/bloombits.go index 66cc54b20e..4a3b49f02d 100644 --- a/les/bloombits.go +++ b/les/bloombits.go @@ -19,8 +19,8 @@ package les import ( "time" - "github.com/tomochain/go-tomochain/common/bitutil" - "github.com/tomochain/go-tomochain/light" + "github.com/tomochain/tomochain/common/bitutil" + "github.com/tomochain/tomochain/light" ) const ( diff --git a/les/fetcher.go b/les/fetcher.go index 9e04d7dd5c..7edfe808bb 100644 --- a/les/fetcher.go +++ b/les/fetcher.go @@ -22,13 +22,13 @@ import ( "sync" "time" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/common/mclock" - "github.com/tomochain/go-tomochain/consensus" - "github.com/tomochain/go-tomochain/core" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/light" - "github.com/tomochain/go-tomochain/log" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/common/mclock" + "github.com/tomochain/tomochain/consensus" + "github.com/tomochain/tomochain/core" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/light" + "github.com/tomochain/tomochain/log" ) const ( diff --git a/les/flowcontrol/control.go b/les/flowcontrol/control.go index 1dd3553d10..e647bfe44b 100644 --- a/les/flowcontrol/control.go +++ b/les/flowcontrol/control.go @@ -21,7 +21,7 @@ import ( "sync" "time" - "github.com/tomochain/go-tomochain/common/mclock" + "github.com/tomochain/tomochain/common/mclock" ) const fcTimeConst = time.Millisecond diff --git a/les/flowcontrol/manager.go b/les/flowcontrol/manager.go index 6961d05dd1..4229b3c43e 100644 --- a/les/flowcontrol/manager.go +++ b/les/flowcontrol/manager.go @@ -21,7 +21,7 @@ import ( "sync" "time" - "github.com/tomochain/go-tomochain/common/mclock" + "github.com/tomochain/tomochain/common/mclock" ) const rcConst = 1000000 diff --git a/les/handler.go b/les/handler.go index 4c6bc6ab0d..57d35a4859 100644 --- a/les/handler.go +++ b/les/handler.go @@ -26,22 +26,22 @@ import ( "sync" "time" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/consensus" - "github.com/tomochain/go-tomochain/core" - "github.com/tomochain/go-tomochain/core/state" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/eth/downloader" - "github.com/tomochain/go-tomochain/ethdb" - "github.com/tomochain/go-tomochain/event" - "github.com/tomochain/go-tomochain/light" - "github.com/tomochain/go-tomochain/log" - "github.com/tomochain/go-tomochain/p2p" - "github.com/tomochain/go-tomochain/p2p/discover" - "github.com/tomochain/go-tomochain/p2p/discv5" - "github.com/tomochain/go-tomochain/params" - "github.com/tomochain/go-tomochain/rlp" - "github.com/tomochain/go-tomochain/trie" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/consensus" + "github.com/tomochain/tomochain/core" + "github.com/tomochain/tomochain/core/state" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/eth/downloader" + "github.com/tomochain/tomochain/ethdb" + "github.com/tomochain/tomochain/event" + "github.com/tomochain/tomochain/light" + "github.com/tomochain/tomochain/log" + "github.com/tomochain/tomochain/p2p" + "github.com/tomochain/tomochain/p2p/discover" + "github.com/tomochain/tomochain/p2p/discv5" + "github.com/tomochain/tomochain/params" + "github.com/tomochain/tomochain/rlp" + "github.com/tomochain/tomochain/trie" ) const ( diff --git a/les/handler_test.go b/les/handler_test.go index 7e1b5d995a..76ed58218b 100644 --- a/les/handler_test.go +++ b/les/handler_test.go @@ -23,18 +23,18 @@ import ( "testing" "time" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/consensus/ethash" - "github.com/tomochain/go-tomochain/core" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/crypto" - "github.com/tomochain/go-tomochain/eth/downloader" - "github.com/tomochain/go-tomochain/ethdb" - "github.com/tomochain/go-tomochain/light" - "github.com/tomochain/go-tomochain/p2p" - "github.com/tomochain/go-tomochain/params" - "github.com/tomochain/go-tomochain/rlp" - "github.com/tomochain/go-tomochain/trie" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/consensus/ethash" + "github.com/tomochain/tomochain/core" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/crypto" + "github.com/tomochain/tomochain/eth/downloader" + "github.com/tomochain/tomochain/ethdb" + "github.com/tomochain/tomochain/light" + "github.com/tomochain/tomochain/p2p" + "github.com/tomochain/tomochain/params" + "github.com/tomochain/tomochain/rlp" + "github.com/tomochain/tomochain/trie" ) func expectResponse(r p2p.MsgReader, msgcode, reqID, bv uint64, data interface{}) error { diff --git a/les/helper_test.go b/les/helper_test.go index 52b1a1e76e..67a932b4ec 100644 --- a/les/helper_test.go +++ b/les/helper_test.go @@ -25,20 +25,20 @@ import ( "sync" "testing" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/consensus/ethash" - "github.com/tomochain/go-tomochain/core" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/core/vm" - "github.com/tomochain/go-tomochain/crypto" - "github.com/tomochain/go-tomochain/eth" - "github.com/tomochain/go-tomochain/ethdb" - "github.com/tomochain/go-tomochain/event" - "github.com/tomochain/go-tomochain/les/flowcontrol" - "github.com/tomochain/go-tomochain/light" - "github.com/tomochain/go-tomochain/p2p" - "github.com/tomochain/go-tomochain/p2p/discover" - "github.com/tomochain/go-tomochain/params" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/consensus/ethash" + "github.com/tomochain/tomochain/core" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/core/vm" + "github.com/tomochain/tomochain/crypto" + "github.com/tomochain/tomochain/eth" + "github.com/tomochain/tomochain/ethdb" + "github.com/tomochain/tomochain/event" + "github.com/tomochain/tomochain/les/flowcontrol" + "github.com/tomochain/tomochain/light" + "github.com/tomochain/tomochain/p2p" + "github.com/tomochain/tomochain/p2p/discover" + "github.com/tomochain/tomochain/params" ) var ( diff --git a/les/metrics.go b/les/metrics.go index c0a5927800..eff4c681fb 100644 --- a/les/metrics.go +++ b/les/metrics.go @@ -17,8 +17,8 @@ package les import ( - "github.com/tomochain/go-tomochain/metrics" - "github.com/tomochain/go-tomochain/p2p" + "github.com/tomochain/tomochain/metrics" + "github.com/tomochain/tomochain/p2p" ) var ( diff --git a/les/odr.go b/les/odr.go index b528f9a80a..fb86cc7d4a 100644 --- a/les/odr.go +++ b/les/odr.go @@ -19,10 +19,10 @@ package les import ( "context" - "github.com/tomochain/go-tomochain/core" - "github.com/tomochain/go-tomochain/ethdb" - "github.com/tomochain/go-tomochain/light" - "github.com/tomochain/go-tomochain/log" + "github.com/tomochain/tomochain/core" + "github.com/tomochain/tomochain/ethdb" + "github.com/tomochain/tomochain/light" + "github.com/tomochain/tomochain/log" ) // LesOdr implements light.OdrBackend diff --git a/les/odr_requests.go b/les/odr_requests.go index ec55ac263b..092d1476ff 100644 --- a/les/odr_requests.go +++ b/les/odr_requests.go @@ -23,15 +23,15 @@ import ( "errors" "fmt" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/core" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/crypto" - "github.com/tomochain/go-tomochain/ethdb" - "github.com/tomochain/go-tomochain/light" - "github.com/tomochain/go-tomochain/log" - "github.com/tomochain/go-tomochain/rlp" - "github.com/tomochain/go-tomochain/trie" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/core" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/crypto" + "github.com/tomochain/tomochain/ethdb" + "github.com/tomochain/tomochain/light" + "github.com/tomochain/tomochain/log" + "github.com/tomochain/tomochain/rlp" + "github.com/tomochain/tomochain/trie" ) var ( diff --git a/les/odr_test.go b/les/odr_test.go index c0262f59ec..57dec4803f 100644 --- a/les/odr_test.go +++ b/les/odr_test.go @@ -23,17 +23,17 @@ import ( "testing" "time" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/common/math" - "github.com/tomochain/go-tomochain/core" - "github.com/tomochain/go-tomochain/core/state" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/core/vm" - "github.com/tomochain/go-tomochain/eth" - "github.com/tomochain/go-tomochain/ethdb" - "github.com/tomochain/go-tomochain/light" - "github.com/tomochain/go-tomochain/params" - "github.com/tomochain/go-tomochain/rlp" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/common/math" + "github.com/tomochain/tomochain/core" + "github.com/tomochain/tomochain/core/state" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/core/vm" + "github.com/tomochain/tomochain/eth" + "github.com/tomochain/tomochain/ethdb" + "github.com/tomochain/tomochain/light" + "github.com/tomochain/tomochain/params" + "github.com/tomochain/tomochain/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 059a243226..2723003ec2 100644 --- a/les/peer.go +++ b/les/peer.go @@ -26,13 +26,13 @@ import ( "sync" "time" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/eth" - "github.com/tomochain/go-tomochain/les/flowcontrol" - "github.com/tomochain/go-tomochain/light" - "github.com/tomochain/go-tomochain/p2p" - "github.com/tomochain/go-tomochain/rlp" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/eth" + "github.com/tomochain/tomochain/les/flowcontrol" + "github.com/tomochain/tomochain/light" + "github.com/tomochain/tomochain/p2p" + "github.com/tomochain/tomochain/rlp" ) var ( diff --git a/les/protocol.go b/les/protocol.go index bcc2e96675..9ca62e73e3 100644 --- a/les/protocol.go +++ b/les/protocol.go @@ -26,11 +26,11 @@ import ( "io" "math/big" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/core" - "github.com/tomochain/go-tomochain/crypto" - "github.com/tomochain/go-tomochain/crypto/secp256k1" - "github.com/tomochain/go-tomochain/rlp" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/core" + "github.com/tomochain/tomochain/crypto" + "github.com/tomochain/tomochain/crypto/secp256k1" + "github.com/tomochain/tomochain/rlp" ) // Constants to match up protocol versions and messages diff --git a/les/request_test.go b/les/request_test.go index 6ec8929730..3787c540e2 100644 --- a/les/request_test.go +++ b/les/request_test.go @@ -21,12 +21,12 @@ import ( "testing" "time" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/core" - "github.com/tomochain/go-tomochain/crypto" - "github.com/tomochain/go-tomochain/eth" - "github.com/tomochain/go-tomochain/ethdb" - "github.com/tomochain/go-tomochain/light" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/core" + "github.com/tomochain/tomochain/crypto" + "github.com/tomochain/tomochain/eth" + "github.com/tomochain/tomochain/ethdb" + "github.com/tomochain/tomochain/light" ) var testBankSecureTrieKey = secAddr(testBankAddress) diff --git a/les/retrieve.go b/les/retrieve.go index 9f2e7eac1e..1d3f1fef6f 100644 --- a/les/retrieve.go +++ b/les/retrieve.go @@ -26,7 +26,7 @@ import ( "sync" "time" - "github.com/tomochain/go-tomochain/common/mclock" + "github.com/tomochain/tomochain/common/mclock" ) var ( diff --git a/les/server.go b/les/server.go index f0abf0a6d3..b56d2cad4b 100644 --- a/les/server.go +++ b/les/server.go @@ -23,17 +23,17 @@ import ( "math" "sync" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/core" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/eth" - "github.com/tomochain/go-tomochain/ethdb" - "github.com/tomochain/go-tomochain/les/flowcontrol" - "github.com/tomochain/go-tomochain/light" - "github.com/tomochain/go-tomochain/log" - "github.com/tomochain/go-tomochain/p2p" - "github.com/tomochain/go-tomochain/p2p/discv5" - "github.com/tomochain/go-tomochain/rlp" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/core" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/eth" + "github.com/tomochain/tomochain/ethdb" + "github.com/tomochain/tomochain/les/flowcontrol" + "github.com/tomochain/tomochain/light" + "github.com/tomochain/tomochain/log" + "github.com/tomochain/tomochain/p2p" + "github.com/tomochain/tomochain/p2p/discv5" + "github.com/tomochain/tomochain/rlp" ) type LesServer struct { diff --git a/les/serverpool.go b/les/serverpool.go index 24df3f07c1..313de65e90 100644 --- a/les/serverpool.go +++ b/les/serverpool.go @@ -27,13 +27,13 @@ import ( "sync" "time" - "github.com/tomochain/go-tomochain/common/mclock" - "github.com/tomochain/go-tomochain/ethdb" - "github.com/tomochain/go-tomochain/log" - "github.com/tomochain/go-tomochain/p2p" - "github.com/tomochain/go-tomochain/p2p/discover" - "github.com/tomochain/go-tomochain/p2p/discv5" - "github.com/tomochain/go-tomochain/rlp" + "github.com/tomochain/tomochain/common/mclock" + "github.com/tomochain/tomochain/ethdb" + "github.com/tomochain/tomochain/log" + "github.com/tomochain/tomochain/p2p" + "github.com/tomochain/tomochain/p2p/discover" + "github.com/tomochain/tomochain/p2p/discv5" + "github.com/tomochain/tomochain/rlp" ) const ( diff --git a/les/sync.go b/les/sync.go index 7b041f4687..8e3cd47ca3 100644 --- a/les/sync.go +++ b/les/sync.go @@ -20,9 +20,9 @@ import ( "context" "time" - "github.com/tomochain/go-tomochain/core" - "github.com/tomochain/go-tomochain/eth/downloader" - "github.com/tomochain/go-tomochain/light" + "github.com/tomochain/tomochain/core" + "github.com/tomochain/tomochain/eth/downloader" + "github.com/tomochain/tomochain/light" ) const ( diff --git a/les/txrelay.go b/les/txrelay.go index 7fe8027170..2b603ebe39 100644 --- a/les/txrelay.go +++ b/les/txrelay.go @@ -19,8 +19,8 @@ package les import ( "sync" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/core/types" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/core/types" ) type ltrInfo struct { diff --git a/light/lightchain.go b/light/lightchain.go index e3d3cd339b..00749a254b 100644 --- a/light/lightchain.go +++ b/light/lightchain.go @@ -24,16 +24,16 @@ import ( "sync/atomic" "time" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/consensus" - "github.com/tomochain/go-tomochain/core" - "github.com/tomochain/go-tomochain/core/state" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/ethdb" - "github.com/tomochain/go-tomochain/event" - "github.com/tomochain/go-tomochain/log" - "github.com/tomochain/go-tomochain/params" - "github.com/tomochain/go-tomochain/rlp" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/consensus" + "github.com/tomochain/tomochain/core" + "github.com/tomochain/tomochain/core/state" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/ethdb" + "github.com/tomochain/tomochain/event" + "github.com/tomochain/tomochain/log" + "github.com/tomochain/tomochain/params" + "github.com/tomochain/tomochain/rlp" "github.com/hashicorp/golang-lru" ) diff --git a/light/lightchain_test.go b/light/lightchain_test.go index 11b63bfff5..9b4a1944ac 100644 --- a/light/lightchain_test.go +++ b/light/lightchain_test.go @@ -21,12 +21,12 @@ import ( "math/big" "testing" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/consensus/ethash" - "github.com/tomochain/go-tomochain/core" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/ethdb" - "github.com/tomochain/go-tomochain/params" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/consensus/ethash" + "github.com/tomochain/tomochain/core" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/ethdb" + "github.com/tomochain/tomochain/params" ) // So we can deterministically seed different blockchains diff --git a/light/nodeset.go b/light/nodeset.go index b04c6add84..45621ee06e 100644 --- a/light/nodeset.go +++ b/light/nodeset.go @@ -20,10 +20,10 @@ import ( "errors" "sync" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/crypto" - "github.com/tomochain/go-tomochain/ethdb" - "github.com/tomochain/go-tomochain/rlp" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/crypto" + "github.com/tomochain/tomochain/ethdb" + "github.com/tomochain/tomochain/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 03870db868..b5591fdd93 100644 --- a/light/odr.go +++ b/light/odr.go @@ -22,10 +22,10 @@ import ( "context" "math/big" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/core" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/ethdb" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/core" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/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 de3076d982..bda992cb63 100644 --- a/light/odr_test.go +++ b/light/odr_test.go @@ -25,18 +25,18 @@ import ( "testing" "time" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/common/math" - "github.com/tomochain/go-tomochain/consensus/ethash" - "github.com/tomochain/go-tomochain/core" - "github.com/tomochain/go-tomochain/core/state" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/core/vm" - "github.com/tomochain/go-tomochain/crypto" - "github.com/tomochain/go-tomochain/ethdb" - "github.com/tomochain/go-tomochain/params" - "github.com/tomochain/go-tomochain/rlp" - "github.com/tomochain/go-tomochain/trie" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/common/math" + "github.com/tomochain/tomochain/consensus/ethash" + "github.com/tomochain/tomochain/core" + "github.com/tomochain/tomochain/core/state" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/core/vm" + "github.com/tomochain/tomochain/crypto" + "github.com/tomochain/tomochain/ethdb" + "github.com/tomochain/tomochain/params" + "github.com/tomochain/tomochain/rlp" + "github.com/tomochain/tomochain/trie" ) var ( diff --git a/light/odr_util.go b/light/odr_util.go index 7377e953ae..89a63eb2b9 100644 --- a/light/odr_util.go +++ b/light/odr_util.go @@ -20,11 +20,11 @@ import ( "bytes" "context" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/core" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/crypto" - "github.com/tomochain/go-tomochain/rlp" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/core" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/crypto" + "github.com/tomochain/tomochain/rlp" ) var sha3_nil = crypto.Keccak256Hash(nil) diff --git a/light/postprocess.go b/light/postprocess.go index fbb2526e7f..c9aaf45a5e 100644 --- a/light/postprocess.go +++ b/light/postprocess.go @@ -22,15 +22,15 @@ import ( "math/big" "time" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/common/bitutil" - "github.com/tomochain/go-tomochain/core" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/ethdb" - "github.com/tomochain/go-tomochain/log" - "github.com/tomochain/go-tomochain/params" - "github.com/tomochain/go-tomochain/rlp" - "github.com/tomochain/go-tomochain/trie" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/common/bitutil" + "github.com/tomochain/tomochain/core" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/ethdb" + "github.com/tomochain/tomochain/log" + "github.com/tomochain/tomochain/params" + "github.com/tomochain/tomochain/rlp" + "github.com/tomochain/tomochain/trie" ) const ( diff --git a/light/trie.go b/light/trie.go index ba751019cd..ab1e9e4c85 100644 --- a/light/trie.go +++ b/light/trie.go @@ -21,12 +21,12 @@ import ( "errors" "fmt" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/core/state" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/crypto" - "github.com/tomochain/go-tomochain/ethdb" - "github.com/tomochain/go-tomochain/trie" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/core/state" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/crypto" + "github.com/tomochain/tomochain/ethdb" + "github.com/tomochain/tomochain/trie" ) func NewState(ctx context.Context, head *types.Header, odr OdrBackend) *state.StateDB { diff --git a/light/trie_test.go b/light/trie_test.go index a629c8581c..620beb8d39 100644 --- a/light/trie_test.go +++ b/light/trie_test.go @@ -23,13 +23,13 @@ import ( "testing" "github.com/davecgh/go-spew/spew" - "github.com/tomochain/go-tomochain/consensus/ethash" - "github.com/tomochain/go-tomochain/core" - "github.com/tomochain/go-tomochain/core/state" - "github.com/tomochain/go-tomochain/core/vm" - "github.com/tomochain/go-tomochain/ethdb" - "github.com/tomochain/go-tomochain/params" - "github.com/tomochain/go-tomochain/trie" + "github.com/tomochain/tomochain/consensus/ethash" + "github.com/tomochain/tomochain/core" + "github.com/tomochain/tomochain/core/state" + "github.com/tomochain/tomochain/core/vm" + "github.com/tomochain/tomochain/ethdb" + "github.com/tomochain/tomochain/params" + "github.com/tomochain/tomochain/trie" ) func TestNodeIterator(t *testing.T) { diff --git a/light/txpool.go b/light/txpool.go index accd606c55..014848cf3a 100644 --- a/light/txpool.go +++ b/light/txpool.go @@ -22,15 +22,15 @@ import ( "sync" "time" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/core" - "github.com/tomochain/go-tomochain/core/state" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/ethdb" - "github.com/tomochain/go-tomochain/event" - "github.com/tomochain/go-tomochain/log" - "github.com/tomochain/go-tomochain/params" - "github.com/tomochain/go-tomochain/rlp" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/core" + "github.com/tomochain/tomochain/core/state" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/ethdb" + "github.com/tomochain/tomochain/event" + "github.com/tomochain/tomochain/log" + "github.com/tomochain/tomochain/params" + "github.com/tomochain/tomochain/rlp" ) const ( diff --git a/light/txpool_test.go b/light/txpool_test.go index f8737aa297..31b49ff942 100644 --- a/light/txpool_test.go +++ b/light/txpool_test.go @@ -23,13 +23,13 @@ import ( "testing" "time" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/consensus/ethash" - "github.com/tomochain/go-tomochain/core" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/core/vm" - "github.com/tomochain/go-tomochain/ethdb" - "github.com/tomochain/go-tomochain/params" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/consensus/ethash" + "github.com/tomochain/tomochain/core" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/core/vm" + "github.com/tomochain/tomochain/ethdb" + "github.com/tomochain/tomochain/params" ) type testTxRelay struct { diff --git a/log/format.go b/log/format.go index ae1a4ca9b6..83eec99ada 100644 --- a/log/format.go +++ b/log/format.go @@ -22,7 +22,7 @@ const ( // locationTrims are trimmed for display to avoid unwieldy log lines. var locationTrims = []string{ - "github.com/tomochain/go-tomochain/", + "github.com/tomochain/tomochain/", } // PrintOrigins sets or unsets log location (file:line) printing for terminal diff --git a/metrics/exp/exp.go b/metrics/exp/exp.go index b466ef51b2..e25026d6ef 100644 --- a/metrics/exp/exp.go +++ b/metrics/exp/exp.go @@ -8,7 +8,7 @@ import ( "net/http" "sync" - "github.com/tomochain/go-tomochain/metrics" + "github.com/tomochain/tomochain/metrics" ) type exp struct { diff --git a/metrics/influxdb/influxdb.go b/metrics/influxdb/influxdb.go index 2b716336f9..e907f0386b 100644 --- a/metrics/influxdb/influxdb.go +++ b/metrics/influxdb/influxdb.go @@ -6,7 +6,7 @@ import ( uurl "net/url" "time" - "github.com/tomochain/go-tomochain/metrics" + "github.com/tomochain/tomochain/metrics" "github.com/influxdata/influxdb/client" ) diff --git a/metrics/librato/librato.go b/metrics/librato/librato.go index e3ddce3c2d..23ebd71f5d 100644 --- a/metrics/librato/librato.go +++ b/metrics/librato/librato.go @@ -7,7 +7,7 @@ import ( "regexp" "time" - "github.com/tomochain/go-tomochain/metrics" + "github.com/tomochain/tomochain/metrics" ) // a regexp for extracting the unit from time.Duration.String diff --git a/metrics/metrics.go b/metrics/metrics.go index 0de77be383..5e4612dd13 100644 --- a/metrics/metrics.go +++ b/metrics/metrics.go @@ -11,7 +11,7 @@ import ( "strings" "time" - "github.com/tomochain/go-tomochain/log" + "github.com/tomochain/tomochain/log" ) // Enabled is checked by the constructor functions for all of the diff --git a/miner/agent.go b/miner/agent.go index 6aeeae2f32..06492c8b3a 100644 --- a/miner/agent.go +++ b/miner/agent.go @@ -21,8 +21,8 @@ import ( "sync/atomic" - "github.com/tomochain/go-tomochain/consensus" - "github.com/tomochain/go-tomochain/log" + "github.com/tomochain/tomochain/consensus" + "github.com/tomochain/tomochain/log" ) type CpuAgent struct { diff --git a/miner/miner.go b/miner/miner.go index 55510edba3..75740b906d 100644 --- a/miner/miner.go +++ b/miner/miner.go @@ -21,18 +21,18 @@ import ( "fmt" "sync/atomic" - "github.com/tomochain/go-tomochain/accounts" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/consensus" - "github.com/tomochain/go-tomochain/core" - "github.com/tomochain/go-tomochain/core/state" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/eth/downloader" - "github.com/tomochain/go-tomochain/ethdb" - "github.com/tomochain/go-tomochain/event" - "github.com/tomochain/go-tomochain/log" - "github.com/tomochain/go-tomochain/params" - "github.com/tomochain/go-tomochain/tomox" + "github.com/tomochain/tomochain/accounts" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/consensus" + "github.com/tomochain/tomochain/core" + "github.com/tomochain/tomochain/core/state" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/eth/downloader" + "github.com/tomochain/tomochain/ethdb" + "github.com/tomochain/tomochain/event" + "github.com/tomochain/tomochain/log" + "github.com/tomochain/tomochain/params" + "github.com/tomochain/tomochain/tomox" ) // Backend wraps all methods required for mining. diff --git a/miner/remote_agent.go b/miner/remote_agent.go index 629573c675..d4eed6e1d9 100644 --- a/miner/remote_agent.go +++ b/miner/remote_agent.go @@ -23,11 +23,11 @@ import ( "sync/atomic" "time" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/consensus" - "github.com/tomochain/go-tomochain/consensus/ethash" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/log" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/consensus" + "github.com/tomochain/tomochain/consensus/ethash" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/log" ) type hashrate struct { diff --git a/miner/unconfirmed.go b/miner/unconfirmed.go index e75faa77ff..8b25e7ea2b 100644 --- a/miner/unconfirmed.go +++ b/miner/unconfirmed.go @@ -20,9 +20,9 @@ import ( "container/ring" "sync" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/log" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/log" ) // headerRetriever 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 035048b1de..3c8093e9fe 100644 --- a/miner/unconfirmed_test.go +++ b/miner/unconfirmed_test.go @@ -19,8 +19,8 @@ package miner import ( "testing" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/core/types" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/core/types" ) // noopHeaderRetriever is an implementation of headerRetriever that always diff --git a/miner/worker.go b/miner/worker.go index 45e316eaac..c43dd6c803 100644 --- a/miner/worker.go +++ b/miner/worker.go @@ -27,22 +27,22 @@ import ( "sync/atomic" "time" - "github.com/ethereum/go-tomochain/tomox/tomox_state" - - "github.com/tomochain/go-tomochain/accounts" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/consensus" - "github.com/tomochain/go-tomochain/consensus/misc" - "github.com/tomochain/go-tomochain/consensus/posv" - "github.com/tomochain/go-tomochain/contracts" - "github.com/tomochain/go-tomochain/core" - "github.com/tomochain/go-tomochain/core/state" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/core/vm" - "github.com/tomochain/go-tomochain/ethdb" - "github.com/tomochain/go-tomochain/event" - "github.com/tomochain/go-tomochain/log" - "github.com/tomochain/go-tomochain/params" + "github.com/ethereum/tomochain/tomox/tomox_state" + + "github.com/tomochain/tomochain/accounts" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/consensus" + "github.com/tomochain/tomochain/consensus/misc" + "github.com/tomochain/tomochain/consensus/posv" + "github.com/tomochain/tomochain/contracts" + "github.com/tomochain/tomochain/core" + "github.com/tomochain/tomochain/core/state" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/core/vm" + "github.com/tomochain/tomochain/ethdb" + "github.com/tomochain/tomochain/event" + "github.com/tomochain/tomochain/log" + "github.com/tomochain/tomochain/params" mapset "github.com/deckarep/golang-set" ) diff --git a/mobile/accounts.go b/mobile/accounts.go index cd534b0c0f..7bcde6e379 100644 --- a/mobile/accounts.go +++ b/mobile/accounts.go @@ -23,10 +23,10 @@ import ( "errors" "time" - "github.com/tomochain/go-tomochain/accounts" - "github.com/tomochain/go-tomochain/accounts/keystore" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/crypto" + "github.com/tomochain/tomochain/accounts" + "github.com/tomochain/tomochain/accounts/keystore" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/crypto" ) const ( diff --git a/mobile/android_test.go b/mobile/android_test.go index 1911414e28..763031e50d 100644 --- a/mobile/android_test.go +++ b/mobile/android_test.go @@ -25,7 +25,7 @@ import ( "testing" "time" - "github.com/tomochain/go-tomochain/internal/build" + "github.com/tomochain/tomochain/internal/build" ) // androidTestClass is a Java class to do some lightweight tests against the Android @@ -207,7 +207,7 @@ func TestAndroid(t *testing.T) { } } // Generate the mobile bindings for Geth and add the tester class - gobind := exec.Command("gomobile", "bind", "-javapkg", "org.ethereum", "github.com/tomochain/go-tomochain/mobile") + gobind := exec.Command("gomobile", "bind", "-javapkg", "org.ethereum", "github.com/tomochain/tomochain/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 654979d5e6..0e439d36cf 100644 --- a/mobile/big.go +++ b/mobile/big.go @@ -22,7 +22,7 @@ import ( "errors" "math/big" - "github.com/tomochain/go-tomochain/common" + "github.com/tomochain/tomochain/common" ) // A BigInt represents a signed multi-precision integer. diff --git a/mobile/bind.go b/mobile/bind.go index 11427e8d04..606a26ae79 100644 --- a/mobile/bind.go +++ b/mobile/bind.go @@ -22,10 +22,10 @@ import ( "math/big" "strings" - "github.com/tomochain/go-tomochain/accounts/abi" - "github.com/tomochain/go-tomochain/accounts/abi/bind" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/core/types" + "github.com/tomochain/tomochain/accounts/abi" + "github.com/tomochain/tomochain/accounts/abi/bind" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/core/types" ) // Signer is an interaface defining the callback when a contract requires a diff --git a/mobile/common.go b/mobile/common.go index b09bd50704..20d14de233 100644 --- a/mobile/common.go +++ b/mobile/common.go @@ -24,7 +24,7 @@ import ( "fmt" "strings" - "github.com/tomochain/go-tomochain/common" + "github.com/tomochain/tomochain/common" ) // Hash represents the 32 byte Keccak256 hash of arbitrary data. diff --git a/mobile/discover.go b/mobile/discover.go index 29fc8ffd7d..d06d319218 100644 --- a/mobile/discover.go +++ b/mobile/discover.go @@ -22,7 +22,7 @@ package geth import ( "errors" - "github.com/tomochain/go-tomochain/p2p/discv5" + "github.com/tomochain/tomochain/p2p/discv5" ) // Enode represents a host on the network. diff --git a/mobile/ethclient.go b/mobile/ethclient.go index 88ccf7f096..7cf58083a3 100644 --- a/mobile/ethclient.go +++ b/mobile/ethclient.go @@ -21,8 +21,8 @@ package geth import ( "math/big" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/ethclient" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/ethclient" ) // EthereumClient provides access to the Ethereum APIs. diff --git a/mobile/ethereum.go b/mobile/ethereum.go index e221e8e23d..1149bfa478 100644 --- a/mobile/ethereum.go +++ b/mobile/ethereum.go @@ -21,8 +21,8 @@ package geth import ( "errors" - ethereum "github.com/tomochain/go-tomochain" - "github.com/tomochain/go-tomochain/common" + ethereum "github.com/tomochain/tomochain" + "github.com/tomochain/tomochain/common" ) // Subscription represents an event subscription where events are diff --git a/mobile/geth.go b/mobile/geth.go index 007631ee21..04d46098d1 100644 --- a/mobile/geth.go +++ b/mobile/geth.go @@ -24,17 +24,17 @@ import ( "fmt" "path/filepath" - "github.com/tomochain/go-tomochain/core" - "github.com/tomochain/go-tomochain/eth" - "github.com/tomochain/go-tomochain/eth/downloader" - "github.com/tomochain/go-tomochain/ethclient" - "github.com/tomochain/go-tomochain/ethstats" - "github.com/tomochain/go-tomochain/les" - "github.com/tomochain/go-tomochain/node" - "github.com/tomochain/go-tomochain/p2p" - "github.com/tomochain/go-tomochain/p2p/nat" - "github.com/tomochain/go-tomochain/params" - whisper "github.com/tomochain/go-tomochain/whisper/whisperv6" + "github.com/tomochain/tomochain/core" + "github.com/tomochain/tomochain/eth" + "github.com/tomochain/tomochain/eth/downloader" + "github.com/tomochain/tomochain/ethclient" + "github.com/tomochain/tomochain/ethstats" + "github.com/tomochain/tomochain/les" + "github.com/tomochain/tomochain/node" + "github.com/tomochain/tomochain/p2p" + "github.com/tomochain/tomochain/p2p/nat" + "github.com/tomochain/tomochain/params" + whisper "github.com/tomochain/tomochain/whisper/whisperv6" ) // NodeConfig represents the collection of configuration values to fine tune the Geth diff --git a/mobile/init.go b/mobile/init.go index cbd0cdba07..39fe0408f0 100644 --- a/mobile/init.go +++ b/mobile/init.go @@ -22,7 +22,7 @@ import ( "os" "runtime" - "github.com/tomochain/go-tomochain/log" + "github.com/tomochain/tomochain/log" ) func init() { diff --git a/mobile/interface.go b/mobile/interface.go index 603107484c..765a684319 100644 --- a/mobile/interface.go +++ b/mobile/interface.go @@ -22,7 +22,7 @@ import ( "errors" "math/big" - "github.com/tomochain/go-tomochain/common" + "github.com/tomochain/tomochain/common" ) // Interface represents a wrapped version of Go's interface{}, with the capacity diff --git a/mobile/logger.go b/mobile/logger.go index 4c031d9367..771e462c7a 100644 --- a/mobile/logger.go +++ b/mobile/logger.go @@ -19,7 +19,7 @@ package geth import ( "os" - "github.com/tomochain/go-tomochain/log" + "github.com/tomochain/tomochain/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 9f33fcd9cb..441f2e269b 100644 --- a/mobile/p2p.go +++ b/mobile/p2p.go @@ -21,7 +21,7 @@ package geth import ( "errors" - "github.com/tomochain/go-tomochain/p2p" + "github.com/tomochain/tomochain/p2p" ) // NodeInfo represents pi short summary of the information known about the host. diff --git a/mobile/params.go b/mobile/params.go index 21404a3d7f..864c3fe805 100644 --- a/mobile/params.go +++ b/mobile/params.go @@ -21,9 +21,9 @@ package geth import ( "encoding/json" - "github.com/tomochain/go-tomochain/core" - "github.com/tomochain/go-tomochain/p2p/discv5" - "github.com/tomochain/go-tomochain/params" + "github.com/tomochain/tomochain/core" + "github.com/tomochain/tomochain/p2p/discv5" + "github.com/tomochain/tomochain/params" ) // MainnetGenesis returns the JSON spec to use for the main Ethereum network. It diff --git a/mobile/types.go b/mobile/types.go index 54df9a23d2..9104f5ecfd 100644 --- a/mobile/types.go +++ b/mobile/types.go @@ -23,9 +23,9 @@ import ( "errors" "fmt" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/rlp" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/rlp" ) // A Nonce is a 64-bit hash which proves (combined with the mix-hash) that diff --git a/mobile/vm.go b/mobile/vm.go index 0ed22c7a8c..a88d5c8312 100644 --- a/mobile/vm.go +++ b/mobile/vm.go @@ -21,7 +21,7 @@ package geth import ( "errors" - "github.com/tomochain/go-tomochain/core/types" + "github.com/tomochain/tomochain/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 6c9d150363..23edbe2b3f 100644 --- a/node/api.go +++ b/node/api.go @@ -22,12 +22,12 @@ import ( "strings" "time" - "github.com/tomochain/go-tomochain/common/hexutil" - "github.com/tomochain/go-tomochain/crypto" - "github.com/tomochain/go-tomochain/metrics" - "github.com/tomochain/go-tomochain/p2p" - "github.com/tomochain/go-tomochain/p2p/discover" - "github.com/tomochain/go-tomochain/rpc" + "github.com/tomochain/tomochain/common/hexutil" + "github.com/tomochain/tomochain/crypto" + "github.com/tomochain/tomochain/metrics" + "github.com/tomochain/tomochain/p2p" + "github.com/tomochain/tomochain/p2p/discover" + "github.com/tomochain/tomochain/rpc" ) // PrivateAdminAPI is the collection of administrative API methods exposed only diff --git a/node/config.go b/node/config.go index a04600dde7..b8ad712fc8 100644 --- a/node/config.go +++ b/node/config.go @@ -25,14 +25,14 @@ import ( "runtime" "strings" - "github.com/tomochain/go-tomochain/accounts" - "github.com/tomochain/go-tomochain/accounts/keystore" - "github.com/tomochain/go-tomochain/accounts/usbwallet" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/crypto" - "github.com/tomochain/go-tomochain/log" - "github.com/tomochain/go-tomochain/p2p" - "github.com/tomochain/go-tomochain/p2p/discover" + "github.com/tomochain/tomochain/accounts" + "github.com/tomochain/tomochain/accounts/keystore" + "github.com/tomochain/tomochain/accounts/usbwallet" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/crypto" + "github.com/tomochain/tomochain/log" + "github.com/tomochain/tomochain/p2p" + "github.com/tomochain/tomochain/p2p/discover" ) const ( diff --git a/node/config_test.go b/node/config_test.go index dfc00cef60..ce15d6df92 100644 --- a/node/config_test.go +++ b/node/config_test.go @@ -24,8 +24,8 @@ import ( "runtime" "testing" - "github.com/tomochain/go-tomochain/crypto" - "github.com/tomochain/go-tomochain/p2p" + "github.com/tomochain/tomochain/crypto" + "github.com/tomochain/tomochain/p2p" ) // Tests that datadirs can be successfully created, be them manually configured diff --git a/node/defaults.go b/node/defaults.go index b28b2ae0fc..8eb84740d8 100644 --- a/node/defaults.go +++ b/node/defaults.go @@ -22,8 +22,8 @@ import ( "path/filepath" "runtime" - "github.com/tomochain/go-tomochain/p2p" - "github.com/tomochain/go-tomochain/p2p/nat" + "github.com/tomochain/tomochain/p2p" + "github.com/tomochain/tomochain/p2p/nat" ) const ( diff --git a/node/node.go b/node/node.go index ddcdee8746..75bf60ede4 100644 --- a/node/node.go +++ b/node/node.go @@ -26,13 +26,13 @@ import ( "strings" "sync" - "github.com/tomochain/go-tomochain/accounts" - "github.com/tomochain/go-tomochain/ethdb" - "github.com/tomochain/go-tomochain/event" - "github.com/tomochain/go-tomochain/internal/debug" - "github.com/tomochain/go-tomochain/log" - "github.com/tomochain/go-tomochain/p2p" - "github.com/tomochain/go-tomochain/rpc" + "github.com/tomochain/tomochain/accounts" + "github.com/tomochain/tomochain/ethdb" + "github.com/tomochain/tomochain/event" + "github.com/tomochain/tomochain/internal/debug" + "github.com/tomochain/tomochain/log" + "github.com/tomochain/tomochain/p2p" + "github.com/tomochain/tomochain/rpc" "github.com/prometheus/prometheus/util/flock" ) diff --git a/node/node_example_test.go b/node/node_example_test.go index c4122a0a59..94044f8f04 100644 --- a/node/node_example_test.go +++ b/node/node_example_test.go @@ -20,9 +20,9 @@ import ( "fmt" "log" - "github.com/tomochain/go-tomochain/node" - "github.com/tomochain/go-tomochain/p2p" - "github.com/tomochain/go-tomochain/rpc" + "github.com/tomochain/tomochain/node" + "github.com/tomochain/tomochain/p2p" + "github.com/tomochain/tomochain/rpc" ) // SampleService is a trivial network service that can be attached to a node for diff --git a/node/node_test.go b/node/node_test.go index 4df3add073..0d80e44101 100644 --- a/node/node_test.go +++ b/node/node_test.go @@ -24,9 +24,9 @@ import ( "testing" "time" - "github.com/tomochain/go-tomochain/crypto" - "github.com/tomochain/go-tomochain/p2p" - "github.com/tomochain/go-tomochain/rpc" + "github.com/tomochain/tomochain/crypto" + "github.com/tomochain/tomochain/p2p" + "github.com/tomochain/tomochain/rpc" ) var ( diff --git a/node/service.go b/node/service.go index b14706530e..e988f11637 100644 --- a/node/service.go +++ b/node/service.go @@ -19,11 +19,11 @@ package node import ( "reflect" - "github.com/tomochain/go-tomochain/accounts" - "github.com/tomochain/go-tomochain/ethdb" - "github.com/tomochain/go-tomochain/event" - "github.com/tomochain/go-tomochain/p2p" - "github.com/tomochain/go-tomochain/rpc" + "github.com/tomochain/tomochain/accounts" + "github.com/tomochain/tomochain/ethdb" + "github.com/tomochain/tomochain/event" + "github.com/tomochain/tomochain/p2p" + "github.com/tomochain/tomochain/rpc" ) // ServiceContext is a collection of service independent options inherited from diff --git a/node/utils_test.go b/node/utils_test.go index f49509f7e4..208b9e9dd9 100644 --- a/node/utils_test.go +++ b/node/utils_test.go @@ -22,8 +22,8 @@ package node import ( "reflect" - "github.com/tomochain/go-tomochain/p2p" - "github.com/tomochain/go-tomochain/rpc" + "github.com/tomochain/tomochain/p2p" + "github.com/tomochain/tomochain/rpc" ) // NoopService is a trivial implementation of the Service interface. diff --git a/p2p/dial.go b/p2p/dial.go index c6bdcf0b64..454d2198c2 100644 --- a/p2p/dial.go +++ b/p2p/dial.go @@ -24,9 +24,9 @@ import ( "net" "time" - "github.com/tomochain/go-tomochain/log" - "github.com/tomochain/go-tomochain/p2p/discover" - "github.com/tomochain/go-tomochain/p2p/netutil" + "github.com/tomochain/tomochain/log" + "github.com/tomochain/tomochain/p2p/discover" + "github.com/tomochain/tomochain/p2p/netutil" ) const ( diff --git a/p2p/dial_test.go b/p2p/dial_test.go index cdb77e7747..362f22c137 100644 --- a/p2p/dial_test.go +++ b/p2p/dial_test.go @@ -24,8 +24,8 @@ import ( "time" "github.com/davecgh/go-spew/spew" - "github.com/tomochain/go-tomochain/p2p/discover" - "github.com/tomochain/go-tomochain/p2p/netutil" + "github.com/tomochain/tomochain/p2p/discover" + "github.com/tomochain/tomochain/p2p/netutil" ) func init() { diff --git a/p2p/discover/database.go b/p2p/discover/database.go index 6be85f4fb2..08ef239fe3 100644 --- a/p2p/discover/database.go +++ b/p2p/discover/database.go @@ -27,9 +27,9 @@ import ( "sync" "time" - "github.com/tomochain/go-tomochain/crypto" - "github.com/tomochain/go-tomochain/log" - "github.com/tomochain/go-tomochain/rlp" + "github.com/tomochain/tomochain/crypto" + "github.com/tomochain/tomochain/log" + "github.com/tomochain/tomochain/rlp" "github.com/syndtr/goleveldb/leveldb" "github.com/syndtr/goleveldb/leveldb/errors" "github.com/syndtr/goleveldb/leveldb/iterator" diff --git a/p2p/discover/node.go b/p2p/discover/node.go index 64b759a63c..839f762278 100644 --- a/p2p/discover/node.go +++ b/p2p/discover/node.go @@ -31,9 +31,9 @@ import ( "strings" "time" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/crypto" - "github.com/tomochain/go-tomochain/crypto/secp256k1" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/crypto" + "github.com/tomochain/tomochain/crypto/secp256k1" ) const NodeIDBits = 512 diff --git a/p2p/discover/node_test.go b/p2p/discover/node_test.go index 0c9fe70257..8e3da2c2aa 100644 --- a/p2p/discover/node_test.go +++ b/p2p/discover/node_test.go @@ -28,8 +28,8 @@ import ( "testing/quick" "time" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/crypto" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/crypto" ) func ExampleNewNode() { diff --git a/p2p/discover/ntp.go b/p2p/discover/ntp.go index 01c4f2b8c5..1391dffbe9 100644 --- a/p2p/discover/ntp.go +++ b/p2p/discover/ntp.go @@ -25,7 +25,7 @@ import ( "sort" "time" - "github.com/tomochain/go-tomochain/log" + "github.com/tomochain/tomochain/log" ) const ( diff --git a/p2p/discover/table.go b/p2p/discover/table.go index 99a07a5d1c..6fdd2cfd19 100644 --- a/p2p/discover/table.go +++ b/p2p/discover/table.go @@ -33,10 +33,10 @@ import ( "sync" "time" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/crypto" - "github.com/tomochain/go-tomochain/log" - "github.com/tomochain/go-tomochain/p2p/netutil" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/crypto" + "github.com/tomochain/tomochain/log" + "github.com/tomochain/tomochain/p2p/netutil" ) const ( diff --git a/p2p/discover/table_test.go b/p2p/discover/table_test.go index 68bc1aefdb..b81b0bfde9 100644 --- a/p2p/discover/table_test.go +++ b/p2p/discover/table_test.go @@ -28,8 +28,8 @@ import ( "testing/quick" "time" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/crypto" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/crypto" ) func TestTable_pingReplace(t *testing.T) { diff --git a/p2p/discover/udp.go b/p2p/discover/udp.go index 9e036925dc..051477cb59 100644 --- a/p2p/discover/udp.go +++ b/p2p/discover/udp.go @@ -25,11 +25,11 @@ import ( "net" "time" - "github.com/tomochain/go-tomochain/crypto" - "github.com/tomochain/go-tomochain/log" - "github.com/tomochain/go-tomochain/p2p/nat" - "github.com/tomochain/go-tomochain/p2p/netutil" - "github.com/tomochain/go-tomochain/rlp" + "github.com/tomochain/tomochain/crypto" + "github.com/tomochain/tomochain/log" + "github.com/tomochain/tomochain/p2p/nat" + "github.com/tomochain/tomochain/p2p/netutil" + "github.com/tomochain/tomochain/rlp" ) const Version = 4 diff --git a/p2p/discover/udp_test.go b/p2p/discover/udp_test.go index bbff323c97..b13a79658d 100644 --- a/p2p/discover/udp_test.go +++ b/p2p/discover/udp_test.go @@ -34,9 +34,9 @@ import ( "time" "github.com/davecgh/go-spew/spew" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/crypto" - "github.com/tomochain/go-tomochain/rlp" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/crypto" + "github.com/tomochain/tomochain/rlp" ) func init() { diff --git a/p2p/discv5/database.go b/p2p/discv5/database.go index 0c8b7a641c..9d4ca7932f 100644 --- a/p2p/discv5/database.go +++ b/p2p/discv5/database.go @@ -28,9 +28,9 @@ import ( "sync" "time" - "github.com/tomochain/go-tomochain/crypto" - "github.com/tomochain/go-tomochain/log" - "github.com/tomochain/go-tomochain/rlp" + "github.com/tomochain/tomochain/crypto" + "github.com/tomochain/tomochain/log" + "github.com/tomochain/tomochain/rlp" "github.com/syndtr/goleveldb/leveldb" "github.com/syndtr/goleveldb/leveldb/errors" "github.com/syndtr/goleveldb/leveldb/iterator" diff --git a/p2p/discv5/net.go b/p2p/discv5/net.go index 6959ccd797..8f1a5d0970 100644 --- a/p2p/discv5/net.go +++ b/p2p/discv5/net.go @@ -24,13 +24,13 @@ import ( "net" "time" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/common/mclock" - "github.com/tomochain/go-tomochain/crypto" - "github.com/tomochain/go-tomochain/crypto/sha3" - "github.com/tomochain/go-tomochain/log" - "github.com/tomochain/go-tomochain/p2p/netutil" - "github.com/tomochain/go-tomochain/rlp" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/common/mclock" + "github.com/tomochain/tomochain/crypto" + "github.com/tomochain/tomochain/crypto/sha3" + "github.com/tomochain/tomochain/log" + "github.com/tomochain/tomochain/p2p/netutil" + "github.com/tomochain/tomochain/rlp" ) var ( diff --git a/p2p/discv5/net_test.go b/p2p/discv5/net_test.go index 22026f85c6..65b07978c4 100644 --- a/p2p/discv5/net_test.go +++ b/p2p/discv5/net_test.go @@ -22,8 +22,8 @@ import ( "testing" "time" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/crypto" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/crypto" ) func TestNetwork_Lookup(t *testing.T) { diff --git a/p2p/discv5/node.go b/p2p/discv5/node.go index 86bf2088e6..860c527159 100644 --- a/p2p/discv5/node.go +++ b/p2p/discv5/node.go @@ -30,8 +30,8 @@ import ( "strconv" "strings" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/crypto" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/crypto" ) // Node represents a host on the network. diff --git a/p2p/discv5/node_test.go b/p2p/discv5/node_test.go index 8aa173a827..a28f298252 100644 --- a/p2p/discv5/node_test.go +++ b/p2p/discv5/node_test.go @@ -27,8 +27,8 @@ import ( "testing/quick" "time" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/crypto" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/crypto" ) func ExampleNewNode() { diff --git a/p2p/discv5/ntp.go b/p2p/discv5/ntp.go index 7794d6c757..42fcaca4fa 100644 --- a/p2p/discv5/ntp.go +++ b/p2p/discv5/ntp.go @@ -26,7 +26,7 @@ import ( "strings" "time" - "github.com/tomochain/go-tomochain/log" + "github.com/tomochain/tomochain/log" ) const ( diff --git a/p2p/discv5/sim_test.go b/p2p/discv5/sim_test.go index b364784ac2..344ede49e0 100644 --- a/p2p/discv5/sim_test.go +++ b/p2p/discv5/sim_test.go @@ -28,7 +28,7 @@ import ( "testing" "time" - "github.com/tomochain/go-tomochain/common" + "github.com/tomochain/tomochain/common" ) // In this test, nodes try to randomly resolve each other. diff --git a/p2p/discv5/table.go b/p2p/discv5/table.go index 26536496e5..871963b7ea 100644 --- a/p2p/discv5/table.go +++ b/p2p/discv5/table.go @@ -29,7 +29,7 @@ import ( "net" "sort" - "github.com/tomochain/go-tomochain/common" + "github.com/tomochain/tomochain/common" ) const ( diff --git a/p2p/discv5/table_test.go b/p2p/discv5/table_test.go index b5df2d65af..ffc928e3fc 100644 --- a/p2p/discv5/table_test.go +++ b/p2p/discv5/table_test.go @@ -27,8 +27,8 @@ import ( "testing/quick" "time" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/crypto" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/crypto" ) type nullTransport struct{} diff --git a/p2p/discv5/ticket.go b/p2p/discv5/ticket.go index 0b64773fc7..f5e7acbf3d 100644 --- a/p2p/discv5/ticket.go +++ b/p2p/discv5/ticket.go @@ -25,10 +25,10 @@ import ( "sort" "time" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/common/mclock" - "github.com/tomochain/go-tomochain/crypto" - "github.com/tomochain/go-tomochain/log" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/common/mclock" + "github.com/tomochain/tomochain/crypto" + "github.com/tomochain/tomochain/log" ) const ( diff --git a/p2p/discv5/topic.go b/p2p/discv5/topic.go index 3b07919533..14af4907c8 100644 --- a/p2p/discv5/topic.go +++ b/p2p/discv5/topic.go @@ -23,8 +23,8 @@ import ( "math/rand" "time" - "github.com/tomochain/go-tomochain/common/mclock" - "github.com/tomochain/go-tomochain/log" + "github.com/tomochain/tomochain/common/mclock" + "github.com/tomochain/tomochain/log" ) const ( diff --git a/p2p/discv5/topic_test.go b/p2p/discv5/topic_test.go index d9601b4534..54559b76eb 100644 --- a/p2p/discv5/topic_test.go +++ b/p2p/discv5/topic_test.go @@ -21,8 +21,8 @@ import ( "testing" "time" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/common/mclock" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/common/mclock" ) func TestTopicRadius(t *testing.T) { diff --git a/p2p/discv5/udp.go b/p2p/discv5/udp.go index d58a894ef8..4c874ff92f 100644 --- a/p2p/discv5/udp.go +++ b/p2p/discv5/udp.go @@ -24,12 +24,12 @@ import ( "net" "time" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/crypto" - "github.com/tomochain/go-tomochain/log" - "github.com/tomochain/go-tomochain/p2p/nat" - "github.com/tomochain/go-tomochain/p2p/netutil" - "github.com/tomochain/go-tomochain/rlp" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/crypto" + "github.com/tomochain/tomochain/log" + "github.com/tomochain/tomochain/p2p/nat" + "github.com/tomochain/tomochain/p2p/netutil" + "github.com/tomochain/tomochain/rlp" ) const Version = 4 diff --git a/p2p/discv5/udp_test.go b/p2p/discv5/udp_test.go index b58a70aa54..9a3095ada5 100644 --- a/p2p/discv5/udp_test.go +++ b/p2p/discv5/udp_test.go @@ -27,9 +27,9 @@ import ( "time" "github.com/davecgh/go-spew/spew" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/crypto" - "github.com/tomochain/go-tomochain/rlp" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/crypto" + "github.com/tomochain/tomochain/rlp" ) func init() { diff --git a/p2p/enr/enr.go b/p2p/enr/enr.go index 6fd8b761e7..fabd08ae26 100644 --- a/p2p/enr/enr.go +++ b/p2p/enr/enr.go @@ -35,9 +35,9 @@ import ( "io" "sort" - "github.com/tomochain/go-tomochain/crypto" - "github.com/tomochain/go-tomochain/crypto/sha3" - "github.com/tomochain/go-tomochain/rlp" + "github.com/tomochain/tomochain/crypto" + "github.com/tomochain/tomochain/crypto/sha3" + "github.com/tomochain/tomochain/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 d548044fe5..7bea5f0795 100644 --- a/p2p/enr/enr_test.go +++ b/p2p/enr/enr_test.go @@ -24,8 +24,8 @@ import ( "testing" "time" - "github.com/tomochain/go-tomochain/crypto" - "github.com/tomochain/go-tomochain/rlp" + "github.com/tomochain/tomochain/crypto" + "github.com/tomochain/tomochain/rlp" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/p2p/enr/entries.go b/p2p/enr/entries.go index 9956c595b8..e31a4901a3 100644 --- a/p2p/enr/entries.go +++ b/p2p/enr/entries.go @@ -22,8 +22,8 @@ import ( "io" "net" - "github.com/tomochain/go-tomochain/crypto" - "github.com/tomochain/go-tomochain/rlp" + "github.com/tomochain/tomochain/crypto" + "github.com/tomochain/tomochain/rlp" ) // Entry is implemented by known node record entry types. diff --git a/p2p/message.go b/p2p/message.go index c1529dde8e..c92b31581d 100644 --- a/p2p/message.go +++ b/p2p/message.go @@ -25,9 +25,9 @@ import ( "sync/atomic" "time" - "github.com/tomochain/go-tomochain/event" - "github.com/tomochain/go-tomochain/p2p/discover" - "github.com/tomochain/go-tomochain/rlp" + "github.com/tomochain/tomochain/event" + "github.com/tomochain/tomochain/p2p/discover" + "github.com/tomochain/tomochain/rlp" ) // Msg defines the structure of a p2p message. diff --git a/p2p/metrics.go b/p2p/metrics.go index af2a420831..905d5f4c19 100644 --- a/p2p/metrics.go +++ b/p2p/metrics.go @@ -21,7 +21,7 @@ package p2p import ( "net" - "github.com/tomochain/go-tomochain/metrics" + "github.com/tomochain/tomochain/metrics" ) var ( diff --git a/p2p/nat/nat.go b/p2p/nat/nat.go index 5deb9d656d..9d7f2c9000 100644 --- a/p2p/nat/nat.go +++ b/p2p/nat/nat.go @@ -25,7 +25,7 @@ import ( "sync" "time" - "github.com/tomochain/go-tomochain/log" + "github.com/tomochain/tomochain/log" "github.com/jackpal/go-nat-pmp" ) diff --git a/p2p/peer.go b/p2p/peer.go index 7bd3f11f98..1852d59bcf 100644 --- a/p2p/peer.go +++ b/p2p/peer.go @@ -24,11 +24,11 @@ import ( "sync" "time" - "github.com/tomochain/go-tomochain/common/mclock" - "github.com/tomochain/go-tomochain/event" - "github.com/tomochain/go-tomochain/log" - "github.com/tomochain/go-tomochain/p2p/discover" - "github.com/tomochain/go-tomochain/rlp" + "github.com/tomochain/tomochain/common/mclock" + "github.com/tomochain/tomochain/event" + "github.com/tomochain/tomochain/log" + "github.com/tomochain/tomochain/p2p/discover" + "github.com/tomochain/tomochain/rlp" ) const ( diff --git a/p2p/protocol.go b/p2p/protocol.go index 41045e944d..dbdb197012 100644 --- a/p2p/protocol.go +++ b/p2p/protocol.go @@ -19,7 +19,7 @@ package p2p import ( "fmt" - "github.com/tomochain/go-tomochain/p2p/discover" + "github.com/tomochain/tomochain/p2p/discover" ) // Protocol represents a P2P subprotocol implementation. diff --git a/p2p/protocols/protocol.go b/p2p/protocols/protocol.go index ff3b43b53c..cb334d318e 100644 --- a/p2p/protocols/protocol.go +++ b/p2p/protocols/protocol.go @@ -34,7 +34,7 @@ import ( "reflect" "sync" - "github.com/tomochain/go-tomochain/p2p" + "github.com/tomochain/tomochain/p2p" ) // error codes used by this protocol scheme diff --git a/p2p/protocols/protocol_test.go b/p2p/protocols/protocol_test.go index 2c0a91553b..286bbf97f5 100644 --- a/p2p/protocols/protocol_test.go +++ b/p2p/protocols/protocol_test.go @@ -23,10 +23,10 @@ import ( "testing" "time" - "github.com/tomochain/go-tomochain/p2p" - "github.com/tomochain/go-tomochain/p2p/discover" - "github.com/tomochain/go-tomochain/p2p/simulations/adapters" - p2ptest "github.com/tomochain/go-tomochain/p2p/testing" + "github.com/tomochain/tomochain/p2p" + "github.com/tomochain/tomochain/p2p/discover" + "github.com/tomochain/tomochain/p2p/simulations/adapters" + p2ptest "github.com/tomochain/tomochain/p2p/testing" ) // handshake message type diff --git a/p2p/rlpx.go b/p2p/rlpx.go index 517c3854ad..8f9e6ba335 100644 --- a/p2p/rlpx.go +++ b/p2p/rlpx.go @@ -35,12 +35,12 @@ import ( "sync" "time" - "github.com/tomochain/go-tomochain/crypto" - "github.com/tomochain/go-tomochain/crypto/ecies" - "github.com/tomochain/go-tomochain/crypto/secp256k1" - "github.com/tomochain/go-tomochain/crypto/sha3" - "github.com/tomochain/go-tomochain/p2p/discover" - "github.com/tomochain/go-tomochain/rlp" + "github.com/tomochain/tomochain/crypto" + "github.com/tomochain/tomochain/crypto/ecies" + "github.com/tomochain/tomochain/crypto/secp256k1" + "github.com/tomochain/tomochain/crypto/sha3" + "github.com/tomochain/tomochain/p2p/discover" + "github.com/tomochain/tomochain/rlp" "github.com/golang/snappy" ) diff --git a/p2p/rlpx_test.go b/p2p/rlpx_test.go index 6e973d5a2a..e86a1fb171 100644 --- a/p2p/rlpx_test.go +++ b/p2p/rlpx_test.go @@ -31,11 +31,11 @@ import ( "time" "github.com/davecgh/go-spew/spew" - "github.com/tomochain/go-tomochain/crypto" - "github.com/tomochain/go-tomochain/crypto/ecies" - "github.com/tomochain/go-tomochain/crypto/sha3" - "github.com/tomochain/go-tomochain/p2p/discover" - "github.com/tomochain/go-tomochain/rlp" + "github.com/tomochain/tomochain/crypto" + "github.com/tomochain/tomochain/crypto/ecies" + "github.com/tomochain/tomochain/crypto/sha3" + "github.com/tomochain/tomochain/p2p/discover" + "github.com/tomochain/tomochain/rlp" ) func TestSharedSecret(t *testing.T) { diff --git a/p2p/server.go b/p2p/server.go index 43109e5158..6a5ea9e613 100644 --- a/p2p/server.go +++ b/p2p/server.go @@ -25,14 +25,14 @@ import ( "sync" "time" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/common/mclock" - "github.com/tomochain/go-tomochain/event" - "github.com/tomochain/go-tomochain/log" - "github.com/tomochain/go-tomochain/p2p/discover" - "github.com/tomochain/go-tomochain/p2p/discv5" - "github.com/tomochain/go-tomochain/p2p/nat" - "github.com/tomochain/go-tomochain/p2p/netutil" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/common/mclock" + "github.com/tomochain/tomochain/event" + "github.com/tomochain/tomochain/log" + "github.com/tomochain/tomochain/p2p/discover" + "github.com/tomochain/tomochain/p2p/discv5" + "github.com/tomochain/tomochain/p2p/nat" + "github.com/tomochain/tomochain/p2p/netutil" ) const ( diff --git a/p2p/server_test.go b/p2p/server_test.go index 262ec8cfc6..b014bd9c3e 100644 --- a/p2p/server_test.go +++ b/p2p/server_test.go @@ -25,10 +25,10 @@ import ( "testing" "time" - "github.com/tomochain/go-tomochain/crypto" - "github.com/tomochain/go-tomochain/crypto/sha3" - "github.com/tomochain/go-tomochain/log" - "github.com/tomochain/go-tomochain/p2p/discover" + "github.com/tomochain/tomochain/crypto" + "github.com/tomochain/tomochain/crypto/sha3" + "github.com/tomochain/tomochain/log" + "github.com/tomochain/tomochain/p2p/discover" ) func init() { diff --git a/p2p/simulations/adapters/docker.go b/p2p/simulations/adapters/docker.go index 2b839fbb38..51469a4a55 100644 --- a/p2p/simulations/adapters/docker.go +++ b/p2p/simulations/adapters/docker.go @@ -28,9 +28,9 @@ import ( "strings" "github.com/docker/docker/pkg/reexec" - "github.com/tomochain/go-tomochain/log" - "github.com/tomochain/go-tomochain/node" - "github.com/tomochain/go-tomochain/p2p/discover" + "github.com/tomochain/tomochain/log" + "github.com/tomochain/tomochain/node" + "github.com/tomochain/tomochain/p2p/discover" ) // DockerAdapter is a NodeAdapter which runs simulation nodes inside Docker diff --git a/p2p/simulations/adapters/exec.go b/p2p/simulations/adapters/exec.go index f00d08e82f..e2da34d0f7 100644 --- a/p2p/simulations/adapters/exec.go +++ b/p2p/simulations/adapters/exec.go @@ -36,11 +36,11 @@ import ( "time" "github.com/docker/docker/pkg/reexec" - "github.com/tomochain/go-tomochain/log" - "github.com/tomochain/go-tomochain/node" - "github.com/tomochain/go-tomochain/p2p" - "github.com/tomochain/go-tomochain/p2p/discover" - "github.com/tomochain/go-tomochain/rpc" + "github.com/tomochain/tomochain/log" + "github.com/tomochain/tomochain/node" + "github.com/tomochain/tomochain/p2p" + "github.com/tomochain/tomochain/p2p/discover" + "github.com/tomochain/tomochain/rpc" "golang.org/x/net/websocket" ) diff --git a/p2p/simulations/adapters/inproc.go b/p2p/simulations/adapters/inproc.go index 07afee966d..5ebfb91094 100644 --- a/p2p/simulations/adapters/inproc.go +++ b/p2p/simulations/adapters/inproc.go @@ -23,12 +23,12 @@ import ( "net" "sync" - "github.com/tomochain/go-tomochain/event" - "github.com/tomochain/go-tomochain/log" - "github.com/tomochain/go-tomochain/node" - "github.com/tomochain/go-tomochain/p2p" - "github.com/tomochain/go-tomochain/p2p/discover" - "github.com/tomochain/go-tomochain/rpc" + "github.com/tomochain/tomochain/event" + "github.com/tomochain/tomochain/log" + "github.com/tomochain/tomochain/node" + "github.com/tomochain/tomochain/p2p" + "github.com/tomochain/tomochain/p2p/discover" + "github.com/tomochain/tomochain/rpc" ) // SimAdapter is a NodeAdapter which creates in-memory simulation nodes and diff --git a/p2p/simulations/adapters/types.go b/p2p/simulations/adapters/types.go index 41f191aea0..f03bbe75b1 100644 --- a/p2p/simulations/adapters/types.go +++ b/p2p/simulations/adapters/types.go @@ -25,11 +25,11 @@ import ( "os" "github.com/docker/docker/pkg/reexec" - "github.com/tomochain/go-tomochain/crypto" - "github.com/tomochain/go-tomochain/node" - "github.com/tomochain/go-tomochain/p2p" - "github.com/tomochain/go-tomochain/p2p/discover" - "github.com/tomochain/go-tomochain/rpc" + "github.com/tomochain/tomochain/crypto" + "github.com/tomochain/tomochain/node" + "github.com/tomochain/tomochain/p2p" + "github.com/tomochain/tomochain/p2p/discover" + "github.com/tomochain/tomochain/rpc" ) // Node represents a node in a simulation network which is created by a diff --git a/p2p/simulations/examples/ping-pong.go b/p2p/simulations/examples/ping-pong.go index cfc6dc8eaf..751124276f 100644 --- a/p2p/simulations/examples/ping-pong.go +++ b/p2p/simulations/examples/ping-pong.go @@ -25,13 +25,13 @@ import ( "sync/atomic" "time" - "github.com/tomochain/go-tomochain/log" - "github.com/tomochain/go-tomochain/node" - "github.com/tomochain/go-tomochain/p2p" - "github.com/tomochain/go-tomochain/p2p/discover" - "github.com/tomochain/go-tomochain/p2p/simulations" - "github.com/tomochain/go-tomochain/p2p/simulations/adapters" - "github.com/tomochain/go-tomochain/rpc" + "github.com/tomochain/tomochain/log" + "github.com/tomochain/tomochain/node" + "github.com/tomochain/tomochain/p2p" + "github.com/tomochain/tomochain/p2p/discover" + "github.com/tomochain/tomochain/p2p/simulations" + "github.com/tomochain/tomochain/p2p/simulations/adapters" + "github.com/tomochain/tomochain/rpc" ) 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 5cce370a01..6357057047 100644 --- a/p2p/simulations/http.go +++ b/p2p/simulations/http.go @@ -29,11 +29,11 @@ import ( "strings" "sync" - "github.com/tomochain/go-tomochain/event" - "github.com/tomochain/go-tomochain/p2p" - "github.com/tomochain/go-tomochain/p2p/discover" - "github.com/tomochain/go-tomochain/p2p/simulations/adapters" - "github.com/tomochain/go-tomochain/rpc" + "github.com/tomochain/tomochain/event" + "github.com/tomochain/tomochain/p2p" + "github.com/tomochain/tomochain/p2p/discover" + "github.com/tomochain/tomochain/p2p/simulations/adapters" + "github.com/tomochain/tomochain/rpc" "github.com/julienschmidt/httprouter" "golang.org/x/net/websocket" ) diff --git a/p2p/simulations/http_test.go b/p2p/simulations/http_test.go index 738d5a9531..f566029824 100644 --- a/p2p/simulations/http_test.go +++ b/p2p/simulations/http_test.go @@ -27,12 +27,12 @@ import ( "testing" "time" - "github.com/tomochain/go-tomochain/event" - "github.com/tomochain/go-tomochain/node" - "github.com/tomochain/go-tomochain/p2p" - "github.com/tomochain/go-tomochain/p2p/discover" - "github.com/tomochain/go-tomochain/p2p/simulations/adapters" - "github.com/tomochain/go-tomochain/rpc" + "github.com/tomochain/tomochain/event" + "github.com/tomochain/tomochain/node" + "github.com/tomochain/tomochain/p2p" + "github.com/tomochain/tomochain/p2p/discover" + "github.com/tomochain/tomochain/p2p/simulations/adapters" + "github.com/tomochain/tomochain/rpc" ) // testService implements the node.Service interface and provides protocols diff --git a/p2p/simulations/mocker.go b/p2p/simulations/mocker.go index b00a0c3e81..daff17e29d 100644 --- a/p2p/simulations/mocker.go +++ b/p2p/simulations/mocker.go @@ -24,8 +24,8 @@ import ( "sync" "time" - "github.com/tomochain/go-tomochain/log" - "github.com/tomochain/go-tomochain/p2p/discover" + "github.com/tomochain/tomochain/log" + "github.com/tomochain/tomochain/p2p/discover" ) //a map of mocker names to its function diff --git a/p2p/simulations/mocker_test.go b/p2p/simulations/mocker_test.go index 2c1a84a57f..f9a23bfe12 100644 --- a/p2p/simulations/mocker_test.go +++ b/p2p/simulations/mocker_test.go @@ -27,7 +27,7 @@ import ( "testing" "time" - "github.com/tomochain/go-tomochain/p2p/discover" + "github.com/tomochain/tomochain/p2p/discover" ) func TestMocker(t *testing.T) { diff --git a/p2p/simulations/network.go b/p2p/simulations/network.go index 971f03e3bf..08643f7d89 100644 --- a/p2p/simulations/network.go +++ b/p2p/simulations/network.go @@ -24,11 +24,11 @@ import ( "sync" "time" - "github.com/tomochain/go-tomochain/event" - "github.com/tomochain/go-tomochain/log" - "github.com/tomochain/go-tomochain/p2p" - "github.com/tomochain/go-tomochain/p2p/discover" - "github.com/tomochain/go-tomochain/p2p/simulations/adapters" + "github.com/tomochain/tomochain/event" + "github.com/tomochain/tomochain/log" + "github.com/tomochain/tomochain/p2p" + "github.com/tomochain/tomochain/p2p/discover" + "github.com/tomochain/tomochain/p2p/simulations/adapters" ) var dialBanTimeout = 200 * time.Millisecond diff --git a/p2p/simulations/network_test.go b/p2p/simulations/network_test.go index 1cfd75563f..da97428cf6 100644 --- a/p2p/simulations/network_test.go +++ b/p2p/simulations/network_test.go @@ -22,8 +22,8 @@ import ( "testing" "time" - "github.com/tomochain/go-tomochain/p2p/discover" - "github.com/tomochain/go-tomochain/p2p/simulations/adapters" + "github.com/tomochain/tomochain/p2p/discover" + "github.com/tomochain/tomochain/p2p/simulations/adapters" ) // TestNetworkSimulation creates a multi-node simulation network with each node diff --git a/p2p/simulations/simulation.go b/p2p/simulations/simulation.go index 872a98ce71..6fc879ed10 100644 --- a/p2p/simulations/simulation.go +++ b/p2p/simulations/simulation.go @@ -20,7 +20,7 @@ import ( "context" "time" - "github.com/tomochain/go-tomochain/p2p/discover" + "github.com/tomochain/tomochain/p2p/discover" ) // Simulation provides a framework for running actions in a simulated network diff --git a/p2p/testing/peerpool.go b/p2p/testing/peerpool.go index 2cee246442..0934cfbdb8 100644 --- a/p2p/testing/peerpool.go +++ b/p2p/testing/peerpool.go @@ -20,8 +20,8 @@ import ( "fmt" "sync" - "github.com/tomochain/go-tomochain/log" - "github.com/tomochain/go-tomochain/p2p/discover" + "github.com/tomochain/tomochain/log" + "github.com/tomochain/tomochain/p2p/discover" ) type TestPeer interface { diff --git a/p2p/testing/protocolsession.go b/p2p/testing/protocolsession.go index ed820e6271..6f4d4c4994 100644 --- a/p2p/testing/protocolsession.go +++ b/p2p/testing/protocolsession.go @@ -22,10 +22,10 @@ import ( "sync" "time" - "github.com/tomochain/go-tomochain/log" - "github.com/tomochain/go-tomochain/p2p" - "github.com/tomochain/go-tomochain/p2p/discover" - "github.com/tomochain/go-tomochain/p2p/simulations/adapters" + "github.com/tomochain/tomochain/log" + "github.com/tomochain/tomochain/p2p" + "github.com/tomochain/tomochain/p2p/discover" + "github.com/tomochain/tomochain/p2p/simulations/adapters" ) var errTimedOut = errors.New("timed out") diff --git a/p2p/testing/protocoltester.go b/p2p/testing/protocoltester.go index 520951a0aa..61029e7e58 100644 --- a/p2p/testing/protocoltester.go +++ b/p2p/testing/protocoltester.go @@ -32,14 +32,14 @@ import ( "sync" "testing" - "github.com/tomochain/go-tomochain/log" - "github.com/tomochain/go-tomochain/node" - "github.com/tomochain/go-tomochain/p2p" - "github.com/tomochain/go-tomochain/p2p/discover" - "github.com/tomochain/go-tomochain/p2p/simulations" - "github.com/tomochain/go-tomochain/p2p/simulations/adapters" - "github.com/tomochain/go-tomochain/rlp" - "github.com/tomochain/go-tomochain/rpc" + "github.com/tomochain/tomochain/log" + "github.com/tomochain/tomochain/node" + "github.com/tomochain/tomochain/p2p" + "github.com/tomochain/tomochain/p2p/discover" + "github.com/tomochain/tomochain/p2p/simulations" + "github.com/tomochain/tomochain/p2p/simulations/adapters" + "github.com/tomochain/tomochain/rlp" + "github.com/tomochain/tomochain/rpc" ) // ProtocolTester is the tester environment used for unit testing protocol diff --git a/params/config.go b/params/config.go index 3262e51a81..39e611f985 100644 --- a/params/config.go +++ b/params/config.go @@ -20,7 +20,7 @@ import ( "fmt" "math/big" - "github.com/tomochain/go-tomochain/common" + "github.com/tomochain/tomochain/common" ) var ( diff --git a/params/dao.go b/params/dao.go index ea755b8c74..9ed34652d0 100644 --- a/params/dao.go +++ b/params/dao.go @@ -19,7 +19,7 @@ package params import ( "math/big" - "github.com/tomochain/go-tomochain/common" + "github.com/tomochain/tomochain/common" ) // DAOForkBlockExtra is the block header extra-data field to set for the DAO fork diff --git a/rpc/client.go b/rpc/client.go index 7990a5329e..9d665d91e9 100644 --- a/rpc/client.go +++ b/rpc/client.go @@ -32,7 +32,7 @@ import ( "sync/atomic" "time" - "github.com/tomochain/go-tomochain/log" + "github.com/tomochain/tomochain/log" ) var ( diff --git a/rpc/client_example_test.go b/rpc/client_example_test.go index 1e6dc64f6e..fa0ee9dd98 100644 --- a/rpc/client_example_test.go +++ b/rpc/client_example_test.go @@ -22,7 +22,7 @@ import ( "math/big" "time" - "github.com/tomochain/go-tomochain/rpc" + "github.com/tomochain/tomochain/rpc" ) // In this example, our client whishes to track the latest 'block number' diff --git a/rpc/client_test.go b/rpc/client_test.go index 95ced8174b..0dc797677b 100644 --- a/rpc/client_test.go +++ b/rpc/client_test.go @@ -31,7 +31,7 @@ import ( "time" "github.com/davecgh/go-spew/spew" - "github.com/tomochain/go-tomochain/log" + "github.com/tomochain/tomochain/log" ) func TestClientRequest(t *testing.T) { diff --git a/rpc/ipc.go b/rpc/ipc.go index be1a1e535c..89f02d6bcd 100644 --- a/rpc/ipc.go +++ b/rpc/ipc.go @@ -21,7 +21,7 @@ import ( "fmt" "net" - "github.com/tomochain/go-tomochain/log" + "github.com/tomochain/tomochain/log" ) // CreateIPCListener creates an listener, on Unix platforms this is a unix socket, on diff --git a/rpc/json.go b/rpc/json.go index 7f2deeb45a..715f33ee16 100644 --- a/rpc/json.go +++ b/rpc/json.go @@ -26,7 +26,7 @@ import ( "strings" "sync" - "github.com/tomochain/go-tomochain/log" + "github.com/tomochain/tomochain/log" ) const ( diff --git a/rpc/server.go b/rpc/server.go index 4be13b7cc6..a4b922b1e8 100644 --- a/rpc/server.go +++ b/rpc/server.go @@ -25,7 +25,7 @@ import ( "sync" "sync/atomic" - "github.com/tomochain/go-tomochain/log" + "github.com/tomochain/tomochain/log" mapset "github.com/deckarep/golang-set" ) diff --git a/rpc/types.go b/rpc/types.go index 62c375f223..3f3219eda3 100644 --- a/rpc/types.go +++ b/rpc/types.go @@ -23,7 +23,7 @@ import ( "strings" "sync" - "github.com/tomochain/go-tomochain/common/hexutil" + "github.com/tomochain/tomochain/common/hexutil" mapset "github.com/deckarep/golang-set" ) diff --git a/rpc/types_test.go b/rpc/types_test.go index 84da946792..9ba3d5d99e 100644 --- a/rpc/types_test.go +++ b/rpc/types_test.go @@ -20,7 +20,7 @@ import ( "encoding/json" "testing" - "github.com/tomochain/go-tomochain/common/math" + "github.com/tomochain/tomochain/common/math" ) func TestBlockNumberJSONUnmarshal(t *testing.T) { diff --git a/rpc/websocket.go b/rpc/websocket.go index 8cd08d6abe..be7fd04e79 100644 --- a/rpc/websocket.go +++ b/rpc/websocket.go @@ -29,7 +29,7 @@ import ( "strings" "time" - "github.com/tomochain/go-tomochain/log" + "github.com/tomochain/tomochain/log" "golang.org/x/net/websocket" mapset "github.com/deckarep/golang-set" ) diff --git a/swarm/api/api.go b/swarm/api/api.go index 3bfa08daa5..4465ea3c7d 100644 --- a/swarm/api/api.go +++ b/swarm/api/api.go @@ -30,10 +30,10 @@ import ( "path/filepath" "time" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/log" - "github.com/tomochain/go-tomochain/metrics" - "github.com/tomochain/go-tomochain/swarm/storage" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/log" + "github.com/tomochain/tomochain/metrics" + "github.com/tomochain/tomochain/swarm/storage" ) var hashMatcher = regexp.MustCompile("^[0-9A-Fa-f]{64}") diff --git a/swarm/api/api_test.go b/swarm/api/api_test.go index cf109fbd8f..011a0a1348 100644 --- a/swarm/api/api_test.go +++ b/swarm/api/api_test.go @@ -24,9 +24,9 @@ import ( "os" "testing" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/log" - "github.com/tomochain/go-tomochain/swarm/storage" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/log" + "github.com/tomochain/tomochain/swarm/storage" ) func testApi(t *testing.T, f func(*Api)) { diff --git a/swarm/api/client/client.go b/swarm/api/client/client.go index 480bea5249..55fed8283f 100644 --- a/swarm/api/client/client.go +++ b/swarm/api/client/client.go @@ -33,7 +33,7 @@ import ( "strconv" "strings" - "github.com/tomochain/go-tomochain/swarm/api" + "github.com/tomochain/tomochain/swarm/api" ) var ( diff --git a/swarm/api/client/client_test.go b/swarm/api/client/client_test.go index d56942619d..6df4f9b3cb 100644 --- a/swarm/api/client/client_test.go +++ b/swarm/api/client/client_test.go @@ -25,8 +25,8 @@ import ( "sort" "testing" - "github.com/tomochain/go-tomochain/swarm/api" - "github.com/tomochain/go-tomochain/swarm/testutil" + "github.com/tomochain/tomochain/swarm/api" + "github.com/tomochain/tomochain/swarm/testutil" ) // TestClientUploadDownloadRaw test uploading and downloading raw data to swarm diff --git a/swarm/api/config.go b/swarm/api/config.go index 7cd0932b91..e980ba48b2 100644 --- a/swarm/api/config.go +++ b/swarm/api/config.go @@ -22,14 +22,14 @@ import ( "os" "path/filepath" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/contracts/ens" - "github.com/tomochain/go-tomochain/crypto" - "github.com/tomochain/go-tomochain/log" - "github.com/tomochain/go-tomochain/node" - "github.com/tomochain/go-tomochain/swarm/network" - "github.com/tomochain/go-tomochain/swarm/services/swap" - "github.com/tomochain/go-tomochain/swarm/storage" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/contracts/ens" + "github.com/tomochain/tomochain/crypto" + "github.com/tomochain/tomochain/log" + "github.com/tomochain/tomochain/node" + "github.com/tomochain/tomochain/swarm/network" + "github.com/tomochain/tomochain/swarm/services/swap" + "github.com/tomochain/tomochain/swarm/storage" ) const ( diff --git a/swarm/api/config_test.go b/swarm/api/config_test.go index 7f0fcdb110..da8a3724cc 100644 --- a/swarm/api/config_test.go +++ b/swarm/api/config_test.go @@ -20,8 +20,8 @@ import ( "reflect" "testing" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/crypto" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/crypto" ) func TestConfig(t *testing.T) { diff --git a/swarm/api/filesystem.go b/swarm/api/filesystem.go index 1318f0c811..c741ac4878 100644 --- a/swarm/api/filesystem.go +++ b/swarm/api/filesystem.go @@ -26,9 +26,9 @@ import ( "path/filepath" "sync" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/log" - "github.com/tomochain/go-tomochain/swarm/storage" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/log" + "github.com/tomochain/tomochain/swarm/storage" ) const maxParallelFiles = 5 diff --git a/swarm/api/filesystem_test.go b/swarm/api/filesystem_test.go index f7536275bd..d6ecdcfa27 100644 --- a/swarm/api/filesystem_test.go +++ b/swarm/api/filesystem_test.go @@ -24,8 +24,8 @@ import ( "sync" "testing" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/swarm/storage" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/swarm/storage" ) var testDownloadDir, _ = ioutil.TempDir(os.TempDir(), "bzz-test") diff --git a/swarm/api/http/error.go b/swarm/api/http/error.go index 33be5c3e9c..3d8581403e 100644 --- a/swarm/api/http/error.go +++ b/swarm/api/http/error.go @@ -28,9 +28,9 @@ import ( "strings" "time" - "github.com/tomochain/go-tomochain/log" - "github.com/tomochain/go-tomochain/metrics" - "github.com/tomochain/go-tomochain/swarm/api" + "github.com/tomochain/tomochain/log" + "github.com/tomochain/tomochain/metrics" + "github.com/tomochain/tomochain/swarm/api" ) //templateMap holds a mapping of an HTTP error code to a template diff --git a/swarm/api/http/error_test.go b/swarm/api/http/error_test.go index 2fa95ac44a..3723459e0a 100644 --- a/swarm/api/http/error_test.go +++ b/swarm/api/http/error_test.go @@ -25,7 +25,7 @@ import ( "golang.org/x/net/html" - "github.com/tomochain/go-tomochain/swarm/testutil" + "github.com/tomochain/tomochain/swarm/testutil" ) func TestError(t *testing.T) { diff --git a/swarm/api/http/roundtripper.go b/swarm/api/http/roundtripper.go index 714f6abfca..8dac4c6105 100644 --- a/swarm/api/http/roundtripper.go +++ b/swarm/api/http/roundtripper.go @@ -20,17 +20,17 @@ import ( "fmt" "net/http" - "github.com/tomochain/go-tomochain/log" + "github.com/tomochain/tomochain/log" ) /* http roundtripper to register for bzz url scheme -see https://github.com/tomochain/go-tomochain/issues/2040 +see https://github.com/tomochain/tomochain/issues/2040 Usage: import ( - "github.com/tomochain/go-tomochain/common/httpclient" - "github.com/tomochain/go-tomochain/swarm/api/http" + "github.com/tomochain/tomochain/common/httpclient" + "github.com/tomochain/tomochain/swarm/api/http" ) client := httpclient.New() // for (private) swarm proxy running locally diff --git a/swarm/api/http/server.go b/swarm/api/http/server.go index 3af03d376d..d62679957c 100644 --- a/swarm/api/http/server.go +++ b/swarm/api/http/server.go @@ -35,11 +35,11 @@ import ( "strings" "time" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/log" - "github.com/tomochain/go-tomochain/metrics" - "github.com/tomochain/go-tomochain/swarm/api" - "github.com/tomochain/go-tomochain/swarm/storage" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/log" + "github.com/tomochain/tomochain/metrics" + "github.com/tomochain/tomochain/swarm/api" + "github.com/tomochain/tomochain/swarm/storage" "github.com/rs/cors" ) diff --git a/swarm/api/http/server_test.go b/swarm/api/http/server_test.go index 1974832ffe..a614833193 100644 --- a/swarm/api/http/server_test.go +++ b/swarm/api/http/server_test.go @@ -26,11 +26,11 @@ import ( "sync" "testing" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/swarm/api" - swarm "github.com/tomochain/go-tomochain/swarm/api/client" - "github.com/tomochain/go-tomochain/swarm/storage" - "github.com/tomochain/go-tomochain/swarm/testutil" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/swarm/api" + swarm "github.com/tomochain/tomochain/swarm/api/client" + "github.com/tomochain/tomochain/swarm/storage" + "github.com/tomochain/tomochain/swarm/testutil" ) func TestBzzGetPath(t *testing.T) { diff --git a/swarm/api/http/templates.go b/swarm/api/http/templates.go index 2cde402c8b..2dbb577102 100644 --- a/swarm/api/http/templates.go +++ b/swarm/api/http/templates.go @@ -20,7 +20,7 @@ import ( "html/template" "path" - "github.com/tomochain/go-tomochain/swarm/api" + "github.com/tomochain/tomochain/swarm/api" ) type htmlListData struct { diff --git a/swarm/api/manifest.go b/swarm/api/manifest.go index 66e2810ded..e7dd50071d 100644 --- a/swarm/api/manifest.go +++ b/swarm/api/manifest.go @@ -27,9 +27,9 @@ import ( "sync" "time" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/log" - "github.com/tomochain/go-tomochain/swarm/storage" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/log" + "github.com/tomochain/tomochain/swarm/storage" ) const ( diff --git a/swarm/api/manifest_test.go b/swarm/api/manifest_test.go index 1889764c24..2280182fca 100644 --- a/swarm/api/manifest_test.go +++ b/swarm/api/manifest_test.go @@ -25,7 +25,7 @@ import ( "strings" "testing" - "github.com/tomochain/go-tomochain/swarm/storage" + "github.com/tomochain/tomochain/swarm/storage" ) func manifest(paths ...string) (manifestReader storage.LazySectionReader) { diff --git a/swarm/api/testapi.go b/swarm/api/testapi.go index ad129ee044..ed11ae2ba2 100644 --- a/swarm/api/testapi.go +++ b/swarm/api/testapi.go @@ -17,7 +17,7 @@ package api import ( - "github.com/tomochain/go-tomochain/swarm/network" + "github.com/tomochain/tomochain/swarm/network" ) type Control struct { diff --git a/swarm/dev/Makefile b/swarm/dev/Makefile index a505e7d13c..28a8902306 100644 --- a/swarm/dev/Makefile +++ b/swarm/dev/Makefile @@ -3,12 +3,12 @@ default: build build: - go build -o bin/swarm github.com/tomochain/go-tomochain/cmd/swarm - go build -o bin/tomo github.com/tomochain/go-tomochain/cmd/tomo - go build -o bin/bootnode github.com/tomochain/go-tomochain/cmd/bootnode + go build -o bin/swarm github.com/tomochain/tomochain/cmd/swarm + go build -o bin/tomo github.com/tomochain/tomochain/cmd/tomo + go build -o bin/bootnode github.com/tomochain/tomochain/cmd/bootnode cluster: build scripts/boot-cluster.sh test: - go test -v github.com/tomochain/go-tomochain/swarm/... + go test -v github.com/tomochain/tomochain/swarm/... diff --git a/swarm/dev/bashrc b/swarm/dev/bashrc index 92f072f9f3..52adb96619 100644 --- a/swarm/dev/bashrc +++ b/swarm/dev/bashrc @@ -1,4 +1,4 @@ -export ROOT="${GOPATH}/src/github.com/tomochain/go-tomochain" +export ROOT="${GOPATH}/src/github.com/tomochain/tomochain" export PATH="${ROOT}/swarm/dev/bin:${PATH}" cd "${ROOT}/swarm/dev" diff --git a/swarm/dev/run.sh b/swarm/dev/run.sh index 51e6f57cc9..194e7e60b3 100755 --- a/swarm/dev/run.sh +++ b/swarm/dev/run.sh @@ -80,7 +80,7 @@ run_image() { --rm \ --hostname "${name}" \ --name "${name}" \ - --volume "${ROOT}:/go/src/github.com/tomochain/go-tomochain" \ + --volume "${ROOT}:/go/src/github.com/tomochain/tomochain" \ --volume "/var/run/docker.sock:/var/run/docker.sock" \ ${docker_args} \ "${name}" \ diff --git a/swarm/fuse/fuse_file.go b/swarm/fuse/fuse_file.go index ae41ac605d..7106ca9a43 100644 --- a/swarm/fuse/fuse_file.go +++ b/swarm/fuse/fuse_file.go @@ -26,8 +26,8 @@ import ( "bazil.org/fuse" "bazil.org/fuse/fs" - "github.com/tomochain/go-tomochain/log" - "github.com/tomochain/go-tomochain/swarm/storage" + "github.com/tomochain/tomochain/log" + "github.com/tomochain/tomochain/swarm/storage" "golang.org/x/net/context" ) diff --git a/swarm/fuse/swarmfs.go b/swarm/fuse/swarmfs.go index cbb7e951aa..33a61032fd 100644 --- a/swarm/fuse/swarmfs.go +++ b/swarm/fuse/swarmfs.go @@ -17,7 +17,7 @@ package fuse import ( - "github.com/tomochain/go-tomochain/swarm/api" + "github.com/tomochain/tomochain/swarm/api" "sync" "time" ) diff --git a/swarm/fuse/swarmfs_test.go b/swarm/fuse/swarmfs_test.go index 447c4e0141..eedc9935ad 100644 --- a/swarm/fuse/swarmfs_test.go +++ b/swarm/fuse/swarmfs_test.go @@ -27,8 +27,8 @@ import ( "path/filepath" "testing" - "github.com/tomochain/go-tomochain/swarm/api" - "github.com/tomochain/go-tomochain/swarm/storage" + "github.com/tomochain/tomochain/swarm/api" + "github.com/tomochain/tomochain/swarm/storage" ) type fileInfo struct { diff --git a/swarm/fuse/swarmfs_unix.go b/swarm/fuse/swarmfs_unix.go index c0825b6a21..fa2104b2e7 100644 --- a/swarm/fuse/swarmfs_unix.go +++ b/swarm/fuse/swarmfs_unix.go @@ -29,9 +29,9 @@ import ( "bazil.org/fuse" "bazil.org/fuse/fs" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/log" - "github.com/tomochain/go-tomochain/swarm/api" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/log" + "github.com/tomochain/tomochain/swarm/api" ) var ( diff --git a/swarm/fuse/swarmfs_util.go b/swarm/fuse/swarmfs_util.go index 7e5bb49436..8437a79f2a 100644 --- a/swarm/fuse/swarmfs_util.go +++ b/swarm/fuse/swarmfs_util.go @@ -24,7 +24,7 @@ import ( "os/exec" "runtime" - "github.com/tomochain/go-tomochain/log" + "github.com/tomochain/tomochain/log" ) func externalUnmount(mountPoint string) error { diff --git a/swarm/metrics/flags.go b/swarm/metrics/flags.go index 886a9b5218..c32ac4af16 100644 --- a/swarm/metrics/flags.go +++ b/swarm/metrics/flags.go @@ -19,10 +19,10 @@ package metrics import ( "time" - "github.com/tomochain/go-tomochain/cmd/utils" - "github.com/tomochain/go-tomochain/log" - gethmetrics "github.com/tomochain/go-tomochain/metrics" - "github.com/tomochain/go-tomochain/metrics/influxdb" + "github.com/tomochain/tomochain/cmd/utils" + "github.com/tomochain/tomochain/log" + gethmetrics "github.com/tomochain/tomochain/metrics" + "github.com/tomochain/tomochain/metrics/influxdb" "gopkg.in/urfave/cli.v1" ) diff --git a/swarm/network/depo.go b/swarm/network/depo.go index 30697f2400..adf4093414 100644 --- a/swarm/network/depo.go +++ b/swarm/network/depo.go @@ -22,9 +22,9 @@ import ( "fmt" "time" - "github.com/tomochain/go-tomochain/log" - "github.com/tomochain/go-tomochain/metrics" - "github.com/tomochain/go-tomochain/swarm/storage" + "github.com/tomochain/tomochain/log" + "github.com/tomochain/tomochain/metrics" + "github.com/tomochain/tomochain/swarm/storage" ) //metrics variables diff --git a/swarm/network/forwarding.go b/swarm/network/forwarding.go index fd4274cc6d..06a36c3de8 100644 --- a/swarm/network/forwarding.go +++ b/swarm/network/forwarding.go @@ -21,8 +21,8 @@ import ( "math/rand" "time" - "github.com/tomochain/go-tomochain/log" - "github.com/tomochain/go-tomochain/swarm/storage" + "github.com/tomochain/tomochain/log" + "github.com/tomochain/tomochain/swarm/storage" ) const requesterCount = 3 diff --git a/swarm/network/hive.go b/swarm/network/hive.go index 94dca5894e..413074c474 100644 --- a/swarm/network/hive.go +++ b/swarm/network/hive.go @@ -22,13 +22,13 @@ import ( "path/filepath" "time" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/log" - "github.com/tomochain/go-tomochain/metrics" - "github.com/tomochain/go-tomochain/p2p/discover" - "github.com/tomochain/go-tomochain/p2p/netutil" - "github.com/tomochain/go-tomochain/swarm/network/kademlia" - "github.com/tomochain/go-tomochain/swarm/storage" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/log" + "github.com/tomochain/tomochain/metrics" + "github.com/tomochain/tomochain/p2p/discover" + "github.com/tomochain/tomochain/p2p/netutil" + "github.com/tomochain/tomochain/swarm/network/kademlia" + "github.com/tomochain/tomochain/swarm/storage" ) // Hive is the logistic manager of the swarm diff --git a/swarm/network/kademlia/address.go b/swarm/network/kademlia/address.go index dae982fe60..d3beb86c72 100644 --- a/swarm/network/kademlia/address.go +++ b/swarm/network/kademlia/address.go @@ -21,7 +21,7 @@ import ( "math/rand" "strings" - "github.com/tomochain/go-tomochain/common" + "github.com/tomochain/tomochain/common" ) type Address common.Hash diff --git a/swarm/network/kademlia/address_test.go b/swarm/network/kademlia/address_test.go index ba3f94d0f1..2e6df9be10 100644 --- a/swarm/network/kademlia/address_test.go +++ b/swarm/network/kademlia/address_test.go @@ -21,7 +21,7 @@ import ( "reflect" "testing" - "github.com/tomochain/go-tomochain/common" + "github.com/tomochain/tomochain/common" ) func (Address) Generate(rand *rand.Rand, size int) reflect.Value { diff --git a/swarm/network/kademlia/kaddb.go b/swarm/network/kademlia/kaddb.go index 4fe22dcc0f..0c860795ff 100644 --- a/swarm/network/kademlia/kaddb.go +++ b/swarm/network/kademlia/kaddb.go @@ -24,7 +24,7 @@ import ( "sync" "time" - "github.com/tomochain/go-tomochain/log" + "github.com/tomochain/tomochain/log" ) type NodeData interface { diff --git a/swarm/network/kademlia/kademlia.go b/swarm/network/kademlia/kademlia.go index 4d83fd15b6..7f759fc4da 100644 --- a/swarm/network/kademlia/kademlia.go +++ b/swarm/network/kademlia/kademlia.go @@ -23,8 +23,8 @@ import ( "sync" "time" - "github.com/tomochain/go-tomochain/log" - "github.com/tomochain/go-tomochain/metrics" + "github.com/tomochain/tomochain/log" + "github.com/tomochain/tomochain/metrics" ) //metrics variables diff --git a/swarm/network/messages.go b/swarm/network/messages.go index ad3f827f74..18ab633535 100644 --- a/swarm/network/messages.go +++ b/swarm/network/messages.go @@ -21,11 +21,11 @@ import ( "net" "time" - "github.com/tomochain/go-tomochain/contracts/chequebook" - "github.com/tomochain/go-tomochain/p2p/discover" - "github.com/tomochain/go-tomochain/swarm/network/kademlia" - "github.com/tomochain/go-tomochain/swarm/services/swap" - "github.com/tomochain/go-tomochain/swarm/storage" + "github.com/tomochain/tomochain/contracts/chequebook" + "github.com/tomochain/tomochain/p2p/discover" + "github.com/tomochain/tomochain/swarm/network/kademlia" + "github.com/tomochain/tomochain/swarm/services/swap" + "github.com/tomochain/tomochain/swarm/storage" ) /* diff --git a/swarm/network/protocol.go b/swarm/network/protocol.go index 9a6c4e1eb1..b4ec08ce66 100644 --- a/swarm/network/protocol.go +++ b/swarm/network/protocol.go @@ -37,13 +37,13 @@ import ( "strconv" "time" - "github.com/tomochain/go-tomochain/contracts/chequebook" - "github.com/tomochain/go-tomochain/log" - "github.com/tomochain/go-tomochain/metrics" - "github.com/tomochain/go-tomochain/p2p" - bzzswap "github.com/tomochain/go-tomochain/swarm/services/swap" - "github.com/tomochain/go-tomochain/swarm/services/swap/swap" - "github.com/tomochain/go-tomochain/swarm/storage" + "github.com/tomochain/tomochain/contracts/chequebook" + "github.com/tomochain/tomochain/log" + "github.com/tomochain/tomochain/metrics" + "github.com/tomochain/tomochain/p2p" + bzzswap "github.com/tomochain/tomochain/swarm/services/swap" + "github.com/tomochain/tomochain/swarm/services/swap/swap" + "github.com/tomochain/tomochain/swarm/storage" ) //metrics variables diff --git a/swarm/network/syncdb.go b/swarm/network/syncdb.go index 34874cafb8..da1b6a85dd 100644 --- a/swarm/network/syncdb.go +++ b/swarm/network/syncdb.go @@ -20,8 +20,8 @@ import ( "encoding/binary" "fmt" - "github.com/tomochain/go-tomochain/log" - "github.com/tomochain/go-tomochain/swarm/storage" + "github.com/tomochain/tomochain/log" + "github.com/tomochain/tomochain/swarm/storage" "github.com/syndtr/goleveldb/leveldb" "github.com/syndtr/goleveldb/leveldb/iterator" ) diff --git a/swarm/network/syncdb_test.go b/swarm/network/syncdb_test.go index b0fa5122f4..a97c8a2440 100644 --- a/swarm/network/syncdb_test.go +++ b/swarm/network/syncdb_test.go @@ -25,9 +25,9 @@ import ( "testing" "time" - "github.com/tomochain/go-tomochain/crypto" - "github.com/tomochain/go-tomochain/log" - "github.com/tomochain/go-tomochain/swarm/storage" + "github.com/tomochain/tomochain/crypto" + "github.com/tomochain/tomochain/log" + "github.com/tomochain/tomochain/swarm/storage" ) func init() { diff --git a/swarm/network/syncer.go b/swarm/network/syncer.go index 0a7094efa2..37410178a9 100644 --- a/swarm/network/syncer.go +++ b/swarm/network/syncer.go @@ -22,8 +22,8 @@ import ( "fmt" "path/filepath" - "github.com/tomochain/go-tomochain/log" - "github.com/tomochain/go-tomochain/swarm/storage" + "github.com/tomochain/tomochain/log" + "github.com/tomochain/tomochain/swarm/storage" ) // syncer parameters (global, not peer specific) default values diff --git a/swarm/services/swap/swap.go b/swarm/services/swap/swap.go index e7ba5879a2..dfd0e12cfa 100644 --- a/swarm/services/swap/swap.go +++ b/swarm/services/swap/swap.go @@ -26,14 +26,14 @@ import ( "sync" "time" - "github.com/tomochain/go-tomochain/accounts/abi/bind" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/contracts/chequebook" - "github.com/tomochain/go-tomochain/contracts/chequebook/contract" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/crypto" - "github.com/tomochain/go-tomochain/log" - "github.com/tomochain/go-tomochain/swarm/services/swap/swap" + "github.com/tomochain/tomochain/accounts/abi/bind" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/contracts/chequebook" + "github.com/tomochain/tomochain/contracts/chequebook/contract" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/crypto" + "github.com/tomochain/tomochain/log" + "github.com/tomochain/tomochain/swarm/services/swap/swap" ) // SwAP Swarm Accounting Protocol with diff --git a/swarm/services/swap/swap/swap.go b/swarm/services/swap/swap/swap.go index 7fa03dce72..2d50d6da56 100644 --- a/swarm/services/swap/swap/swap.go +++ b/swarm/services/swap/swap/swap.go @@ -22,7 +22,7 @@ import ( "sync" "time" - "github.com/tomochain/go-tomochain/log" + "github.com/tomochain/tomochain/log" ) // SwAP Swarm Accounting Protocol with diff --git a/swarm/services/swap/swap/swap_test.go b/swarm/services/swap/swap/swap_test.go index 50ff712ab2..29c70c9ef9 100644 --- a/swarm/services/swap/swap/swap_test.go +++ b/swarm/services/swap/swap/swap_test.go @@ -21,7 +21,7 @@ import ( "testing" "time" - "github.com/tomochain/go-tomochain/common" + "github.com/tomochain/tomochain/common" ) type testInPayment struct { diff --git a/swarm/storage/chunker.go b/swarm/storage/chunker.go index cfbdffdc6e..33badddd23 100644 --- a/swarm/storage/chunker.go +++ b/swarm/storage/chunker.go @@ -24,7 +24,7 @@ import ( "sync" "time" - "github.com/tomochain/go-tomochain/metrics" + "github.com/tomochain/tomochain/metrics" ) /* diff --git a/swarm/storage/chunker_test.go b/swarm/storage/chunker_test.go index 671a5e1568..2483044524 100644 --- a/swarm/storage/chunker_test.go +++ b/swarm/storage/chunker_test.go @@ -27,7 +27,7 @@ import ( "testing" "time" - "github.com/tomochain/go-tomochain/crypto/sha3" + "github.com/tomochain/tomochain/crypto/sha3" ) /* diff --git a/swarm/storage/common_test.go b/swarm/storage/common_test.go index 84e1913b86..ede995ebdc 100644 --- a/swarm/storage/common_test.go +++ b/swarm/storage/common_test.go @@ -24,7 +24,7 @@ import ( "sync" "testing" - "github.com/tomochain/go-tomochain/log" + "github.com/tomochain/tomochain/log" ) type brokenLimitedReader struct { diff --git a/swarm/storage/database.go b/swarm/storage/database.go index 2dfda09524..8c961e1d87 100644 --- a/swarm/storage/database.go +++ b/swarm/storage/database.go @@ -22,7 +22,7 @@ package storage import ( "fmt" - "github.com/tomochain/go-tomochain/compression/rle" + "github.com/tomochain/tomochain/compression/rle" "github.com/syndtr/goleveldb/leveldb" "github.com/syndtr/goleveldb/leveldb/iterator" "github.com/syndtr/goleveldb/leveldb/opt" diff --git a/swarm/storage/dbstore.go b/swarm/storage/dbstore.go index 8e10919fdb..47d3f306fa 100644 --- a/swarm/storage/dbstore.go +++ b/swarm/storage/dbstore.go @@ -32,9 +32,9 @@ import ( "io/ioutil" "sync" - "github.com/tomochain/go-tomochain/log" - "github.com/tomochain/go-tomochain/metrics" - "github.com/tomochain/go-tomochain/rlp" + "github.com/tomochain/tomochain/log" + "github.com/tomochain/tomochain/metrics" + "github.com/tomochain/tomochain/rlp" "github.com/syndtr/goleveldb/leveldb" "github.com/syndtr/goleveldb/leveldb/iterator" ) diff --git a/swarm/storage/dbstore_test.go b/swarm/storage/dbstore_test.go index 9c4f5c8467..b07d321cce 100644 --- a/swarm/storage/dbstore_test.go +++ b/swarm/storage/dbstore_test.go @@ -21,7 +21,7 @@ import ( "io/ioutil" "testing" - "github.com/tomochain/go-tomochain/common" + "github.com/tomochain/tomochain/common" ) func initDbStore(t *testing.T) *DbStore { diff --git a/swarm/storage/dpa.go b/swarm/storage/dpa.go index 231b667c6b..20e2c97194 100644 --- a/swarm/storage/dpa.go +++ b/swarm/storage/dpa.go @@ -23,7 +23,7 @@ import ( "sync" "time" - "github.com/tomochain/go-tomochain/log" + "github.com/tomochain/tomochain/log" ) /* diff --git a/swarm/storage/localstore.go b/swarm/storage/localstore.go index fef85e2fff..fbd8b07157 100644 --- a/swarm/storage/localstore.go +++ b/swarm/storage/localstore.go @@ -19,7 +19,7 @@ package storage import ( "encoding/binary" - "github.com/tomochain/go-tomochain/metrics" + "github.com/tomochain/tomochain/metrics" ) //metrics variables diff --git a/swarm/storage/memstore.go b/swarm/storage/memstore.go index f109f9c1bc..5199d9721b 100644 --- a/swarm/storage/memstore.go +++ b/swarm/storage/memstore.go @@ -22,8 +22,8 @@ import ( "fmt" "sync" - "github.com/tomochain/go-tomochain/log" - "github.com/tomochain/go-tomochain/metrics" + "github.com/tomochain/tomochain/log" + "github.com/tomochain/tomochain/metrics" ) //metrics variables diff --git a/swarm/storage/netstore.go b/swarm/storage/netstore.go index 29b129df22..ca68a66935 100644 --- a/swarm/storage/netstore.go +++ b/swarm/storage/netstore.go @@ -21,7 +21,7 @@ import ( "path/filepath" "time" - "github.com/tomochain/go-tomochain/log" + "github.com/tomochain/tomochain/log" ) /* diff --git a/swarm/storage/types.go b/swarm/storage/types.go index 6f93282abd..6412365454 100644 --- a/swarm/storage/types.go +++ b/swarm/storage/types.go @@ -24,9 +24,9 @@ import ( "io" "sync" - "github.com/tomochain/go-tomochain/bmt" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/crypto/sha3" + "github.com/tomochain/tomochain/bmt" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/crypto/sha3" ) type Hasher func() hash.Hash diff --git a/swarm/swarm.go b/swarm/swarm.go index a6ec2d4c20..6bd0272ece 100644 --- a/swarm/swarm.go +++ b/swarm/swarm.go @@ -27,24 +27,24 @@ import ( "time" "unicode" - "github.com/tomochain/go-tomochain/accounts/abi/bind" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/contracts/chequebook" - "github.com/tomochain/go-tomochain/contracts/ens" - "github.com/tomochain/go-tomochain/crypto" - "github.com/tomochain/go-tomochain/ethclient" - "github.com/tomochain/go-tomochain/log" - "github.com/tomochain/go-tomochain/metrics" - "github.com/tomochain/go-tomochain/node" - "github.com/tomochain/go-tomochain/p2p" - "github.com/tomochain/go-tomochain/p2p/discover" - "github.com/tomochain/go-tomochain/params" - "github.com/tomochain/go-tomochain/rpc" - "github.com/tomochain/go-tomochain/swarm/api" - httpapi "github.com/tomochain/go-tomochain/swarm/api/http" - "github.com/tomochain/go-tomochain/swarm/fuse" - "github.com/tomochain/go-tomochain/swarm/network" - "github.com/tomochain/go-tomochain/swarm/storage" + "github.com/tomochain/tomochain/accounts/abi/bind" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/contracts/chequebook" + "github.com/tomochain/tomochain/contracts/ens" + "github.com/tomochain/tomochain/crypto" + "github.com/tomochain/tomochain/ethclient" + "github.com/tomochain/tomochain/log" + "github.com/tomochain/tomochain/metrics" + "github.com/tomochain/tomochain/node" + "github.com/tomochain/tomochain/p2p" + "github.com/tomochain/tomochain/p2p/discover" + "github.com/tomochain/tomochain/params" + "github.com/tomochain/tomochain/rpc" + "github.com/tomochain/tomochain/swarm/api" + httpapi "github.com/tomochain/tomochain/swarm/api/http" + "github.com/tomochain/tomochain/swarm/fuse" + "github.com/tomochain/tomochain/swarm/network" + "github.com/tomochain/tomochain/swarm/storage" ) var ( diff --git a/swarm/swarm_test.go b/swarm/swarm_test.go index fba26c10b4..28b951cec0 100644 --- a/swarm/swarm_test.go +++ b/swarm/swarm_test.go @@ -19,7 +19,7 @@ package swarm import ( "testing" - "github.com/tomochain/go-tomochain/common" + "github.com/tomochain/tomochain/common" ) func TestParseEnsAPIAddress(t *testing.T) { diff --git a/swarm/testutil/http.go b/swarm/testutil/http.go index 9e93666286..68c31347ad 100644 --- a/swarm/testutil/http.go +++ b/swarm/testutil/http.go @@ -22,9 +22,9 @@ import ( "os" "testing" - "github.com/tomochain/go-tomochain/swarm/api" - httpapi "github.com/tomochain/go-tomochain/swarm/api/http" - "github.com/tomochain/go-tomochain/swarm/storage" + "github.com/tomochain/tomochain/swarm/api" + httpapi "github.com/tomochain/tomochain/swarm/api/http" + "github.com/tomochain/tomochain/swarm/storage" ) func NewTestSwarmServer(t *testing.T) *TestSwarmServer { diff --git a/tests/block_test_util.go b/tests/block_test_util.go index cf2fa36336..9769e62a78 100644 --- a/tests/block_test_util.go +++ b/tests/block_test_util.go @@ -24,17 +24,17 @@ import ( "fmt" "math/big" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/common/hexutil" - "github.com/tomochain/go-tomochain/common/math" - "github.com/tomochain/go-tomochain/consensus/ethash" - "github.com/tomochain/go-tomochain/core" - "github.com/tomochain/go-tomochain/core/state" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/core/vm" - "github.com/tomochain/go-tomochain/ethdb" - "github.com/tomochain/go-tomochain/params" - "github.com/tomochain/go-tomochain/rlp" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/common/hexutil" + "github.com/tomochain/tomochain/common/math" + "github.com/tomochain/tomochain/consensus/ethash" + "github.com/tomochain/tomochain/core" + "github.com/tomochain/tomochain/core/state" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/core/vm" + "github.com/tomochain/tomochain/ethdb" + "github.com/tomochain/tomochain/params" + "github.com/tomochain/tomochain/rlp" ) // A BlockTest checks handling of entire blocks. diff --git a/tests/difficulty_test.go b/tests/difficulty_test.go index 789f9f50a6..09ead5e36b 100644 --- a/tests/difficulty_test.go +++ b/tests/difficulty_test.go @@ -21,8 +21,8 @@ import ( "math/big" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/params" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/params" ) var ( diff --git a/tests/difficulty_test_util.go b/tests/difficulty_test_util.go index a043425a63..162c6bbed4 100644 --- a/tests/difficulty_test_util.go +++ b/tests/difficulty_test_util.go @@ -20,11 +20,11 @@ import ( "fmt" "math/big" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/common/math" - "github.com/tomochain/go-tomochain/consensus/ethash" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/params" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/common/math" + "github.com/tomochain/tomochain/consensus/ethash" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/params" ) //go:generate gencodec -type DifficultyTest -field-override difficultyTestMarshaling -out gen_difficultytest.go diff --git a/tests/gen_btheader.go b/tests/gen_btheader.go index 5c8b272a9a..27f3a1faee 100644 --- a/tests/gen_btheader.go +++ b/tests/gen_btheader.go @@ -6,10 +6,10 @@ import ( "encoding/json" "math/big" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/common/hexutil" - "github.com/tomochain/go-tomochain/common/math" - "github.com/tomochain/go-tomochain/core/types" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/common/hexutil" + "github.com/tomochain/tomochain/common/math" + "github.com/tomochain/tomochain/core/types" ) var _ = (*btHeaderMarshaling)(nil) diff --git a/tests/gen_difficultytest.go b/tests/gen_difficultytest.go index 29622fb1ca..1831cc085f 100644 --- a/tests/gen_difficultytest.go +++ b/tests/gen_difficultytest.go @@ -6,8 +6,8 @@ import ( "encoding/json" "math/big" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/common/math" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/common/math" ) var _ = (*difficultyTestMarshaling)(nil) diff --git a/tests/gen_stenv.go b/tests/gen_stenv.go index 94dc942d2d..f4f9801696 100644 --- a/tests/gen_stenv.go +++ b/tests/gen_stenv.go @@ -7,8 +7,8 @@ import ( "errors" "math/big" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/common/math" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/common/math" ) var _ = (*stEnvMarshaling)(nil) diff --git a/tests/gen_sttransaction.go b/tests/gen_sttransaction.go index aa7afb59b8..9611de3d9a 100644 --- a/tests/gen_sttransaction.go +++ b/tests/gen_sttransaction.go @@ -6,8 +6,8 @@ import ( "encoding/json" "math/big" - "github.com/tomochain/go-tomochain/common/hexutil" - "github.com/tomochain/go-tomochain/common/math" + "github.com/tomochain/tomochain/common/hexutil" + "github.com/tomochain/tomochain/common/math" ) var _ = (*stTransactionMarshaling)(nil) diff --git a/tests/gen_tttransaction.go b/tests/gen_tttransaction.go index 0c5ecdc279..9888a291eb 100644 --- a/tests/gen_tttransaction.go +++ b/tests/gen_tttransaction.go @@ -7,9 +7,9 @@ import ( "errors" "math/big" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/common/hexutil" - "github.com/tomochain/go-tomochain/common/math" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/common/hexutil" + "github.com/tomochain/tomochain/common/math" ) var _ = (*ttTransactionMarshaling)(nil) diff --git a/tests/gen_vmexec.go b/tests/gen_vmexec.go index ce6e470a0f..bcdbf19c73 100644 --- a/tests/gen_vmexec.go +++ b/tests/gen_vmexec.go @@ -7,9 +7,9 @@ import ( "errors" "math/big" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/common/hexutil" - "github.com/tomochain/go-tomochain/common/math" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/common/hexutil" + "github.com/tomochain/tomochain/common/math" ) var _ = (*vmExecMarshaling)(nil) diff --git a/tests/init.go b/tests/init.go index 4af37fa9da..de6bb71cf4 100644 --- a/tests/init.go +++ b/tests/init.go @@ -20,7 +20,7 @@ import ( "fmt" "math/big" - "github.com/tomochain/go-tomochain/params" + "github.com/tomochain/tomochain/params" ) // This table defines supported forks and their chain config. diff --git a/tests/init_test.go b/tests/init_test.go index 2f61ee2792..24aaab7991 100644 --- a/tests/init_test.go +++ b/tests/init_test.go @@ -29,7 +29,7 @@ import ( "strings" "testing" - "github.com/tomochain/go-tomochain/params" + "github.com/tomochain/tomochain/params" ) var ( diff --git a/tests/rlp_test_util.go b/tests/rlp_test_util.go index 209d87b801..ef74fdc37e 100644 --- a/tests/rlp_test_util.go +++ b/tests/rlp_test_util.go @@ -24,7 +24,7 @@ import ( "math/big" "strings" - "github.com/tomochain/go-tomochain/rlp" + "github.com/tomochain/tomochain/rlp" ) // RLPTest is the JSON structure of a single RLP test. diff --git a/tests/state_test.go b/tests/state_test.go index d54665e4d7..7c8c5e9268 100644 --- a/tests/state_test.go +++ b/tests/state_test.go @@ -22,7 +22,7 @@ import ( "reflect" "testing" - "github.com/tomochain/go-tomochain/core/vm" + "github.com/tomochain/tomochain/core/vm" ) func TestState(t *testing.T) { diff --git a/tests/state_test_util.go b/tests/state_test_util.go index c4601064e9..9e34e09216 100644 --- a/tests/state_test_util.go +++ b/tests/state_test_util.go @@ -23,18 +23,18 @@ import ( "math/big" "strings" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/common/hexutil" - "github.com/tomochain/go-tomochain/common/math" - "github.com/tomochain/go-tomochain/core" - "github.com/tomochain/go-tomochain/core/state" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/core/vm" - "github.com/tomochain/go-tomochain/crypto" - "github.com/tomochain/go-tomochain/crypto/sha3" - "github.com/tomochain/go-tomochain/ethdb" - "github.com/tomochain/go-tomochain/params" - "github.com/tomochain/go-tomochain/rlp" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/common/hexutil" + "github.com/tomochain/tomochain/common/math" + "github.com/tomochain/tomochain/core" + "github.com/tomochain/tomochain/core/state" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/core/vm" + "github.com/tomochain/tomochain/crypto" + "github.com/tomochain/tomochain/crypto/sha3" + "github.com/tomochain/tomochain/ethdb" + "github.com/tomochain/tomochain/params" + "github.com/tomochain/tomochain/rlp" ) // StateTest checks transaction processing without block context. diff --git a/tests/transaction_test.go b/tests/transaction_test.go index 412829117e..fee0dd3b23 100644 --- a/tests/transaction_test.go +++ b/tests/transaction_test.go @@ -20,7 +20,7 @@ import ( "math/big" "testing" - "github.com/tomochain/go-tomochain/params" + "github.com/tomochain/tomochain/params" ) func TestTransaction(t *testing.T) { diff --git a/tests/transaction_test_util.go b/tests/transaction_test_util.go index 5021a239bb..e40a2f9c52 100644 --- a/tests/transaction_test_util.go +++ b/tests/transaction_test_util.go @@ -22,12 +22,12 @@ import ( "fmt" "math/big" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/common/hexutil" - "github.com/tomochain/go-tomochain/common/math" - "github.com/tomochain/go-tomochain/core/types" - "github.com/tomochain/go-tomochain/params" - "github.com/tomochain/go-tomochain/rlp" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/common/hexutil" + "github.com/tomochain/tomochain/common/math" + "github.com/tomochain/tomochain/core/types" + "github.com/tomochain/tomochain/params" + "github.com/tomochain/tomochain/rlp" ) // TransactionTest checks RLP decoding and sender derivation of transactions. diff --git a/tests/vm_test.go b/tests/vm_test.go index 3433e0d88e..eae77a8c46 100644 --- a/tests/vm_test.go +++ b/tests/vm_test.go @@ -19,7 +19,7 @@ package tests import ( "testing" - "github.com/tomochain/go-tomochain/core/vm" + "github.com/tomochain/tomochain/core/vm" ) func TestVM(t *testing.T) { diff --git a/tests/vm_test_util.go b/tests/vm_test_util.go index 452e7523a5..aff9143feb 100644 --- a/tests/vm_test_util.go +++ b/tests/vm_test_util.go @@ -22,15 +22,15 @@ import ( "fmt" "math/big" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/common/hexutil" - "github.com/tomochain/go-tomochain/common/math" - "github.com/tomochain/go-tomochain/core" - "github.com/tomochain/go-tomochain/core/state" - "github.com/tomochain/go-tomochain/core/vm" - "github.com/tomochain/go-tomochain/crypto" - "github.com/tomochain/go-tomochain/ethdb" - "github.com/tomochain/go-tomochain/params" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/common/hexutil" + "github.com/tomochain/tomochain/common/math" + "github.com/tomochain/tomochain/core" + "github.com/tomochain/tomochain/core/state" + "github.com/tomochain/tomochain/core/vm" + "github.com/tomochain/tomochain/crypto" + "github.com/tomochain/tomochain/ethdb" + "github.com/tomochain/tomochain/params" ) // VMTest checks EVM execution without block or transaction context. diff --git a/tomox/api.go b/tomox/api.go index ba83dcc190..9ee3121eaf 100644 --- a/tomox/api.go +++ b/tomox/api.go @@ -3,12 +3,12 @@ package tomox import ( "context" "errors" - "github.com/tomochain/go-tomochain/tomox/tomox_state" + "github.com/tomochain/tomochain/tomox/tomox_state" "math/big" "sync" "time" - "github.com/tomochain/go-tomochain/common" + "github.com/tomochain/tomochain/common" ) const ( diff --git a/tomox/batchdb.go b/tomox/batchdb.go index 277724404e..b2d47aa1ab 100644 --- a/tomox/batchdb.go +++ b/tomox/batchdb.go @@ -3,13 +3,13 @@ package tomox import ( "bytes" "encoding/hex" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/tomox/tomox_state" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/tomox/tomox_state" "github.com/globalsign/mgo" "sync" - "github.com/tomochain/go-tomochain/ethdb" - "github.com/tomochain/go-tomochain/log" + "github.com/tomochain/tomochain/ethdb" + "github.com/tomochain/tomochain/log" lru "github.com/hashicorp/golang-lru" ) diff --git a/tomox/interfaces.go b/tomox/interfaces.go index 19e6cdce9e..106a24e4ef 100644 --- a/tomox/interfaces.go +++ b/tomox/interfaces.go @@ -1,9 +1,9 @@ package tomox import ( - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/ethdb" - "github.com/tomochain/go-tomochain/tomox/tomox_state" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/ethdb" + "github.com/tomochain/tomochain/tomox/tomox_state" "github.com/globalsign/mgo" ) diff --git a/tomox/mongodb.go b/tomox/mongodb.go index a23b47e413..9e19c0ce3e 100644 --- a/tomox/mongodb.go +++ b/tomox/mongodb.go @@ -3,10 +3,10 @@ package tomox import ( "bytes" "encoding/hex" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/ethdb" - "github.com/tomochain/go-tomochain/log" - "github.com/tomochain/go-tomochain/tomox/tomox_state" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/ethdb" + "github.com/tomochain/tomochain/log" + "github.com/tomochain/tomochain/tomox/tomox_state" "github.com/globalsign/mgo" "github.com/globalsign/mgo/bson" lru "github.com/hashicorp/golang-lru" diff --git a/tomox/order.go b/tomox/order.go index 37f11eb0bc..c12bc348fe 100755 --- a/tomox/order.go +++ b/tomox/order.go @@ -2,7 +2,7 @@ package tomox import ( "fmt" - "github.com/tomochain/go-tomochain/tomox/tomox_state" + "github.com/tomochain/tomochain/tomox/tomox_state" "math/big" "time" ) diff --git a/tomox/order_processor.go b/tomox/order_processor.go index edf88a772e..8e045fff14 100644 --- a/tomox/order_processor.go +++ b/tomox/order_processor.go @@ -9,10 +9,10 @@ import ( "time" "fmt" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/core/state" - "github.com/tomochain/go-tomochain/log" - "github.com/tomochain/go-tomochain/tomox/tomox_state" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/core/state" + "github.com/tomochain/tomochain/log" + "github.com/tomochain/tomochain/tomox/tomox_state" ) var emptyAddress = common.StringToAddress("") diff --git a/tomox/tomox.go b/tomox/tomox.go index ac46fcbbf4..cf72adfdda 100644 --- a/tomox/tomox.go +++ b/tomox/tomox.go @@ -3,19 +3,19 @@ package tomox import ( "errors" "fmt" - "github.com/ethereum/go-tomochain/consensus" - "github.com/ethereum/go-tomochain/core/types" - "github.com/ethereum/go-tomochain/p2p" - "github.com/ethereum/go-tomochain/tomox/tomox_state" + "github.com/ethereum/tomochain/consensus" + "github.com/ethereum/tomochain/core/types" + "github.com/ethereum/tomochain/p2p" + "github.com/ethereum/tomochain/tomox/tomox_state" "gopkg.in/karalabe/cookiejar.v2/collections/prque" "math/big" "strconv" "time" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/core/state" - "github.com/tomochain/go-tomochain/log" - "github.com/tomochain/go-tomochain/rpc" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/core/state" + "github.com/tomochain/tomochain/log" + "github.com/tomochain/tomochain/rpc" lru "github.com/hashicorp/golang-lru" "golang.org/x/sync/syncmap" ) diff --git a/tomox/tomox_state/common.go b/tomox/tomox_state/common.go index 04a33da249..369c485726 100644 --- a/tomox/tomox_state/common.go +++ b/tomox/tomox_state/common.go @@ -7,7 +7,7 @@ import ( "math/big" "strconv" - "github.com/tomochain/go-tomochain/common" + "github.com/tomochain/tomochain/common" ) var ( diff --git a/tomox/tomox_state/database.go b/tomox/tomox_state/database.go index bf5d1b3571..0a6e27f72a 100644 --- a/tomox/tomox_state/database.go +++ b/tomox/tomox_state/database.go @@ -20,9 +20,9 @@ import ( "fmt" "sync" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/ethdb" - "github.com/tomochain/go-tomochain/trie" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/ethdb" + "github.com/tomochain/tomochain/trie" lru "github.com/hashicorp/golang-lru" ) diff --git a/tomox/tomox_state/dump.go b/tomox/tomox_state/dump.go index b670bd127c..97974b793b 100644 --- a/tomox/tomox_state/dump.go +++ b/tomox/tomox_state/dump.go @@ -18,11 +18,11 @@ package tomox_state import ( "fmt" - "github.com/tomochain/go-tomochain/rlp" + "github.com/tomochain/tomochain/rlp" "math/big" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/trie" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/trie" ) type DumpOrderList struct { diff --git a/tomox/tomox_state/encoding.go b/tomox/tomox_state/encoding.go index 7ae514e91d..f15a5f3b50 100644 --- a/tomox/tomox_state/encoding.go +++ b/tomox/tomox_state/encoding.go @@ -1,7 +1,7 @@ package tomox_state import ( - "github.com/tomochain/go-tomochain/rlp" + "github.com/tomochain/tomochain/rlp" ) func EncodeBytesItem(val interface{}) ([]byte, error) { diff --git a/tomox/tomox_state/journal.go b/tomox/tomox_state/journal.go index 5439a4bcad..51be27a6f4 100644 --- a/tomox/tomox_state/journal.go +++ b/tomox/tomox_state/journal.go @@ -17,7 +17,7 @@ package tomox_state import ( - "github.com/tomochain/go-tomochain/common" + "github.com/tomochain/tomochain/common" "math/big" ) diff --git a/tomox/tomox_state/managed_state.go b/tomox/tomox_state/managed_state.go index b995251d64..6d3b711ecb 100644 --- a/tomox/tomox_state/managed_state.go +++ b/tomox/tomox_state/managed_state.go @@ -19,7 +19,7 @@ package tomox_state import ( "sync" - "github.com/tomochain/go-tomochain/common" + "github.com/tomochain/tomochain/common" ) type exchanges struct { diff --git a/tomox/tomox_state/orderitem.go b/tomox/tomox_state/orderitem.go index 4e6534f3de..63775c0302 100644 --- a/tomox/tomox_state/orderitem.go +++ b/tomox/tomox_state/orderitem.go @@ -4,11 +4,11 @@ import ( "bytes" "encoding/hex" "fmt" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/core/state" - "github.com/tomochain/go-tomochain/crypto" - "github.com/tomochain/go-tomochain/crypto/sha3" - "github.com/tomochain/go-tomochain/log" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/core/state" + "github.com/tomochain/tomochain/crypto" + "github.com/tomochain/tomochain/crypto/sha3" + "github.com/tomochain/tomochain/log" "github.com/globalsign/mgo/bson" "math/big" "strconv" diff --git a/tomox/tomox_state/relayer_state.go b/tomox/tomox_state/relayer_state.go index b8d138eff0..6b2e3b5ca6 100644 --- a/tomox/tomox_state/relayer_state.go +++ b/tomox/tomox_state/relayer_state.go @@ -4,10 +4,10 @@ import ( "fmt" "math/big" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/core/state" - "github.com/tomochain/go-tomochain/crypto" - "github.com/tomochain/go-tomochain/log" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/core/state" + "github.com/tomochain/tomochain/crypto" + "github.com/tomochain/tomochain/log" "github.com/pkg/errors" ) diff --git a/tomox/tomox_state/state_orderItem.go b/tomox/tomox_state/state_orderItem.go index ba76c3ff94..cdc08db953 100644 --- a/tomox/tomox_state/state_orderItem.go +++ b/tomox/tomox_state/state_orderItem.go @@ -20,8 +20,8 @@ import ( "io" "math/big" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/rlp" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/rlp" ) // stateObject represents an Ethereum orderId which is being modified. diff --git a/tomox/tomox_state/state_orderList.go b/tomox/tomox_state/state_orderList.go index bd24712c28..ac59f6320f 100644 --- a/tomox/tomox_state/state_orderList.go +++ b/tomox/tomox_state/state_orderList.go @@ -22,8 +22,8 @@ import ( "io" "math/big" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/rlp" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/rlp" ) // stateObject represents an Ethereum orderId which is being modified. diff --git a/tomox/tomox_state/state_orderbook.go b/tomox/tomox_state/state_orderbook.go index f13465c819..43059321a9 100644 --- a/tomox/tomox_state/state_orderbook.go +++ b/tomox/tomox_state/state_orderbook.go @@ -18,9 +18,9 @@ package tomox_state import ( "fmt" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/log" - "github.com/tomochain/go-tomochain/rlp" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/log" + "github.com/tomochain/tomochain/rlp" "io" "math/big" ) diff --git a/tomox/tomox_state/statedb.go b/tomox/tomox_state/statedb.go index 0c4450bd88..33cf2b3434 100644 --- a/tomox/tomox_state/statedb.go +++ b/tomox/tomox_state/statedb.go @@ -23,10 +23,10 @@ import ( "sort" "sync" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/log" - "github.com/tomochain/go-tomochain/rlp" - "github.com/tomochain/go-tomochain/trie" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/log" + "github.com/tomochain/tomochain/rlp" + "github.com/tomochain/tomochain/trie" ) type revision struct { diff --git a/tomox/tomox_state/statedb_test.go b/tomox/tomox_state/statedb_test.go index 02707bd2b1..9f00d98dc8 100644 --- a/tomox/tomox_state/statedb_test.go +++ b/tomox/tomox_state/statedb_test.go @@ -18,9 +18,9 @@ package tomox_state import ( "fmt" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/common/math" - "github.com/tomochain/go-tomochain/ethdb" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/common/math" + "github.com/tomochain/tomochain/ethdb" "math/big" "testing" ) diff --git a/tomox/tomox_state/tomox_trie.go b/tomox/tomox_state/tomox_trie.go index 0b2e813990..7ce4ec6d6e 100644 --- a/tomox/tomox_state/tomox_trie.go +++ b/tomox/tomox_state/tomox_trie.go @@ -18,11 +18,11 @@ package tomox_state import ( "fmt" - "github.com/tomochain/go-tomochain/ethdb" - "github.com/tomochain/go-tomochain/trie" + "github.com/tomochain/tomochain/ethdb" + "github.com/tomochain/tomochain/trie" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/log" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/log" ) // TomoXTrie wraps a trie with key hashing. In a secure trie, all diff --git a/tomox/tomox_state/tomox_trie_test.go b/tomox/tomox_state/tomox_trie_test.go index 140be1e348..ffd1ae7eaf 100644 --- a/tomox/tomox_state/tomox_trie_test.go +++ b/tomox/tomox_state/tomox_trie_test.go @@ -2,8 +2,8 @@ package tomox_state import ( "fmt" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/ethdb" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/ethdb" "math/big" "testing" ) diff --git a/tomox/trade.go b/tomox/trade.go index 247c230999..8c4f443610 100644 --- a/tomox/trade.go +++ b/tomox/trade.go @@ -5,8 +5,8 @@ import ( "math/big" "time" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/crypto/sha3" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/crypto/sha3" "github.com/globalsign/mgo/bson" ) diff --git a/trie/database.go b/trie/database.go index badb3b94c9..cda9050ae9 100644 --- a/trie/database.go +++ b/trie/database.go @@ -20,9 +20,9 @@ import ( "sync" "time" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/ethdb" - "github.com/tomochain/go-tomochain/log" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/ethdb" + "github.com/tomochain/tomochain/log" ) // secureKeyPrefix is the database key prefix used to store trie node preimages. diff --git a/trie/errors.go b/trie/errors.go index 14a21f5331..933d640622 100644 --- a/trie/errors.go +++ b/trie/errors.go @@ -19,7 +19,7 @@ package trie import ( "fmt" - "github.com/tomochain/go-tomochain/common" + "github.com/tomochain/tomochain/common" ) // MissingNodeError is returned by the trie functions (TryGet, TryUpdate, TryDelete) diff --git a/trie/hasher.go b/trie/hasher.go index 53c1b6593c..2ba28c429b 100644 --- a/trie/hasher.go +++ b/trie/hasher.go @@ -21,9 +21,9 @@ import ( "hash" "sync" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/crypto/sha3" - "github.com/tomochain/go-tomochain/rlp" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/crypto/sha3" + "github.com/tomochain/tomochain/rlp" ) type hasher struct { diff --git a/trie/iterator.go b/trie/iterator.go index d18c621dff..5f268bcaac 100644 --- a/trie/iterator.go +++ b/trie/iterator.go @@ -20,7 +20,7 @@ import ( "bytes" "container/heap" "errors" - "github.com/tomochain/go-tomochain/common" + "github.com/tomochain/tomochain/common" ) // Iterator is a key-value trie iterator that traverses a Trie. diff --git a/trie/iterator_test.go b/trie/iterator_test.go index fc9183806b..94373aa247 100644 --- a/trie/iterator_test.go +++ b/trie/iterator_test.go @@ -22,8 +22,8 @@ import ( "math/rand" "testing" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/ethdb" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/ethdb" ) func TestIterator(t *testing.T) { diff --git a/trie/node.go b/trie/node.go index d1d466870a..fa492122aa 100644 --- a/trie/node.go +++ b/trie/node.go @@ -21,8 +21,8 @@ import ( "io" "strings" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/rlp" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/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/proof.go b/trie/proof.go index 059e85b1b2..03809cd0b1 100644 --- a/trie/proof.go +++ b/trie/proof.go @@ -20,11 +20,11 @@ import ( "bytes" "fmt" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/crypto" - "github.com/tomochain/go-tomochain/ethdb" - "github.com/tomochain/go-tomochain/log" - "github.com/tomochain/go-tomochain/rlp" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/crypto" + "github.com/tomochain/tomochain/ethdb" + "github.com/tomochain/tomochain/log" + "github.com/tomochain/tomochain/rlp" ) // Prove constructs a merkle proof for key. The result contains all encoded nodes diff --git a/trie/proof_test.go b/trie/proof_test.go index fb4ef04d8d..e31b6e18c9 100644 --- a/trie/proof_test.go +++ b/trie/proof_test.go @@ -23,9 +23,9 @@ import ( "testing" "time" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/crypto" - "github.com/tomochain/go-tomochain/ethdb" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/crypto" + "github.com/tomochain/tomochain/ethdb" ) func init() { diff --git a/trie/secure_trie.go b/trie/secure_trie.go index 5c054978bc..6a93945776 100644 --- a/trie/secure_trie.go +++ b/trie/secure_trie.go @@ -19,8 +19,8 @@ package trie import ( "fmt" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/log" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/log" ) // SecureTrie wraps a trie with key hashing. In a secure trie, all diff --git a/trie/secure_trie_test.go b/trie/secure_trie_test.go index 62cbecb831..519ce8ca4a 100644 --- a/trie/secure_trie_test.go +++ b/trie/secure_trie_test.go @@ -22,9 +22,9 @@ import ( "sync" "testing" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/crypto" - "github.com/tomochain/go-tomochain/ethdb" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/crypto" + "github.com/tomochain/tomochain/ethdb" ) func newEmptySecure() *SecureTrie { diff --git a/trie/sync.go b/trie/sync.go index f4b67a8af1..a1a7c8f9c7 100644 --- a/trie/sync.go +++ b/trie/sync.go @@ -20,8 +20,8 @@ import ( "errors" "fmt" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/ethdb" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/ethdb" "gopkg.in/karalabe/cookiejar.v2/collections/prque" ) diff --git a/trie/sync_test.go b/trie/sync_test.go index 12383d7124..0581f1c6c1 100644 --- a/trie/sync_test.go +++ b/trie/sync_test.go @@ -20,8 +20,8 @@ import ( "bytes" "testing" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/ethdb" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/ethdb" ) // makeTestTrie create a sample test trie to test node-wise reconstruction. diff --git a/trie/trie.go b/trie/trie.go index df71ce61f1..051ff92cc2 100644 --- a/trie/trie.go +++ b/trie/trie.go @@ -21,10 +21,10 @@ import ( "bytes" "fmt" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/crypto" - "github.com/tomochain/go-tomochain/log" - "github.com/tomochain/go-tomochain/metrics" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/crypto" + "github.com/tomochain/tomochain/log" + "github.com/tomochain/tomochain/metrics" ) var ( diff --git a/trie/trie_test.go b/trie/trie_test.go index 1aaca7df81..c73177efad 100644 --- a/trie/trie_test.go +++ b/trie/trie_test.go @@ -30,10 +30,10 @@ import ( "testing/quick" "github.com/davecgh/go-spew/spew" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/crypto" - "github.com/tomochain/go-tomochain/ethdb" - "github.com/tomochain/go-tomochain/rlp" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/crypto" + "github.com/tomochain/tomochain/ethdb" + "github.com/tomochain/tomochain/rlp" ) func init() { diff --git a/whisper/mailserver/mailserver.go b/whisper/mailserver/mailserver.go index b06cdec67c..15c5ba1b48 100644 --- a/whisper/mailserver/mailserver.go +++ b/whisper/mailserver/mailserver.go @@ -20,12 +20,12 @@ import ( "encoding/binary" "fmt" - "github.com/tomochain/go-tomochain/cmd/utils" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/crypto" - "github.com/tomochain/go-tomochain/log" - "github.com/tomochain/go-tomochain/rlp" - whisper "github.com/tomochain/go-tomochain/whisper/whisperv6" + "github.com/tomochain/tomochain/cmd/utils" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/crypto" + "github.com/tomochain/tomochain/log" + "github.com/tomochain/tomochain/rlp" + whisper "github.com/tomochain/tomochain/whisper/whisperv6" "github.com/syndtr/goleveldb/leveldb" "github.com/syndtr/goleveldb/leveldb/util" ) diff --git a/whisper/mailserver/server_test.go b/whisper/mailserver/server_test.go index 8f3d891ea0..79ffd92914 100644 --- a/whisper/mailserver/server_test.go +++ b/whisper/mailserver/server_test.go @@ -25,9 +25,9 @@ import ( "testing" "time" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/crypto" - whisper "github.com/tomochain/go-tomochain/whisper/whisperv6" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/crypto" + whisper "github.com/tomochain/tomochain/whisper/whisperv6" ) const powRequirement = 0.00001 diff --git a/whisper/shhclient/client.go b/whisper/shhclient/client.go index 90adf27835..3593f72554 100644 --- a/whisper/shhclient/client.go +++ b/whisper/shhclient/client.go @@ -19,10 +19,10 @@ package shhclient import ( "context" - "github.com/tomochain/go-tomochain" - "github.com/tomochain/go-tomochain/common/hexutil" - "github.com/tomochain/go-tomochain/rpc" - whisper "github.com/tomochain/go-tomochain/whisper/whisperv6" + "github.com/tomochain/tomochain" + "github.com/tomochain/tomochain/common/hexutil" + "github.com/tomochain/tomochain/rpc" + whisper "github.com/tomochain/tomochain/whisper/whisperv6" ) // Client defines typed wrappers for the Whisper v6 RPC API. diff --git a/whisper/whisperv5/api.go b/whisper/whisperv5/api.go index 4e9d29ae32..0ab821b4f4 100644 --- a/whisper/whisperv5/api.go +++ b/whisper/whisperv5/api.go @@ -24,12 +24,12 @@ import ( "sync" "time" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/common/hexutil" - "github.com/tomochain/go-tomochain/crypto" - "github.com/tomochain/go-tomochain/log" - "github.com/tomochain/go-tomochain/p2p/discover" - "github.com/tomochain/go-tomochain/rpc" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/common/hexutil" + "github.com/tomochain/tomochain/crypto" + "github.com/tomochain/tomochain/log" + "github.com/tomochain/tomochain/p2p/discover" + "github.com/tomochain/tomochain/rpc" ) const ( diff --git a/whisper/whisperv5/benchmarks_test.go b/whisper/whisperv5/benchmarks_test.go index 5d80972f9f..1ab34f4e3e 100644 --- a/whisper/whisperv5/benchmarks_test.go +++ b/whisper/whisperv5/benchmarks_test.go @@ -19,7 +19,7 @@ package whisperv5 import ( "testing" - "github.com/tomochain/go-tomochain/crypto" + "github.com/tomochain/tomochain/crypto" ) func BenchmarkDeriveKeyMaterial(b *testing.B) { diff --git a/whisper/whisperv5/envelope.go b/whisper/whisperv5/envelope.go index f5d85efa6b..a57279e73c 100644 --- a/whisper/whisperv5/envelope.go +++ b/whisper/whisperv5/envelope.go @@ -26,11 +26,11 @@ import ( "math/big" "time" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/common/math" - "github.com/tomochain/go-tomochain/crypto" - "github.com/tomochain/go-tomochain/crypto/ecies" - "github.com/tomochain/go-tomochain/rlp" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/common/math" + "github.com/tomochain/tomochain/crypto" + "github.com/tomochain/tomochain/crypto/ecies" + "github.com/tomochain/tomochain/rlp" ) // Envelope represents a clear-text data packet to transmit through the Whisper diff --git a/whisper/whisperv5/filter.go b/whisper/whisperv5/filter.go index dbea01147e..8035a235b5 100644 --- a/whisper/whisperv5/filter.go +++ b/whisper/whisperv5/filter.go @@ -21,9 +21,9 @@ import ( "fmt" "sync" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/crypto" - "github.com/tomochain/go-tomochain/log" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/crypto" + "github.com/tomochain/tomochain/log" ) type Filter struct { diff --git a/whisper/whisperv5/filter_test.go b/whisper/whisperv5/filter_test.go index 20bc583ee9..2497c3e846 100644 --- a/whisper/whisperv5/filter_test.go +++ b/whisper/whisperv5/filter_test.go @@ -22,8 +22,8 @@ import ( "testing" "time" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/crypto" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/crypto" ) var seed int64 diff --git a/whisper/whisperv5/gen_criteria_json.go b/whisper/whisperv5/gen_criteria_json.go index a14b801086..d603844ea9 100644 --- a/whisper/whisperv5/gen_criteria_json.go +++ b/whisper/whisperv5/gen_criteria_json.go @@ -5,7 +5,7 @@ package whisperv5 import ( "encoding/json" - "github.com/tomochain/go-tomochain/common/hexutil" + "github.com/tomochain/tomochain/common/hexutil" ) var _ = (*criteriaOverride)(nil) diff --git a/whisper/whisperv5/gen_message_json.go b/whisper/whisperv5/gen_message_json.go index 9675c075c3..ae0bc3275f 100644 --- a/whisper/whisperv5/gen_message_json.go +++ b/whisper/whisperv5/gen_message_json.go @@ -5,7 +5,7 @@ package whisperv5 import ( "encoding/json" - "github.com/tomochain/go-tomochain/common/hexutil" + "github.com/tomochain/tomochain/common/hexutil" ) var _ = (*messageOverride)(nil) diff --git a/whisper/whisperv5/gen_newmessage_json.go b/whisper/whisperv5/gen_newmessage_json.go index 95aa158841..24d014eec4 100644 --- a/whisper/whisperv5/gen_newmessage_json.go +++ b/whisper/whisperv5/gen_newmessage_json.go @@ -5,7 +5,7 @@ package whisperv5 import ( "encoding/json" - "github.com/tomochain/go-tomochain/common/hexutil" + "github.com/tomochain/tomochain/common/hexutil" ) var _ = (*newMessageOverride)(nil) diff --git a/whisper/whisperv5/message.go b/whisper/whisperv5/message.go index 1f8c735b65..0155092d5d 100644 --- a/whisper/whisperv5/message.go +++ b/whisper/whisperv5/message.go @@ -27,10 +27,10 @@ import ( "errors" "strconv" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/crypto" - "github.com/tomochain/go-tomochain/crypto/ecies" - "github.com/tomochain/go-tomochain/log" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/crypto" + "github.com/tomochain/tomochain/crypto/ecies" + "github.com/tomochain/tomochain/log" ) // Options specifies the exact way a message should be wrapped into an Envelope. diff --git a/whisper/whisperv5/message_test.go b/whisper/whisperv5/message_test.go index 1ebade5bf2..44fb9bb15a 100644 --- a/whisper/whisperv5/message_test.go +++ b/whisper/whisperv5/message_test.go @@ -21,8 +21,8 @@ import ( mrand "math/rand" "testing" - "github.com/tomochain/go-tomochain/crypto" - "github.com/tomochain/go-tomochain/rlp" + "github.com/tomochain/tomochain/crypto" + "github.com/tomochain/tomochain/rlp" ) func generateMessageParams() (*MessageParams, error) { diff --git a/whisper/whisperv5/peer.go b/whisper/whisperv5/peer.go index bb11acf183..73f93b0645 100644 --- a/whisper/whisperv5/peer.go +++ b/whisper/whisperv5/peer.go @@ -20,10 +20,10 @@ import ( "fmt" "time" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/log" - "github.com/tomochain/go-tomochain/p2p" - "github.com/tomochain/go-tomochain/rlp" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/log" + "github.com/tomochain/tomochain/p2p" + "github.com/tomochain/tomochain/rlp" mapset "github.com/deckarep/golang-set" ) diff --git a/whisper/whisperv5/peer_test.go b/whisper/whisperv5/peer_test.go index c861981a5c..2805aa3d52 100644 --- a/whisper/whisperv5/peer_test.go +++ b/whisper/whisperv5/peer_test.go @@ -25,11 +25,11 @@ import ( "testing" "time" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/crypto" - "github.com/tomochain/go-tomochain/p2p" - "github.com/tomochain/go-tomochain/p2p/discover" - "github.com/tomochain/go-tomochain/p2p/nat" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/crypto" + "github.com/tomochain/tomochain/p2p" + "github.com/tomochain/tomochain/p2p/discover" + "github.com/tomochain/tomochain/p2p/nat" ) var keys []string = []string{ diff --git a/whisper/whisperv5/topic.go b/whisper/whisperv5/topic.go index b9ffaf9585..ed18125c7a 100644 --- a/whisper/whisperv5/topic.go +++ b/whisper/whisperv5/topic.go @@ -19,8 +19,8 @@ package whisperv5 import ( - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/common/hexutil" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/common/hexutil" ) // Topic represents a cryptographically secure, probabilistic partial diff --git a/whisper/whisperv5/whisper.go b/whisper/whisperv5/whisper.go index fb6051a9db..37eace66e9 100644 --- a/whisper/whisperv5/whisper.go +++ b/whisper/whisperv5/whisper.go @@ -26,11 +26,11 @@ import ( "sync" "time" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/crypto" - "github.com/tomochain/go-tomochain/log" - "github.com/tomochain/go-tomochain/p2p" - "github.com/tomochain/go-tomochain/rpc" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/crypto" + "github.com/tomochain/tomochain/log" + "github.com/tomochain/tomochain/p2p" + "github.com/tomochain/tomochain/rpc" "github.com/syndtr/goleveldb/leveldb/errors" "golang.org/x/crypto/pbkdf2" "golang.org/x/sync/syncmap" diff --git a/whisper/whisperv5/whisper_test.go b/whisper/whisperv5/whisper_test.go index 1116462fb1..89884359ef 100644 --- a/whisper/whisperv5/whisper_test.go +++ b/whisper/whisperv5/whisper_test.go @@ -23,7 +23,7 @@ import ( "testing" "time" - "github.com/tomochain/go-tomochain/common" + "github.com/tomochain/tomochain/common" ) func TestWhisperBasic(t *testing.T) { diff --git a/whisper/whisperv6/api.go b/whisper/whisperv6/api.go index 87878b3216..32831d1ec1 100644 --- a/whisper/whisperv6/api.go +++ b/whisper/whisperv6/api.go @@ -24,12 +24,12 @@ import ( "sync" "time" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/common/hexutil" - "github.com/tomochain/go-tomochain/crypto" - "github.com/tomochain/go-tomochain/log" - "github.com/tomochain/go-tomochain/p2p/discover" - "github.com/tomochain/go-tomochain/rpc" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/common/hexutil" + "github.com/tomochain/tomochain/crypto" + "github.com/tomochain/tomochain/log" + "github.com/tomochain/tomochain/p2p/discover" + "github.com/tomochain/tomochain/rpc" ) const ( diff --git a/whisper/whisperv6/api_test.go b/whisper/whisperv6/api_test.go index 28b2547fde..aaf6329320 100644 --- a/whisper/whisperv6/api_test.go +++ b/whisper/whisperv6/api_test.go @@ -22,7 +22,7 @@ import ( "testing" "time" - "github.com/tomochain/go-tomochain/common" + "github.com/tomochain/tomochain/common" mapset "github.com/deckarep/golang-set" ) diff --git a/whisper/whisperv6/benchmarks_test.go b/whisper/whisperv6/benchmarks_test.go index 5a168c115c..5e6021608a 100644 --- a/whisper/whisperv6/benchmarks_test.go +++ b/whisper/whisperv6/benchmarks_test.go @@ -20,7 +20,7 @@ import ( "crypto/sha256" "testing" - "github.com/tomochain/go-tomochain/crypto" + "github.com/tomochain/tomochain/crypto" "golang.org/x/crypto/pbkdf2" ) diff --git a/whisper/whisperv6/envelope.go b/whisper/whisperv6/envelope.go index e2e10bbad9..1f99b8a131 100644 --- a/whisper/whisperv6/envelope.go +++ b/whisper/whisperv6/envelope.go @@ -26,11 +26,11 @@ import ( "math/big" "time" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/common/math" - "github.com/tomochain/go-tomochain/crypto" - "github.com/tomochain/go-tomochain/crypto/ecies" - "github.com/tomochain/go-tomochain/rlp" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/common/math" + "github.com/tomochain/tomochain/crypto" + "github.com/tomochain/tomochain/crypto/ecies" + "github.com/tomochain/tomochain/rlp" ) // Envelope represents a clear-text data packet to transmit through the Whisper diff --git a/whisper/whisperv6/envelope_test.go b/whisper/whisperv6/envelope_test.go index 8ddb7a1c6e..275d560aa2 100644 --- a/whisper/whisperv6/envelope_test.go +++ b/whisper/whisperv6/envelope_test.go @@ -22,7 +22,7 @@ import ( mrand "math/rand" "testing" - "github.com/tomochain/go-tomochain/crypto" + "github.com/tomochain/tomochain/crypto" ) func TestEnvelopeOpenAcceptsOnlyOneKeyTypeInFilter(t *testing.T) { diff --git a/whisper/whisperv6/filter.go b/whisper/whisperv6/filter.go index 977cb2f7dd..c568cbcc29 100644 --- a/whisper/whisperv6/filter.go +++ b/whisper/whisperv6/filter.go @@ -21,9 +21,9 @@ import ( "fmt" "sync" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/crypto" - "github.com/tomochain/go-tomochain/log" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/crypto" + "github.com/tomochain/tomochain/log" ) // Filter represents a Whisper message filter diff --git a/whisper/whisperv6/filter_test.go b/whisper/whisperv6/filter_test.go index 4ce0bd6d54..8543697dfe 100644 --- a/whisper/whisperv6/filter_test.go +++ b/whisper/whisperv6/filter_test.go @@ -22,8 +22,8 @@ import ( "testing" "time" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/crypto" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/crypto" ) var seed int64 diff --git a/whisper/whisperv6/gen_criteria_json.go b/whisper/whisperv6/gen_criteria_json.go index aa40016297..7184c0a58f 100644 --- a/whisper/whisperv6/gen_criteria_json.go +++ b/whisper/whisperv6/gen_criteria_json.go @@ -5,7 +5,7 @@ package whisperv6 import ( "encoding/json" - "github.com/tomochain/go-tomochain/common/hexutil" + "github.com/tomochain/tomochain/common/hexutil" ) var _ = (*criteriaOverride)(nil) diff --git a/whisper/whisperv6/gen_message_json.go b/whisper/whisperv6/gen_message_json.go index 36a6d91067..ad5298e79a 100644 --- a/whisper/whisperv6/gen_message_json.go +++ b/whisper/whisperv6/gen_message_json.go @@ -5,7 +5,7 @@ package whisperv6 import ( "encoding/json" - "github.com/tomochain/go-tomochain/common/hexutil" + "github.com/tomochain/tomochain/common/hexutil" ) var _ = (*messageOverride)(nil) diff --git a/whisper/whisperv6/gen_newmessage_json.go b/whisper/whisperv6/gen_newmessage_json.go index bddf6cbac5..8ad9773df6 100644 --- a/whisper/whisperv6/gen_newmessage_json.go +++ b/whisper/whisperv6/gen_newmessage_json.go @@ -5,7 +5,7 @@ package whisperv6 import ( "encoding/json" - "github.com/tomochain/go-tomochain/common/hexutil" + "github.com/tomochain/tomochain/common/hexutil" ) var _ = (*newMessageOverride)(nil) diff --git a/whisper/whisperv6/message.go b/whisper/whisperv6/message.go index b9d7acf437..c93627483e 100644 --- a/whisper/whisperv6/message.go +++ b/whisper/whisperv6/message.go @@ -28,10 +28,10 @@ import ( mrand "math/rand" "strconv" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/crypto" - "github.com/tomochain/go-tomochain/crypto/ecies" - "github.com/tomochain/go-tomochain/log" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/crypto" + "github.com/tomochain/tomochain/crypto/ecies" + "github.com/tomochain/tomochain/log" ) // MessageParams specifies the exact way a message should be wrapped diff --git a/whisper/whisperv6/message_test.go b/whisper/whisperv6/message_test.go index 5e4017e6fa..6d191e4f7a 100644 --- a/whisper/whisperv6/message_test.go +++ b/whisper/whisperv6/message_test.go @@ -23,9 +23,9 @@ import ( mrand "math/rand" "testing" - "github.com/tomochain/go-tomochain/common/hexutil" - "github.com/tomochain/go-tomochain/crypto" - "github.com/tomochain/go-tomochain/rlp" + "github.com/tomochain/tomochain/common/hexutil" + "github.com/tomochain/tomochain/crypto" + "github.com/tomochain/tomochain/rlp" ) func generateMessageParams() (*MessageParams, error) { diff --git a/whisper/whisperv6/peer.go b/whisper/whisperv6/peer.go index e28b7e7d4a..9385c688d6 100644 --- a/whisper/whisperv6/peer.go +++ b/whisper/whisperv6/peer.go @@ -22,10 +22,10 @@ import ( "sync" "time" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/log" - "github.com/tomochain/go-tomochain/p2p" - "github.com/tomochain/go-tomochain/rlp" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/log" + "github.com/tomochain/tomochain/p2p" + "github.com/tomochain/tomochain/rlp" mapset "github.com/deckarep/golang-set" ) diff --git a/whisper/whisperv6/peer_test.go b/whisper/whisperv6/peer_test.go index 2f80ede1d4..1f0365eacf 100644 --- a/whisper/whisperv6/peer_test.go +++ b/whisper/whisperv6/peer_test.go @@ -27,12 +27,12 @@ import ( "testing" "time" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/common/hexutil" - "github.com/tomochain/go-tomochain/crypto" - "github.com/tomochain/go-tomochain/p2p" - "github.com/tomochain/go-tomochain/p2p/discover" - "github.com/tomochain/go-tomochain/p2p/nat" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/common/hexutil" + "github.com/tomochain/tomochain/crypto" + "github.com/tomochain/tomochain/p2p" + "github.com/tomochain/tomochain/p2p/discover" + "github.com/tomochain/tomochain/p2p/nat" ) var keys = []string{ diff --git a/whisper/whisperv6/topic.go b/whisper/whisperv6/topic.go index 93960fa1a8..c8965e2989 100644 --- a/whisper/whisperv6/topic.go +++ b/whisper/whisperv6/topic.go @@ -19,8 +19,8 @@ package whisperv6 import ( - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/common/hexutil" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/common/hexutil" ) // TopicType represents a cryptographically secure, probabilistic partial diff --git a/whisper/whisperv6/whisper.go b/whisper/whisperv6/whisper.go index 61d18ae0a1..d512ea4e73 100644 --- a/whisper/whisperv6/whisper.go +++ b/whisper/whisperv6/whisper.go @@ -26,12 +26,12 @@ import ( "sync" "time" - "github.com/tomochain/go-tomochain/common" - "github.com/tomochain/go-tomochain/crypto" - "github.com/tomochain/go-tomochain/log" - "github.com/tomochain/go-tomochain/p2p" - "github.com/tomochain/go-tomochain/rlp" - "github.com/tomochain/go-tomochain/rpc" + "github.com/tomochain/tomochain/common" + "github.com/tomochain/tomochain/crypto" + "github.com/tomochain/tomochain/log" + "github.com/tomochain/tomochain/p2p" + "github.com/tomochain/tomochain/rlp" + "github.com/tomochain/tomochain/rpc" "github.com/syndtr/goleveldb/leveldb/errors" "golang.org/x/crypto/pbkdf2" "golang.org/x/sync/syncmap" diff --git a/whisper/whisperv6/whisper_test.go b/whisper/whisperv6/whisper_test.go index 62eab4020d..f1fd0b7d2f 100644 --- a/whisper/whisperv6/whisper_test.go +++ b/whisper/whisperv6/whisper_test.go @@ -24,7 +24,7 @@ import ( "testing" "time" - "github.com/tomochain/go-tomochain/common" + "github.com/tomochain/tomochain/common" "golang.org/x/crypto/pbkdf2" )