From 89d18fcfa31fe298c3ffaf7b65c404257a76333c Mon Sep 17 00:00:00 2001 From: Lemois 1337 Date: Thu, 29 Aug 2024 21:27:19 +0200 Subject: [PATCH] Updated all imports to v2 --- app/app.go | 24 ++--- app/appmessage/common_test.go | 2 +- app/appmessage/domainconverters.go | 16 +-- app/appmessage/p2p_msgblock.go | 2 +- app/appmessage/p2p_msgblock_test.go | 6 +- app/appmessage/p2p_msgblockheader.go | 6 +- app/appmessage/p2p_msgblockheader_test.go | 2 +- app/appmessage/p2p_msgblocklocator.go | 2 +- app/appmessage/p2p_msgblocklocator_test.go | 2 +- app/appmessage/p2p_msgblockwithtrusteddata.go | 2 +- app/appmessage/p2p_msgibdblocklocator.go | 2 +- .../p2p_msgibdblocklocatorhighesthash.go | 2 +- app/appmessage/p2p_msgibdchainblocklocator.go | 2 +- app/appmessage/p2p_msginvrelayblock.go | 2 +- app/appmessage/p2p_msginvtransaction.go | 2 +- .../p2p_msgpruningpointutxosetchunk.go | 2 +- app/appmessage/p2p_msgrequestaddresses.go | 2 +- app/appmessage/p2p_msgrequestanticone.go | 2 +- app/appmessage/p2p_msgrequestblocklocator.go | 2 +- .../p2p_msgrequestblocklocator_test.go | 2 +- app/appmessage/p2p_msgrequestheaders.go | 2 +- app/appmessage/p2p_msgrequestheaders_test.go | 2 +- app/appmessage/p2p_msgrequestibdblocks.go | 2 +- .../p2p_msgrequestibdchainblocklocator.go | 2 +- ...p_msgrequestpruningpointutxosetandblock.go | 2 +- app/appmessage/p2p_msgrequestrelayblocks.go | 2 +- app/appmessage/p2p_msgrequesttransactions.go | 2 +- app/appmessage/p2p_msgtransactionnotfound.go | 2 +- app/appmessage/p2p_msgtx.go | 6 +- app/appmessage/p2p_msgtx_test.go | 8 +- app/appmessage/p2p_msgversion.go | 8 +- app/appmessage/p2p_msgversion_test.go | 2 +- app/appmessage/p2p_netaddress.go | 2 +- app/appmessage/rpc_get_block_count.go | 2 +- app/component_manager.go | 32 +++--- app/log.go | 2 +- app/protocol/common/common.go | 4 +- app/protocol/flowcontext/addresses.go | 2 +- app/protocol/flowcontext/blocks.go | 12 +-- app/protocol/flowcontext/config.go | 2 +- app/protocol/flowcontext/domain.go | 2 +- app/protocol/flowcontext/errors.go | 4 +- app/protocol/flowcontext/flow_context.go | 18 ++-- app/protocol/flowcontext/log.go | 2 +- app/protocol/flowcontext/network.go | 10 +- app/protocol/flowcontext/orphans.go | 10 +- .../flowcontext/shared_requested_blocks.go | 2 +- .../shared_requested_transactions.go | 2 +- app/protocol/flowcontext/transactions.go | 6 +- app/protocol/flows/handshake/handshake.go | 18 ++-- app/protocol/flows/handshake/log.go | 4 +- .../flows/handshake/receiveversion.go | 12 +-- app/protocol/flows/handshake/sendversion.go | 12 +-- app/protocol/flows/ready/log.go | 4 +- app/protocol/flows/ready/ready.go | 10 +- .../v5/addressexchange/receiveaddresses.go | 12 +-- .../flows/v5/addressexchange/sendaddresses.go | 6 +- .../flows/v5/blockrelay/batch_size_test.go | 2 +- .../flows/v5/blockrelay/block_locator.go | 8 +- .../v5/blockrelay/handle_ibd_block_locator.go | 10 +- .../blockrelay/handle_ibd_block_requests.go | 8 +- .../handle_ibd_request_chain_block_locator.go | 12 +-- ...pruning_point_and_its_anticone_requests.go | 14 +-- .../handle_pruning_point_proof_requests.go | 8 +- .../blockrelay/handle_relay_block_requests.go | 10 +- .../flows/v5/blockrelay/handle_relay_invs.go | 26 ++--- .../v5/blockrelay/handle_request_anticone.go | 14 +-- .../handle_request_block_locator.go | 10 +- .../v5/blockrelay/handle_request_headers.go | 12 +-- .../handle_request_pruning_point_utxo_set.go | 16 +-- app/protocol/flows/v5/blockrelay/ibd.go | 22 ++--- .../v5/blockrelay/ibd_with_headers_proof.go | 12 +-- app/protocol/flows/v5/blockrelay/log.go | 4 +- .../send_virtual_selected_parent_inv.go | 10 +- app/protocol/flows/v5/ping/receive.go | 4 +- app/protocol/flows/v5/ping/send.go | 14 +-- app/protocol/flows/v5/register.go | 20 ++-- .../flows/v5/rejects/handle_rejects.go | 6 +- app/protocol/flows/v5/testing/common_test.go | 2 +- .../flows/v5/testing/receiveaddresses_test.go | 16 +-- .../handle_relayed_transactions.go | 20 ++-- .../handle_relayed_transactions_test.go | 32 +++--- .../handle_requested_transactions.go | 4 +- .../handle_requested_transactions_test.go | 26 ++--- app/protocol/log.go | 4 +- app/protocol/manager.go | 18 ++-- app/protocol/peer/log.go | 2 +- app/protocol/peer/peer.go | 12 +-- app/protocol/protocol.go | 24 ++--- app/protocol/protocolerrors/protocolerrors.go | 2 +- app/rpc/log.go | 4 +- app/rpc/manager.go | 22 ++--- app/rpc/rpc.go | 10 +- app/rpc/rpccontext/chain_changed.go | 6 +- app/rpc/rpccontext/context.go | 14 +-- app/rpc/rpccontext/log.go | 2 +- app/rpc/rpccontext/notificationmanager.go | 12 +-- app/rpc/rpccontext/utxos_by_addresses.go | 8 +- app/rpc/rpccontext/verbosedata.go | 14 +-- app/rpc/rpchandlers/add_peer.go | 8 +- app/rpc/rpchandlers/ban.go | 6 +- .../estimate_network_hashes_per_second.go | 10 +- app/rpc/rpchandlers/get_balance_by_address.go | 10 +- .../rpchandlers/get_balances_by_addresses.go | 6 +- app/rpc/rpchandlers/get_block.go | 8 +- app/rpc/rpchandlers/get_block_count.go | 6 +- app/rpc/rpchandlers/get_block_dag_info.go | 8 +- app/rpc/rpchandlers/get_block_template.go | 16 +-- app/rpc/rpchandlers/get_blocks.go | 10 +- app/rpc/rpchandlers/get_blocks_test.go | 24 ++--- app/rpc/rpchandlers/get_coin_supply.go | 8 +- .../rpchandlers/get_connected_peer_info.go | 6 +- app/rpc/rpchandlers/get_current_network.go | 6 +- app/rpc/rpchandlers/get_headers.go | 6 +- app/rpc/rpchandlers/get_info.go | 8 +- app/rpc/rpchandlers/get_mempool_entries.go | 6 +- .../get_mempool_entries_by_addresses.go | 10 +- app/rpc/rpchandlers/get_mempool_entry.go | 10 +- app/rpc/rpchandlers/get_peer_addresses.go | 6 +- app/rpc/rpchandlers/get_selected_tip_hash.go | 6 +- app/rpc/rpchandlers/get_subnetwork.go | 6 +- app/rpc/rpchandlers/get_utxos_by_addresses.go | 10 +- .../get_virtual_selected_parent_blue_score.go | 6 +- ...irtual_selected_parent_chain_from_block.go | 8 +- app/rpc/rpchandlers/log.go | 4 +- app/rpc/rpchandlers/notify_block_added.go | 6 +- .../rpchandlers/notify_finality_conflicts.go | 6 +- .../rpchandlers/notify_new_block_template.go | 6 +- ...notify_pruning_point_utxo_set_overrides.go | 6 +- app/rpc/rpchandlers/notify_utxos_changed.go | 6 +- .../notify_virtual_daa_score_changed.go | 6 +- ...tual_selected_parent_blue_score_changed.go | 6 +- ...y_virtual_selected_parent_chain_changed.go | 6 +- .../rpchandlers/resolve_finality_conflict.go | 6 +- app/rpc/rpchandlers/shut_down.go | 6 +- ...ifying_pruning_point_utxo_set_overrides.go | 6 +- .../stop_notifying_utxos_changed.go | 6 +- app/rpc/rpchandlers/submit_block.go | 12 +-- app/rpc/rpchandlers/submit_transaction.go | 10 +- app/rpc/rpchandlers/unban.go | 6 +- cmd/genkeypair/config.go | 2 +- cmd/genkeypair/main.go | 4 +- cmd/karlsenctl/command_parser.go | 2 +- cmd/karlsenctl/commands.go | 2 +- cmd/karlsenctl/config.go | 2 +- cmd/karlsenctl/main.go | 6 +- cmd/karlsenctl/reflection_helpers.go | 2 +- cmd/karlsenminer/client.go | 6 +- cmd/karlsenminer/config.go | 6 +- cmd/karlsenminer/log.go | 4 +- cmd/karlsenminer/main.go | 12 +-- cmd/karlsenminer/mineloop.go | 18 ++-- .../templatemanager/templatemanager.go | 8 +- cmd/karlsenwallet/balance.go | 6 +- cmd/karlsenwallet/broadcast.go | 4 +- cmd/karlsenwallet/config.go | 2 +- cmd/karlsenwallet/create.go | 8 +- cmd/karlsenwallet/create_unsigned_tx.go | 6 +- cmd/karlsenwallet/daemon/client/client.go | 4 +- cmd/karlsenwallet/daemon/server/address.go | 6 +- cmd/karlsenwallet/daemon/server/balance.go | 4 +- cmd/karlsenwallet/daemon/server/broadcast.go | 12 +-- cmd/karlsenwallet/daemon/server/common.go | 2 +- .../server/create_unsigned_transaction.go | 8 +- .../daemon/server/external_spendable_utxos.go | 8 +- cmd/karlsenwallet/daemon/server/log.go | 6 +- cmd/karlsenwallet/daemon/server/rpc.go | 4 +- cmd/karlsenwallet/daemon/server/send.go | 2 +- cmd/karlsenwallet/daemon/server/server.go | 18 ++-- cmd/karlsenwallet/daemon/server/shutdown.go | 2 +- cmd/karlsenwallet/daemon/server/sign.go | 4 +- .../daemon/server/split_transaction.go | 16 +-- .../daemon/server/split_transaction_test.go | 22 ++--- cmd/karlsenwallet/daemon/server/sync.go | 4 +- cmd/karlsenwallet/dump_unencrypted_data.go | 6 +- cmd/karlsenwallet/keys/create.go | 6 +- cmd/karlsenwallet/keys/keys.go | 6 +- .../libkarlsenwallet/bip32/serialization.go | 2 +- cmd/karlsenwallet/libkarlsenwallet/bip39.go | 4 +- .../libkarlsenwallet/converters.go | 10 +- cmd/karlsenwallet/libkarlsenwallet/keypair.go | 6 +- .../serialization/serialization.go | 6 +- cmd/karlsenwallet/libkarlsenwallet/sign.go | 14 +-- .../libkarlsenwallet/transaction.go | 14 +-- .../libkarlsenwallet/transaction_test.go | 20 ++-- cmd/karlsenwallet/new_address.go | 4 +- cmd/karlsenwallet/parse.go | 8 +- cmd/karlsenwallet/send.go | 10 +- cmd/karlsenwallet/show_addresses.go | 4 +- cmd/karlsenwallet/sign.go | 4 +- cmd/karlsenwallet/start_daemon.go | 2 +- cmd/karlsenwallet/sweep.go | 30 +++--- cmd/karlsenwallet/utils/format_kls.go | 2 +- domain/consensus/consensus.go | 16 +-- domain/consensus/consensus_test.go | 10 +- domain/consensus/constructors.go | 4 +- .../database/binaryserialization/hash.go | 2 +- domain/consensus/database/bucket.go | 4 +- domain/consensus/database/cursor.go | 4 +- domain/consensus/database/dbmanager.go | 4 +- domain/consensus/database/errors.go | 2 +- domain/consensus/database/key.go | 4 +- .../database/serialization/acceptancedata.go | 2 +- .../consensus/database/serialization/block.go | 2 +- .../serialization/block_ghostdag_data.go | 2 +- .../database/serialization/blockheader.go | 4 +- .../serialization/blocklevelparents.go | 2 +- .../database/serialization/blockrelations.go | 2 +- .../database/serialization/blockstatus.go | 2 +- .../serialization/blues_anticone_sizes.go | 2 +- .../blues_anticone_sizes_test.go | 2 +- .../database/serialization/daa_block.go | 2 +- .../consensus/database/serialization/hash.go | 2 +- .../database/serialization/multiset.go | 4 +- .../database/serialization/outpoint.go | 2 +- .../serialization/reachability_data.go | 6 +- .../serialization/reachablity_interval.go | 2 +- .../database/serialization/subnetworkid.go | 4 +- .../consensus/database/serialization/tips.go | 2 +- .../database/serialization/transaction.go | 2 +- .../database/serialization/transactionid.go | 4 +- .../database/serialization/utxo_collection.go | 4 +- .../database/serialization/utxo_diff.go | 4 +- .../database/serialization/utxo_entry.go | 4 +- domain/consensus/database/transaction.go | 4 +- .../acceptance_data_staging_shard.go | 4 +- .../acceptance_data_store.go | 10 +- .../block_header_staging_shard.go | 4 +- .../blockheaderstore/block_header_store.go | 10 +- .../block_relation_staging_shard.go | 4 +- .../block_relation_store.go | 10 +- .../block_status_staging_shard.go | 4 +- .../blockstatusstore/block_status_store.go | 10 +- .../blockstore/block_staging_shard.go | 4 +- .../datastructures/blockstore/block_store.go | 10 +- .../block_window_heap_slice_staging_shard.go | 4 +- .../block_window_heap_slice_store.go | 10 +- .../consensus_state_staging_shard.go | 4 +- .../consensus_state_store.go | 8 +- .../consensusstatestore/tips.go | 6 +- .../consensusstatestore/utxo.go | 6 +- .../consensusstatestore/utxo_serialization.go | 4 +- .../consensusstatestore/virtual_utxo_set.go | 4 +- .../daa_blocks_staging_shard.go | 6 +- .../daablocksstore/daa_blocks_store.go | 10 +- .../daa_window_staging_shard.go | 6 +- .../daawindowstore/daa_window_store.go | 12 +-- .../finalitystore/finality_staging_shard.go | 4 +- .../finalitystore/finality_store.go | 8 +- .../ghostadag_data_staging_shard.go | 4 +- .../ghostdagdatastore/ghostdag_data_store.go | 10 +- .../headers_selected_chain_staging_shard.go | 6 +- .../headers_selected_chain_store.go | 16 +-- .../headers_selected_tip_staging_shard.go | 4 +- .../headers_selected_tips_store.go | 8 +- .../merge_depth_root_staging_shard.go | 4 +- .../merge_depth_root_store.go | 8 +- .../multisetstore/multiset_staging_shard.go | 4 +- .../multisetstore/multiset_store.go | 10 +- .../pruningstore/imported_pruning_point.go | 6 +- .../pruningstore/pruning_staging_shard.go | 4 +- .../pruningstore/pruning_store.go | 14 +-- .../reachability_data_staging_shard.go | 4 +- .../reachability_data_store.go | 12 +-- .../utxodiffstore/utxo_diff_staging_shard.go | 4 +- .../utxodiffstore/utxo_diff_store.go | 10 +- domain/consensus/factory.go | 98 +++++++++---------- domain/consensus/factory_test.go | 6 +- domain/consensus/finality_test.go | 14 +-- domain/consensus/log.go | 4 +- .../model/acceptancedata_equal_clone_test.go | 4 +- domain/consensus/model/block_heap.go | 2 +- domain/consensus/model/blockiterator.go | 2 +- domain/consensus/model/blockrelations.go | 2 +- .../model/blockrelations_equal_clone_test.go | 2 +- .../externalapi/block_equal_clone_test.go | 4 +- .../transaction_equal_clone_test.go | 4 +- ...face_datastructures_acceptancedatastore.go | 2 +- ...terface_datastructures_blockheaderstore.go | 2 +- ...rface_datastructures_blockrelationstore.go | 2 +- ...ocks_with_trusted_data_daa_window_store.go | 2 +- ...terface_datastructures_blockstatusstore.go | 2 +- .../interface_datastructures_blockstore.go | 2 +- ...face_datastructures_consensusstatestore.go | 2 +- ...interface_datastructures_daablocksstore.go | 2 +- .../interface_datastructures_finalitystore.go | 2 +- ...erface_datastructures_ghostdagdatastore.go | 2 +- ...atastructures_headersselectedchainstore.go | 2 +- ...nterface_datastructures_headertipsstore.go | 2 +- ...face_datastructures_mergedepthrootstore.go | 2 +- .../interface_datastructures_multisetstore.go | 2 +- .../interface_datastructures_pruningstore.go | 2 +- ...ce_datastructures_reachabilitydatastore.go | 2 +- .../interface_datastructures_utxodiffstore.go | 2 +- ...nterface_datastructures_windowheapstore.go | 2 +- .../model/interface_processes_blockbuilder.go | 2 +- .../interface_processes_blockparentbuilder.go | 2 +- .../interface_processes_blockprocessor.go | 2 +- .../interface_processes_blockvalidator.go | 2 +- .../interface_processes_coinbasemanager.go | 2 +- ...terface_processes_consensusstatemanager.go | 2 +- .../interface_processes_dagtopologymanager.go | 2 +- ...interface_processes_dagtraversalmanager.go | 2 +- .../interface_processes_difficultymanager.go | 2 +- .../interface_processes_finalitymanager.go | 2 +- .../interface_processes_ghostdagmanager.go | 2 +- .../interface_processes_headertipsmanager.go | 2 +- .../interface_processes_mergedepthmanager.go | 2 +- .../interface_processes_parentsmanager.go | 2 +- ...terface_processes_pastmediantimemanager.go | 2 +- .../interface_processes_pruningmanager.go | 2 +- ...interface_processes_pruningproofmanager.go | 2 +- .../interface_processes_reachabilitytree.go | 2 +- .../model/interface_processes_syncmanager.go | 2 +- ...nterface_processes_transactionvalidator.go | 2 +- domain/consensus/model/multiset.go | 2 +- domain/consensus/model/reachabilitydata.go | 2 +- domain/consensus/model/subdag.go | 2 +- .../model/testapi/test_block_builder.go | 4 +- .../consensus/model/testapi/test_consensus.go | 8 +- .../testapi/test_consensus_state_manager.go | 4 +- .../testapi/test_reachability_manager.go | 4 +- .../testapi/test_transaction_validator.go | 4 +- .../model/utxo_diff_reversal_data.go | 2 +- domain/consensus/model/virtual.go | 2 +- .../processes/blockbuilder/block_builder.go | 18 ++-- .../blockbuilder/block_builder_test.go | 12 +-- .../consensus/processes/blockbuilder/log.go | 2 +- .../blockbuilder/test_block_builder.go | 16 +-- .../blockparentbuilder/blockparentbuilder.go | 8 +- .../blockprocessor/blocklogger/blocklogger.go | 4 +- .../blockprocessor/blocklogger/log.go | 2 +- .../blockprocessor/blockprocessor.go | 8 +- .../consensus/processes/blockprocessor/log.go | 2 +- .../validate_and_insert_block.go | 20 ++-- .../validate_and_insert_block_test.go | 18 ++-- ...date_and_insert_block_with_trusted_data.go | 8 +- ...idate_and_insert_imported_pruning_point.go | 6 +- ..._and_insert_imported_pruning_point_test.go | 24 ++--- .../blockprocessor/validate_block.go | 10 +- .../blockvalidator/block_body_in_context.go | 12 +-- .../block_body_in_context_test.go | 16 +-- .../blockvalidator/block_body_in_isolation.go | 16 +-- .../block_body_in_isolation_test.go | 24 ++--- .../blockvalidator/block_header_in_context.go | 10 +- .../block_header_in_context_test.go | 16 +-- .../block_header_in_isolation.go | 14 +-- .../block_header_in_isolation_test.go | 18 ++-- .../blockvalidator/blockvalidator.go | 8 +- .../blockvalidator/header_pruning_point.go | 6 +- .../consensus/processes/blockvalidator/log.go | 2 +- ..._violation_proof_of_work_and_difficulty.go | 14 +-- ...ation_proof_of_work_and_difficulty_test.go | 24 ++--- .../coinbasemanager/coinbasemanager.go | 14 +-- .../coinbasemanager_external_test.go | 8 +- .../coinbasemanager/coinbasemanager_test.go | 6 +- .../processes/coinbasemanager/payload.go | 4 +- .../add_block_to_virtual.go | 8 +- .../add_block_to_virtual_test.go | 12 +-- .../calculate_past_utxo.go | 14 +-- .../calculate_past_utxo_test.go | 14 +-- .../check_finality_violation.go | 4 +- .../consensus_state_manager.go | 4 +- .../find_selected_parent_chain_changes.go | 4 +- ...find_selected_parent_chain_changes_test.go | 8 +- .../import_pruning_utxo_set.go | 16 +-- .../processes/consensusstatemanager/log.go | 2 +- .../consensusstatemanager/multisets.go | 8 +- .../pick_virtual_parents.go | 10 +- .../populate_tx_with_utxo_entries.go | 8 +- .../consensusstatemanager/resolve.go | 8 +- .../resolve_block_status.go | 10 +- .../resolve_block_status_test.go | 16 +-- .../resolve_virtual_test.go | 12 +-- .../reverse_utxo_diffs.go | 8 +- .../reverse_utxo_diffs_test.go | 10 +- .../test_consensus_state_manager.go | 6 +- .../consensusstatemanager/update_virtual.go | 6 +- .../consensusstatemanager/utxo_diffs.go | 4 +- .../verify_and_build_utxo.go | 12 +-- .../virtual_parents_test.go | 12 +-- .../dagtopologymanager/dagtopologymanager.go | 4 +- .../dagtopologymanager_external_test.go | 8 +- .../processes/dagtraversalmanager/anticone.go | 6 +- .../dagtraversalmanager/block_heap.go | 4 +- .../dagtraversalmanager.go | 4 +- .../dagtraversalmanager_test.go | 8 +- .../selected_child_iterator.go | 4 +- .../processes/dagtraversalmanager/window.go | 6 +- .../dagtraversalmanager/window_test.go | 12 +-- .../difficultymanager/blockwindow.go | 6 +- .../difficultymanager/difficultymanager.go | 10 +- .../difficultymanager_test.go | 16 +-- .../processes/difficultymanager/hashrate.go | 6 +- .../processes/difficultymanager/log.go | 2 +- .../finalitymanager/finality_manager.go | 6 +- .../processes/finalitymanager/log.go | 2 +- .../processes/ghostdag2/ghostdagimpl.go | 6 +- .../processes/ghostdagmanager/compare.go | 4 +- .../processes/ghostdagmanager/ghostdag.go | 6 +- .../ghostdagmanager/ghostdag_test.go | 18 ++-- .../ghostdagmanager/ghostdagmanager.go | 4 +- .../processes/ghostdagmanager/mergeset.go | 4 +- .../headersselectedtipmanager.go | 4 +- .../headersselectedtipmanager_test.go | 10 +- .../processes/mergedepthmanager/log.go | 2 +- .../mergedepthmanager/merge_depth_manager.go | 8 +- .../parentsmanager/parentsmanager.go | 4 +- .../pastmediantimemanager.go | 6 +- .../pastmediantimemanager_test.go | 10 +- .../consensus/processes/pruningmanager/log.go | 2 +- .../processes/pruningmanager/pruning_test.go | 12 +-- .../pruningmanager/pruningmanager.go | 18 ++-- .../processes/pruningproofmanager/log.go | 2 +- .../pruningproofmanager.go | 34 +++---- .../processes/reachabilitymanager/fetch.go | 8 +- .../future_covering_set.go | 4 +- .../processes/reachabilitymanager/interval.go | 2 +- .../processes/reachabilitymanager/log.go | 2 +- .../reachabilitymanager/main_test.go | 2 +- .../ordered_tree_node_set.go | 4 +- .../reachabilitymanager/reachability.go | 4 +- .../reachabilityManager_test.go | 8 +- .../reachability_external_test.go | 8 +- .../reachability_stretch_test.go | 10 +- .../reachabilitymanager/reachability_test.go | 4 +- .../reachabilitymanager.go | 4 +- .../reachabilitymanager/reindex_context.go | 4 +- .../processes/reachabilitymanager/stage.go | 4 +- .../test_reachabilitymanager.go | 6 +- .../processes/reachabilitymanager/tree.go | 6 +- .../processes/syncmanager/antipast.go | 4 +- .../processes/syncmanager/blocklocator.go | 6 +- .../syncmanager/blocklocator_test.go | 10 +- domain/consensus/processes/syncmanager/log.go | 2 +- .../processes/syncmanager/syncinfo.go | 4 +- .../processes/syncmanager/syncmanager.go | 6 +- .../processes/syncmanager/syncmanager_test.go | 8 +- .../processes/transactionvalidator/mass.go | 2 +- .../test_transaction_validator.go | 6 +- .../transaction_in_context.go | 14 +-- .../transaction_in_isolation.go | 10 +- .../transaction_in_isolation_test.go | 14 +-- .../transactionvalidator.go | 8 +- .../transactionvalidator_test.go | 22 ++--- domain/consensus/pruning_test.go | 6 +- domain/consensus/ruleerrors/rule_error.go | 4 +- .../consensus/ruleerrors/rule_error_test.go | 4 +- domain/consensus/test_consensus.go | 18 ++-- domain/consensus/test_consensus_getters.go | 8 +- .../consensus/test_consensus_render_to_dot.go | 2 +- domain/consensus/timelock_CLTV_test.go | 18 ++-- .../utils/blockheader/blockheader.go | 4 +- .../utils/blockheader/blockheader_test.go | 2 +- .../consensus/utils/consensushashing/block.go | 6 +- .../calculate_signature_hash.go | 8 +- .../calculate_signature_hash_test.go | 14 +-- .../utils/consensushashing/transaction.go | 10 +- domain/consensus/utils/hashes/strings.go | 2 +- domain/consensus/utils/hashes/writers.go | 2 +- domain/consensus/utils/hashset/hash_set.go | 2 +- domain/consensus/utils/lrucache/lrucache.go | 2 +- .../lrucacheghostdagdata.go | 2 +- ...dwindowsizetoblockghostdagdatahashpairs.go | 2 +- ...achehashpairtoblockghostdagdatahashpair.go | 2 +- .../lrucacheuint64tohash.go | 2 +- domain/consensus/utils/merkle/merkle.go | 6 +- domain/consensus/utils/mining/solve.go | 4 +- domain/consensus/utils/multiset/multiset.go | 4 +- .../utils/pow/fishhashplus_kernel.go | 2 +- domain/consensus/utils/pow/heavyhash.go | 4 +- domain/consensus/utils/pow/heavyhash_test.go | 4 +- domain/consensus/utils/pow/log.go | 4 +- domain/consensus/utils/pow/pow.go | 16 +-- domain/consensus/utils/pow/xoshiro.go | 2 +- .../reachabilitydata/reachability_data.go | 4 +- .../reachabilitydata_equal_clone_test.go | 4 +- .../consensus/utils/serialization/common.go | 4 +- domain/consensus/utils/subnetworks/compare.go | 2 +- .../consensus/utils/subnetworks/from_bytes.go | 2 +- .../utils/subnetworks/from_string.go | 2 +- .../utils/subnetworks/subnetworks.go | 2 +- .../utils/testutils/create_transaction.go | 8 +- .../consensus/utils/testutils/for_all_nets.go | 4 +- .../utils/testutils/for_all_paths.go | 2 +- .../utils/testutils/op_true_script.go | 6 +- .../utils/testutils/test_ghostdag.go | 6 +- .../utils/transactionhelper/coinbase.go | 4 +- .../consensus/utils/transactionhelper/new.go | 4 +- .../utils/transactionid/from_bytes.go | 2 +- .../utils/transactionid/from_string.go | 2 +- domain/consensus/utils/txscript/engine.go | 8 +- .../consensus/utils/txscript/engine_test.go | 4 +- .../consensus/utils/txscript/example_test.go | 8 +- domain/consensus/utils/txscript/log.go | 2 +- domain/consensus/utils/txscript/main_test.go | 2 +- domain/consensus/utils/txscript/opcode.go | 4 +- .../utils/txscript/reference_test.go | 8 +- domain/consensus/utils/txscript/script.go | 4 +- .../consensus/utils/txscript/script_test.go | 2 +- domain/consensus/utils/txscript/sign.go | 8 +- domain/consensus/utils/txscript/sign_test.go | 10 +- domain/consensus/utils/txscript/standard.go | 8 +- .../consensus/utils/txscript/standard_test.go | 6 +- domain/consensus/utils/utxo/diff_algebra.go | 2 +- .../consensus/utils/utxo/diff_algebra_test.go | 4 +- .../utils/utxo/immutable_utxo_diff.go | 2 +- .../consensus/utils/utxo/mutable_utxo_diff.go | 6 +- domain/consensus/utils/utxo/serialization.go | 6 +- .../utils/utxo/serialization_test.go | 2 +- .../consensus/utils/utxo/utxo_collection.go | 2 +- domain/consensus/utils/utxo/utxo_entry.go | 2 +- .../consensus/utils/utxo/utxo_entry_test.go | 2 +- domain/consensus/utils/utxo/utxo_iterator.go | 2 +- .../utils/utxo/utxo_iterator_with_diff.go | 2 +- .../utils/utxolrucache/utxolrucache.go | 2 +- domain/consensus/utils/virtual/virtual.go | 4 +- .../consensusreference/consensusreference.go | 2 +- domain/dagconfig/consensus_defaults.go | 2 +- domain/dagconfig/doc.go | 4 +- domain/dagconfig/genesis.go | 8 +- domain/dagconfig/genesis_test.go | 2 +- domain/dagconfig/params.go | 8 +- domain/dagconfig/params_test.go | 2 +- domain/dagconfig/register_test.go | 2 +- domain/domain.go | 18 ++-- domain/domain_test.go | 16 +-- domain/log.go | 2 +- domain/migrate.go | 2 +- .../blocktemplatebuilder.go | 24 ++--- .../miningmanager/blocktemplatebuilder/log.go | 2 +- .../blocktemplatebuilder/txselection.go | 6 +- domain/miningmanager/factory.go | 8 +- .../mempool/check_transaction_standard.go | 10 +- .../check_transaction_standard_test.go | 14 +-- domain/miningmanager/mempool/config.go | 6 +- .../fill_inputs_and_get_missing_parents.go | 10 +- .../mempool/handle_new_block_transactions.go | 6 +- domain/miningmanager/mempool/log.go | 2 +- domain/miningmanager/mempool/mempool.go | 12 +-- .../miningmanager/mempool/mempool_utxo_set.go | 10 +- .../miningmanager/mempool/model/map_types.go | 2 +- .../mempool/model/mempool_transaction.go | 4 +- .../mempool/model/orphan_transaction.go | 4 +- .../mempool/model/transaction.go | 2 +- domain/miningmanager/mempool/orphan_pool.go | 12 +-- .../mempool/remove_transaction.go | 4 +- .../revalidate_high_priority_transactions.go | 6 +- .../mempool/transactions_pool.go | 6 +- .../validate_and_insert_transaction.go | 6 +- .../mempool/validate_transaction.go | 6 +- domain/miningmanager/miningmanager.go | 6 +- domain/miningmanager/miningmanager_test.go | 38 +++---- .../model/interface_blocktemplatebuilder.go | 2 +- .../miningmanager/model/interface_mempool.go | 4 +- domain/prefixmanager/log.go | 4 +- domain/prefixmanager/prefix.go | 4 +- domain/utxoindex/log.go | 2 +- domain/utxoindex/model.go | 2 +- domain/utxoindex/serialization.go | 4 +- domain/utxoindex/serialization_test.go | 2 +- domain/utxoindex/store.go | 8 +- domain/utxoindex/utxoindex.go | 8 +- infrastructure/config/config.go | 12 +-- infrastructure/config/config_test.go | 4 +- infrastructure/config/log.go | 2 +- infrastructure/config/network.go | 6 +- infrastructure/db/database/common_test.go | 4 +- infrastructure/db/database/cursor_test.go | 2 +- infrastructure/db/database/database_test.go | 2 +- infrastructure/db/database/ldb/cursor.go | 2 +- infrastructure/db/database/ldb/cursor_test.go | 2 +- infrastructure/db/database/ldb/leveldb.go | 2 +- .../db/database/ldb/leveldb_test.go | 2 +- infrastructure/db/database/ldb/log.go | 2 +- infrastructure/db/database/ldb/transaction.go | 2 +- .../db/database/ldb/transaction_test.go | 2 +- .../db/database/transaction_test.go | 2 +- infrastructure/logger/logs.go | 2 +- .../network/addressmanager/addressmanager.go | 6 +- .../addressmanager/addressmanager_test.go | 8 +- .../addressmanager/addressrandomize.go | 2 +- .../network/addressmanager/config.go | 2 +- .../addressmanager/localaddressmanager.go | 2 +- infrastructure/network/addressmanager/log.go | 2 +- .../network/addressmanager/network.go | 2 +- .../network/addressmanager/network_test.go | 2 +- .../network/addressmanager/store.go | 6 +- .../network/addressmanager/store_test.go | 4 +- .../network/addressmanager/test_utils.go | 4 +- .../network/connmanager/connection_set.go | 2 +- .../network/connmanager/connmanager.go | 10 +- infrastructure/network/connmanager/log.go | 4 +- .../connmanager/outgoing_connections.go | 2 +- infrastructure/network/dnsseed/log.go | 4 +- infrastructure/network/dnsseed/seed.go | 10 +- infrastructure/network/netadapter/log.go | 2 +- .../network/netadapter/netadapter.go | 12 +-- .../network/netadapter/netadapter_test.go | 6 +- .../network/netadapter/netconnection.go | 8 +- .../network/netadapter/router/log.go | 2 +- .../network/netadapter/router/route.go | 4 +- .../network/netadapter/router/router.go | 2 +- .../server/grpcserver/connection_loops.go | 8 +- .../server/grpcserver/grpc_connection.go | 6 +- .../server/grpcserver/grpc_server.go | 4 +- .../netadapter/server/grpcserver/log.go | 4 +- .../netadapter/server/grpcserver/p2pserver.go | 6 +- .../server/grpcserver/protowire/common.go | 10 +- .../grpcserver/protowire/p2p_addresses.go | 2 +- .../server/grpcserver/protowire/p2p_block.go | 2 +- .../grpcserver/protowire/p2p_block_headers.go | 2 +- .../grpcserver/protowire/p2p_block_locator.go | 4 +- .../protowire/p2p_block_with_trusted_data.go | 4 +- .../p2p_block_with_trusted_data_v4.go | 2 +- .../p2p_done_blocks_with_trusted_data.go | 2 +- .../grpcserver/protowire/p2p_done_headers.go | 2 +- .../p2p_done_pruning_point_utxo_set_chunks.go | 2 +- .../server/grpcserver/protowire/p2p_header.go | 6 +- .../grpcserver/protowire/p2p_ibd_block.go | 2 +- .../protowire/p2p_ibd_block_locator.go | 2 +- .../p2p_ibd_block_locator_highest_hash.go | 2 +- ...bd_block_locator_highest_hash_not_found.go | 2 +- .../protowire/p2p_ibd_chain_block_locator.go | 2 +- .../protowire/p2p_inv_relay_block.go | 2 +- .../protowire/p2p_inv_transactions.go | 2 +- .../server/grpcserver/protowire/p2p_ping.go | 2 +- .../server/grpcserver/protowire/p2p_pong.go | 2 +- .../protowire/p2p_pruning_point_proof.go | 2 +- .../p2p_pruning_point_utxo_set_chunk.go | 2 +- .../protowire/p2p_pruning_points.go | 2 +- .../server/grpcserver/protowire/p2p_ready.go | 2 +- .../server/grpcserver/protowire/p2p_reject.go | 2 +- .../protowire/p2p_request_addresses.go | 2 +- .../protowire/p2p_request_anticone.go | 2 +- .../protowire/p2p_request_block_locator.go | 2 +- .../protowire/p2p_request_headers.go | 2 +- .../protowire/p2p_request_ibd_blocks.go | 2 +- .../p2p_request_ibd_chain_block_locator.go | 4 +- .../protowire/p2p_request_next_headers.go | 2 +- ...t_pruning_point_and_its_anticone_blocks.go | 2 +- ...quest_next_pruning_point_utxo_set_chunk.go | 2 +- ..._request_pruning_point_and_its_anticone.go | 2 +- .../p2p_request_pruning_point_proof.go | 2 +- ...equest_pruning_point_utxo_set_and_block.go | 2 +- .../protowire/p2p_request_relay_blocks.go | 2 +- .../protowire/p2p_request_transactions.go | 2 +- .../grpcserver/protowire/p2p_transaction.go | 2 +- .../protowire/p2p_transaction_not_found.go | 2 +- .../grpcserver/protowire/p2p_trusted_data.go | 2 +- .../protowire/p2p_unexpected_pruning_point.go | 2 +- .../server/grpcserver/protowire/p2p_verack.go | 2 +- .../grpcserver/protowire/p2p_version.go | 6 +- .../grpcserver/protowire/rpc_add_peer.go | 2 +- .../server/grpcserver/protowire/rpc_ban.go | 2 +- .../server/grpcserver/protowire/rpc_error.go | 2 +- .../rpc_estimate_network_hashes_per_second.go | 2 +- .../protowire/rpc_get_balance_by_address.go | 2 +- .../rpc_get_balances_by_addresses.go | 2 +- .../grpcserver/protowire/rpc_get_block.go | 2 +- .../protowire/rpc_get_block_count.go | 2 +- .../protowire/rpc_get_block_dag_info.go | 2 +- .../protowire/rpc_get_block_template.go | 2 +- .../grpcserver/protowire/rpc_get_blocks.go | 2 +- .../protowire/rpc_get_connected_peer_info.go | 2 +- .../protowire/rpc_get_current_network.go | 2 +- .../grpcserver/protowire/rpc_get_headers.go | 2 +- .../grpcserver/protowire/rpc_get_info.go | 2 +- .../protowire/rpc_get_mempool_entries.go | 2 +- .../rpc_get_mempool_entries_by_addresses.go | 2 +- .../protowire/rpc_get_mempool_entry.go | 2 +- .../protowire/rpc_get_peer_addresses.go | 2 +- .../protowire/rpc_get_selected_tip_hash.go | 2 +- .../protowire/rpc_get_subnetwork.go | 2 +- .../grpcserver/protowire/rpc_get_supply.go | 2 +- .../protowire/rpc_get_utxos_by_addresses.go | 2 +- ..._get_virtual_selected_parent_blue_score.go | 2 +- ...irtual_selected_parent_chain_from_block.go | 2 +- .../protowire/rpc_notify_block_added.go | 2 +- .../rpc_notify_finality_conflicts.go | 2 +- .../rpc_notify_new_block_template.go | 2 +- ..._notify_pruning_point_utxo_set_override.go | 2 +- .../protowire/rpc_notify_utxos_changed.go | 2 +- .../rpc_notify_virtual_daa_score_changed.go | 2 +- ...tual_selected_parent_blue_score_changed.go | 2 +- ...y_virtual_selected_parent_chain_changed.go | 2 +- .../rpc_resolve_finality_conflict.go | 2 +- .../grpcserver/protowire/rpc_shut_down.go | 2 +- .../rpc_stop_notifying_utxos_changed.go | 2 +- .../grpcserver/protowire/rpc_submit_block.go | 2 +- .../protowire/rpc_submit_transaction.go | 2 +- .../server/grpcserver/protowire/rpc_unban.go | 2 +- .../server/grpcserver/protowire/wire.go | 2 +- .../netadapter/server/grpcserver/rpcserver.go | 6 +- .../network/netadapter/server/server.go | 2 +- .../network/netadapter/standalone/log.go | 4 +- .../standalone/minimal_net_adapter.go | 14 +-- .../network/netadapter/standalone/routes.go | 6 +- .../rpcclient/grpcclient/grpcclient.go | 8 +- .../network/rpcclient/grpcclient/log.go | 4 +- .../network/rpcclient/grpcclient/post.go | 4 +- infrastructure/network/rpcclient/log.go | 4 +- infrastructure/network/rpcclient/rpc_ban.go | 2 +- .../network/rpcclient/rpc_connect_to_peer.go | 2 +- .../rpc_estimate_network_hashes_per_second.go | 2 +- .../rpcclient/rpc_get_balance_by_address.go | 2 +- .../rpc_get_balances_by_addresses.go | 2 +- .../network/rpcclient/rpc_get_block.go | 2 +- .../network/rpcclient/rpc_get_block_count.go | 2 +- .../rpcclient/rpc_get_block_dag_info.go | 2 +- .../rpcclient/rpc_get_block_template.go | 2 +- .../network/rpcclient/rpc_get_blocks.go | 2 +- .../rpcclient/rpc_get_chain_from_block.go | 2 +- .../network/rpcclient/rpc_get_coin_supply.go | 2 +- .../rpcclient/rpc_get_connected_peer_info.go | 2 +- .../network/rpcclient/rpc_get_headers.go | 2 +- .../network/rpcclient/rpc_get_info.go | 2 +- .../rpcclient/rpc_get_mempool_entries.go | 2 +- .../rpc_get_mempool_entries_by_address.go | 2 +- .../rpcclient/rpc_get_mempool_entry.go | 2 +- .../rpcclient/rpc_get_peer_addresses.go | 2 +- .../rpcclient/rpc_get_selected_tip_hash.go | 2 +- .../network/rpcclient/rpc_get_subnetwork.go | 2 +- .../rpcclient/rpc_get_utxos_by_addresses.go | 2 +- ..._get_virtual_selected_parent_blue_score.go | 2 +- .../network/rpcclient/rpc_on_block_added.go | 4 +- .../network/rpcclient/rpc_on_chain_changed.go | 4 +- .../rpcclient/rpc_on_finality_conflicts.go | 4 +- .../rpcclient/rpc_on_new_block_template.go | 4 +- .../rpc_on_pruning_point_utxo_set_override.go | 4 +- .../network/rpcclient/rpc_on_utxos_changed.go | 4 +- .../rpc_on_virtual_daa_score_changed.go | 4 +- ...tual_selected_parent_blue_score_changed.go | 4 +- .../rpc_resolve_finality_conflict.go | 2 +- .../rpcclient/rpc_send_raw_transaction.go | 2 +- .../network/rpcclient/rpc_submit_block.go | 4 +- infrastructure/network/rpcclient/rpc_unban.go | 2 +- infrastructure/network/rpcclient/rpcclient.go | 12 +-- infrastructure/network/rpcclient/rpcrouter.go | 4 +- infrastructure/os/execenv/initialize.go | 2 +- infrastructure/os/signal/log.go | 2 +- infrastructure/os/winservice/common.go | 2 +- infrastructure/os/winservice/log.go | 4 +- .../os/winservice/service_main_windows.go | 2 +- .../os/winservice/service_windows.go | 6 +- main.go | 2 +- .../application-level-garbage/config.go | 6 +- .../application-level-garbage/log.go | 4 +- .../application-level-garbage/main.go | 10 +- .../application-level-garbage/read.go | 4 +- .../application-level-garbage/send.go | 10 +- stability-tests/common/cmd.go | 4 +- stability-tests/common/log-writer.go | 2 +- stability-tests/common/log.go | 8 +- stability-tests/common/mine/db.go | 6 +- stability-tests/common/mine/log.go | 4 +- stability-tests/common/mine/mine.go | 14 +-- stability-tests/common/paths.go | 2 +- stability-tests/common/rpc/log.go | 4 +- stability-tests/common/rpc/rpc.go | 6 +- stability-tests/common/run-karlsend.go | 2 +- stability-tests/daa/daa_test.go | 12 +-- stability-tests/infra-level-garbage/config.go | 6 +- stability-tests/infra-level-garbage/log.go | 4 +- stability-tests/infra-level-garbage/main.go | 4 +- stability-tests/infra-level-garbage/send.go | 2 +- stability-tests/karlsendsanity/commandloop.go | 4 +- stability-tests/karlsendsanity/config.go | 2 +- stability-tests/karlsendsanity/log.go | 6 +- stability-tests/karlsendsanity/main.go | 6 +- stability-tests/many-tips/config.go | 4 +- stability-tests/many-tips/log.go | 6 +- stability-tests/many-tips/main.go | 14 +-- stability-tests/mempool-limits/config.go | 2 +- stability-tests/mempool-limits/log.go | 6 +- stability-tests/mempool-limits/main_test.go | 8 +- .../mempool-limits/transactions.go | 24 ++--- stability-tests/minejson/config.go | 8 +- stability-tests/minejson/log.go | 4 +- stability-tests/minejson/main.go | 12 +-- .../netsync/chain_generator/config.go | 2 +- .../netsync/chain_generator/log.go | 6 +- .../netsync/chain_generator/main.go | 4 +- .../netsync/check_resolve_virtual.go | 4 +- stability-tests/netsync/check_sync_rate.go | 2 +- stability-tests/netsync/config.go | 4 +- .../fast-pruning-ibd-test/generate_test.go | 8 +- stability-tests/netsync/log.go | 6 +- stability-tests/netsync/main.go | 6 +- stability-tests/netsync/node.go | 16 +-- stability-tests/orphans/check_top_is_tip.go | 6 +- stability-tests/orphans/config.go | 8 +- stability-tests/orphans/connect_to_node.go | 4 +- stability-tests/orphans/log.go | 4 +- stability-tests/orphans/main.go | 6 +- stability-tests/orphans/prepare_blocks.go | 12 +-- stability-tests/orphans/send_blocks.go | 8 +- stability-tests/reorg/config.go | 4 +- stability-tests/reorg/log.go | 4 +- stability-tests/reorg/main.go | 4 +- stability-tests/reorg/reorg.go | 12 +-- stability-tests/rpc-idle-clients/config.go | 8 +- stability-tests/rpc-idle-clients/log.go | 4 +- stability-tests/rpc-idle-clients/main.go | 8 +- stability-tests/rpc-stability/config.go | 8 +- stability-tests/rpc-stability/log.go | 4 +- stability-tests/rpc-stability/main.go | 8 +- stability-tests/rpc-stability/send.go | 2 +- stability-tests/simple-sync/config.go | 4 +- stability-tests/simple-sync/log.go | 6 +- stability-tests/simple-sync/main.go | 8 +- stability-tests/simple-sync/mineloop.go | 8 +- stability-tests/simple-sync/start-nodes.go | 4 +- .../16_incoming_connections_test.go | 2 +- testing/integration/address_exchange_test.go | 2 +- testing/integration/basic_sync_test.go | 4 +- testing/integration/config_test.go | 4 +- testing/integration/ibd_test.go | 10 +- testing/integration/log_test.go | 4 +- testing/integration/main_test.go | 2 +- testing/integration/mining_test.go | 6 +- testing/integration/notifications_test.go | 2 +- testing/integration/rpc_test.go | 4 +- .../integration/selected_parent_chain_test.go | 6 +- testing/integration/setup_test.go | 10 +- testing/integration/tx_relay_test.go | 18 ++-- testing/integration/utxo_index_test.go | 18 ++-- ...virtual_selected_parent_blue_score_test.go | 2 +- util/address.go | 2 +- util/address_test.go | 2 +- util/amount.go | 2 +- util/amount_test.go | 4 +- util/appdata_test.go | 2 +- util/bech32/bech32_test.go | 2 +- util/bech32/example_test.go | 2 +- util/difficulty/difficulty_test.go | 8 +- util/example_test.go | 4 +- util/internal_test.go | 2 +- util/locks/log.go | 2 +- util/math/min_test.go | 2 +- util/panics/log.go | 2 +- util/panics/panics.go | 2 +- util/profiling/profiling.go | 4 +- util/staging/commit_all_changes.go | 4 +- util/staging/log.go | 2 +- util/txmass/calculator.go | 4 +- 846 files changed, 2490 insertions(+), 2490 deletions(-) diff --git a/app/app.go b/app/app.go index 3f3aaa4281..78e07eb3f6 100644 --- a/app/app.go +++ b/app/app.go @@ -7,18 +7,18 @@ import ( "runtime" "time" - "github.com/karlsen-network/karlsend/domain/consensus/utils/pow" - "github.com/karlsen-network/karlsend/infrastructure/config" - "github.com/karlsen-network/karlsend/infrastructure/db/database" - "github.com/karlsen-network/karlsend/infrastructure/db/database/ldb" - "github.com/karlsen-network/karlsend/infrastructure/logger" - "github.com/karlsen-network/karlsend/infrastructure/os/execenv" - "github.com/karlsen-network/karlsend/infrastructure/os/limits" - "github.com/karlsen-network/karlsend/infrastructure/os/signal" - "github.com/karlsen-network/karlsend/infrastructure/os/winservice" - "github.com/karlsen-network/karlsend/util/panics" - "github.com/karlsen-network/karlsend/util/profiling" - "github.com/karlsen-network/karlsend/version" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/pow" + "github.com/karlsen-network/karlsend/v2/infrastructure/config" + "github.com/karlsen-network/karlsend/v2/infrastructure/db/database" + "github.com/karlsen-network/karlsend/v2/infrastructure/db/database/ldb" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/infrastructure/os/execenv" + "github.com/karlsen-network/karlsend/v2/infrastructure/os/limits" + "github.com/karlsen-network/karlsend/v2/infrastructure/os/signal" + "github.com/karlsen-network/karlsend/v2/infrastructure/os/winservice" + "github.com/karlsen-network/karlsend/v2/util/panics" + "github.com/karlsen-network/karlsend/v2/util/profiling" + "github.com/karlsen-network/karlsend/v2/version" ) const ( diff --git a/app/appmessage/common_test.go b/app/appmessage/common_test.go index 4f7bb683c6..50ed8d43e3 100644 --- a/app/appmessage/common_test.go +++ b/app/appmessage/common_test.go @@ -1,6 +1,6 @@ package appmessage -import "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" +import "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" // mainnetGenesisHash is the hash of the first block in the block DAG for the // main network (genesis block). diff --git a/app/appmessage/domainconverters.go b/app/appmessage/domainconverters.go index 88986a7955..2c94efd208 100644 --- a/app/appmessage/domainconverters.go +++ b/app/appmessage/domainconverters.go @@ -6,14 +6,14 @@ import ( "github.com/pkg/errors" - "github.com/karlsen-network/karlsend/domain/consensus/utils/blockheader" - "github.com/karlsen-network/karlsend/domain/consensus/utils/hashes" - "github.com/karlsen-network/karlsend/domain/consensus/utils/utxo" - - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/subnetworks" - "github.com/karlsen-network/karlsend/domain/consensus/utils/transactionid" - "github.com/karlsen-network/karlsend/util/mstime" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/blockheader" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/hashes" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/utxo" + + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/subnetworks" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/transactionid" + "github.com/karlsen-network/karlsend/v2/util/mstime" ) // DomainBlockToMsgBlock converts an externalapi.DomainBlock to MsgBlock diff --git a/app/appmessage/p2p_msgblock.go b/app/appmessage/p2p_msgblock.go index c68cbb1b6f..d49799f65d 100644 --- a/app/appmessage/p2p_msgblock.go +++ b/app/appmessage/p2p_msgblock.go @@ -5,7 +5,7 @@ package appmessage import ( - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" ) // defaultTransactionAlloc is the default size used for the backing array diff --git a/app/appmessage/p2p_msgblock_test.go b/app/appmessage/p2p_msgblock_test.go index bd8a8f865d..51cc446ee6 100644 --- a/app/appmessage/p2p_msgblock_test.go +++ b/app/appmessage/p2p_msgblock_test.go @@ -10,11 +10,11 @@ import ( "testing" "github.com/davecgh/go-spew/spew" - "github.com/karlsen-network/karlsend/util/mstime" + "github.com/karlsen-network/karlsend/v2/util/mstime" - "github.com/karlsen-network/karlsend/domain/consensus/utils/subnetworks" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/subnetworks" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" ) // TestBlock tests the MsgBlock API. diff --git a/app/appmessage/p2p_msgblockheader.go b/app/appmessage/p2p_msgblockheader.go index 53617f34ef..a4820f4bdc 100644 --- a/app/appmessage/p2p_msgblockheader.go +++ b/app/appmessage/p2p_msgblockheader.go @@ -7,10 +7,10 @@ package appmessage import ( "math/big" - "github.com/karlsen-network/karlsend/domain/consensus/utils/consensushashing" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/consensushashing" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/util/mstime" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/util/mstime" ) // BaseBlockHeaderPayload is the base number of bytes a block header can be, diff --git a/app/appmessage/p2p_msgblockheader_test.go b/app/appmessage/p2p_msgblockheader_test.go index 5012be3fb3..ab1eaa0cc7 100644 --- a/app/appmessage/p2p_msgblockheader_test.go +++ b/app/appmessage/p2p_msgblockheader_test.go @@ -10,7 +10,7 @@ import ( "testing" "github.com/davecgh/go-spew/spew" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" ) // TestBlockHeader tests the MsgBlockHeader API. diff --git a/app/appmessage/p2p_msgblocklocator.go b/app/appmessage/p2p_msgblocklocator.go index f304697d10..2a813789e5 100644 --- a/app/appmessage/p2p_msgblocklocator.go +++ b/app/appmessage/p2p_msgblocklocator.go @@ -1,7 +1,7 @@ package appmessage import ( - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" ) // MaxBlockLocatorsPerMsg is the maximum number of block locator hashes allowed diff --git a/app/appmessage/p2p_msgblocklocator_test.go b/app/appmessage/p2p_msgblocklocator_test.go index d234a17d3a..3d1dad209d 100644 --- a/app/appmessage/p2p_msgblocklocator_test.go +++ b/app/appmessage/p2p_msgblocklocator_test.go @@ -3,7 +3,7 @@ package appmessage import ( "testing" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" "github.com/davecgh/go-spew/spew" ) diff --git a/app/appmessage/p2p_msgblockwithtrusteddata.go b/app/appmessage/p2p_msgblockwithtrusteddata.go index f7aa0f96f7..df49e2f595 100644 --- a/app/appmessage/p2p_msgblockwithtrusteddata.go +++ b/app/appmessage/p2p_msgblockwithtrusteddata.go @@ -3,7 +3,7 @@ package appmessage import ( "math/big" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" ) // MsgBlockWithTrustedData represents a karlsen BlockWithTrustedData message diff --git a/app/appmessage/p2p_msgibdblocklocator.go b/app/appmessage/p2p_msgibdblocklocator.go index 55d4bfae70..1636eb9424 100644 --- a/app/appmessage/p2p_msgibdblocklocator.go +++ b/app/appmessage/p2p_msgibdblocklocator.go @@ -1,7 +1,7 @@ package appmessage import ( - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" ) // MsgIBDBlockLocator represents a karlsen ibdBlockLocator message diff --git a/app/appmessage/p2p_msgibdblocklocatorhighesthash.go b/app/appmessage/p2p_msgibdblocklocatorhighesthash.go index f492e0998e..d9fb4db33e 100644 --- a/app/appmessage/p2p_msgibdblocklocatorhighesthash.go +++ b/app/appmessage/p2p_msgibdblocklocatorhighesthash.go @@ -1,7 +1,7 @@ package appmessage import ( - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" ) // MsgIBDBlockLocatorHighestHash represents a karlsen BlockLocatorHighestHash message diff --git a/app/appmessage/p2p_msgibdchainblocklocator.go b/app/appmessage/p2p_msgibdchainblocklocator.go index 81964b7435..f6f5d2e8c8 100644 --- a/app/appmessage/p2p_msgibdchainblocklocator.go +++ b/app/appmessage/p2p_msgibdchainblocklocator.go @@ -1,7 +1,7 @@ package appmessage import ( - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" ) // MsgIBDChainBlockLocator implements the Message interface and represents a karlsen diff --git a/app/appmessage/p2p_msginvrelayblock.go b/app/appmessage/p2p_msginvrelayblock.go index 91d1152c91..5b020aca23 100644 --- a/app/appmessage/p2p_msginvrelayblock.go +++ b/app/appmessage/p2p_msginvrelayblock.go @@ -1,7 +1,7 @@ package appmessage import ( - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" ) // MsgInvRelayBlock implements the Message interface and represents a karlsen diff --git a/app/appmessage/p2p_msginvtransaction.go b/app/appmessage/p2p_msginvtransaction.go index 2b78f79d75..be1a719d3b 100644 --- a/app/appmessage/p2p_msginvtransaction.go +++ b/app/appmessage/p2p_msginvtransaction.go @@ -1,7 +1,7 @@ package appmessage import ( - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" ) // MaxInvPerTxInvMsg is the maximum number of hashes that can diff --git a/app/appmessage/p2p_msgpruningpointutxosetchunk.go b/app/appmessage/p2p_msgpruningpointutxosetchunk.go index 5032ca71ef..d6a777f7d3 100644 --- a/app/appmessage/p2p_msgpruningpointutxosetchunk.go +++ b/app/appmessage/p2p_msgpruningpointutxosetchunk.go @@ -1,6 +1,6 @@ package appmessage -import "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" +import "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" // MsgPruningPointUTXOSetChunk represents a karlsen PruningPointUTXOSetChunk message type MsgPruningPointUTXOSetChunk struct { diff --git a/app/appmessage/p2p_msgrequestaddresses.go b/app/appmessage/p2p_msgrequestaddresses.go index 9cc1ac446c..4b0da6920f 100644 --- a/app/appmessage/p2p_msgrequestaddresses.go +++ b/app/appmessage/p2p_msgrequestaddresses.go @@ -5,7 +5,7 @@ package appmessage import ( - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" ) // MsgRequestAddresses implements the Message interface and represents a karlsen diff --git a/app/appmessage/p2p_msgrequestanticone.go b/app/appmessage/p2p_msgrequestanticone.go index b96145a414..38a4d38b45 100644 --- a/app/appmessage/p2p_msgrequestanticone.go +++ b/app/appmessage/p2p_msgrequestanticone.go @@ -5,7 +5,7 @@ package appmessage import ( - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" ) // MsgRequestAnticone implements the Message interface and represents a karlsen diff --git a/app/appmessage/p2p_msgrequestblocklocator.go b/app/appmessage/p2p_msgrequestblocklocator.go index e54a929dc2..bccbe4a4ff 100644 --- a/app/appmessage/p2p_msgrequestblocklocator.go +++ b/app/appmessage/p2p_msgrequestblocklocator.go @@ -1,7 +1,7 @@ package appmessage import ( - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" ) // MsgRequestBlockLocator implements the Message interface and represents a karlsen diff --git a/app/appmessage/p2p_msgrequestblocklocator_test.go b/app/appmessage/p2p_msgrequestblocklocator_test.go index 78045c2125..92297b11c6 100644 --- a/app/appmessage/p2p_msgrequestblocklocator_test.go +++ b/app/appmessage/p2p_msgrequestblocklocator_test.go @@ -3,7 +3,7 @@ package appmessage import ( "testing" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" ) // TestRequestBlockLocator tests the MsgRequestBlockLocator API. diff --git a/app/appmessage/p2p_msgrequestheaders.go b/app/appmessage/p2p_msgrequestheaders.go index c876f2c2ec..1c8c88a5eb 100644 --- a/app/appmessage/p2p_msgrequestheaders.go +++ b/app/appmessage/p2p_msgrequestheaders.go @@ -5,7 +5,7 @@ package appmessage import ( - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" ) // MsgRequestHeaders implements the Message interface and represents a karlsen diff --git a/app/appmessage/p2p_msgrequestheaders_test.go b/app/appmessage/p2p_msgrequestheaders_test.go index f3bf2fdff2..83f86d7291 100644 --- a/app/appmessage/p2p_msgrequestheaders_test.go +++ b/app/appmessage/p2p_msgrequestheaders_test.go @@ -7,7 +7,7 @@ package appmessage import ( "testing" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" ) // TestRequstIBDBlocks tests the MsgRequestIBDBlocks API. diff --git a/app/appmessage/p2p_msgrequestibdblocks.go b/app/appmessage/p2p_msgrequestibdblocks.go index e6eca875e9..86d68f254c 100644 --- a/app/appmessage/p2p_msgrequestibdblocks.go +++ b/app/appmessage/p2p_msgrequestibdblocks.go @@ -1,7 +1,7 @@ package appmessage import ( - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" ) // MsgRequestIBDBlocks implements the Message interface and represents a karlsen diff --git a/app/appmessage/p2p_msgrequestibdchainblocklocator.go b/app/appmessage/p2p_msgrequestibdchainblocklocator.go index 4702bdeaea..75aedfa93d 100644 --- a/app/appmessage/p2p_msgrequestibdchainblocklocator.go +++ b/app/appmessage/p2p_msgrequestibdchainblocklocator.go @@ -1,7 +1,7 @@ package appmessage import ( - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" ) // MsgRequestIBDChainBlockLocator implements the Message interface and represents a karlsen diff --git a/app/appmessage/p2p_msgrequestpruningpointutxosetandblock.go b/app/appmessage/p2p_msgrequestpruningpointutxosetandblock.go index 325bfecb61..0f5a48bbe2 100644 --- a/app/appmessage/p2p_msgrequestpruningpointutxosetandblock.go +++ b/app/appmessage/p2p_msgrequestpruningpointutxosetandblock.go @@ -1,7 +1,7 @@ package appmessage import ( - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" ) // MsgRequestPruningPointUTXOSet represents a karlsen RequestPruningPointUTXOSet message diff --git a/app/appmessage/p2p_msgrequestrelayblocks.go b/app/appmessage/p2p_msgrequestrelayblocks.go index 8d6e09b893..abd9866001 100644 --- a/app/appmessage/p2p_msgrequestrelayblocks.go +++ b/app/appmessage/p2p_msgrequestrelayblocks.go @@ -1,7 +1,7 @@ package appmessage import ( - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" ) // MaxRequestRelayBlocksHashes is the maximum number of hashes that can diff --git a/app/appmessage/p2p_msgrequesttransactions.go b/app/appmessage/p2p_msgrequesttransactions.go index 7ddfaa14f0..f33f7ab48a 100644 --- a/app/appmessage/p2p_msgrequesttransactions.go +++ b/app/appmessage/p2p_msgrequesttransactions.go @@ -1,7 +1,7 @@ package appmessage import ( - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" ) // MaxInvPerRequestTransactionsMsg is the maximum number of hashes that can diff --git a/app/appmessage/p2p_msgtransactionnotfound.go b/app/appmessage/p2p_msgtransactionnotfound.go index 0bb663439d..1b02b28734 100644 --- a/app/appmessage/p2p_msgtransactionnotfound.go +++ b/app/appmessage/p2p_msgtransactionnotfound.go @@ -5,7 +5,7 @@ package appmessage import ( - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" ) // MsgTransactionNotFound defines a karlsen TransactionNotFound message which is sent in response to diff --git a/app/appmessage/p2p_msgtx.go b/app/appmessage/p2p_msgtx.go index 55de248cf0..2a194dd373 100644 --- a/app/appmessage/p2p_msgtx.go +++ b/app/appmessage/p2p_msgtx.go @@ -8,11 +8,11 @@ import ( "encoding/binary" "strconv" - "github.com/karlsen-network/karlsend/domain/consensus/utils/consensushashing" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/consensushashing" - "github.com/karlsen-network/karlsend/domain/consensus/utils/subnetworks" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/subnetworks" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" ) const ( diff --git a/app/appmessage/p2p_msgtx_test.go b/app/appmessage/p2p_msgtx_test.go index 63145095cc..38c4274ab8 100644 --- a/app/appmessage/p2p_msgtx_test.go +++ b/app/appmessage/p2p_msgtx_test.go @@ -11,13 +11,13 @@ import ( "reflect" "testing" - "github.com/karlsen-network/karlsend/domain/consensus/utils/constants" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/constants" - "github.com/karlsen-network/karlsend/domain/consensus/utils/subnetworks" - "github.com/karlsen-network/karlsend/domain/consensus/utils/transactionid" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/subnetworks" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/transactionid" "github.com/davecgh/go-spew/spew" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" ) // TestTx tests the MsgTx API. diff --git a/app/appmessage/p2p_msgversion.go b/app/appmessage/p2p_msgversion.go index deda07e535..0f4099e256 100644 --- a/app/appmessage/p2p_msgversion.go +++ b/app/appmessage/p2p_msgversion.go @@ -8,11 +8,11 @@ import ( "fmt" "strings" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/version" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/version" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/id" - "github.com/karlsen-network/karlsend/util/mstime" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/id" + "github.com/karlsen-network/karlsend/v2/util/mstime" ) // MaxUserAgentLen is the maximum allowed length for the user agent field in a diff --git a/app/appmessage/p2p_msgversion_test.go b/app/appmessage/p2p_msgversion_test.go index 17d02c5ee0..e80b822e83 100644 --- a/app/appmessage/p2p_msgversion_test.go +++ b/app/appmessage/p2p_msgversion_test.go @@ -10,7 +10,7 @@ import ( "testing" "github.com/davecgh/go-spew/spew" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/id" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/id" ) // TestVersion tests the MsgVersion API. diff --git a/app/appmessage/p2p_netaddress.go b/app/appmessage/p2p_netaddress.go index 7a6d361f4d..0302d7bd8a 100644 --- a/app/appmessage/p2p_netaddress.go +++ b/app/appmessage/p2p_netaddress.go @@ -7,7 +7,7 @@ package appmessage import ( "net" - "github.com/karlsen-network/karlsend/util/mstime" + "github.com/karlsen-network/karlsend/v2/util/mstime" ) // NetAddress defines information about a peer on the network including the time diff --git a/app/appmessage/rpc_get_block_count.go b/app/appmessage/rpc_get_block_count.go index 07dee1285f..9664884929 100644 --- a/app/appmessage/rpc_get_block_count.go +++ b/app/appmessage/rpc_get_block_count.go @@ -1,6 +1,6 @@ package appmessage -import "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" +import "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" // GetBlockCountRequestMessage is an appmessage corresponding to // its respective RPC message diff --git a/app/component_manager.go b/app/component_manager.go index b258e94e2e..8399898ee7 100644 --- a/app/component_manager.go +++ b/app/component_manager.go @@ -4,22 +4,22 @@ import ( "fmt" "sync/atomic" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - - "github.com/karlsen-network/karlsend/domain/miningmanager/mempool" - - "github.com/karlsen-network/karlsend/app/protocol" - "github.com/karlsen-network/karlsend/app/rpc" - "github.com/karlsen-network/karlsend/domain" - "github.com/karlsen-network/karlsend/domain/consensus" - "github.com/karlsen-network/karlsend/domain/utxoindex" - "github.com/karlsen-network/karlsend/infrastructure/config" - infrastructuredatabase "github.com/karlsen-network/karlsend/infrastructure/db/database" - "github.com/karlsen-network/karlsend/infrastructure/network/addressmanager" - "github.com/karlsen-network/karlsend/infrastructure/network/connmanager" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/id" - "github.com/karlsen-network/karlsend/util/panics" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + + "github.com/karlsen-network/karlsend/v2/domain/miningmanager/mempool" + + "github.com/karlsen-network/karlsend/v2/app/protocol" + "github.com/karlsen-network/karlsend/v2/app/rpc" + "github.com/karlsen-network/karlsend/v2/domain" + "github.com/karlsen-network/karlsend/v2/domain/consensus" + "github.com/karlsen-network/karlsend/v2/domain/utxoindex" + "github.com/karlsen-network/karlsend/v2/infrastructure/config" + infrastructuredatabase "github.com/karlsen-network/karlsend/v2/infrastructure/db/database" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/addressmanager" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/connmanager" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/id" + "github.com/karlsen-network/karlsend/v2/util/panics" ) // ComponentManager is a wrapper for all the karlsend services diff --git a/app/log.go b/app/log.go index 4f4d3d8ac3..5aed38e69d 100644 --- a/app/log.go +++ b/app/log.go @@ -6,7 +6,7 @@ package app import ( - "github.com/karlsen-network/karlsend/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" ) var log = logger.RegisterSubSystem("KLSD") diff --git a/app/protocol/common/common.go b/app/protocol/common/common.go index f031e0e0b6..04d6f7129d 100644 --- a/app/protocol/common/common.go +++ b/app/protocol/common/common.go @@ -3,8 +3,8 @@ package common import ( "time" - peerpkg "github.com/karlsen-network/karlsend/app/protocol/peer" - routerpkg "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/router" + peerpkg "github.com/karlsen-network/karlsend/v2/app/protocol/peer" + routerpkg "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/router" "github.com/pkg/errors" ) diff --git a/app/protocol/flowcontext/addresses.go b/app/protocol/flowcontext/addresses.go index 0d7aef8fa1..12d4cf0820 100644 --- a/app/protocol/flowcontext/addresses.go +++ b/app/protocol/flowcontext/addresses.go @@ -1,7 +1,7 @@ package flowcontext import ( - "github.com/karlsen-network/karlsend/infrastructure/network/addressmanager" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/addressmanager" ) // AddressManager returns the address manager associated to the flow context. diff --git a/app/protocol/flowcontext/blocks.go b/app/protocol/flowcontext/blocks.go index 95ce4e799f..70bc3eb6e0 100644 --- a/app/protocol/flowcontext/blocks.go +++ b/app/protocol/flowcontext/blocks.go @@ -3,14 +3,14 @@ package flowcontext import ( "time" - peerpkg "github.com/karlsen-network/karlsend/app/protocol/peer" - "github.com/karlsen-network/karlsend/app/protocol/protocolerrors" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/ruleerrors" - "github.com/karlsen-network/karlsend/domain/consensus/utils/consensushashing" + peerpkg "github.com/karlsen-network/karlsend/v2/app/protocol/peer" + "github.com/karlsen-network/karlsend/v2/app/protocol/protocolerrors" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/ruleerrors" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/consensushashing" "github.com/pkg/errors" - "github.com/karlsen-network/karlsend/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/appmessage" ) // OnNewBlock updates the mempool after a new block arrival, and diff --git a/app/protocol/flowcontext/config.go b/app/protocol/flowcontext/config.go index 6a9f795281..ca335de0ff 100644 --- a/app/protocol/flowcontext/config.go +++ b/app/protocol/flowcontext/config.go @@ -1,6 +1,6 @@ package flowcontext -import "github.com/karlsen-network/karlsend/infrastructure/config" +import "github.com/karlsen-network/karlsend/v2/infrastructure/config" // Config returns an instance of *config.Config associated to the flow context. func (f *FlowContext) Config() *config.Config { diff --git a/app/protocol/flowcontext/domain.go b/app/protocol/flowcontext/domain.go index 02501e45dc..613ffd3656 100644 --- a/app/protocol/flowcontext/domain.go +++ b/app/protocol/flowcontext/domain.go @@ -1,7 +1,7 @@ package flowcontext import ( - "github.com/karlsen-network/karlsend/domain" + "github.com/karlsen-network/karlsend/v2/domain" ) // Domain returns the Domain object associated to the flow context. diff --git a/app/protocol/flowcontext/errors.go b/app/protocol/flowcontext/errors.go index 870decd2c1..2b676b7961 100644 --- a/app/protocol/flowcontext/errors.go +++ b/app/protocol/flowcontext/errors.go @@ -5,9 +5,9 @@ import ( "strings" "sync/atomic" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/router" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/router" - "github.com/karlsen-network/karlsend/app/protocol/protocolerrors" + "github.com/karlsen-network/karlsend/v2/app/protocol/protocolerrors" ) var ( diff --git a/app/protocol/flowcontext/flow_context.go b/app/protocol/flowcontext/flow_context.go index 9f8fbc297d..65ec789e27 100644 --- a/app/protocol/flowcontext/flow_context.go +++ b/app/protocol/flowcontext/flow_context.go @@ -4,18 +4,18 @@ import ( "sync" "time" - "github.com/karlsen-network/karlsend/util/mstime" + "github.com/karlsen-network/karlsend/v2/util/mstime" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain" + "github.com/karlsen-network/karlsend/v2/domain" - peerpkg "github.com/karlsen-network/karlsend/app/protocol/peer" - "github.com/karlsen-network/karlsend/infrastructure/config" - "github.com/karlsen-network/karlsend/infrastructure/network/addressmanager" - "github.com/karlsen-network/karlsend/infrastructure/network/connmanager" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/id" + peerpkg "github.com/karlsen-network/karlsend/v2/app/protocol/peer" + "github.com/karlsen-network/karlsend/v2/infrastructure/config" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/addressmanager" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/connmanager" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/id" ) // OnNewBlockTemplateHandler is a handler function that's triggered when a new block template is available diff --git a/app/protocol/flowcontext/log.go b/app/protocol/flowcontext/log.go index 0cca48ff28..9f7c2862e3 100644 --- a/app/protocol/flowcontext/log.go +++ b/app/protocol/flowcontext/log.go @@ -1,7 +1,7 @@ package flowcontext import ( - "github.com/karlsen-network/karlsend/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" ) var log = logger.RegisterSubSystem("PROT") diff --git a/app/protocol/flowcontext/network.go b/app/protocol/flowcontext/network.go index d429a30005..2e925503f6 100644 --- a/app/protocol/flowcontext/network.go +++ b/app/protocol/flowcontext/network.go @@ -1,11 +1,11 @@ package flowcontext import ( - "github.com/karlsen-network/karlsend/app/appmessage" - "github.com/karlsen-network/karlsend/app/protocol/common" - peerpkg "github.com/karlsen-network/karlsend/app/protocol/peer" - "github.com/karlsen-network/karlsend/infrastructure/network/connmanager" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/protocol/common" + peerpkg "github.com/karlsen-network/karlsend/v2/app/protocol/peer" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/connmanager" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter" "github.com/pkg/errors" ) diff --git a/app/protocol/flowcontext/orphans.go b/app/protocol/flowcontext/orphans.go index 19317d4351..6a58652f09 100644 --- a/app/protocol/flowcontext/orphans.go +++ b/app/protocol/flowcontext/orphans.go @@ -1,11 +1,11 @@ package flowcontext import ( - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/ruleerrors" - "github.com/karlsen-network/karlsend/domain/consensus/utils/consensushashing" - "github.com/karlsen-network/karlsend/domain/consensus/utils/hashset" - "github.com/karlsen-network/karlsend/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/ruleerrors" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/consensushashing" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/hashset" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" "github.com/pkg/errors" ) diff --git a/app/protocol/flowcontext/shared_requested_blocks.go b/app/protocol/flowcontext/shared_requested_blocks.go index 30dfe9402a..2de7755889 100644 --- a/app/protocol/flowcontext/shared_requested_blocks.go +++ b/app/protocol/flowcontext/shared_requested_blocks.go @@ -3,7 +3,7 @@ package flowcontext import ( "sync" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" ) // SharedRequestedBlocks is a data structure that is shared between peers that diff --git a/app/protocol/flowcontext/shared_requested_transactions.go b/app/protocol/flowcontext/shared_requested_transactions.go index a41b3741ce..3ebcffeb3c 100644 --- a/app/protocol/flowcontext/shared_requested_transactions.go +++ b/app/protocol/flowcontext/shared_requested_transactions.go @@ -3,7 +3,7 @@ package flowcontext import ( "sync" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" ) // SharedRequestedTransactions is a data structure that is shared between peers that diff --git a/app/protocol/flowcontext/transactions.go b/app/protocol/flowcontext/transactions.go index e3570b639c..61599b693d 100644 --- a/app/protocol/flowcontext/transactions.go +++ b/app/protocol/flowcontext/transactions.go @@ -3,9 +3,9 @@ package flowcontext import ( "time" - "github.com/karlsen-network/karlsend/app/appmessage" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/consensushashing" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/consensushashing" ) // TransactionIDPropagationInterval is the interval between transaction IDs propagations diff --git a/app/protocol/flows/handshake/handshake.go b/app/protocol/flows/handshake/handshake.go index 92d42251aa..228d08a52f 100644 --- a/app/protocol/flows/handshake/handshake.go +++ b/app/protocol/flows/handshake/handshake.go @@ -3,18 +3,18 @@ package handshake import ( "sync/atomic" - "github.com/karlsen-network/karlsend/domain" + "github.com/karlsen-network/karlsend/v2/domain" - "github.com/karlsen-network/karlsend/app/protocol/common" - "github.com/karlsen-network/karlsend/app/protocol/protocolerrors" - "github.com/karlsen-network/karlsend/infrastructure/network/addressmanager" + "github.com/karlsen-network/karlsend/v2/app/protocol/common" + "github.com/karlsen-network/karlsend/v2/app/protocol/protocolerrors" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/addressmanager" - "github.com/karlsen-network/karlsend/infrastructure/config" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter" + "github.com/karlsen-network/karlsend/v2/infrastructure/config" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter" - "github.com/karlsen-network/karlsend/app/appmessage" - peerpkg "github.com/karlsen-network/karlsend/app/protocol/peer" - routerpkg "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/router" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + peerpkg "github.com/karlsen-network/karlsend/v2/app/protocol/peer" + routerpkg "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/router" "github.com/pkg/errors" ) diff --git a/app/protocol/flows/handshake/log.go b/app/protocol/flows/handshake/log.go index 66cf9d7696..82214344c9 100644 --- a/app/protocol/flows/handshake/log.go +++ b/app/protocol/flows/handshake/log.go @@ -1,8 +1,8 @@ package handshake import ( - "github.com/karlsen-network/karlsend/infrastructure/logger" - "github.com/karlsen-network/karlsend/util/panics" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/util/panics" ) var log = logger.RegisterSubSystem("PROT") diff --git a/app/protocol/flows/handshake/receiveversion.go b/app/protocol/flows/handshake/receiveversion.go index d84056c75e..44e00853f2 100644 --- a/app/protocol/flows/handshake/receiveversion.go +++ b/app/protocol/flows/handshake/receiveversion.go @@ -1,12 +1,12 @@ package handshake import ( - "github.com/karlsen-network/karlsend/app/appmessage" - "github.com/karlsen-network/karlsend/app/protocol/common" - peerpkg "github.com/karlsen-network/karlsend/app/protocol/peer" - "github.com/karlsen-network/karlsend/app/protocol/protocolerrors" - "github.com/karlsen-network/karlsend/infrastructure/logger" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/router" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/protocol/common" + peerpkg "github.com/karlsen-network/karlsend/v2/app/protocol/peer" + "github.com/karlsen-network/karlsend/v2/app/protocol/protocolerrors" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/router" "github.com/pkg/errors" ) diff --git a/app/protocol/flows/handshake/sendversion.go b/app/protocol/flows/handshake/sendversion.go index b25d4d5be7..65d80d04a4 100644 --- a/app/protocol/flows/handshake/sendversion.go +++ b/app/protocol/flows/handshake/sendversion.go @@ -1,12 +1,12 @@ package handshake import ( - "github.com/karlsen-network/karlsend/app/appmessage" - "github.com/karlsen-network/karlsend/app/protocol/common" - peerpkg "github.com/karlsen-network/karlsend/app/protocol/peer" - "github.com/karlsen-network/karlsend/infrastructure/logger" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/router" - "github.com/karlsen-network/karlsend/version" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/protocol/common" + peerpkg "github.com/karlsen-network/karlsend/v2/app/protocol/peer" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/router" + "github.com/karlsen-network/karlsend/v2/version" "github.com/pkg/errors" ) diff --git a/app/protocol/flows/ready/log.go b/app/protocol/flows/ready/log.go index 203710d801..e0bb6901d7 100644 --- a/app/protocol/flows/ready/log.go +++ b/app/protocol/flows/ready/log.go @@ -1,8 +1,8 @@ package ready import ( - "github.com/karlsen-network/karlsend/infrastructure/logger" - "github.com/karlsen-network/karlsend/util/panics" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/util/panics" ) var log = logger.RegisterSubSystem("PROT") diff --git a/app/protocol/flows/ready/ready.go b/app/protocol/flows/ready/ready.go index 3e896e4175..dbf5d95c3c 100644 --- a/app/protocol/flows/ready/ready.go +++ b/app/protocol/flows/ready/ready.go @@ -3,12 +3,12 @@ package ready import ( "sync/atomic" - "github.com/karlsen-network/karlsend/app/appmessage" - "github.com/karlsen-network/karlsend/app/protocol/common" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/protocol/common" - peerpkg "github.com/karlsen-network/karlsend/app/protocol/peer" - "github.com/karlsen-network/karlsend/app/protocol/protocolerrors" - routerpkg "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/router" + peerpkg "github.com/karlsen-network/karlsend/v2/app/protocol/peer" + "github.com/karlsen-network/karlsend/v2/app/protocol/protocolerrors" + routerpkg "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/router" "github.com/pkg/errors" ) diff --git a/app/protocol/flows/v5/addressexchange/receiveaddresses.go b/app/protocol/flows/v5/addressexchange/receiveaddresses.go index 9ee4170fe0..4e3031b309 100644 --- a/app/protocol/flows/v5/addressexchange/receiveaddresses.go +++ b/app/protocol/flows/v5/addressexchange/receiveaddresses.go @@ -1,12 +1,12 @@ package addressexchange import ( - "github.com/karlsen-network/karlsend/app/appmessage" - "github.com/karlsen-network/karlsend/app/protocol/common" - peerpkg "github.com/karlsen-network/karlsend/app/protocol/peer" - "github.com/karlsen-network/karlsend/app/protocol/protocolerrors" - "github.com/karlsen-network/karlsend/infrastructure/network/addressmanager" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/router" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/protocol/common" + peerpkg "github.com/karlsen-network/karlsend/v2/app/protocol/peer" + "github.com/karlsen-network/karlsend/v2/app/protocol/protocolerrors" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/addressmanager" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/router" ) // ReceiveAddressesContext is the interface for the context needed for the ReceiveAddresses flow. diff --git a/app/protocol/flows/v5/addressexchange/sendaddresses.go b/app/protocol/flows/v5/addressexchange/sendaddresses.go index db581e67e9..ee78f027b0 100644 --- a/app/protocol/flows/v5/addressexchange/sendaddresses.go +++ b/app/protocol/flows/v5/addressexchange/sendaddresses.go @@ -3,9 +3,9 @@ package addressexchange import ( "math/rand" - "github.com/karlsen-network/karlsend/app/appmessage" - "github.com/karlsen-network/karlsend/infrastructure/network/addressmanager" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/router" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/addressmanager" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/router" ) // SendAddressesContext is the interface for the context needed for the SendAddresses flow. diff --git a/app/protocol/flows/v5/blockrelay/batch_size_test.go b/app/protocol/flows/v5/blockrelay/batch_size_test.go index 5095c8e4b6..0a6cfde24c 100644 --- a/app/protocol/flows/v5/blockrelay/batch_size_test.go +++ b/app/protocol/flows/v5/blockrelay/batch_size_test.go @@ -3,7 +3,7 @@ package blockrelay import ( "testing" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/router" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/router" ) func TestIBDBatchSizeLessThanRouteCapacity(t *testing.T) { diff --git a/app/protocol/flows/v5/blockrelay/block_locator.go b/app/protocol/flows/v5/blockrelay/block_locator.go index f3ecb2ed4a..dbf823ffe2 100644 --- a/app/protocol/flows/v5/blockrelay/block_locator.go +++ b/app/protocol/flows/v5/blockrelay/block_locator.go @@ -1,10 +1,10 @@ package blockrelay import ( - "github.com/karlsen-network/karlsend/app/appmessage" - "github.com/karlsen-network/karlsend/app/protocol/common" - "github.com/karlsen-network/karlsend/app/protocol/protocolerrors" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/protocol/common" + "github.com/karlsen-network/karlsend/v2/app/protocol/protocolerrors" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" ) func (flow *handleRelayInvsFlow) sendGetBlockLocator(highHash *externalapi.DomainHash, limit uint32) error { diff --git a/app/protocol/flows/v5/blockrelay/handle_ibd_block_locator.go b/app/protocol/flows/v5/blockrelay/handle_ibd_block_locator.go index fe829cefb4..cbf2db2f2a 100644 --- a/app/protocol/flows/v5/blockrelay/handle_ibd_block_locator.go +++ b/app/protocol/flows/v5/blockrelay/handle_ibd_block_locator.go @@ -1,11 +1,11 @@ package blockrelay import ( - "github.com/karlsen-network/karlsend/app/appmessage" - "github.com/karlsen-network/karlsend/app/protocol/peer" - "github.com/karlsen-network/karlsend/app/protocol/protocolerrors" - "github.com/karlsen-network/karlsend/domain" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/router" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/protocol/peer" + "github.com/karlsen-network/karlsend/v2/app/protocol/protocolerrors" + "github.com/karlsen-network/karlsend/v2/domain" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/router" ) // HandleIBDBlockLocatorContext is the interface for the context needed for the HandleIBDBlockLocator flow. diff --git a/app/protocol/flows/v5/blockrelay/handle_ibd_block_requests.go b/app/protocol/flows/v5/blockrelay/handle_ibd_block_requests.go index 4df63bc8c5..7f90899b8a 100644 --- a/app/protocol/flows/v5/blockrelay/handle_ibd_block_requests.go +++ b/app/protocol/flows/v5/blockrelay/handle_ibd_block_requests.go @@ -1,10 +1,10 @@ package blockrelay import ( - "github.com/karlsen-network/karlsend/app/appmessage" - "github.com/karlsen-network/karlsend/app/protocol/protocolerrors" - "github.com/karlsen-network/karlsend/domain" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/router" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/protocol/protocolerrors" + "github.com/karlsen-network/karlsend/v2/domain" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/router" "github.com/pkg/errors" ) diff --git a/app/protocol/flows/v5/blockrelay/handle_ibd_request_chain_block_locator.go b/app/protocol/flows/v5/blockrelay/handle_ibd_request_chain_block_locator.go index ade80111fa..6a6f003cbc 100644 --- a/app/protocol/flows/v5/blockrelay/handle_ibd_request_chain_block_locator.go +++ b/app/protocol/flows/v5/blockrelay/handle_ibd_request_chain_block_locator.go @@ -1,12 +1,12 @@ package blockrelay import ( - "github.com/karlsen-network/karlsend/app/appmessage" - "github.com/karlsen-network/karlsend/app/protocol/protocolerrors" - "github.com/karlsen-network/karlsend/domain" - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/router" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/protocol/protocolerrors" + "github.com/karlsen-network/karlsend/v2/domain" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/router" "github.com/pkg/errors" ) diff --git a/app/protocol/flows/v5/blockrelay/handle_pruning_point_and_its_anticone_requests.go b/app/protocol/flows/v5/blockrelay/handle_pruning_point_and_its_anticone_requests.go index 2752454e24..a499fb8f68 100644 --- a/app/protocol/flows/v5/blockrelay/handle_pruning_point_and_its_anticone_requests.go +++ b/app/protocol/flows/v5/blockrelay/handle_pruning_point_and_its_anticone_requests.go @@ -3,13 +3,13 @@ package blockrelay import ( "sync/atomic" - "github.com/karlsen-network/karlsend/app/appmessage" - peerpkg "github.com/karlsen-network/karlsend/app/protocol/peer" - "github.com/karlsen-network/karlsend/app/protocol/protocolerrors" - "github.com/karlsen-network/karlsend/domain" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/infrastructure/config" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/router" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + peerpkg "github.com/karlsen-network/karlsend/v2/app/protocol/peer" + "github.com/karlsen-network/karlsend/v2/app/protocol/protocolerrors" + "github.com/karlsen-network/karlsend/v2/domain" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/infrastructure/config" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/router" ) // PruningPointAndItsAnticoneRequestsContext is the interface for the context needed for the HandlePruningPointAndItsAnticoneRequests flow. diff --git a/app/protocol/flows/v5/blockrelay/handle_pruning_point_proof_requests.go b/app/protocol/flows/v5/blockrelay/handle_pruning_point_proof_requests.go index e25501713d..fcb008b3d9 100644 --- a/app/protocol/flows/v5/blockrelay/handle_pruning_point_proof_requests.go +++ b/app/protocol/flows/v5/blockrelay/handle_pruning_point_proof_requests.go @@ -1,10 +1,10 @@ package blockrelay import ( - "github.com/karlsen-network/karlsend/app/appmessage" - peerpkg "github.com/karlsen-network/karlsend/app/protocol/peer" - "github.com/karlsen-network/karlsend/domain" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/router" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + peerpkg "github.com/karlsen-network/karlsend/v2/app/protocol/peer" + "github.com/karlsen-network/karlsend/v2/domain" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/router" ) // PruningPointProofRequestsContext is the interface for the context needed for the HandlePruningPointProofRequests flow. diff --git a/app/protocol/flows/v5/blockrelay/handle_relay_block_requests.go b/app/protocol/flows/v5/blockrelay/handle_relay_block_requests.go index 6b6102aac0..fd2bdec452 100644 --- a/app/protocol/flows/v5/blockrelay/handle_relay_block_requests.go +++ b/app/protocol/flows/v5/blockrelay/handle_relay_block_requests.go @@ -1,11 +1,11 @@ package blockrelay import ( - "github.com/karlsen-network/karlsend/app/appmessage" - peerpkg "github.com/karlsen-network/karlsend/app/protocol/peer" - "github.com/karlsen-network/karlsend/app/protocol/protocolerrors" - "github.com/karlsen-network/karlsend/domain" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/router" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + peerpkg "github.com/karlsen-network/karlsend/v2/app/protocol/peer" + "github.com/karlsen-network/karlsend/v2/app/protocol/protocolerrors" + "github.com/karlsen-network/karlsend/v2/domain" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/router" "github.com/pkg/errors" ) diff --git a/app/protocol/flows/v5/blockrelay/handle_relay_invs.go b/app/protocol/flows/v5/blockrelay/handle_relay_invs.go index ee638109f6..72f6019877 100644 --- a/app/protocol/flows/v5/blockrelay/handle_relay_invs.go +++ b/app/protocol/flows/v5/blockrelay/handle_relay_invs.go @@ -1,19 +1,19 @@ package blockrelay import ( - "github.com/karlsen-network/karlsend/app/appmessage" - "github.com/karlsen-network/karlsend/app/protocol/common" - "github.com/karlsen-network/karlsend/app/protocol/flowcontext" - peerpkg "github.com/karlsen-network/karlsend/app/protocol/peer" - "github.com/karlsen-network/karlsend/app/protocol/protocolerrors" - "github.com/karlsen-network/karlsend/domain" - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/ruleerrors" - "github.com/karlsen-network/karlsend/domain/consensus/utils/consensushashing" - "github.com/karlsen-network/karlsend/domain/consensus/utils/hashset" - "github.com/karlsen-network/karlsend/infrastructure/config" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/router" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/protocol/common" + "github.com/karlsen-network/karlsend/v2/app/protocol/flowcontext" + peerpkg "github.com/karlsen-network/karlsend/v2/app/protocol/peer" + "github.com/karlsen-network/karlsend/v2/app/protocol/protocolerrors" + "github.com/karlsen-network/karlsend/v2/domain" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/ruleerrors" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/consensushashing" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/hashset" + "github.com/karlsen-network/karlsend/v2/infrastructure/config" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/router" "github.com/pkg/errors" ) diff --git a/app/protocol/flows/v5/blockrelay/handle_request_anticone.go b/app/protocol/flows/v5/blockrelay/handle_request_anticone.go index e43f5296d4..f456e16eb8 100644 --- a/app/protocol/flows/v5/blockrelay/handle_request_anticone.go +++ b/app/protocol/flows/v5/blockrelay/handle_request_anticone.go @@ -3,13 +3,13 @@ package blockrelay import ( "sort" - "github.com/karlsen-network/karlsend/app/appmessage" - "github.com/karlsen-network/karlsend/app/protocol/peer" - "github.com/karlsen-network/karlsend/app/protocol/protocolerrors" - "github.com/karlsen-network/karlsend/domain" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/infrastructure/config" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/router" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/protocol/peer" + "github.com/karlsen-network/karlsend/v2/app/protocol/protocolerrors" + "github.com/karlsen-network/karlsend/v2/domain" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/infrastructure/config" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/router" ) // RequestAnticoneContext is the interface for the context needed for the HandleRequestHeaders flow. diff --git a/app/protocol/flows/v5/blockrelay/handle_request_block_locator.go b/app/protocol/flows/v5/blockrelay/handle_request_block_locator.go index 5b53a8cffc..4b84e03fdd 100644 --- a/app/protocol/flows/v5/blockrelay/handle_request_block_locator.go +++ b/app/protocol/flows/v5/blockrelay/handle_request_block_locator.go @@ -1,11 +1,11 @@ package blockrelay import ( - "github.com/karlsen-network/karlsend/app/appmessage" - "github.com/karlsen-network/karlsend/app/protocol/protocolerrors" - "github.com/karlsen-network/karlsend/domain" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/router" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/protocol/protocolerrors" + "github.com/karlsen-network/karlsend/v2/domain" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/router" ) // RequestBlockLocatorContext is the interface for the context needed for the HandleRequestBlockLocator flow. diff --git a/app/protocol/flows/v5/blockrelay/handle_request_headers.go b/app/protocol/flows/v5/blockrelay/handle_request_headers.go index 23b8eba698..2bc7440d3b 100644 --- a/app/protocol/flows/v5/blockrelay/handle_request_headers.go +++ b/app/protocol/flows/v5/blockrelay/handle_request_headers.go @@ -1,13 +1,13 @@ package blockrelay import ( - "github.com/karlsen-network/karlsend/app/protocol/peer" - "github.com/karlsen-network/karlsend/app/protocol/protocolerrors" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/app/protocol/peer" + "github.com/karlsen-network/karlsend/v2/app/protocol/protocolerrors" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/app/appmessage" - "github.com/karlsen-network/karlsend/domain" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/router" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + "github.com/karlsen-network/karlsend/v2/domain" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/router" ) // This constant must be equal at both syncer and syncee. Therefore, never (!!) change this constant unless a new p2p diff --git a/app/protocol/flows/v5/blockrelay/handle_request_pruning_point_utxo_set.go b/app/protocol/flows/v5/blockrelay/handle_request_pruning_point_utxo_set.go index 761118922e..40b741d6be 100644 --- a/app/protocol/flows/v5/blockrelay/handle_request_pruning_point_utxo_set.go +++ b/app/protocol/flows/v5/blockrelay/handle_request_pruning_point_utxo_set.go @@ -3,14 +3,14 @@ package blockrelay import ( "errors" - "github.com/karlsen-network/karlsend/app/appmessage" - "github.com/karlsen-network/karlsend/app/protocol/common" - "github.com/karlsen-network/karlsend/app/protocol/protocolerrors" - "github.com/karlsen-network/karlsend/domain" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/ruleerrors" - "github.com/karlsen-network/karlsend/infrastructure/logger" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/router" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/protocol/common" + "github.com/karlsen-network/karlsend/v2/app/protocol/protocolerrors" + "github.com/karlsen-network/karlsend/v2/domain" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/ruleerrors" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/router" ) // HandleRequestPruningPointUTXOSetContext is the interface for the context needed for the HandleRequestPruningPointUTXOSet flow. diff --git a/app/protocol/flows/v5/blockrelay/ibd.go b/app/protocol/flows/v5/blockrelay/ibd.go index 85b7065744..e744f521d4 100644 --- a/app/protocol/flows/v5/blockrelay/ibd.go +++ b/app/protocol/flows/v5/blockrelay/ibd.go @@ -4,17 +4,17 @@ import ( "fmt" "time" - "github.com/karlsen-network/karlsend/app/appmessage" - "github.com/karlsen-network/karlsend/app/protocol/common" - peerpkg "github.com/karlsen-network/karlsend/app/protocol/peer" - "github.com/karlsen-network/karlsend/app/protocol/protocolerrors" - "github.com/karlsen-network/karlsend/domain" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/ruleerrors" - "github.com/karlsen-network/karlsend/domain/consensus/utils/consensushashing" - "github.com/karlsen-network/karlsend/infrastructure/config" - "github.com/karlsen-network/karlsend/infrastructure/logger" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/router" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/protocol/common" + peerpkg "github.com/karlsen-network/karlsend/v2/app/protocol/peer" + "github.com/karlsen-network/karlsend/v2/app/protocol/protocolerrors" + "github.com/karlsen-network/karlsend/v2/domain" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/ruleerrors" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/consensushashing" + "github.com/karlsen-network/karlsend/v2/infrastructure/config" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/router" "github.com/pkg/errors" ) diff --git a/app/protocol/flows/v5/blockrelay/ibd_with_headers_proof.go b/app/protocol/flows/v5/blockrelay/ibd_with_headers_proof.go index 2dd07d79c3..10911ea34c 100644 --- a/app/protocol/flows/v5/blockrelay/ibd_with_headers_proof.go +++ b/app/protocol/flows/v5/blockrelay/ibd_with_headers_proof.go @@ -4,12 +4,12 @@ import ( "fmt" "time" - "github.com/karlsen-network/karlsend/app/appmessage" - "github.com/karlsen-network/karlsend/app/protocol/common" - "github.com/karlsen-network/karlsend/app/protocol/protocolerrors" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/ruleerrors" - "github.com/karlsen-network/karlsend/domain/consensus/utils/consensushashing" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/protocol/common" + "github.com/karlsen-network/karlsend/v2/app/protocol/protocolerrors" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/ruleerrors" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/consensushashing" "github.com/pkg/errors" ) diff --git a/app/protocol/flows/v5/blockrelay/log.go b/app/protocol/flows/v5/blockrelay/log.go index 5c33018499..e73968c11e 100644 --- a/app/protocol/flows/v5/blockrelay/log.go +++ b/app/protocol/flows/v5/blockrelay/log.go @@ -1,8 +1,8 @@ package blockrelay import ( - "github.com/karlsen-network/karlsend/infrastructure/logger" - "github.com/karlsen-network/karlsend/util/panics" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/util/panics" ) var log = logger.RegisterSubSystem("PROT") diff --git a/app/protocol/flows/v5/blockrelay/send_virtual_selected_parent_inv.go b/app/protocol/flows/v5/blockrelay/send_virtual_selected_parent_inv.go index dfbb010600..d61e520923 100644 --- a/app/protocol/flows/v5/blockrelay/send_virtual_selected_parent_inv.go +++ b/app/protocol/flows/v5/blockrelay/send_virtual_selected_parent_inv.go @@ -1,11 +1,11 @@ package blockrelay import ( - "github.com/karlsen-network/karlsend/app/appmessage" - peerpkg "github.com/karlsen-network/karlsend/app/protocol/peer" - "github.com/karlsen-network/karlsend/domain" - "github.com/karlsen-network/karlsend/infrastructure/config" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/router" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + peerpkg "github.com/karlsen-network/karlsend/v2/app/protocol/peer" + "github.com/karlsen-network/karlsend/v2/domain" + "github.com/karlsen-network/karlsend/v2/infrastructure/config" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/router" ) // SendVirtualSelectedParentInvContext is the interface for the context needed for the SendVirtualSelectedParentInv flow. diff --git a/app/protocol/flows/v5/ping/receive.go b/app/protocol/flows/v5/ping/receive.go index 33a972d1bf..8f669e3e9b 100644 --- a/app/protocol/flows/v5/ping/receive.go +++ b/app/protocol/flows/v5/ping/receive.go @@ -1,8 +1,8 @@ package ping import ( - "github.com/karlsen-network/karlsend/app/appmessage" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/router" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/router" ) // ReceivePingsContext is the interface for the context needed for the ReceivePings flow. diff --git a/app/protocol/flows/v5/ping/send.go b/app/protocol/flows/v5/ping/send.go index 1f65ca6dc9..203b70c7b9 100644 --- a/app/protocol/flows/v5/ping/send.go +++ b/app/protocol/flows/v5/ping/send.go @@ -3,15 +3,15 @@ package ping import ( "time" - "github.com/karlsen-network/karlsend/app/protocol/common" - "github.com/karlsen-network/karlsend/app/protocol/flowcontext" + "github.com/karlsen-network/karlsend/v2/app/protocol/common" + "github.com/karlsen-network/karlsend/v2/app/protocol/flowcontext" "github.com/pkg/errors" - "github.com/karlsen-network/karlsend/app/appmessage" - peerpkg "github.com/karlsen-network/karlsend/app/protocol/peer" - "github.com/karlsen-network/karlsend/app/protocol/protocolerrors" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/router" - "github.com/karlsen-network/karlsend/util/random" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + peerpkg "github.com/karlsen-network/karlsend/v2/app/protocol/peer" + "github.com/karlsen-network/karlsend/v2/app/protocol/protocolerrors" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/router" + "github.com/karlsen-network/karlsend/v2/util/random" ) // SendPingsContext is the interface for the context needed for the SendPings flow. diff --git a/app/protocol/flows/v5/register.go b/app/protocol/flows/v5/register.go index 10e146aed3..dcbb05303e 100644 --- a/app/protocol/flows/v5/register.go +++ b/app/protocol/flows/v5/register.go @@ -1,16 +1,16 @@ package v5 import ( - "github.com/karlsen-network/karlsend/app/appmessage" - "github.com/karlsen-network/karlsend/app/protocol/common" - "github.com/karlsen-network/karlsend/app/protocol/flowcontext" - "github.com/karlsen-network/karlsend/app/protocol/flows/v5/addressexchange" - "github.com/karlsen-network/karlsend/app/protocol/flows/v5/blockrelay" - "github.com/karlsen-network/karlsend/app/protocol/flows/v5/ping" - "github.com/karlsen-network/karlsend/app/protocol/flows/v5/rejects" - "github.com/karlsen-network/karlsend/app/protocol/flows/v5/transactionrelay" - peerpkg "github.com/karlsen-network/karlsend/app/protocol/peer" - routerpkg "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/router" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/protocol/common" + "github.com/karlsen-network/karlsend/v2/app/protocol/flowcontext" + "github.com/karlsen-network/karlsend/v2/app/protocol/flows/v5/addressexchange" + "github.com/karlsen-network/karlsend/v2/app/protocol/flows/v5/blockrelay" + "github.com/karlsen-network/karlsend/v2/app/protocol/flows/v5/ping" + "github.com/karlsen-network/karlsend/v2/app/protocol/flows/v5/rejects" + "github.com/karlsen-network/karlsend/v2/app/protocol/flows/v5/transactionrelay" + peerpkg "github.com/karlsen-network/karlsend/v2/app/protocol/peer" + routerpkg "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/router" ) type protocolManager interface { diff --git a/app/protocol/flows/v5/rejects/handle_rejects.go b/app/protocol/flows/v5/rejects/handle_rejects.go index e06d0f6c7e..cfc8edaf81 100644 --- a/app/protocol/flows/v5/rejects/handle_rejects.go +++ b/app/protocol/flows/v5/rejects/handle_rejects.go @@ -1,9 +1,9 @@ package rejects import ( - "github.com/karlsen-network/karlsend/app/appmessage" - "github.com/karlsen-network/karlsend/app/protocol/protocolerrors" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/router" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/protocol/protocolerrors" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/router" ) // HandleRejectsContext is the interface for the context needed for the HandleRejects flow. diff --git a/app/protocol/flows/v5/testing/common_test.go b/app/protocol/flows/v5/testing/common_test.go index a878ed594a..06deb2428b 100644 --- a/app/protocol/flows/v5/testing/common_test.go +++ b/app/protocol/flows/v5/testing/common_test.go @@ -4,7 +4,7 @@ import ( "strings" "testing" - "github.com/karlsen-network/karlsend/app/protocol/protocolerrors" + "github.com/karlsen-network/karlsend/v2/app/protocol/protocolerrors" "github.com/pkg/errors" ) diff --git a/app/protocol/flows/v5/testing/receiveaddresses_test.go b/app/protocol/flows/v5/testing/receiveaddresses_test.go index dd06b6c4f3..16d25d20cb 100644 --- a/app/protocol/flows/v5/testing/receiveaddresses_test.go +++ b/app/protocol/flows/v5/testing/receiveaddresses_test.go @@ -4,14 +4,14 @@ import ( "testing" "time" - "github.com/karlsen-network/karlsend/app/protocol/flows/v5/addressexchange" - - "github.com/karlsen-network/karlsend/app/appmessage" - peerpkg "github.com/karlsen-network/karlsend/app/protocol/peer" - "github.com/karlsen-network/karlsend/domain/consensus" - "github.com/karlsen-network/karlsend/domain/consensus/utils/testutils" - "github.com/karlsen-network/karlsend/infrastructure/network/addressmanager" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/router" + "github.com/karlsen-network/karlsend/v2/app/protocol/flows/v5/addressexchange" + + "github.com/karlsen-network/karlsend/v2/app/appmessage" + peerpkg "github.com/karlsen-network/karlsend/v2/app/protocol/peer" + "github.com/karlsen-network/karlsend/v2/domain/consensus" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/testutils" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/addressmanager" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/router" ) type fakeReceiveAddressesContext struct{} diff --git a/app/protocol/flows/v5/transactionrelay/handle_relayed_transactions.go b/app/protocol/flows/v5/transactionrelay/handle_relayed_transactions.go index 8b16fd7c41..bcc03de33d 100644 --- a/app/protocol/flows/v5/transactionrelay/handle_relayed_transactions.go +++ b/app/protocol/flows/v5/transactionrelay/handle_relayed_transactions.go @@ -1,16 +1,16 @@ package transactionrelay import ( - "github.com/karlsen-network/karlsend/app/appmessage" - "github.com/karlsen-network/karlsend/app/protocol/common" - "github.com/karlsen-network/karlsend/app/protocol/flowcontext" - "github.com/karlsen-network/karlsend/app/protocol/protocolerrors" - "github.com/karlsen-network/karlsend/domain" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/consensushashing" - "github.com/karlsen-network/karlsend/domain/miningmanager/mempool" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/router" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/protocol/common" + "github.com/karlsen-network/karlsend/v2/app/protocol/flowcontext" + "github.com/karlsen-network/karlsend/v2/app/protocol/protocolerrors" + "github.com/karlsen-network/karlsend/v2/domain" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/consensushashing" + "github.com/karlsen-network/karlsend/v2/domain/miningmanager/mempool" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/router" "github.com/pkg/errors" ) diff --git a/app/protocol/flows/v5/transactionrelay/handle_relayed_transactions_test.go b/app/protocol/flows/v5/transactionrelay/handle_relayed_transactions_test.go index 41561334c2..1353b22482 100644 --- a/app/protocol/flows/v5/transactionrelay/handle_relayed_transactions_test.go +++ b/app/protocol/flows/v5/transactionrelay/handle_relayed_transactions_test.go @@ -5,22 +5,22 @@ import ( "strings" "testing" - "github.com/karlsen-network/karlsend/app/protocol/flowcontext" - "github.com/karlsen-network/karlsend/app/protocol/flows/v5/transactionrelay" - - "github.com/karlsen-network/karlsend/app/protocol/protocolerrors" - "github.com/karlsen-network/karlsend/domain" - "github.com/karlsen-network/karlsend/domain/consensus" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/testutils" - "github.com/karlsen-network/karlsend/domain/miningmanager/mempool" - "github.com/karlsen-network/karlsend/infrastructure/logger" - "github.com/karlsen-network/karlsend/util/panics" - - "github.com/karlsen-network/karlsend/app/appmessage" - "github.com/karlsen-network/karlsend/infrastructure/config" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/router" + "github.com/karlsen-network/karlsend/v2/app/protocol/flowcontext" + "github.com/karlsen-network/karlsend/v2/app/protocol/flows/v5/transactionrelay" + + "github.com/karlsen-network/karlsend/v2/app/protocol/protocolerrors" + "github.com/karlsen-network/karlsend/v2/domain" + "github.com/karlsen-network/karlsend/v2/domain/consensus" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/testutils" + "github.com/karlsen-network/karlsend/v2/domain/miningmanager/mempool" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/util/panics" + + "github.com/karlsen-network/karlsend/v2/app/appmessage" + "github.com/karlsen-network/karlsend/v2/infrastructure/config" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/router" ) type mocTransactionsRelayContext struct { diff --git a/app/protocol/flows/v5/transactionrelay/handle_requested_transactions.go b/app/protocol/flows/v5/transactionrelay/handle_requested_transactions.go index 19a041e5a0..931802b9f8 100644 --- a/app/protocol/flows/v5/transactionrelay/handle_requested_transactions.go +++ b/app/protocol/flows/v5/transactionrelay/handle_requested_transactions.go @@ -1,8 +1,8 @@ package transactionrelay import ( - "github.com/karlsen-network/karlsend/app/appmessage" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/router" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/router" ) type handleRequestedTransactionsFlow struct { diff --git a/app/protocol/flows/v5/transactionrelay/handle_requested_transactions_test.go b/app/protocol/flows/v5/transactionrelay/handle_requested_transactions_test.go index 2727b7804d..9fac8f2caf 100644 --- a/app/protocol/flows/v5/transactionrelay/handle_requested_transactions_test.go +++ b/app/protocol/flows/v5/transactionrelay/handle_requested_transactions_test.go @@ -3,20 +3,20 @@ package transactionrelay_test import ( "testing" - "github.com/karlsen-network/karlsend/app/protocol/flowcontext" - "github.com/karlsen-network/karlsend/app/protocol/flows/v5/transactionrelay" + "github.com/karlsen-network/karlsend/v2/app/protocol/flowcontext" + "github.com/karlsen-network/karlsend/v2/app/protocol/flows/v5/transactionrelay" - "github.com/karlsen-network/karlsend/app/appmessage" - "github.com/karlsen-network/karlsend/domain" - "github.com/karlsen-network/karlsend/domain/consensus" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/testutils" - "github.com/karlsen-network/karlsend/domain/miningmanager/mempool" - "github.com/karlsen-network/karlsend/infrastructure/config" - "github.com/karlsen-network/karlsend/infrastructure/logger" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/router" - "github.com/karlsen-network/karlsend/util/panics" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + "github.com/karlsen-network/karlsend/v2/domain" + "github.com/karlsen-network/karlsend/v2/domain/consensus" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/testutils" + "github.com/karlsen-network/karlsend/v2/domain/miningmanager/mempool" + "github.com/karlsen-network/karlsend/v2/infrastructure/config" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/router" + "github.com/karlsen-network/karlsend/v2/util/panics" "github.com/pkg/errors" ) diff --git a/app/protocol/log.go b/app/protocol/log.go index 3c9e3243d7..9d9545cafd 100644 --- a/app/protocol/log.go +++ b/app/protocol/log.go @@ -1,8 +1,8 @@ package protocol import ( - "github.com/karlsen-network/karlsend/infrastructure/logger" - "github.com/karlsen-network/karlsend/util/panics" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/util/panics" ) var log = logger.RegisterSubSystem("PROT") diff --git a/app/protocol/manager.go b/app/protocol/manager.go index 895627285b..037e09e144 100644 --- a/app/protocol/manager.go +++ b/app/protocol/manager.go @@ -5,20 +5,20 @@ import ( "sync" "sync/atomic" - "github.com/karlsen-network/karlsend/app/protocol/common" + "github.com/karlsen-network/karlsend/v2/app/protocol/common" "github.com/pkg/errors" - "github.com/karlsen-network/karlsend/domain" + "github.com/karlsen-network/karlsend/v2/domain" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/app/protocol/flowcontext" - peerpkg "github.com/karlsen-network/karlsend/app/protocol/peer" - "github.com/karlsen-network/karlsend/infrastructure/config" - "github.com/karlsen-network/karlsend/infrastructure/network/addressmanager" - "github.com/karlsen-network/karlsend/infrastructure/network/connmanager" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter" + "github.com/karlsen-network/karlsend/v2/app/protocol/flowcontext" + peerpkg "github.com/karlsen-network/karlsend/v2/app/protocol/peer" + "github.com/karlsen-network/karlsend/v2/infrastructure/config" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/addressmanager" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/connmanager" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter" ) // Manager manages the p2p protocol diff --git a/app/protocol/peer/log.go b/app/protocol/peer/log.go index 5904184196..3f3cfbf7cd 100644 --- a/app/protocol/peer/log.go +++ b/app/protocol/peer/log.go @@ -1,7 +1,7 @@ package peer import ( - "github.com/karlsen-network/karlsend/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" ) var log = logger.RegisterSubSystem("PROT") diff --git a/app/protocol/peer/peer.go b/app/protocol/peer/peer.go index 0f7fe5f329..e43a9669b8 100644 --- a/app/protocol/peer/peer.go +++ b/app/protocol/peer/peer.go @@ -4,13 +4,13 @@ import ( "sync" "time" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter" - "github.com/karlsen-network/karlsend/app/appmessage" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/id" - mathUtil "github.com/karlsen-network/karlsend/util/math" - "github.com/karlsen-network/karlsend/util/mstime" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/id" + mathUtil "github.com/karlsen-network/karlsend/v2/util/math" + "github.com/karlsen-network/karlsend/v2/util/mstime" ) // Peer holds data about a peer. diff --git a/app/protocol/protocol.go b/app/protocol/protocol.go index 93776defb7..93d139a31e 100644 --- a/app/protocol/protocol.go +++ b/app/protocol/protocol.go @@ -4,18 +4,18 @@ import ( "sync" "sync/atomic" - "github.com/karlsen-network/karlsend/app/protocol/common" - "github.com/karlsen-network/karlsend/app/protocol/flows/ready" - v5 "github.com/karlsen-network/karlsend/app/protocol/flows/v5" - - "github.com/karlsen-network/karlsend/app/appmessage" - "github.com/karlsen-network/karlsend/app/protocol/flows/handshake" - peerpkg "github.com/karlsen-network/karlsend/app/protocol/peer" - "github.com/karlsen-network/karlsend/app/protocol/protocolerrors" - "github.com/karlsen-network/karlsend/infrastructure/network/addressmanager" - "github.com/karlsen-network/karlsend/infrastructure/network/connmanager" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter" - routerpkg "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/router" + "github.com/karlsen-network/karlsend/v2/app/protocol/common" + "github.com/karlsen-network/karlsend/v2/app/protocol/flows/ready" + v5 "github.com/karlsen-network/karlsend/v2/app/protocol/flows/v5" + + "github.com/karlsen-network/karlsend/v2/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/protocol/flows/handshake" + peerpkg "github.com/karlsen-network/karlsend/v2/app/protocol/peer" + "github.com/karlsen-network/karlsend/v2/app/protocol/protocolerrors" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/addressmanager" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/connmanager" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter" + routerpkg "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/router" "github.com/pkg/errors" ) diff --git a/app/protocol/protocolerrors/protocolerrors.go b/app/protocol/protocolerrors/protocolerrors.go index b021717309..38c0318285 100644 --- a/app/protocol/protocolerrors/protocolerrors.go +++ b/app/protocol/protocolerrors/protocolerrors.go @@ -1,7 +1,7 @@ package protocolerrors import ( - "github.com/karlsen-network/karlsend/domain/consensus/ruleerrors" + "github.com/karlsen-network/karlsend/v2/domain/consensus/ruleerrors" "github.com/pkg/errors" ) diff --git a/app/rpc/log.go b/app/rpc/log.go index 681dcb7997..1291eff140 100644 --- a/app/rpc/log.go +++ b/app/rpc/log.go @@ -1,8 +1,8 @@ package rpc import ( - "github.com/karlsen-network/karlsend/infrastructure/logger" - "github.com/karlsen-network/karlsend/util/panics" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/util/panics" ) var log = logger.RegisterSubSystem("RPCS") diff --git a/app/rpc/manager.go b/app/rpc/manager.go index f04617e408..830fa1f186 100644 --- a/app/rpc/manager.go +++ b/app/rpc/manager.go @@ -1,17 +1,17 @@ package rpc import ( - "github.com/karlsen-network/karlsend/app/appmessage" - "github.com/karlsen-network/karlsend/app/protocol" - "github.com/karlsen-network/karlsend/app/rpc/rpccontext" - "github.com/karlsen-network/karlsend/domain" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/utxoindex" - "github.com/karlsen-network/karlsend/infrastructure/config" - "github.com/karlsen-network/karlsend/infrastructure/logger" - "github.com/karlsen-network/karlsend/infrastructure/network/addressmanager" - "github.com/karlsen-network/karlsend/infrastructure/network/connmanager" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/protocol" + "github.com/karlsen-network/karlsend/v2/app/rpc/rpccontext" + "github.com/karlsen-network/karlsend/v2/domain" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/utxoindex" + "github.com/karlsen-network/karlsend/v2/infrastructure/config" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/addressmanager" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/connmanager" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter" "github.com/pkg/errors" ) diff --git a/app/rpc/rpc.go b/app/rpc/rpc.go index 258f0b9919..d4c9a9b9d7 100644 --- a/app/rpc/rpc.go +++ b/app/rpc/rpc.go @@ -1,11 +1,11 @@ package rpc import ( - "github.com/karlsen-network/karlsend/app/appmessage" - "github.com/karlsen-network/karlsend/app/rpc/rpccontext" - "github.com/karlsen-network/karlsend/app/rpc/rpchandlers" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/router" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/rpc/rpccontext" + "github.com/karlsen-network/karlsend/v2/app/rpc/rpchandlers" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/router" "github.com/pkg/errors" ) diff --git a/app/rpc/rpccontext/chain_changed.go b/app/rpc/rpccontext/chain_changed.go index 33141659eb..525b7c95a6 100644 --- a/app/rpc/rpccontext/chain_changed.go +++ b/app/rpc/rpccontext/chain_changed.go @@ -1,9 +1,9 @@ package rpccontext import ( - "github.com/karlsen-network/karlsend/app/appmessage" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/consensushashing" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/consensushashing" ) // ConvertVirtualSelectedParentChainChangesToChainChangedNotificationMessage converts diff --git a/app/rpc/rpccontext/context.go b/app/rpc/rpccontext/context.go index d0402185c0..9325e31c7f 100644 --- a/app/rpc/rpccontext/context.go +++ b/app/rpc/rpccontext/context.go @@ -1,13 +1,13 @@ package rpccontext import ( - "github.com/karlsen-network/karlsend/app/protocol" - "github.com/karlsen-network/karlsend/domain" - "github.com/karlsen-network/karlsend/domain/utxoindex" - "github.com/karlsen-network/karlsend/infrastructure/config" - "github.com/karlsen-network/karlsend/infrastructure/network/addressmanager" - "github.com/karlsen-network/karlsend/infrastructure/network/connmanager" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter" + "github.com/karlsen-network/karlsend/v2/app/protocol" + "github.com/karlsen-network/karlsend/v2/domain" + "github.com/karlsen-network/karlsend/v2/domain/utxoindex" + "github.com/karlsen-network/karlsend/v2/infrastructure/config" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/addressmanager" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/connmanager" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter" ) // Context represents the RPC context diff --git a/app/rpc/rpccontext/log.go b/app/rpc/rpccontext/log.go index fab81339b0..1513474aa8 100644 --- a/app/rpc/rpccontext/log.go +++ b/app/rpc/rpccontext/log.go @@ -1,7 +1,7 @@ package rpccontext import ( - "github.com/karlsen-network/karlsend/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" ) var log = logger.RegisterSubSystem("RPCS") diff --git a/app/rpc/rpccontext/notificationmanager.go b/app/rpc/rpccontext/notificationmanager.go index f971051643..06a1b50e17 100644 --- a/app/rpc/rpccontext/notificationmanager.go +++ b/app/rpc/rpccontext/notificationmanager.go @@ -3,14 +3,14 @@ package rpccontext import ( "sync" - "github.com/karlsen-network/karlsend/domain/dagconfig" + "github.com/karlsen-network/karlsend/v2/domain/dagconfig" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/txscript" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/txscript" - "github.com/karlsen-network/karlsend/app/appmessage" - "github.com/karlsen-network/karlsend/domain/utxoindex" - routerpkg "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/router" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + "github.com/karlsen-network/karlsend/v2/domain/utxoindex" + routerpkg "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/router" "github.com/pkg/errors" ) diff --git a/app/rpc/rpccontext/utxos_by_addresses.go b/app/rpc/rpccontext/utxos_by_addresses.go index 242f48a3df..4f9e57685a 100644 --- a/app/rpc/rpccontext/utxos_by_addresses.go +++ b/app/rpc/rpccontext/utxos_by_addresses.go @@ -3,12 +3,12 @@ package rpccontext import ( "encoding/hex" - "github.com/karlsen-network/karlsend/domain/consensus/utils/txscript" - "github.com/karlsen-network/karlsend/util" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/txscript" + "github.com/karlsen-network/karlsend/v2/util" "github.com/pkg/errors" - "github.com/karlsen-network/karlsend/app/appmessage" - "github.com/karlsen-network/karlsend/domain/utxoindex" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + "github.com/karlsen-network/karlsend/v2/domain/utxoindex" ) // ConvertUTXOOutpointEntryPairsToUTXOsByAddressesEntries converts diff --git a/app/rpc/rpccontext/verbosedata.go b/app/rpc/rpccontext/verbosedata.go index 258aa05106..6f16059e5b 100644 --- a/app/rpc/rpccontext/verbosedata.go +++ b/app/rpc/rpccontext/verbosedata.go @@ -5,17 +5,17 @@ import ( "math" "math/big" - difficultyPackage "github.com/karlsen-network/karlsend/util/difficulty" + difficultyPackage "github.com/karlsen-network/karlsend/v2/util/difficulty" "github.com/pkg/errors" - "github.com/karlsen-network/karlsend/domain/consensus/utils/hashes" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/hashes" - "github.com/karlsen-network/karlsend/domain/consensus/utils/txscript" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/txscript" - "github.com/karlsen-network/karlsend/app/appmessage" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/consensushashing" - "github.com/karlsen-network/karlsend/domain/dagconfig" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/consensushashing" + "github.com/karlsen-network/karlsend/v2/domain/dagconfig" ) // ErrBuildBlockVerboseDataInvalidBlock indicates that a block that was given to BuildBlockVerboseData is invalid. diff --git a/app/rpc/rpchandlers/add_peer.go b/app/rpc/rpchandlers/add_peer.go index c17ce0c0ca..f018e7106e 100644 --- a/app/rpc/rpchandlers/add_peer.go +++ b/app/rpc/rpchandlers/add_peer.go @@ -1,10 +1,10 @@ package rpchandlers import ( - "github.com/karlsen-network/karlsend/app/appmessage" - "github.com/karlsen-network/karlsend/app/rpc/rpccontext" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/router" - "github.com/karlsen-network/karlsend/util/network" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/rpc/rpccontext" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/router" + "github.com/karlsen-network/karlsend/v2/util/network" ) // HandleAddPeer handles the respectively named RPC command diff --git a/app/rpc/rpchandlers/ban.go b/app/rpc/rpchandlers/ban.go index 8153a82c91..5580ab897f 100644 --- a/app/rpc/rpchandlers/ban.go +++ b/app/rpc/rpchandlers/ban.go @@ -3,9 +3,9 @@ package rpchandlers import ( "net" - "github.com/karlsen-network/karlsend/app/appmessage" - "github.com/karlsen-network/karlsend/app/rpc/rpccontext" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/router" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/rpc/rpccontext" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/router" ) // HandleBan handles the respectively named RPC command diff --git a/app/rpc/rpchandlers/estimate_network_hashes_per_second.go b/app/rpc/rpchandlers/estimate_network_hashes_per_second.go index 7e5e33d3d0..e928bb4d27 100644 --- a/app/rpc/rpchandlers/estimate_network_hashes_per_second.go +++ b/app/rpc/rpchandlers/estimate_network_hashes_per_second.go @@ -1,11 +1,11 @@ package rpchandlers import ( - "github.com/karlsen-network/karlsend/app/appmessage" - "github.com/karlsen-network/karlsend/app/rpc/rpccontext" - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/router" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/rpc/rpccontext" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/router" ) // HandleEstimateNetworkHashesPerSecond handles the respectively named RPC command diff --git a/app/rpc/rpchandlers/get_balance_by_address.go b/app/rpc/rpchandlers/get_balance_by_address.go index 2637d78349..6519242ee8 100644 --- a/app/rpc/rpchandlers/get_balance_by_address.go +++ b/app/rpc/rpchandlers/get_balance_by_address.go @@ -1,11 +1,11 @@ package rpchandlers import ( - "github.com/karlsen-network/karlsend/app/appmessage" - "github.com/karlsen-network/karlsend/app/rpc/rpccontext" - "github.com/karlsen-network/karlsend/domain/consensus/utils/txscript" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/router" - "github.com/karlsen-network/karlsend/util" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/rpc/rpccontext" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/txscript" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/router" + "github.com/karlsen-network/karlsend/v2/util" "github.com/pkg/errors" ) diff --git a/app/rpc/rpchandlers/get_balances_by_addresses.go b/app/rpc/rpchandlers/get_balances_by_addresses.go index 96ddd27ccd..b0004b56aa 100644 --- a/app/rpc/rpchandlers/get_balances_by_addresses.go +++ b/app/rpc/rpchandlers/get_balances_by_addresses.go @@ -1,9 +1,9 @@ package rpchandlers import ( - "github.com/karlsen-network/karlsend/app/appmessage" - "github.com/karlsen-network/karlsend/app/rpc/rpccontext" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/router" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/rpc/rpccontext" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/router" "github.com/pkg/errors" ) diff --git a/app/rpc/rpchandlers/get_block.go b/app/rpc/rpchandlers/get_block.go index 1a5d3e38fc..c351159a24 100644 --- a/app/rpc/rpchandlers/get_block.go +++ b/app/rpc/rpchandlers/get_block.go @@ -1,10 +1,10 @@ package rpchandlers import ( - "github.com/karlsen-network/karlsend/app/appmessage" - "github.com/karlsen-network/karlsend/app/rpc/rpccontext" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/router" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/rpc/rpccontext" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/router" "github.com/pkg/errors" ) diff --git a/app/rpc/rpchandlers/get_block_count.go b/app/rpc/rpchandlers/get_block_count.go index e89bbc7301..b67fa56fda 100644 --- a/app/rpc/rpchandlers/get_block_count.go +++ b/app/rpc/rpchandlers/get_block_count.go @@ -1,9 +1,9 @@ package rpchandlers import ( - "github.com/karlsen-network/karlsend/app/appmessage" - "github.com/karlsen-network/karlsend/app/rpc/rpccontext" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/router" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/rpc/rpccontext" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/router" ) // HandleGetBlockCount handles the respectively named RPC command diff --git a/app/rpc/rpchandlers/get_block_dag_info.go b/app/rpc/rpchandlers/get_block_dag_info.go index fce7ade1dd..74e49efe8e 100644 --- a/app/rpc/rpchandlers/get_block_dag_info.go +++ b/app/rpc/rpchandlers/get_block_dag_info.go @@ -1,10 +1,10 @@ package rpchandlers import ( - "github.com/karlsen-network/karlsend/app/appmessage" - "github.com/karlsen-network/karlsend/app/rpc/rpccontext" - "github.com/karlsen-network/karlsend/domain/consensus/utils/hashes" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/router" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/rpc/rpccontext" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/hashes" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/router" ) // HandleGetBlockDAGInfo handles the respectively named RPC command diff --git a/app/rpc/rpchandlers/get_block_template.go b/app/rpc/rpchandlers/get_block_template.go index e8ae1157cd..424f60a3ae 100644 --- a/app/rpc/rpchandlers/get_block_template.go +++ b/app/rpc/rpchandlers/get_block_template.go @@ -1,14 +1,14 @@ package rpchandlers import ( - "github.com/karlsen-network/karlsend/app/appmessage" - "github.com/karlsen-network/karlsend/app/rpc/rpccontext" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/transactionhelper" - "github.com/karlsen-network/karlsend/domain/consensus/utils/txscript" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/router" - "github.com/karlsen-network/karlsend/util" - "github.com/karlsen-network/karlsend/version" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/rpc/rpccontext" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/transactionhelper" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/txscript" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/router" + "github.com/karlsen-network/karlsend/v2/util" + "github.com/karlsen-network/karlsend/v2/version" ) // HandleGetBlockTemplate handles the respectively named RPC command diff --git a/app/rpc/rpchandlers/get_blocks.go b/app/rpc/rpchandlers/get_blocks.go index b6932f4e0e..df95cc9c31 100644 --- a/app/rpc/rpchandlers/get_blocks.go +++ b/app/rpc/rpchandlers/get_blocks.go @@ -1,11 +1,11 @@ package rpchandlers import ( - "github.com/karlsen-network/karlsend/app/appmessage" - "github.com/karlsen-network/karlsend/app/rpc/rpccontext" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/hashes" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/router" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/rpc/rpccontext" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/hashes" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/router" ) // HandleGetBlocks handles the respectively named RPC command diff --git a/app/rpc/rpchandlers/get_blocks_test.go b/app/rpc/rpchandlers/get_blocks_test.go index 96ee4db569..01bf90a80c 100644 --- a/app/rpc/rpchandlers/get_blocks_test.go +++ b/app/rpc/rpchandlers/get_blocks_test.go @@ -5,18 +5,18 @@ import ( "sort" "testing" - "github.com/karlsen-network/karlsend/domain/consensus/model" - - "github.com/karlsen-network/karlsend/app/appmessage" - "github.com/karlsen-network/karlsend/app/rpc/rpccontext" - "github.com/karlsen-network/karlsend/app/rpc/rpchandlers" - "github.com/karlsen-network/karlsend/domain/consensus" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/model/testapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/hashes" - "github.com/karlsen-network/karlsend/domain/consensus/utils/testutils" - "github.com/karlsen-network/karlsend/domain/miningmanager" - "github.com/karlsen-network/karlsend/infrastructure/config" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + + "github.com/karlsen-network/karlsend/v2/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/rpc/rpccontext" + "github.com/karlsen-network/karlsend/v2/app/rpc/rpchandlers" + "github.com/karlsen-network/karlsend/v2/domain/consensus" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/testapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/hashes" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/testutils" + "github.com/karlsen-network/karlsend/v2/domain/miningmanager" + "github.com/karlsen-network/karlsend/v2/infrastructure/config" ) type fakeDomain struct { diff --git a/app/rpc/rpchandlers/get_coin_supply.go b/app/rpc/rpchandlers/get_coin_supply.go index e9d297b9f0..89585655c8 100644 --- a/app/rpc/rpchandlers/get_coin_supply.go +++ b/app/rpc/rpchandlers/get_coin_supply.go @@ -1,10 +1,10 @@ package rpchandlers import ( - "github.com/karlsen-network/karlsend/app/appmessage" - "github.com/karlsen-network/karlsend/app/rpc/rpccontext" - "github.com/karlsen-network/karlsend/domain/consensus/utils/constants" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/router" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/rpc/rpccontext" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/constants" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/router" ) // HandleGetCoinSupply handles the respectively named RPC command diff --git a/app/rpc/rpchandlers/get_connected_peer_info.go b/app/rpc/rpchandlers/get_connected_peer_info.go index 2bbc137377..253665a51f 100644 --- a/app/rpc/rpchandlers/get_connected_peer_info.go +++ b/app/rpc/rpchandlers/get_connected_peer_info.go @@ -1,9 +1,9 @@ package rpchandlers import ( - "github.com/karlsen-network/karlsend/app/appmessage" - "github.com/karlsen-network/karlsend/app/rpc/rpccontext" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/router" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/rpc/rpccontext" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/router" ) // HandleGetConnectedPeerInfo handles the respectively named RPC command diff --git a/app/rpc/rpchandlers/get_current_network.go b/app/rpc/rpchandlers/get_current_network.go index 2ed27ad218..b6aa0a02ea 100644 --- a/app/rpc/rpchandlers/get_current_network.go +++ b/app/rpc/rpchandlers/get_current_network.go @@ -1,9 +1,9 @@ package rpchandlers import ( - "github.com/karlsen-network/karlsend/app/appmessage" - "github.com/karlsen-network/karlsend/app/rpc/rpccontext" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/router" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/rpc/rpccontext" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/router" ) // HandleGetCurrentNetwork handles the respectively named RPC command diff --git a/app/rpc/rpchandlers/get_headers.go b/app/rpc/rpchandlers/get_headers.go index d185b8052f..c4839b8ac9 100644 --- a/app/rpc/rpchandlers/get_headers.go +++ b/app/rpc/rpchandlers/get_headers.go @@ -1,9 +1,9 @@ package rpchandlers import ( - "github.com/karlsen-network/karlsend/app/appmessage" - "github.com/karlsen-network/karlsend/app/rpc/rpccontext" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/router" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/rpc/rpccontext" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/router" ) // HandleGetHeaders handles the respectively named RPC command diff --git a/app/rpc/rpchandlers/get_info.go b/app/rpc/rpchandlers/get_info.go index 1d56dc4942..a1a2137279 100644 --- a/app/rpc/rpchandlers/get_info.go +++ b/app/rpc/rpchandlers/get_info.go @@ -1,10 +1,10 @@ package rpchandlers import ( - "github.com/karlsen-network/karlsend/app/appmessage" - "github.com/karlsen-network/karlsend/app/rpc/rpccontext" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/router" - "github.com/karlsen-network/karlsend/version" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/rpc/rpccontext" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/router" + "github.com/karlsen-network/karlsend/v2/version" ) // HandleGetInfo handles the respectively named RPC command diff --git a/app/rpc/rpchandlers/get_mempool_entries.go b/app/rpc/rpchandlers/get_mempool_entries.go index 247131ac04..e6ad7af6fe 100644 --- a/app/rpc/rpchandlers/get_mempool_entries.go +++ b/app/rpc/rpchandlers/get_mempool_entries.go @@ -1,9 +1,9 @@ package rpchandlers import ( - "github.com/karlsen-network/karlsend/app/appmessage" - "github.com/karlsen-network/karlsend/app/rpc/rpccontext" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/router" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/rpc/rpccontext" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/router" ) // HandleGetMempoolEntries handles the respectively named RPC command diff --git a/app/rpc/rpchandlers/get_mempool_entries_by_addresses.go b/app/rpc/rpchandlers/get_mempool_entries_by_addresses.go index eacf132ed5..2f2632412b 100644 --- a/app/rpc/rpchandlers/get_mempool_entries_by_addresses.go +++ b/app/rpc/rpchandlers/get_mempool_entries_by_addresses.go @@ -1,12 +1,12 @@ package rpchandlers import ( - "github.com/karlsen-network/karlsend/app/appmessage" - "github.com/karlsen-network/karlsend/app/rpc/rpccontext" - "github.com/karlsen-network/karlsend/domain/consensus/utils/txscript" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/rpc/rpccontext" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/txscript" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/router" - "github.com/karlsen-network/karlsend/util" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/router" + "github.com/karlsen-network/karlsend/v2/util" ) // HandleGetMempoolEntriesByAddresses handles the respectively named RPC command diff --git a/app/rpc/rpchandlers/get_mempool_entry.go b/app/rpc/rpchandlers/get_mempool_entry.go index 0911169297..56aca8f353 100644 --- a/app/rpc/rpchandlers/get_mempool_entry.go +++ b/app/rpc/rpchandlers/get_mempool_entry.go @@ -1,11 +1,11 @@ package rpchandlers import ( - "github.com/karlsen-network/karlsend/app/appmessage" - "github.com/karlsen-network/karlsend/app/rpc/rpccontext" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/transactionid" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/router" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/rpc/rpccontext" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/transactionid" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/router" ) // HandleGetMempoolEntry handles the respectively named RPC command diff --git a/app/rpc/rpchandlers/get_peer_addresses.go b/app/rpc/rpchandlers/get_peer_addresses.go index 0a748343a7..5956768b45 100644 --- a/app/rpc/rpchandlers/get_peer_addresses.go +++ b/app/rpc/rpchandlers/get_peer_addresses.go @@ -4,9 +4,9 @@ import ( "net" "strconv" - "github.com/karlsen-network/karlsend/app/appmessage" - "github.com/karlsen-network/karlsend/app/rpc/rpccontext" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/router" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/rpc/rpccontext" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/router" ) // HandleGetPeerAddresses handles the respectively named RPC command diff --git a/app/rpc/rpchandlers/get_selected_tip_hash.go b/app/rpc/rpchandlers/get_selected_tip_hash.go index 631ddd54f3..cf1ee65b6a 100644 --- a/app/rpc/rpchandlers/get_selected_tip_hash.go +++ b/app/rpc/rpchandlers/get_selected_tip_hash.go @@ -1,9 +1,9 @@ package rpchandlers import ( - "github.com/karlsen-network/karlsend/app/appmessage" - "github.com/karlsen-network/karlsend/app/rpc/rpccontext" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/router" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/rpc/rpccontext" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/router" ) // HandleGetSelectedTipHash handles the respectively named RPC command diff --git a/app/rpc/rpchandlers/get_subnetwork.go b/app/rpc/rpchandlers/get_subnetwork.go index 84133dbc0b..c10e5e3ec1 100644 --- a/app/rpc/rpchandlers/get_subnetwork.go +++ b/app/rpc/rpchandlers/get_subnetwork.go @@ -1,9 +1,9 @@ package rpchandlers import ( - "github.com/karlsen-network/karlsend/app/appmessage" - "github.com/karlsen-network/karlsend/app/rpc/rpccontext" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/router" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/rpc/rpccontext" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/router" ) // HandleGetSubnetwork handles the respectively named RPC command diff --git a/app/rpc/rpchandlers/get_utxos_by_addresses.go b/app/rpc/rpchandlers/get_utxos_by_addresses.go index d314789549..9db01769b6 100644 --- a/app/rpc/rpchandlers/get_utxos_by_addresses.go +++ b/app/rpc/rpchandlers/get_utxos_by_addresses.go @@ -1,11 +1,11 @@ package rpchandlers import ( - "github.com/karlsen-network/karlsend/app/appmessage" - "github.com/karlsen-network/karlsend/app/rpc/rpccontext" - "github.com/karlsen-network/karlsend/domain/consensus/utils/txscript" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/router" - "github.com/karlsen-network/karlsend/util" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/rpc/rpccontext" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/txscript" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/router" + "github.com/karlsen-network/karlsend/v2/util" ) // HandleGetUTXOsByAddresses handles the respectively named RPC command diff --git a/app/rpc/rpchandlers/get_virtual_selected_parent_blue_score.go b/app/rpc/rpchandlers/get_virtual_selected_parent_blue_score.go index 24d1cabfd6..c72915e938 100644 --- a/app/rpc/rpchandlers/get_virtual_selected_parent_blue_score.go +++ b/app/rpc/rpchandlers/get_virtual_selected_parent_blue_score.go @@ -1,9 +1,9 @@ package rpchandlers import ( - "github.com/karlsen-network/karlsend/app/appmessage" - "github.com/karlsen-network/karlsend/app/rpc/rpccontext" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/router" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/rpc/rpccontext" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/router" ) // HandleGetVirtualSelectedParentBlueScore handles the respectively named RPC command diff --git a/app/rpc/rpchandlers/get_virtual_selected_parent_chain_from_block.go b/app/rpc/rpchandlers/get_virtual_selected_parent_chain_from_block.go index 27458b30db..35e7c20a80 100644 --- a/app/rpc/rpchandlers/get_virtual_selected_parent_chain_from_block.go +++ b/app/rpc/rpchandlers/get_virtual_selected_parent_chain_from_block.go @@ -1,10 +1,10 @@ package rpchandlers import ( - "github.com/karlsen-network/karlsend/app/appmessage" - "github.com/karlsen-network/karlsend/app/rpc/rpccontext" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/router" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/rpc/rpccontext" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/router" ) // HandleGetVirtualSelectedParentChainFromBlock handles the respectively named RPC command diff --git a/app/rpc/rpchandlers/log.go b/app/rpc/rpchandlers/log.go index 2f2a86038d..d001a940f6 100644 --- a/app/rpc/rpchandlers/log.go +++ b/app/rpc/rpchandlers/log.go @@ -1,8 +1,8 @@ package rpchandlers import ( - "github.com/karlsen-network/karlsend/infrastructure/logger" - "github.com/karlsen-network/karlsend/util/panics" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/util/panics" ) var log = logger.RegisterSubSystem("RPCS") diff --git a/app/rpc/rpchandlers/notify_block_added.go b/app/rpc/rpchandlers/notify_block_added.go index 1be539705d..ebb78d0689 100644 --- a/app/rpc/rpchandlers/notify_block_added.go +++ b/app/rpc/rpchandlers/notify_block_added.go @@ -1,9 +1,9 @@ package rpchandlers import ( - "github.com/karlsen-network/karlsend/app/appmessage" - "github.com/karlsen-network/karlsend/app/rpc/rpccontext" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/router" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/rpc/rpccontext" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/router" ) // HandleNotifyBlockAdded handles the respectively named RPC command diff --git a/app/rpc/rpchandlers/notify_finality_conflicts.go b/app/rpc/rpchandlers/notify_finality_conflicts.go index dfeed5a1ac..1fa38511fa 100644 --- a/app/rpc/rpchandlers/notify_finality_conflicts.go +++ b/app/rpc/rpchandlers/notify_finality_conflicts.go @@ -1,9 +1,9 @@ package rpchandlers import ( - "github.com/karlsen-network/karlsend/app/appmessage" - "github.com/karlsen-network/karlsend/app/rpc/rpccontext" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/router" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/rpc/rpccontext" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/router" ) // HandleNotifyFinalityConflicts handles the respectively named RPC command diff --git a/app/rpc/rpchandlers/notify_new_block_template.go b/app/rpc/rpchandlers/notify_new_block_template.go index 4c4a313c06..35a47f17e9 100644 --- a/app/rpc/rpchandlers/notify_new_block_template.go +++ b/app/rpc/rpchandlers/notify_new_block_template.go @@ -1,9 +1,9 @@ package rpchandlers import ( - "github.com/karlsen-network/karlsend/app/appmessage" - "github.com/karlsen-network/karlsend/app/rpc/rpccontext" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/router" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/rpc/rpccontext" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/router" ) // HandleNotifyNewBlockTemplate handles the respectively named RPC command diff --git a/app/rpc/rpchandlers/notify_pruning_point_utxo_set_overrides.go b/app/rpc/rpchandlers/notify_pruning_point_utxo_set_overrides.go index 38c6afaf9c..ede06ed0cd 100644 --- a/app/rpc/rpchandlers/notify_pruning_point_utxo_set_overrides.go +++ b/app/rpc/rpchandlers/notify_pruning_point_utxo_set_overrides.go @@ -1,9 +1,9 @@ package rpchandlers import ( - "github.com/karlsen-network/karlsend/app/appmessage" - "github.com/karlsen-network/karlsend/app/rpc/rpccontext" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/router" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/rpc/rpccontext" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/router" ) // HandleNotifyPruningPointUTXOSetOverrideRequest handles the respectively named RPC command diff --git a/app/rpc/rpchandlers/notify_utxos_changed.go b/app/rpc/rpchandlers/notify_utxos_changed.go index 0790023c28..200ae214e2 100644 --- a/app/rpc/rpchandlers/notify_utxos_changed.go +++ b/app/rpc/rpchandlers/notify_utxos_changed.go @@ -1,9 +1,9 @@ package rpchandlers import ( - "github.com/karlsen-network/karlsend/app/appmessage" - "github.com/karlsen-network/karlsend/app/rpc/rpccontext" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/router" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/rpc/rpccontext" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/router" ) // HandleNotifyUTXOsChanged handles the respectively named RPC command diff --git a/app/rpc/rpchandlers/notify_virtual_daa_score_changed.go b/app/rpc/rpchandlers/notify_virtual_daa_score_changed.go index d626927f17..b84f9790b1 100644 --- a/app/rpc/rpchandlers/notify_virtual_daa_score_changed.go +++ b/app/rpc/rpchandlers/notify_virtual_daa_score_changed.go @@ -1,9 +1,9 @@ package rpchandlers import ( - "github.com/karlsen-network/karlsend/app/appmessage" - "github.com/karlsen-network/karlsend/app/rpc/rpccontext" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/router" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/rpc/rpccontext" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/router" ) // HandleNotifyVirtualDaaScoreChanged handles the respectively named RPC command diff --git a/app/rpc/rpchandlers/notify_virtual_selected_parent_blue_score_changed.go b/app/rpc/rpchandlers/notify_virtual_selected_parent_blue_score_changed.go index f2c0995493..0ba4159955 100644 --- a/app/rpc/rpchandlers/notify_virtual_selected_parent_blue_score_changed.go +++ b/app/rpc/rpchandlers/notify_virtual_selected_parent_blue_score_changed.go @@ -1,9 +1,9 @@ package rpchandlers import ( - "github.com/karlsen-network/karlsend/app/appmessage" - "github.com/karlsen-network/karlsend/app/rpc/rpccontext" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/router" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/rpc/rpccontext" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/router" ) // HandleNotifyVirtualSelectedParentBlueScoreChanged handles the respectively named RPC command diff --git a/app/rpc/rpchandlers/notify_virtual_selected_parent_chain_changed.go b/app/rpc/rpchandlers/notify_virtual_selected_parent_chain_changed.go index 715c33cc92..4c3ca80fe9 100644 --- a/app/rpc/rpchandlers/notify_virtual_selected_parent_chain_changed.go +++ b/app/rpc/rpchandlers/notify_virtual_selected_parent_chain_changed.go @@ -1,9 +1,9 @@ package rpchandlers import ( - "github.com/karlsen-network/karlsend/app/appmessage" - "github.com/karlsen-network/karlsend/app/rpc/rpccontext" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/router" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/rpc/rpccontext" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/router" ) // HandleNotifyVirtualSelectedParentChainChanged handles the respectively named RPC command diff --git a/app/rpc/rpchandlers/resolve_finality_conflict.go b/app/rpc/rpchandlers/resolve_finality_conflict.go index ca56fca050..5c79f5ff70 100644 --- a/app/rpc/rpchandlers/resolve_finality_conflict.go +++ b/app/rpc/rpchandlers/resolve_finality_conflict.go @@ -1,9 +1,9 @@ package rpchandlers import ( - "github.com/karlsen-network/karlsend/app/appmessage" - "github.com/karlsen-network/karlsend/app/rpc/rpccontext" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/router" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/rpc/rpccontext" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/router" ) // HandleResolveFinalityConflict handles the respectively named RPC command diff --git a/app/rpc/rpchandlers/shut_down.go b/app/rpc/rpchandlers/shut_down.go index e81236f939..59871a292c 100644 --- a/app/rpc/rpchandlers/shut_down.go +++ b/app/rpc/rpchandlers/shut_down.go @@ -3,9 +3,9 @@ package rpchandlers import ( "time" - "github.com/karlsen-network/karlsend/app/appmessage" - "github.com/karlsen-network/karlsend/app/rpc/rpccontext" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/router" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/rpc/rpccontext" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/router" ) const pauseBeforeShutDown = time.Second diff --git a/app/rpc/rpchandlers/stop_notifying_pruning_point_utxo_set_overrides.go b/app/rpc/rpchandlers/stop_notifying_pruning_point_utxo_set_overrides.go index d3ec0ed640..e7ba9b5c4c 100644 --- a/app/rpc/rpchandlers/stop_notifying_pruning_point_utxo_set_overrides.go +++ b/app/rpc/rpchandlers/stop_notifying_pruning_point_utxo_set_overrides.go @@ -1,9 +1,9 @@ package rpchandlers import ( - "github.com/karlsen-network/karlsend/app/appmessage" - "github.com/karlsen-network/karlsend/app/rpc/rpccontext" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/router" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/rpc/rpccontext" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/router" ) // HandleStopNotifyingPruningPointUTXOSetOverrideRequest handles the respectively named RPC command diff --git a/app/rpc/rpchandlers/stop_notifying_utxos_changed.go b/app/rpc/rpchandlers/stop_notifying_utxos_changed.go index 1429a9cbc4..f13502aed1 100644 --- a/app/rpc/rpchandlers/stop_notifying_utxos_changed.go +++ b/app/rpc/rpchandlers/stop_notifying_utxos_changed.go @@ -1,9 +1,9 @@ package rpchandlers import ( - "github.com/karlsen-network/karlsend/app/appmessage" - "github.com/karlsen-network/karlsend/app/rpc/rpccontext" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/router" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/rpc/rpccontext" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/router" ) // HandleStopNotifyingUTXOsChanged handles the respectively named RPC command diff --git a/app/rpc/rpchandlers/submit_block.go b/app/rpc/rpchandlers/submit_block.go index 63e43fef5f..cdc2a26798 100644 --- a/app/rpc/rpchandlers/submit_block.go +++ b/app/rpc/rpchandlers/submit_block.go @@ -3,12 +3,12 @@ package rpchandlers import ( "encoding/json" - "github.com/karlsen-network/karlsend/app/appmessage" - "github.com/karlsen-network/karlsend/app/protocol/protocolerrors" - "github.com/karlsen-network/karlsend/app/rpc/rpccontext" - "github.com/karlsen-network/karlsend/domain/consensus/ruleerrors" - "github.com/karlsen-network/karlsend/domain/consensus/utils/consensushashing" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/router" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/protocol/protocolerrors" + "github.com/karlsen-network/karlsend/v2/app/rpc/rpccontext" + "github.com/karlsen-network/karlsend/v2/domain/consensus/ruleerrors" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/consensushashing" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/router" "github.com/pkg/errors" ) diff --git a/app/rpc/rpchandlers/submit_transaction.go b/app/rpc/rpchandlers/submit_transaction.go index f5e3c95fbe..4f52a61dd8 100644 --- a/app/rpc/rpchandlers/submit_transaction.go +++ b/app/rpc/rpchandlers/submit_transaction.go @@ -1,11 +1,11 @@ package rpchandlers import ( - "github.com/karlsen-network/karlsend/app/appmessage" - "github.com/karlsen-network/karlsend/app/rpc/rpccontext" - "github.com/karlsen-network/karlsend/domain/consensus/utils/consensushashing" - "github.com/karlsen-network/karlsend/domain/miningmanager/mempool" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/router" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/rpc/rpccontext" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/consensushashing" + "github.com/karlsen-network/karlsend/v2/domain/miningmanager/mempool" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/router" "github.com/pkg/errors" ) diff --git a/app/rpc/rpchandlers/unban.go b/app/rpc/rpchandlers/unban.go index db6cd6e720..3c5323ea16 100644 --- a/app/rpc/rpchandlers/unban.go +++ b/app/rpc/rpchandlers/unban.go @@ -3,9 +3,9 @@ package rpchandlers import ( "net" - "github.com/karlsen-network/karlsend/app/appmessage" - "github.com/karlsen-network/karlsend/app/rpc/rpccontext" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/router" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/rpc/rpccontext" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/router" ) // HandleUnban handles the respectively named RPC command diff --git a/cmd/genkeypair/config.go b/cmd/genkeypair/config.go index 3c8d880008..54a4127fc4 100644 --- a/cmd/genkeypair/config.go +++ b/cmd/genkeypair/config.go @@ -2,7 +2,7 @@ package main import ( "github.com/jessevdk/go-flags" - "github.com/karlsen-network/karlsend/infrastructure/config" + "github.com/karlsen-network/karlsend/v2/infrastructure/config" ) type configFlags struct { diff --git a/cmd/genkeypair/main.go b/cmd/genkeypair/main.go index c6e38996ac..a6dd3dfb83 100644 --- a/cmd/genkeypair/main.go +++ b/cmd/genkeypair/main.go @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/karlsen-network/karlsend/cmd/karlsenwallet/libkarlsenwallet" - "github.com/karlsen-network/karlsend/util" + "github.com/karlsen-network/karlsend/v2/cmd/karlsenwallet/libkarlsenwallet" + "github.com/karlsen-network/karlsend/v2/util" ) func main() { diff --git a/cmd/karlsenctl/command_parser.go b/cmd/karlsenctl/command_parser.go index 10bb76e840..ff86144159 100644 --- a/cmd/karlsenctl/command_parser.go +++ b/cmd/karlsenctl/command_parser.go @@ -8,7 +8,7 @@ import ( "google.golang.org/protobuf/encoding/protojson" "google.golang.org/protobuf/proto" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/server/grpcserver/protowire" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/server/grpcserver/protowire" "github.com/pkg/errors" ) diff --git a/cmd/karlsenctl/commands.go b/cmd/karlsenctl/commands.go index 0210a7be6c..dcaee780ef 100644 --- a/cmd/karlsenctl/commands.go +++ b/cmd/karlsenctl/commands.go @@ -5,7 +5,7 @@ import ( "reflect" "strings" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/server/grpcserver/protowire" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/server/grpcserver/protowire" ) var commandTypes = []reflect.Type{ diff --git a/cmd/karlsenctl/config.go b/cmd/karlsenctl/config.go index ac785d2f52..70eeab19d0 100644 --- a/cmd/karlsenctl/config.go +++ b/cmd/karlsenctl/config.go @@ -2,7 +2,7 @@ package main import ( "github.com/jessevdk/go-flags" - "github.com/karlsen-network/karlsend/infrastructure/config" + "github.com/karlsen-network/karlsend/v2/infrastructure/config" "github.com/pkg/errors" ) diff --git a/cmd/karlsenctl/main.go b/cmd/karlsenctl/main.go index 07bae4ab34..ef644c06a9 100644 --- a/cmd/karlsenctl/main.go +++ b/cmd/karlsenctl/main.go @@ -5,14 +5,14 @@ import ( "os" "time" - "github.com/karlsen-network/karlsend/version" + "github.com/karlsen-network/karlsend/v2/version" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/server/grpcserver/protowire" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/server/grpcserver/protowire" "github.com/pkg/errors" "google.golang.org/protobuf/encoding/protojson" - "github.com/karlsen-network/karlsend/infrastructure/network/rpcclient/grpcclient" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/rpcclient/grpcclient" ) func main() { diff --git a/cmd/karlsenctl/reflection_helpers.go b/cmd/karlsenctl/reflection_helpers.go index bbe57dd4af..ad12982836 100644 --- a/cmd/karlsenctl/reflection_helpers.go +++ b/cmd/karlsenctl/reflection_helpers.go @@ -4,7 +4,7 @@ import ( "reflect" "unicode" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/server/grpcserver/protowire" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/server/grpcserver/protowire" ) // protobuf generates the command types with two types: diff --git a/cmd/karlsenminer/client.go b/cmd/karlsenminer/client.go index ecbb9283ec..f2ee5d4516 100644 --- a/cmd/karlsenminer/client.go +++ b/cmd/karlsenminer/client.go @@ -3,9 +3,9 @@ package main import ( "time" - "github.com/karlsen-network/karlsend/app/appmessage" - "github.com/karlsen-network/karlsend/infrastructure/logger" - "github.com/karlsen-network/karlsend/infrastructure/network/rpcclient" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/rpcclient" "github.com/pkg/errors" ) diff --git a/cmd/karlsenminer/config.go b/cmd/karlsenminer/config.go index 8dc5581737..5ecdb71ee8 100644 --- a/cmd/karlsenminer/config.go +++ b/cmd/karlsenminer/config.go @@ -7,13 +7,13 @@ import ( "strconv" "strings" - "github.com/karlsen-network/karlsend/infrastructure/config" + "github.com/karlsen-network/karlsend/v2/infrastructure/config" - "github.com/karlsen-network/karlsend/util" + "github.com/karlsen-network/karlsend/v2/util" "github.com/pkg/errors" "github.com/jessevdk/go-flags" - "github.com/karlsen-network/karlsend/version" + "github.com/karlsen-network/karlsend/v2/version" ) const ( diff --git a/cmd/karlsenminer/log.go b/cmd/karlsenminer/log.go index d891eee7c8..e19b727843 100644 --- a/cmd/karlsenminer/log.go +++ b/cmd/karlsenminer/log.go @@ -4,8 +4,8 @@ import ( "fmt" "os" - "github.com/karlsen-network/karlsend/infrastructure/logger" - "github.com/karlsen-network/karlsend/util/panics" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/util/panics" ) var ( diff --git a/cmd/karlsenminer/main.go b/cmd/karlsenminer/main.go index 00e16b8e45..03c6a9e716 100644 --- a/cmd/karlsenminer/main.go +++ b/cmd/karlsenminer/main.go @@ -4,18 +4,18 @@ import ( "fmt" "os" - "github.com/karlsen-network/karlsend/util" + "github.com/karlsen-network/karlsend/v2/util" - "github.com/karlsen-network/karlsend/version" + "github.com/karlsen-network/karlsend/v2/version" "github.com/pkg/errors" _ "net/http/pprof" - "github.com/karlsen-network/karlsend/domain/consensus/utils/pow" - "github.com/karlsen-network/karlsend/infrastructure/os/signal" - "github.com/karlsen-network/karlsend/util/panics" - "github.com/karlsen-network/karlsend/util/profiling" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/pow" + "github.com/karlsen-network/karlsend/v2/infrastructure/os/signal" + "github.com/karlsen-network/karlsend/v2/util/panics" + "github.com/karlsen-network/karlsend/v2/util/profiling" ) func main() { diff --git a/cmd/karlsenminer/mineloop.go b/cmd/karlsenminer/mineloop.go index 1bb7a699c3..3cd6b98849 100644 --- a/cmd/karlsenminer/mineloop.go +++ b/cmd/karlsenminer/mineloop.go @@ -6,15 +6,15 @@ import ( "sync/atomic" "time" - "github.com/karlsen-network/karlsend/version" - - "github.com/karlsen-network/karlsend/app/appmessage" - "github.com/karlsen-network/karlsend/cmd/karlsenminer/templatemanager" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/consensushashing" - "github.com/karlsen-network/karlsend/domain/consensus/utils/pow" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/router" - "github.com/karlsen-network/karlsend/util" + "github.com/karlsen-network/karlsend/v2/version" + + "github.com/karlsen-network/karlsend/v2/app/appmessage" + "github.com/karlsen-network/karlsend/v2/cmd/karlsenminer/templatemanager" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/consensushashing" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/pow" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/router" + "github.com/karlsen-network/karlsend/v2/util" "github.com/pkg/errors" ) diff --git a/cmd/karlsenminer/templatemanager/templatemanager.go b/cmd/karlsenminer/templatemanager/templatemanager.go index 4b82702cb5..fd0d96a63e 100644 --- a/cmd/karlsenminer/templatemanager/templatemanager.go +++ b/cmd/karlsenminer/templatemanager/templatemanager.go @@ -3,10 +3,10 @@ package templatemanager import ( "sync" - "github.com/karlsen-network/karlsend/app/appmessage" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/pow" - "github.com/karlsen-network/karlsend/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/pow" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" ) var currentTemplate *externalapi.DomainBlock diff --git a/cmd/karlsenwallet/balance.go b/cmd/karlsenwallet/balance.go index d4ee65b426..47b24801fc 100644 --- a/cmd/karlsenwallet/balance.go +++ b/cmd/karlsenwallet/balance.go @@ -4,9 +4,9 @@ import ( "context" "fmt" - "github.com/karlsen-network/karlsend/cmd/karlsenwallet/daemon/client" - "github.com/karlsen-network/karlsend/cmd/karlsenwallet/daemon/pb" - "github.com/karlsen-network/karlsend/cmd/karlsenwallet/utils" + "github.com/karlsen-network/karlsend/v2/cmd/karlsenwallet/daemon/client" + "github.com/karlsen-network/karlsend/v2/cmd/karlsenwallet/daemon/pb" + "github.com/karlsen-network/karlsend/v2/cmd/karlsenwallet/utils" ) func balance(conf *balanceConfig) error { diff --git a/cmd/karlsenwallet/broadcast.go b/cmd/karlsenwallet/broadcast.go index 59b1387581..c83d8bba07 100644 --- a/cmd/karlsenwallet/broadcast.go +++ b/cmd/karlsenwallet/broadcast.go @@ -6,8 +6,8 @@ import ( "io/ioutil" "strings" - "github.com/karlsen-network/karlsend/cmd/karlsenwallet/daemon/client" - "github.com/karlsen-network/karlsend/cmd/karlsenwallet/daemon/pb" + "github.com/karlsen-network/karlsend/v2/cmd/karlsenwallet/daemon/client" + "github.com/karlsen-network/karlsend/v2/cmd/karlsenwallet/daemon/pb" "github.com/pkg/errors" ) diff --git a/cmd/karlsenwallet/config.go b/cmd/karlsenwallet/config.go index ed5d76cde3..643838c9a2 100644 --- a/cmd/karlsenwallet/config.go +++ b/cmd/karlsenwallet/config.go @@ -3,7 +3,7 @@ package main import ( "os" - "github.com/karlsen-network/karlsend/infrastructure/config" + "github.com/karlsen-network/karlsend/v2/infrastructure/config" "github.com/pkg/errors" "github.com/jessevdk/go-flags" diff --git a/cmd/karlsenwallet/create.go b/cmd/karlsenwallet/create.go index ceffad11e4..0a8d7d13b4 100644 --- a/cmd/karlsenwallet/create.go +++ b/cmd/karlsenwallet/create.go @@ -5,12 +5,12 @@ import ( "fmt" "os" - "github.com/karlsen-network/karlsend/cmd/karlsenwallet/libkarlsenwallet" - "github.com/karlsen-network/karlsend/cmd/karlsenwallet/libkarlsenwallet/bip32" - "github.com/karlsen-network/karlsend/cmd/karlsenwallet/utils" + "github.com/karlsen-network/karlsend/v2/cmd/karlsenwallet/libkarlsenwallet" + "github.com/karlsen-network/karlsend/v2/cmd/karlsenwallet/libkarlsenwallet/bip32" + "github.com/karlsen-network/karlsend/v2/cmd/karlsenwallet/utils" "github.com/pkg/errors" - "github.com/karlsen-network/karlsend/cmd/karlsenwallet/keys" + "github.com/karlsen-network/karlsend/v2/cmd/karlsenwallet/keys" ) func create(conf *createConfig) error { diff --git a/cmd/karlsenwallet/create_unsigned_tx.go b/cmd/karlsenwallet/create_unsigned_tx.go index 24914d1aba..bc5b7df6ce 100644 --- a/cmd/karlsenwallet/create_unsigned_tx.go +++ b/cmd/karlsenwallet/create_unsigned_tx.go @@ -5,9 +5,9 @@ import ( "fmt" "os" - "github.com/karlsen-network/karlsend/cmd/karlsenwallet/daemon/client" - "github.com/karlsen-network/karlsend/cmd/karlsenwallet/daemon/pb" - "github.com/karlsen-network/karlsend/cmd/karlsenwallet/utils" + "github.com/karlsen-network/karlsend/v2/cmd/karlsenwallet/daemon/client" + "github.com/karlsen-network/karlsend/v2/cmd/karlsenwallet/daemon/pb" + "github.com/karlsen-network/karlsend/v2/cmd/karlsenwallet/utils" ) func createUnsignedTransaction(conf *createUnsignedTransactionConfig) error { diff --git a/cmd/karlsenwallet/daemon/client/client.go b/cmd/karlsenwallet/daemon/client/client.go index a00724b007..de497746d5 100644 --- a/cmd/karlsenwallet/daemon/client/client.go +++ b/cmd/karlsenwallet/daemon/client/client.go @@ -4,11 +4,11 @@ import ( "context" "time" - "github.com/karlsen-network/karlsend/cmd/karlsenwallet/daemon/server" + "github.com/karlsen-network/karlsend/v2/cmd/karlsenwallet/daemon/server" "github.com/pkg/errors" - "github.com/karlsen-network/karlsend/cmd/karlsenwallet/daemon/pb" + "github.com/karlsen-network/karlsend/v2/cmd/karlsenwallet/daemon/pb" "google.golang.org/grpc" ) diff --git a/cmd/karlsenwallet/daemon/server/address.go b/cmd/karlsenwallet/daemon/server/address.go index 04c085a4e1..1d3d1f6529 100644 --- a/cmd/karlsenwallet/daemon/server/address.go +++ b/cmd/karlsenwallet/daemon/server/address.go @@ -4,9 +4,9 @@ import ( "context" "fmt" - "github.com/karlsen-network/karlsend/cmd/karlsenwallet/daemon/pb" - "github.com/karlsen-network/karlsend/cmd/karlsenwallet/libkarlsenwallet" - "github.com/karlsen-network/karlsend/util" + "github.com/karlsen-network/karlsend/v2/cmd/karlsenwallet/daemon/pb" + "github.com/karlsen-network/karlsend/v2/cmd/karlsenwallet/libkarlsenwallet" + "github.com/karlsen-network/karlsend/v2/util" "github.com/pkg/errors" ) diff --git a/cmd/karlsenwallet/daemon/server/balance.go b/cmd/karlsenwallet/daemon/server/balance.go index 6ac66eaadb..8b34d33bb9 100644 --- a/cmd/karlsenwallet/daemon/server/balance.go +++ b/cmd/karlsenwallet/daemon/server/balance.go @@ -3,8 +3,8 @@ package server import ( "context" - "github.com/karlsen-network/karlsend/cmd/karlsenwallet/daemon/pb" - "github.com/karlsen-network/karlsend/cmd/karlsenwallet/libkarlsenwallet" + "github.com/karlsen-network/karlsend/v2/cmd/karlsenwallet/daemon/pb" + "github.com/karlsen-network/karlsend/v2/cmd/karlsenwallet/libkarlsenwallet" ) type balancesType struct{ available, pending uint64 } diff --git a/cmd/karlsenwallet/daemon/server/broadcast.go b/cmd/karlsenwallet/daemon/server/broadcast.go index ac5415ab39..73e3e7f46c 100644 --- a/cmd/karlsenwallet/daemon/server/broadcast.go +++ b/cmd/karlsenwallet/daemon/server/broadcast.go @@ -4,12 +4,12 @@ import ( "context" "time" - "github.com/karlsen-network/karlsend/app/appmessage" - "github.com/karlsen-network/karlsend/cmd/karlsenwallet/daemon/pb" - "github.com/karlsen-network/karlsend/cmd/karlsenwallet/libkarlsenwallet" - "github.com/karlsen-network/karlsend/cmd/karlsenwallet/libkarlsenwallet/serialization" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/infrastructure/network/rpcclient" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + "github.com/karlsen-network/karlsend/v2/cmd/karlsenwallet/daemon/pb" + "github.com/karlsen-network/karlsend/v2/cmd/karlsenwallet/libkarlsenwallet" + "github.com/karlsen-network/karlsend/v2/cmd/karlsenwallet/libkarlsenwallet/serialization" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/rpcclient" "github.com/pkg/errors" ) diff --git a/cmd/karlsenwallet/daemon/server/common.go b/cmd/karlsenwallet/daemon/server/common.go index a70d65599e..01ebf8034f 100644 --- a/cmd/karlsenwallet/daemon/server/common.go +++ b/cmd/karlsenwallet/daemon/server/common.go @@ -1,6 +1,6 @@ package server -import "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" +import "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" type walletUTXO struct { Outpoint *externalapi.DomainOutpoint diff --git a/cmd/karlsenwallet/daemon/server/create_unsigned_transaction.go b/cmd/karlsenwallet/daemon/server/create_unsigned_transaction.go index 353f93545f..2df64c3c0c 100644 --- a/cmd/karlsenwallet/daemon/server/create_unsigned_transaction.go +++ b/cmd/karlsenwallet/daemon/server/create_unsigned_transaction.go @@ -5,10 +5,10 @@ import ( "fmt" "time" - "github.com/karlsen-network/karlsend/cmd/karlsenwallet/daemon/pb" - "github.com/karlsen-network/karlsend/cmd/karlsenwallet/libkarlsenwallet" - "github.com/karlsen-network/karlsend/domain/consensus/utils/constants" - "github.com/karlsen-network/karlsend/util" + "github.com/karlsen-network/karlsend/v2/cmd/karlsenwallet/daemon/pb" + "github.com/karlsen-network/karlsend/v2/cmd/karlsenwallet/libkarlsenwallet" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/constants" + "github.com/karlsen-network/karlsend/v2/util" "github.com/pkg/errors" "golang.org/x/exp/slices" ) diff --git a/cmd/karlsenwallet/daemon/server/external_spendable_utxos.go b/cmd/karlsenwallet/daemon/server/external_spendable_utxos.go index 69f2c8b281..3996bb7b1b 100644 --- a/cmd/karlsenwallet/daemon/server/external_spendable_utxos.go +++ b/cmd/karlsenwallet/daemon/server/external_spendable_utxos.go @@ -3,10 +3,10 @@ package server import ( "context" - "github.com/karlsen-network/karlsend/app/appmessage" - "github.com/karlsen-network/karlsend/cmd/karlsenwallet/daemon/pb" - "github.com/karlsen-network/karlsend/cmd/karlsenwallet/libkarlsenwallet" - "github.com/karlsen-network/karlsend/util" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + "github.com/karlsen-network/karlsend/v2/cmd/karlsenwallet/daemon/pb" + "github.com/karlsen-network/karlsend/v2/cmd/karlsenwallet/libkarlsenwallet" + "github.com/karlsen-network/karlsend/v2/util" ) func (s *server) GetExternalSpendableUTXOs(_ context.Context, request *pb.GetExternalSpendableUTXOsRequest) (*pb.GetExternalSpendableUTXOsResponse, error) { diff --git a/cmd/karlsenwallet/daemon/server/log.go b/cmd/karlsenwallet/daemon/server/log.go index 0a7a256949..6736e49022 100644 --- a/cmd/karlsenwallet/daemon/server/log.go +++ b/cmd/karlsenwallet/daemon/server/log.go @@ -5,10 +5,10 @@ import ( "os" "path/filepath" - "github.com/karlsen-network/karlsend/util" + "github.com/karlsen-network/karlsend/v2/util" - "github.com/karlsen-network/karlsend/infrastructure/logger" - "github.com/karlsen-network/karlsend/util/panics" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/util/panics" ) var ( diff --git a/cmd/karlsenwallet/daemon/server/rpc.go b/cmd/karlsenwallet/daemon/server/rpc.go index 7b0de5dd75..a7709da664 100644 --- a/cmd/karlsenwallet/daemon/server/rpc.go +++ b/cmd/karlsenwallet/daemon/server/rpc.go @@ -3,8 +3,8 @@ package server import ( "time" - "github.com/karlsen-network/karlsend/domain/dagconfig" - "github.com/karlsen-network/karlsend/infrastructure/network/rpcclient" + "github.com/karlsen-network/karlsend/v2/domain/dagconfig" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/rpcclient" ) func connectToRPC(params *dagconfig.Params, rpcServer string, timeout uint32) (*rpcclient.RPCClient, error) { diff --git a/cmd/karlsenwallet/daemon/server/send.go b/cmd/karlsenwallet/daemon/server/send.go index 4e7db453f8..1ce012dfa1 100644 --- a/cmd/karlsenwallet/daemon/server/send.go +++ b/cmd/karlsenwallet/daemon/server/send.go @@ -3,7 +3,7 @@ package server import ( "context" - "github.com/karlsen-network/karlsend/cmd/karlsenwallet/daemon/pb" + "github.com/karlsen-network/karlsend/v2/cmd/karlsenwallet/daemon/pb" ) func (s *server) Send(_ context.Context, request *pb.SendRequest) (*pb.SendResponse, error) { diff --git a/cmd/karlsenwallet/daemon/server/server.go b/cmd/karlsenwallet/daemon/server/server.go index b7b4126b1f..6ceb3a69d2 100644 --- a/cmd/karlsenwallet/daemon/server/server.go +++ b/cmd/karlsenwallet/daemon/server/server.go @@ -7,18 +7,18 @@ import ( "sync" "time" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/util/txmass" + "github.com/karlsen-network/karlsend/v2/util/txmass" - "github.com/karlsen-network/karlsend/util/profiling" + "github.com/karlsen-network/karlsend/v2/util/profiling" - "github.com/karlsen-network/karlsend/cmd/karlsenwallet/daemon/pb" - "github.com/karlsen-network/karlsend/cmd/karlsenwallet/keys" - "github.com/karlsen-network/karlsend/domain/dagconfig" - "github.com/karlsen-network/karlsend/infrastructure/network/rpcclient" - "github.com/karlsen-network/karlsend/infrastructure/os/signal" - "github.com/karlsen-network/karlsend/util/panics" + "github.com/karlsen-network/karlsend/v2/cmd/karlsenwallet/daemon/pb" + "github.com/karlsen-network/karlsend/v2/cmd/karlsenwallet/keys" + "github.com/karlsen-network/karlsend/v2/domain/dagconfig" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/rpcclient" + "github.com/karlsen-network/karlsend/v2/infrastructure/os/signal" + "github.com/karlsen-network/karlsend/v2/util/panics" "github.com/pkg/errors" "google.golang.org/grpc" diff --git a/cmd/karlsenwallet/daemon/server/shutdown.go b/cmd/karlsenwallet/daemon/server/shutdown.go index dd7a793160..e0bc5d4b94 100644 --- a/cmd/karlsenwallet/daemon/server/shutdown.go +++ b/cmd/karlsenwallet/daemon/server/shutdown.go @@ -3,7 +3,7 @@ package server import ( "context" - "github.com/karlsen-network/karlsend/cmd/karlsenwallet/daemon/pb" + "github.com/karlsen-network/karlsend/v2/cmd/karlsenwallet/daemon/pb" ) func (s *server) Shutdown(ctx context.Context, request *pb.ShutdownRequest) (*pb.ShutdownResponse, error) { diff --git a/cmd/karlsenwallet/daemon/server/sign.go b/cmd/karlsenwallet/daemon/server/sign.go index e9b8cf3dfa..468c0076d6 100644 --- a/cmd/karlsenwallet/daemon/server/sign.go +++ b/cmd/karlsenwallet/daemon/server/sign.go @@ -3,9 +3,9 @@ package server import ( "context" - "github.com/karlsen-network/karlsend/cmd/karlsenwallet/libkarlsenwallet" + "github.com/karlsen-network/karlsend/v2/cmd/karlsenwallet/libkarlsenwallet" - "github.com/karlsen-network/karlsend/cmd/karlsenwallet/daemon/pb" + "github.com/karlsen-network/karlsend/v2/cmd/karlsenwallet/daemon/pb" ) func (s *server) Sign(_ context.Context, request *pb.SignRequest) (*pb.SignResponse, error) { diff --git a/cmd/karlsenwallet/daemon/server/split_transaction.go b/cmd/karlsenwallet/daemon/server/split_transaction.go index 95647ba919..452f1c738c 100644 --- a/cmd/karlsenwallet/daemon/server/split_transaction.go +++ b/cmd/karlsenwallet/daemon/server/split_transaction.go @@ -4,14 +4,14 @@ import ( "github.com/kaspanet/go-secp256k1" "github.com/pkg/errors" - "github.com/karlsen-network/karlsend/cmd/karlsenwallet/libkarlsenwallet" - "github.com/karlsen-network/karlsend/cmd/karlsenwallet/libkarlsenwallet/serialization" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/consensushashing" - "github.com/karlsen-network/karlsend/domain/consensus/utils/constants" - "github.com/karlsen-network/karlsend/domain/consensus/utils/utxo" - "github.com/karlsen-network/karlsend/domain/miningmanager/mempool" - "github.com/karlsen-network/karlsend/util" + "github.com/karlsen-network/karlsend/v2/cmd/karlsenwallet/libkarlsenwallet" + "github.com/karlsen-network/karlsend/v2/cmd/karlsenwallet/libkarlsenwallet/serialization" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/consensushashing" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/constants" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/utxo" + "github.com/karlsen-network/karlsend/v2/domain/miningmanager/mempool" + "github.com/karlsen-network/karlsend/v2/util" ) // maybeAutoCompoundTransaction checks if a transaction's mass is higher that what is allowed for a standard diff --git a/cmd/karlsenwallet/daemon/server/split_transaction_test.go b/cmd/karlsenwallet/daemon/server/split_transaction_test.go index fda06e4173..61a9007a4f 100644 --- a/cmd/karlsenwallet/daemon/server/split_transaction_test.go +++ b/cmd/karlsenwallet/daemon/server/split_transaction_test.go @@ -3,21 +3,21 @@ package server import ( "testing" - "github.com/karlsen-network/karlsend/cmd/karlsenwallet/libkarlsenwallet/serialization" + "github.com/karlsen-network/karlsend/v2/cmd/karlsenwallet/libkarlsenwallet/serialization" - "github.com/karlsen-network/karlsend/cmd/karlsenwallet/keys" - "github.com/karlsen-network/karlsend/util/txmass" + "github.com/karlsen-network/karlsend/v2/cmd/karlsenwallet/keys" + "github.com/karlsen-network/karlsend/v2/util/txmass" - "github.com/karlsen-network/karlsend/domain/dagconfig" + "github.com/karlsen-network/karlsend/v2/domain/dagconfig" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/consensushashing" - "github.com/karlsen-network/karlsend/domain/consensus/utils/txscript" - "github.com/karlsen-network/karlsend/domain/consensus/utils/utxo" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/consensushashing" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/txscript" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/utxo" - "github.com/karlsen-network/karlsend/cmd/karlsenwallet/libkarlsenwallet" - "github.com/karlsen-network/karlsend/domain/consensus" - "github.com/karlsen-network/karlsend/domain/consensus/utils/testutils" + "github.com/karlsen-network/karlsend/v2/cmd/karlsenwallet/libkarlsenwallet" + "github.com/karlsen-network/karlsend/v2/domain/consensus" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/testutils" ) func TestEstimateMassAfterSignatures(t *testing.T) { diff --git a/cmd/karlsenwallet/daemon/server/sync.go b/cmd/karlsenwallet/daemon/server/sync.go index 290bc4a6a3..c9ed749b57 100644 --- a/cmd/karlsenwallet/daemon/server/sync.go +++ b/cmd/karlsenwallet/daemon/server/sync.go @@ -5,9 +5,9 @@ import ( "sort" "time" - "github.com/karlsen-network/karlsend/cmd/karlsenwallet/libkarlsenwallet" + "github.com/karlsen-network/karlsend/v2/cmd/karlsenwallet/libkarlsenwallet" - "github.com/karlsen-network/karlsend/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/appmessage" "github.com/pkg/errors" ) diff --git a/cmd/karlsenwallet/dump_unencrypted_data.go b/cmd/karlsenwallet/dump_unencrypted_data.go index f9719eaaf5..083ea9825e 100644 --- a/cmd/karlsenwallet/dump_unencrypted_data.go +++ b/cmd/karlsenwallet/dump_unencrypted_data.go @@ -5,9 +5,9 @@ import ( "fmt" "os" - "github.com/karlsen-network/karlsend/cmd/karlsenwallet/keys" - "github.com/karlsen-network/karlsend/cmd/karlsenwallet/libkarlsenwallet" - "github.com/karlsen-network/karlsend/cmd/karlsenwallet/utils" + "github.com/karlsen-network/karlsend/v2/cmd/karlsenwallet/keys" + "github.com/karlsen-network/karlsend/v2/cmd/karlsenwallet/libkarlsenwallet" + "github.com/karlsen-network/karlsend/v2/cmd/karlsenwallet/utils" "github.com/pkg/errors" ) diff --git a/cmd/karlsenwallet/keys/create.go b/cmd/karlsenwallet/keys/create.go index 1d18d04233..ff4436fd7a 100644 --- a/cmd/karlsenwallet/keys/create.go +++ b/cmd/karlsenwallet/keys/create.go @@ -7,9 +7,9 @@ import ( "fmt" "os" - "github.com/karlsen-network/karlsend/cmd/karlsenwallet/libkarlsenwallet" - "github.com/karlsen-network/karlsend/cmd/karlsenwallet/utils" - "github.com/karlsen-network/karlsend/domain/dagconfig" + "github.com/karlsen-network/karlsend/v2/cmd/karlsenwallet/libkarlsenwallet" + "github.com/karlsen-network/karlsend/v2/cmd/karlsenwallet/utils" + "github.com/karlsen-network/karlsend/v2/domain/dagconfig" "github.com/pkg/errors" "github.com/tyler-smith/go-bip39" ) diff --git a/cmd/karlsenwallet/keys/keys.go b/cmd/karlsenwallet/keys/keys.go index 8ab0015d8a..26454cd50e 100644 --- a/cmd/karlsenwallet/keys/keys.go +++ b/cmd/karlsenwallet/keys/keys.go @@ -13,10 +13,10 @@ import ( "github.com/gofrs/flock" - "github.com/karlsen-network/karlsend/cmd/karlsenwallet/utils" + "github.com/karlsen-network/karlsend/v2/cmd/karlsenwallet/utils" - "github.com/karlsen-network/karlsend/domain/dagconfig" - "github.com/karlsen-network/karlsend/util" + "github.com/karlsen-network/karlsend/v2/domain/dagconfig" + "github.com/karlsen-network/karlsend/v2/util" "github.com/pkg/errors" "golang.org/x/crypto/argon2" "golang.org/x/crypto/chacha20poly1305" diff --git a/cmd/karlsenwallet/libkarlsenwallet/bip32/serialization.go b/cmd/karlsenwallet/libkarlsenwallet/bip32/serialization.go index 5feeb27ad9..a4fe3a3cd3 100644 --- a/cmd/karlsenwallet/libkarlsenwallet/bip32/serialization.go +++ b/cmd/karlsenwallet/libkarlsenwallet/bip32/serialization.go @@ -3,7 +3,7 @@ package bip32 import ( "encoding/binary" - "github.com/karlsen-network/karlsend/cmd/karlsenwallet/libkarlsenwallet/bip32/base58" + "github.com/karlsen-network/karlsend/v2/cmd/karlsenwallet/libkarlsenwallet/bip32/base58" "github.com/kaspanet/go-secp256k1" "github.com/pkg/errors" ) diff --git a/cmd/karlsenwallet/libkarlsenwallet/bip39.go b/cmd/karlsenwallet/libkarlsenwallet/bip39.go index 5e32a5b9fb..b8f3e5cb04 100644 --- a/cmd/karlsenwallet/libkarlsenwallet/bip39.go +++ b/cmd/karlsenwallet/libkarlsenwallet/bip39.go @@ -3,8 +3,8 @@ package libkarlsenwallet import ( "fmt" - "github.com/karlsen-network/karlsend/cmd/karlsenwallet/libkarlsenwallet/bip32" - "github.com/karlsen-network/karlsend/domain/dagconfig" + "github.com/karlsen-network/karlsend/v2/cmd/karlsenwallet/libkarlsenwallet/bip32" + "github.com/karlsen-network/karlsend/v2/domain/dagconfig" "github.com/pkg/errors" "github.com/tyler-smith/go-bip39" ) diff --git a/cmd/karlsenwallet/libkarlsenwallet/converters.go b/cmd/karlsenwallet/libkarlsenwallet/converters.go index 3731d9cf64..5156ca2114 100644 --- a/cmd/karlsenwallet/libkarlsenwallet/converters.go +++ b/cmd/karlsenwallet/libkarlsenwallet/converters.go @@ -3,11 +3,11 @@ package libkarlsenwallet import ( "encoding/hex" - "github.com/karlsen-network/karlsend/app/appmessage" - "github.com/karlsen-network/karlsend/cmd/karlsenwallet/daemon/pb" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/transactionid" - "github.com/karlsen-network/karlsend/domain/consensus/utils/utxo" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + "github.com/karlsen-network/karlsend/v2/cmd/karlsenwallet/daemon/pb" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/transactionid" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/utxo" ) // KarlsenwalletdUTXOsTolibkarlsenwalletUTXOs converts a []*pb.UtxosByAddressesEntry to a []*libkarlsenwallet.UTXO diff --git a/cmd/karlsenwallet/libkarlsenwallet/keypair.go b/cmd/karlsenwallet/libkarlsenwallet/keypair.go index 07613913d2..ca5de123eb 100644 --- a/cmd/karlsenwallet/libkarlsenwallet/keypair.go +++ b/cmd/karlsenwallet/libkarlsenwallet/keypair.go @@ -5,9 +5,9 @@ import ( "sort" "strings" - "github.com/karlsen-network/karlsend/cmd/karlsenwallet/libkarlsenwallet/bip32" - "github.com/karlsen-network/karlsend/domain/dagconfig" - "github.com/karlsen-network/karlsend/util" + "github.com/karlsen-network/karlsend/v2/cmd/karlsenwallet/libkarlsenwallet/bip32" + "github.com/karlsen-network/karlsend/v2/domain/dagconfig" + "github.com/karlsen-network/karlsend/v2/util" "github.com/kaspanet/go-secp256k1" "github.com/pkg/errors" ) diff --git a/cmd/karlsenwallet/libkarlsenwallet/serialization/serialization.go b/cmd/karlsenwallet/libkarlsenwallet/serialization/serialization.go index aff1de9a5f..18c45aeeb2 100644 --- a/cmd/karlsenwallet/libkarlsenwallet/serialization/serialization.go +++ b/cmd/karlsenwallet/libkarlsenwallet/serialization/serialization.go @@ -3,9 +3,9 @@ package serialization import ( "math" - "github.com/karlsen-network/karlsend/cmd/karlsenwallet/libkarlsenwallet/serialization/protoserialization" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/subnetworks" + "github.com/karlsen-network/karlsend/v2/cmd/karlsenwallet/libkarlsenwallet/serialization/protoserialization" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/subnetworks" "github.com/pkg/errors" "google.golang.org/protobuf/proto" ) diff --git a/cmd/karlsenwallet/libkarlsenwallet/sign.go b/cmd/karlsenwallet/libkarlsenwallet/sign.go index 2df589d6f9..fa7903cd99 100644 --- a/cmd/karlsenwallet/libkarlsenwallet/sign.go +++ b/cmd/karlsenwallet/libkarlsenwallet/sign.go @@ -1,13 +1,13 @@ package libkarlsenwallet import ( - "github.com/karlsen-network/karlsend/cmd/karlsenwallet/libkarlsenwallet/bip32" - "github.com/karlsen-network/karlsend/cmd/karlsenwallet/libkarlsenwallet/serialization" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/consensushashing" - "github.com/karlsen-network/karlsend/domain/consensus/utils/txscript" - "github.com/karlsen-network/karlsend/domain/consensus/utils/utxo" - "github.com/karlsen-network/karlsend/domain/dagconfig" + "github.com/karlsen-network/karlsend/v2/cmd/karlsenwallet/libkarlsenwallet/bip32" + "github.com/karlsen-network/karlsend/v2/cmd/karlsenwallet/libkarlsenwallet/serialization" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/consensushashing" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/txscript" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/utxo" + "github.com/karlsen-network/karlsend/v2/domain/dagconfig" "github.com/pkg/errors" ) diff --git a/cmd/karlsenwallet/libkarlsenwallet/transaction.go b/cmd/karlsenwallet/libkarlsenwallet/transaction.go index 2aab0fb828..6d5905da57 100644 --- a/cmd/karlsenwallet/libkarlsenwallet/transaction.go +++ b/cmd/karlsenwallet/libkarlsenwallet/transaction.go @@ -1,13 +1,13 @@ package libkarlsenwallet import ( - "github.com/karlsen-network/karlsend/cmd/karlsenwallet/libkarlsenwallet/bip32" - "github.com/karlsen-network/karlsend/cmd/karlsenwallet/libkarlsenwallet/serialization" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/constants" - "github.com/karlsen-network/karlsend/domain/consensus/utils/subnetworks" - "github.com/karlsen-network/karlsend/domain/consensus/utils/txscript" - "github.com/karlsen-network/karlsend/util" + "github.com/karlsen-network/karlsend/v2/cmd/karlsenwallet/libkarlsenwallet/bip32" + "github.com/karlsen-network/karlsend/v2/cmd/karlsenwallet/libkarlsenwallet/serialization" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/constants" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/subnetworks" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/txscript" + "github.com/karlsen-network/karlsend/v2/util" "github.com/pkg/errors" ) diff --git a/cmd/karlsenwallet/libkarlsenwallet/transaction_test.go b/cmd/karlsenwallet/libkarlsenwallet/transaction_test.go index 8af1b79d3a..3b76120b8e 100644 --- a/cmd/karlsenwallet/libkarlsenwallet/transaction_test.go +++ b/cmd/karlsenwallet/libkarlsenwallet/transaction_test.go @@ -5,16 +5,16 @@ import ( "strings" "testing" - "github.com/karlsen-network/karlsend/domain/consensus/utils/constants" - - "github.com/karlsen-network/karlsend/cmd/karlsenwallet/libkarlsenwallet" - "github.com/karlsen-network/karlsend/domain/consensus" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/consensushashing" - "github.com/karlsen-network/karlsend/domain/consensus/utils/testutils" - "github.com/karlsen-network/karlsend/domain/consensus/utils/txscript" - "github.com/karlsen-network/karlsend/domain/consensus/utils/utxo" - "github.com/karlsen-network/karlsend/util" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/constants" + + "github.com/karlsen-network/karlsend/v2/cmd/karlsenwallet/libkarlsenwallet" + "github.com/karlsen-network/karlsend/v2/domain/consensus" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/consensushashing" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/testutils" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/txscript" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/utxo" + "github.com/karlsen-network/karlsend/v2/util" ) func forSchnorrAndECDSA(t *testing.T, testFunc func(t *testing.T, ecdsa bool)) { diff --git a/cmd/karlsenwallet/new_address.go b/cmd/karlsenwallet/new_address.go index fa7c89aa51..2c2bc92146 100644 --- a/cmd/karlsenwallet/new_address.go +++ b/cmd/karlsenwallet/new_address.go @@ -4,8 +4,8 @@ import ( "context" "fmt" - "github.com/karlsen-network/karlsend/cmd/karlsenwallet/daemon/client" - "github.com/karlsen-network/karlsend/cmd/karlsenwallet/daemon/pb" + "github.com/karlsen-network/karlsend/v2/cmd/karlsenwallet/daemon/client" + "github.com/karlsen-network/karlsend/v2/cmd/karlsenwallet/daemon/pb" ) func newAddress(conf *newAddressConfig) error { diff --git a/cmd/karlsenwallet/parse.go b/cmd/karlsenwallet/parse.go index 601aeaeb5c..9bb41c8b5f 100644 --- a/cmd/karlsenwallet/parse.go +++ b/cmd/karlsenwallet/parse.go @@ -6,10 +6,10 @@ import ( "io/ioutil" "strings" - "github.com/karlsen-network/karlsend/cmd/karlsenwallet/libkarlsenwallet/serialization" - "github.com/karlsen-network/karlsend/domain/consensus/utils/consensushashing" - "github.com/karlsen-network/karlsend/domain/consensus/utils/constants" - "github.com/karlsen-network/karlsend/domain/consensus/utils/txscript" + "github.com/karlsen-network/karlsend/v2/cmd/karlsenwallet/libkarlsenwallet/serialization" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/consensushashing" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/constants" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/txscript" "github.com/pkg/errors" ) diff --git a/cmd/karlsenwallet/send.go b/cmd/karlsenwallet/send.go index bf6a606f30..fe341986c5 100644 --- a/cmd/karlsenwallet/send.go +++ b/cmd/karlsenwallet/send.go @@ -6,11 +6,11 @@ import ( "os" "strings" - "github.com/karlsen-network/karlsend/cmd/karlsenwallet/daemon/client" - "github.com/karlsen-network/karlsend/cmd/karlsenwallet/daemon/pb" - "github.com/karlsen-network/karlsend/cmd/karlsenwallet/keys" - "github.com/karlsen-network/karlsend/cmd/karlsenwallet/libkarlsenwallet" - "github.com/karlsen-network/karlsend/cmd/karlsenwallet/utils" + "github.com/karlsen-network/karlsend/v2/cmd/karlsenwallet/daemon/client" + "github.com/karlsen-network/karlsend/v2/cmd/karlsenwallet/daemon/pb" + "github.com/karlsen-network/karlsend/v2/cmd/karlsenwallet/keys" + "github.com/karlsen-network/karlsend/v2/cmd/karlsenwallet/libkarlsenwallet" + "github.com/karlsen-network/karlsend/v2/cmd/karlsenwallet/utils" "github.com/pkg/errors" ) diff --git a/cmd/karlsenwallet/show_addresses.go b/cmd/karlsenwallet/show_addresses.go index 6225c47120..91f2fa8313 100644 --- a/cmd/karlsenwallet/show_addresses.go +++ b/cmd/karlsenwallet/show_addresses.go @@ -4,8 +4,8 @@ import ( "context" "fmt" - "github.com/karlsen-network/karlsend/cmd/karlsenwallet/daemon/client" - "github.com/karlsen-network/karlsend/cmd/karlsenwallet/daemon/pb" + "github.com/karlsen-network/karlsend/v2/cmd/karlsenwallet/daemon/client" + "github.com/karlsen-network/karlsend/v2/cmd/karlsenwallet/daemon/pb" ) func showAddresses(conf *showAddressesConfig) error { diff --git a/cmd/karlsenwallet/sign.go b/cmd/karlsenwallet/sign.go index 15f2d25eed..dfb888af9a 100644 --- a/cmd/karlsenwallet/sign.go +++ b/cmd/karlsenwallet/sign.go @@ -6,8 +6,8 @@ import ( "os" "strings" - "github.com/karlsen-network/karlsend/cmd/karlsenwallet/keys" - "github.com/karlsen-network/karlsend/cmd/karlsenwallet/libkarlsenwallet" + "github.com/karlsen-network/karlsend/v2/cmd/karlsenwallet/keys" + "github.com/karlsen-network/karlsend/v2/cmd/karlsenwallet/libkarlsenwallet" "github.com/pkg/errors" ) diff --git a/cmd/karlsenwallet/start_daemon.go b/cmd/karlsenwallet/start_daemon.go index ddc67338df..35367a2cc5 100644 --- a/cmd/karlsenwallet/start_daemon.go +++ b/cmd/karlsenwallet/start_daemon.go @@ -1,6 +1,6 @@ package main -import "github.com/karlsen-network/karlsend/cmd/karlsenwallet/daemon/server" +import "github.com/karlsen-network/karlsend/v2/cmd/karlsenwallet/daemon/server" func startDaemon(conf *startDaemonConfig) error { return server.Start(conf.NetParams(), conf.Listen, conf.RPCServer, conf.KeysFile, conf.Profile, conf.Timeout) diff --git a/cmd/karlsenwallet/sweep.go b/cmd/karlsenwallet/sweep.go index 76b9aaa80e..6fbe87e266 100644 --- a/cmd/karlsenwallet/sweep.go +++ b/cmd/karlsenwallet/sweep.go @@ -5,21 +5,21 @@ import ( "encoding/hex" "fmt" - "github.com/karlsen-network/karlsend/cmd/karlsenwallet/daemon/client" - "github.com/karlsen-network/karlsend/cmd/karlsenwallet/daemon/pb" - "github.com/karlsen-network/karlsend/cmd/karlsenwallet/libkarlsenwallet" - "github.com/karlsen-network/karlsend/cmd/karlsenwallet/libkarlsenwallet/serialization" - "github.com/karlsen-network/karlsend/cmd/karlsenwallet/utils" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/consensushashing" - "github.com/karlsen-network/karlsend/domain/consensus/utils/constants" - "github.com/karlsen-network/karlsend/domain/consensus/utils/subnetworks" - "github.com/karlsen-network/karlsend/domain/consensus/utils/txscript" - "github.com/karlsen-network/karlsend/domain/consensus/utils/utxo" - "github.com/karlsen-network/karlsend/domain/dagconfig" - "github.com/karlsen-network/karlsend/domain/miningmanager/mempool" - "github.com/karlsen-network/karlsend/util" - "github.com/karlsen-network/karlsend/util/txmass" + "github.com/karlsen-network/karlsend/v2/cmd/karlsenwallet/daemon/client" + "github.com/karlsen-network/karlsend/v2/cmd/karlsenwallet/daemon/pb" + "github.com/karlsen-network/karlsend/v2/cmd/karlsenwallet/libkarlsenwallet" + "github.com/karlsen-network/karlsend/v2/cmd/karlsenwallet/libkarlsenwallet/serialization" + "github.com/karlsen-network/karlsend/v2/cmd/karlsenwallet/utils" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/consensushashing" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/constants" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/subnetworks" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/txscript" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/utxo" + "github.com/karlsen-network/karlsend/v2/domain/dagconfig" + "github.com/karlsen-network/karlsend/v2/domain/miningmanager/mempool" + "github.com/karlsen-network/karlsend/v2/util" + "github.com/karlsen-network/karlsend/v2/util/txmass" "github.com/kaspanet/go-secp256k1" "github.com/pkg/errors" ) diff --git a/cmd/karlsenwallet/utils/format_kls.go b/cmd/karlsenwallet/utils/format_kls.go index f9a79088c9..603b3de35f 100644 --- a/cmd/karlsenwallet/utils/format_kls.go +++ b/cmd/karlsenwallet/utils/format_kls.go @@ -7,7 +7,7 @@ import ( "strconv" "strings" - "github.com/karlsen-network/karlsend/domain/consensus/utils/constants" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/constants" "github.com/pkg/errors" ) diff --git a/domain/consensus/consensus.go b/domain/consensus/consensus.go index 95da27676a..30d3a427d2 100644 --- a/domain/consensus/consensus.go +++ b/domain/consensus/consensus.go @@ -4,14 +4,14 @@ import ( "math/big" "sync" - "github.com/karlsen-network/karlsend/util/mstime" - - "github.com/karlsen-network/karlsend/domain/consensus/database" - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/ruleerrors" - "github.com/karlsen-network/karlsend/infrastructure/logger" - "github.com/karlsen-network/karlsend/util/staging" + "github.com/karlsen-network/karlsend/v2/util/mstime" + + "github.com/karlsen-network/karlsend/v2/domain/consensus/database" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/ruleerrors" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/util/staging" "github.com/pkg/errors" ) diff --git a/domain/consensus/consensus_test.go b/domain/consensus/consensus_test.go index 90baeb01aa..cfe48f3710 100644 --- a/domain/consensus/consensus_test.go +++ b/domain/consensus/consensus_test.go @@ -3,11 +3,11 @@ package consensus_test import ( "testing" - "github.com/karlsen-network/karlsend/domain/consensus" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/ruleerrors" - "github.com/karlsen-network/karlsend/domain/consensus/utils/consensushashing" - "github.com/karlsen-network/karlsend/domain/consensus/utils/testutils" + "github.com/karlsen-network/karlsend/v2/domain/consensus" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/ruleerrors" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/consensushashing" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/testutils" "github.com/pkg/errors" ) diff --git a/domain/consensus/constructors.go b/domain/consensus/constructors.go index b730c51869..e15c03831c 100644 --- a/domain/consensus/constructors.go +++ b/domain/consensus/constructors.go @@ -4,8 +4,8 @@ import ( "math/big" "time" - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" ) // GHOSTDAGManagerConstructor is the function signature for a constructor of a type implementing model.GHOSTDAGManager diff --git a/domain/consensus/database/binaryserialization/hash.go b/domain/consensus/database/binaryserialization/hash.go index 2dc8b87382..927b3a373b 100644 --- a/domain/consensus/database/binaryserialization/hash.go +++ b/domain/consensus/database/binaryserialization/hash.go @@ -1,7 +1,7 @@ package binaryserialization import ( - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" "github.com/pkg/errors" ) diff --git a/domain/consensus/database/bucket.go b/domain/consensus/database/bucket.go index 0b4ba24221..c2d466b828 100644 --- a/domain/consensus/database/bucket.go +++ b/domain/consensus/database/bucket.go @@ -1,8 +1,8 @@ package database import ( - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/infrastructure/db/database" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/infrastructure/db/database" ) func dbBucketToDatabaseBucket(bucket model.DBBucket) *database.Bucket { diff --git a/domain/consensus/database/cursor.go b/domain/consensus/database/cursor.go index ab2848259c..eb51d971b1 100644 --- a/domain/consensus/database/cursor.go +++ b/domain/consensus/database/cursor.go @@ -1,8 +1,8 @@ package database import ( - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/infrastructure/db/database" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/infrastructure/db/database" "github.com/pkg/errors" ) diff --git a/domain/consensus/database/dbmanager.go b/domain/consensus/database/dbmanager.go index 52d1c4e44d..c632540154 100644 --- a/domain/consensus/database/dbmanager.go +++ b/domain/consensus/database/dbmanager.go @@ -1,8 +1,8 @@ package database import ( - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/infrastructure/db/database" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/infrastructure/db/database" ) type dbManager struct { diff --git a/domain/consensus/database/errors.go b/domain/consensus/database/errors.go index 254ce32916..5a5acd5b21 100644 --- a/domain/consensus/database/errors.go +++ b/domain/consensus/database/errors.go @@ -1,7 +1,7 @@ package database import ( - "github.com/karlsen-network/karlsend/infrastructure/db/database" + "github.com/karlsen-network/karlsend/v2/infrastructure/db/database" ) // ErrNotFound denotes that the requested item was not diff --git a/domain/consensus/database/key.go b/domain/consensus/database/key.go index 436c9caa78..99cb20a517 100644 --- a/domain/consensus/database/key.go +++ b/domain/consensus/database/key.go @@ -1,8 +1,8 @@ package database import ( - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/infrastructure/db/database" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/infrastructure/db/database" ) func dbKeyToDatabaseKey(key model.DBKey) *database.Key { diff --git a/domain/consensus/database/serialization/acceptancedata.go b/domain/consensus/database/serialization/acceptancedata.go index 9757d431b5..78f74fe8da 100644 --- a/domain/consensus/database/serialization/acceptancedata.go +++ b/domain/consensus/database/serialization/acceptancedata.go @@ -1,7 +1,7 @@ package serialization import ( - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" ) // DomainAcceptanceDataToDbAcceptanceData converts model.AcceptanceData to DbAcceptanceData diff --git a/domain/consensus/database/serialization/block.go b/domain/consensus/database/serialization/block.go index 9603f1e430..8a8d3e5d70 100644 --- a/domain/consensus/database/serialization/block.go +++ b/domain/consensus/database/serialization/block.go @@ -1,7 +1,7 @@ package serialization import ( - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" ) // DomainBlockToDbBlock converts DomainBlocks to DbBlock diff --git a/domain/consensus/database/serialization/block_ghostdag_data.go b/domain/consensus/database/serialization/block_ghostdag_data.go index 3232b93183..a79c9d6e82 100644 --- a/domain/consensus/database/serialization/block_ghostdag_data.go +++ b/domain/consensus/database/serialization/block_ghostdag_data.go @@ -3,7 +3,7 @@ package serialization import ( "math/big" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" ) // BlockGHOSTDAGDataToDBBlockGHOSTDAGData converts BlockGHOSTDAGData to DbBlockGhostdagData diff --git a/domain/consensus/database/serialization/blockheader.go b/domain/consensus/database/serialization/blockheader.go index 199496b967..040d64d0e8 100644 --- a/domain/consensus/database/serialization/blockheader.go +++ b/domain/consensus/database/serialization/blockheader.go @@ -4,8 +4,8 @@ import ( "math" "math/big" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/blockheader" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/blockheader" "github.com/pkg/errors" ) diff --git a/domain/consensus/database/serialization/blocklevelparents.go b/domain/consensus/database/serialization/blocklevelparents.go index 01660948ca..f4dc1fad9c 100644 --- a/domain/consensus/database/serialization/blocklevelparents.go +++ b/domain/consensus/database/serialization/blocklevelparents.go @@ -1,7 +1,7 @@ package serialization import ( - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" ) // DbBlockLevelParentsToDomainBlockLevelParents converts a DbBlockLevelParents to a BlockLevelParents diff --git a/domain/consensus/database/serialization/blockrelations.go b/domain/consensus/database/serialization/blockrelations.go index 816c901e29..e46933f4ac 100644 --- a/domain/consensus/database/serialization/blockrelations.go +++ b/domain/consensus/database/serialization/blockrelations.go @@ -1,7 +1,7 @@ package serialization import ( - "github.com/karlsen-network/karlsend/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" ) // DomainBlockRelationsToDbBlockRelations converts model.BlockRelations to DbBlockRelations diff --git a/domain/consensus/database/serialization/blockstatus.go b/domain/consensus/database/serialization/blockstatus.go index 3a45ffa364..288610ea47 100644 --- a/domain/consensus/database/serialization/blockstatus.go +++ b/domain/consensus/database/serialization/blockstatus.go @@ -1,7 +1,7 @@ package serialization import ( - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" ) // DomainBlockStatusToDbBlockStatus converts model.BlockStatus to DbBlockStatus diff --git a/domain/consensus/database/serialization/blues_anticone_sizes.go b/domain/consensus/database/serialization/blues_anticone_sizes.go index dbfab5507f..f1b28f2915 100644 --- a/domain/consensus/database/serialization/blues_anticone_sizes.go +++ b/domain/consensus/database/serialization/blues_anticone_sizes.go @@ -1,7 +1,7 @@ package serialization import ( - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" "github.com/pkg/errors" ) diff --git a/domain/consensus/database/serialization/blues_anticone_sizes_test.go b/domain/consensus/database/serialization/blues_anticone_sizes_test.go index 4bf86849b3..567ebf43d9 100644 --- a/domain/consensus/database/serialization/blues_anticone_sizes_test.go +++ b/domain/consensus/database/serialization/blues_anticone_sizes_test.go @@ -3,7 +3,7 @@ package serialization import ( "testing" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" ) // TestBlueAnticoneSizesSize tests that no data can be loss when converting externalapi.KType to the corresponding type in diff --git a/domain/consensus/database/serialization/daa_block.go b/domain/consensus/database/serialization/daa_block.go index 9ce89bdca5..f5c47e285d 100644 --- a/domain/consensus/database/serialization/daa_block.go +++ b/domain/consensus/database/serialization/daa_block.go @@ -1,7 +1,7 @@ package serialization import ( - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" ) // BlockGHOSTDAGDataHashPairToDbBlockGhostdagDataHashPair converts *externalapi.BlockGHOSTDAGDataHashPair to *DbBlockGHOSTDAGDataHashPair diff --git a/domain/consensus/database/serialization/hash.go b/domain/consensus/database/serialization/hash.go index 021674ee75..c768c1e661 100644 --- a/domain/consensus/database/serialization/hash.go +++ b/domain/consensus/database/serialization/hash.go @@ -1,7 +1,7 @@ package serialization import ( - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" ) // DbHashToDomainHash converts a DbHash to a DomainHash diff --git a/domain/consensus/database/serialization/multiset.go b/domain/consensus/database/serialization/multiset.go index 2dabab286c..c34b0a0a4d 100644 --- a/domain/consensus/database/serialization/multiset.go +++ b/domain/consensus/database/serialization/multiset.go @@ -1,8 +1,8 @@ package serialization import ( - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/utils/multiset" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/multiset" ) // MultisetToDBMultiset converts Multiset to DbMultiset diff --git a/domain/consensus/database/serialization/outpoint.go b/domain/consensus/database/serialization/outpoint.go index 255027f1f3..1677d27d97 100644 --- a/domain/consensus/database/serialization/outpoint.go +++ b/domain/consensus/database/serialization/outpoint.go @@ -1,7 +1,7 @@ package serialization import ( - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" ) // DomainOutpointToDbOutpoint converts DomainOutpoint to DbOutpoint diff --git a/domain/consensus/database/serialization/reachability_data.go b/domain/consensus/database/serialization/reachability_data.go index 80cc91b277..968db4c24f 100644 --- a/domain/consensus/database/serialization/reachability_data.go +++ b/domain/consensus/database/serialization/reachability_data.go @@ -1,9 +1,9 @@ package serialization import ( - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/reachabilitydata" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/reachabilitydata" ) // ReachablityDataToDBReachablityData converts ReachabilityData to DbReachabilityData diff --git a/domain/consensus/database/serialization/reachablity_interval.go b/domain/consensus/database/serialization/reachablity_interval.go index 389993076c..8d5f61f05b 100644 --- a/domain/consensus/database/serialization/reachablity_interval.go +++ b/domain/consensus/database/serialization/reachablity_interval.go @@ -1,7 +1,7 @@ package serialization import ( - "github.com/karlsen-network/karlsend/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" ) func reachablityIntervalToDBReachablityInterval(reachabilityInterval *model.ReachabilityInterval) *DbReachabilityInterval { diff --git a/domain/consensus/database/serialization/subnetworkid.go b/domain/consensus/database/serialization/subnetworkid.go index 0d9838dabe..26735e27f2 100644 --- a/domain/consensus/database/serialization/subnetworkid.go +++ b/domain/consensus/database/serialization/subnetworkid.go @@ -1,8 +1,8 @@ package serialization import ( - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/subnetworks" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/subnetworks" ) // DbSubnetworkIDToDomainSubnetworkID converts DbSubnetworkId to DomainSubnetworkID diff --git a/domain/consensus/database/serialization/tips.go b/domain/consensus/database/serialization/tips.go index b5bb5c0a47..aa806af7bd 100644 --- a/domain/consensus/database/serialization/tips.go +++ b/domain/consensus/database/serialization/tips.go @@ -1,7 +1,7 @@ package serialization import ( - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" ) // TipsToDBTips converts a slice of hashes to DbTips diff --git a/domain/consensus/database/serialization/transaction.go b/domain/consensus/database/serialization/transaction.go index 3e29936fac..e38d87c686 100644 --- a/domain/consensus/database/serialization/transaction.go +++ b/domain/consensus/database/serialization/transaction.go @@ -3,7 +3,7 @@ package serialization import ( "math" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" "github.com/pkg/errors" ) diff --git a/domain/consensus/database/serialization/transactionid.go b/domain/consensus/database/serialization/transactionid.go index 471421dc54..1d4f8e2a71 100644 --- a/domain/consensus/database/serialization/transactionid.go +++ b/domain/consensus/database/serialization/transactionid.go @@ -1,8 +1,8 @@ package serialization import ( - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/transactionid" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/transactionid" ) // DbTransactionIDToDomainTransactionID converts DbTransactionId to DomainTransactionID diff --git a/domain/consensus/database/serialization/utxo_collection.go b/domain/consensus/database/serialization/utxo_collection.go index 50c3bc809e..87243b0c92 100644 --- a/domain/consensus/database/serialization/utxo_collection.go +++ b/domain/consensus/database/serialization/utxo_collection.go @@ -1,8 +1,8 @@ package serialization import ( - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/utxo" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/utxo" ) func utxoCollectionToDBUTXOCollection(utxoCollection externalapi.UTXOCollection) ([]*DbUtxoCollectionItem, error) { diff --git a/domain/consensus/database/serialization/utxo_diff.go b/domain/consensus/database/serialization/utxo_diff.go index 110480edc4..0f0cac601a 100644 --- a/domain/consensus/database/serialization/utxo_diff.go +++ b/domain/consensus/database/serialization/utxo_diff.go @@ -1,8 +1,8 @@ package serialization import ( - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/utxo" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/utxo" ) // UTXODiffToDBUTXODiff converts UTXODiff to DbUtxoDiff diff --git a/domain/consensus/database/serialization/utxo_entry.go b/domain/consensus/database/serialization/utxo_entry.go index db01810f85..c69d6c6031 100644 --- a/domain/consensus/database/serialization/utxo_entry.go +++ b/domain/consensus/database/serialization/utxo_entry.go @@ -3,8 +3,8 @@ package serialization import ( "math" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/utxo" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/utxo" "github.com/pkg/errors" ) diff --git a/domain/consensus/database/transaction.go b/domain/consensus/database/transaction.go index 4967687618..2de7f7f2e4 100644 --- a/domain/consensus/database/transaction.go +++ b/domain/consensus/database/transaction.go @@ -1,8 +1,8 @@ package database import ( - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/infrastructure/db/database" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/infrastructure/db/database" ) type dbTransaction struct { diff --git a/domain/consensus/datastructures/acceptancedatastore/acceptance_data_staging_shard.go b/domain/consensus/datastructures/acceptancedatastore/acceptance_data_staging_shard.go index 3ce57d757f..0a9ff640e8 100644 --- a/domain/consensus/datastructures/acceptancedatastore/acceptance_data_staging_shard.go +++ b/domain/consensus/datastructures/acceptancedatastore/acceptance_data_staging_shard.go @@ -1,8 +1,8 @@ package acceptancedatastore import ( - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" ) type acceptanceDataStagingShard struct { diff --git a/domain/consensus/datastructures/acceptancedatastore/acceptance_data_store.go b/domain/consensus/datastructures/acceptancedatastore/acceptance_data_store.go index a9d6cdffa6..0c57c26270 100644 --- a/domain/consensus/datastructures/acceptancedatastore/acceptance_data_store.go +++ b/domain/consensus/datastructures/acceptancedatastore/acceptance_data_store.go @@ -1,11 +1,11 @@ package acceptancedatastore import ( - "github.com/karlsen-network/karlsend/domain/consensus/database/serialization" - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/lrucache" - "github.com/karlsen-network/karlsend/util/staging" + "github.com/karlsen-network/karlsend/v2/domain/consensus/database/serialization" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/lrucache" + "github.com/karlsen-network/karlsend/v2/util/staging" "google.golang.org/protobuf/proto" ) diff --git a/domain/consensus/datastructures/blockheaderstore/block_header_staging_shard.go b/domain/consensus/datastructures/blockheaderstore/block_header_staging_shard.go index c60019ada2..7485c4433f 100644 --- a/domain/consensus/datastructures/blockheaderstore/block_header_staging_shard.go +++ b/domain/consensus/datastructures/blockheaderstore/block_header_staging_shard.go @@ -1,8 +1,8 @@ package blockheaderstore import ( - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" ) type blockHeaderStagingShard struct { diff --git a/domain/consensus/datastructures/blockheaderstore/block_header_store.go b/domain/consensus/datastructures/blockheaderstore/block_header_store.go index 019ecdee05..3c5a94cb0b 100644 --- a/domain/consensus/datastructures/blockheaderstore/block_header_store.go +++ b/domain/consensus/datastructures/blockheaderstore/block_header_store.go @@ -2,11 +2,11 @@ package blockheaderstore import ( "github.com/golang/protobuf/proto" - "github.com/karlsen-network/karlsend/domain/consensus/database/serialization" - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/lrucache" - "github.com/karlsen-network/karlsend/util/staging" + "github.com/karlsen-network/karlsend/v2/domain/consensus/database/serialization" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/lrucache" + "github.com/karlsen-network/karlsend/v2/util/staging" ) var bucketName = []byte("block-headers") diff --git a/domain/consensus/datastructures/blockrelationstore/block_relation_staging_shard.go b/domain/consensus/datastructures/blockrelationstore/block_relation_staging_shard.go index 5b36e5313f..28447cd65c 100644 --- a/domain/consensus/datastructures/blockrelationstore/block_relation_staging_shard.go +++ b/domain/consensus/datastructures/blockrelationstore/block_relation_staging_shard.go @@ -1,8 +1,8 @@ package blockrelationstore import ( - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" ) type blockRelationStagingShard struct { diff --git a/domain/consensus/datastructures/blockrelationstore/block_relation_store.go b/domain/consensus/datastructures/blockrelationstore/block_relation_store.go index 7460639bb1..64230073ca 100644 --- a/domain/consensus/datastructures/blockrelationstore/block_relation_store.go +++ b/domain/consensus/datastructures/blockrelationstore/block_relation_store.go @@ -2,11 +2,11 @@ package blockrelationstore import ( "github.com/golang/protobuf/proto" - "github.com/karlsen-network/karlsend/domain/consensus/database/serialization" - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/lrucache" - "github.com/karlsen-network/karlsend/util/staging" + "github.com/karlsen-network/karlsend/v2/domain/consensus/database/serialization" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/lrucache" + "github.com/karlsen-network/karlsend/v2/util/staging" ) var bucketName = []byte("block-relations") diff --git a/domain/consensus/datastructures/blockstatusstore/block_status_staging_shard.go b/domain/consensus/datastructures/blockstatusstore/block_status_staging_shard.go index 2ddeea6209..d1da3d409b 100644 --- a/domain/consensus/datastructures/blockstatusstore/block_status_staging_shard.go +++ b/domain/consensus/datastructures/blockstatusstore/block_status_staging_shard.go @@ -1,8 +1,8 @@ package blockstatusstore import ( - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" ) type blockStatusStagingShard struct { diff --git a/domain/consensus/datastructures/blockstatusstore/block_status_store.go b/domain/consensus/datastructures/blockstatusstore/block_status_store.go index 34af84f9cb..581a3c4216 100644 --- a/domain/consensus/datastructures/blockstatusstore/block_status_store.go +++ b/domain/consensus/datastructures/blockstatusstore/block_status_store.go @@ -2,11 +2,11 @@ package blockstatusstore import ( "github.com/golang/protobuf/proto" - "github.com/karlsen-network/karlsend/domain/consensus/database/serialization" - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/lrucache" - "github.com/karlsen-network/karlsend/util/staging" + "github.com/karlsen-network/karlsend/v2/domain/consensus/database/serialization" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/lrucache" + "github.com/karlsen-network/karlsend/v2/util/staging" ) var bucketName = []byte("block-statuses") diff --git a/domain/consensus/datastructures/blockstore/block_staging_shard.go b/domain/consensus/datastructures/blockstore/block_staging_shard.go index d3837d4761..ae777bf7a9 100644 --- a/domain/consensus/datastructures/blockstore/block_staging_shard.go +++ b/domain/consensus/datastructures/blockstore/block_staging_shard.go @@ -1,8 +1,8 @@ package blockstore import ( - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" ) type blockStagingShard struct { diff --git a/domain/consensus/datastructures/blockstore/block_store.go b/domain/consensus/datastructures/blockstore/block_store.go index 105068f101..d60cd6f3dc 100644 --- a/domain/consensus/datastructures/blockstore/block_store.go +++ b/domain/consensus/datastructures/blockstore/block_store.go @@ -2,11 +2,11 @@ package blockstore import ( "github.com/golang/protobuf/proto" - "github.com/karlsen-network/karlsend/domain/consensus/database/serialization" - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/lrucache" - "github.com/karlsen-network/karlsend/util/staging" + "github.com/karlsen-network/karlsend/v2/domain/consensus/database/serialization" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/lrucache" + "github.com/karlsen-network/karlsend/v2/util/staging" "github.com/pkg/errors" ) diff --git a/domain/consensus/datastructures/blockwindowheapslicestore/block_window_heap_slice_staging_shard.go b/domain/consensus/datastructures/blockwindowheapslicestore/block_window_heap_slice_staging_shard.go index 4897659d00..1e353c6e2c 100644 --- a/domain/consensus/datastructures/blockwindowheapslicestore/block_window_heap_slice_staging_shard.go +++ b/domain/consensus/datastructures/blockwindowheapslicestore/block_window_heap_slice_staging_shard.go @@ -1,8 +1,8 @@ package blockwindowheapslicestore import ( - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" ) type shardKey struct { diff --git a/domain/consensus/datastructures/blockwindowheapslicestore/block_window_heap_slice_store.go b/domain/consensus/datastructures/blockwindowheapslicestore/block_window_heap_slice_store.go index 4120ddc97b..4388216ce0 100644 --- a/domain/consensus/datastructures/blockwindowheapslicestore/block_window_heap_slice_store.go +++ b/domain/consensus/datastructures/blockwindowheapslicestore/block_window_heap_slice_store.go @@ -1,11 +1,11 @@ package blockwindowheapslicestore import ( - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/lrucachehashandwindowsizetoblockghostdagdatahashpairs" - "github.com/karlsen-network/karlsend/infrastructure/db/database" - "github.com/karlsen-network/karlsend/util/staging" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/lrucachehashandwindowsizetoblockghostdagdatahashpairs" + "github.com/karlsen-network/karlsend/v2/infrastructure/db/database" + "github.com/karlsen-network/karlsend/v2/util/staging" "github.com/pkg/errors" ) diff --git a/domain/consensus/datastructures/consensusstatestore/consensus_state_staging_shard.go b/domain/consensus/datastructures/consensusstatestore/consensus_state_staging_shard.go index ec95f013b5..8e4a16397e 100644 --- a/domain/consensus/datastructures/consensusstatestore/consensus_state_staging_shard.go +++ b/domain/consensus/datastructures/consensusstatestore/consensus_state_staging_shard.go @@ -1,8 +1,8 @@ package consensusstatestore import ( - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" ) type consensusStateStagingShard struct { diff --git a/domain/consensus/datastructures/consensusstatestore/consensus_state_store.go b/domain/consensus/datastructures/consensusstatestore/consensus_state_store.go index 64f9f5a351..8da45019e4 100644 --- a/domain/consensus/datastructures/consensusstatestore/consensus_state_store.go +++ b/domain/consensus/datastructures/consensusstatestore/consensus_state_store.go @@ -1,10 +1,10 @@ package consensusstatestore import ( - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/utxolrucache" - "github.com/karlsen-network/karlsend/util/staging" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/utxolrucache" + "github.com/karlsen-network/karlsend/v2/util/staging" ) var importingPruningPointUTXOSetKeyName = []byte("importing-pruning-point-utxo-set") diff --git a/domain/consensus/datastructures/consensusstatestore/tips.go b/domain/consensus/datastructures/consensusstatestore/tips.go index afa53e62cb..c15096c1b9 100644 --- a/domain/consensus/datastructures/consensusstatestore/tips.go +++ b/domain/consensus/datastructures/consensusstatestore/tips.go @@ -2,9 +2,9 @@ package consensusstatestore import ( "github.com/golang/protobuf/proto" - "github.com/karlsen-network/karlsend/domain/consensus/database/serialization" - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/database/serialization" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" ) var tipsKeyName = []byte("tips") diff --git a/domain/consensus/datastructures/consensusstatestore/utxo.go b/domain/consensus/datastructures/consensusstatestore/utxo.go index 154d3e63af..e08c38da02 100644 --- a/domain/consensus/datastructures/consensusstatestore/utxo.go +++ b/domain/consensus/datastructures/consensusstatestore/utxo.go @@ -1,9 +1,9 @@ package consensusstatestore import ( - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/utxo" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/utxo" "github.com/pkg/errors" ) diff --git a/domain/consensus/datastructures/consensusstatestore/utxo_serialization.go b/domain/consensus/datastructures/consensusstatestore/utxo_serialization.go index 3bbc35db84..52ef9ea4b5 100644 --- a/domain/consensus/datastructures/consensusstatestore/utxo_serialization.go +++ b/domain/consensus/datastructures/consensusstatestore/utxo_serialization.go @@ -2,8 +2,8 @@ package consensusstatestore import ( "github.com/golang/protobuf/proto" - "github.com/karlsen-network/karlsend/domain/consensus/database/serialization" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/database/serialization" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" ) func serializeOutpoint(outpoint *externalapi.DomainOutpoint) ([]byte, error) { diff --git a/domain/consensus/datastructures/consensusstatestore/virtual_utxo_set.go b/domain/consensus/datastructures/consensusstatestore/virtual_utxo_set.go index 9df7de655a..a7910a900c 100644 --- a/domain/consensus/datastructures/consensusstatestore/virtual_utxo_set.go +++ b/domain/consensus/datastructures/consensusstatestore/virtual_utxo_set.go @@ -1,8 +1,8 @@ package consensusstatestore import ( - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" "github.com/pkg/errors" ) diff --git a/domain/consensus/datastructures/daablocksstore/daa_blocks_staging_shard.go b/domain/consensus/datastructures/daablocksstore/daa_blocks_staging_shard.go index 22e5d42626..dde0741671 100644 --- a/domain/consensus/datastructures/daablocksstore/daa_blocks_staging_shard.go +++ b/domain/consensus/datastructures/daablocksstore/daa_blocks_staging_shard.go @@ -1,9 +1,9 @@ package daablocksstore import ( - "github.com/karlsen-network/karlsend/domain/consensus/database/binaryserialization" - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/database/binaryserialization" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" ) type daaBlocksStagingShard struct { diff --git a/domain/consensus/datastructures/daablocksstore/daa_blocks_store.go b/domain/consensus/datastructures/daablocksstore/daa_blocks_store.go index 75f2e9e99b..7cce655a64 100644 --- a/domain/consensus/datastructures/daablocksstore/daa_blocks_store.go +++ b/domain/consensus/datastructures/daablocksstore/daa_blocks_store.go @@ -1,11 +1,11 @@ package daablocksstore import ( - "github.com/karlsen-network/karlsend/domain/consensus/database/binaryserialization" - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/lrucache" - "github.com/karlsen-network/karlsend/util/staging" + "github.com/karlsen-network/karlsend/v2/domain/consensus/database/binaryserialization" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/lrucache" + "github.com/karlsen-network/karlsend/v2/util/staging" ) var daaScoreBucketName = []byte("daa-score") diff --git a/domain/consensus/datastructures/daawindowstore/daa_window_staging_shard.go b/domain/consensus/datastructures/daawindowstore/daa_window_staging_shard.go index eab3f04854..d718dfe37b 100644 --- a/domain/consensus/datastructures/daawindowstore/daa_window_staging_shard.go +++ b/domain/consensus/datastructures/daawindowstore/daa_window_staging_shard.go @@ -2,9 +2,9 @@ package daawindowstore import ( "github.com/golang/protobuf/proto" - "github.com/karlsen-network/karlsend/domain/consensus/database/serialization" - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/database/serialization" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" ) type dbKey struct { diff --git a/domain/consensus/datastructures/daawindowstore/daa_window_store.go b/domain/consensus/datastructures/daawindowstore/daa_window_store.go index c46382aee4..549dc44d90 100644 --- a/domain/consensus/datastructures/daawindowstore/daa_window_store.go +++ b/domain/consensus/datastructures/daawindowstore/daa_window_store.go @@ -4,12 +4,12 @@ import ( "encoding/binary" "github.com/golang/protobuf/proto" - "github.com/karlsen-network/karlsend/domain/consensus/database/serialization" - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/lrucachehashpairtoblockghostdagdatahashpair" - "github.com/karlsen-network/karlsend/infrastructure/db/database" - "github.com/karlsen-network/karlsend/util/staging" + "github.com/karlsen-network/karlsend/v2/domain/consensus/database/serialization" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/lrucachehashpairtoblockghostdagdatahashpair" + "github.com/karlsen-network/karlsend/v2/infrastructure/db/database" + "github.com/karlsen-network/karlsend/v2/util/staging" "github.com/pkg/errors" ) diff --git a/domain/consensus/datastructures/finalitystore/finality_staging_shard.go b/domain/consensus/datastructures/finalitystore/finality_staging_shard.go index 9ac2cb6de5..f10c014584 100644 --- a/domain/consensus/datastructures/finalitystore/finality_staging_shard.go +++ b/domain/consensus/datastructures/finalitystore/finality_staging_shard.go @@ -1,8 +1,8 @@ package finalitystore import ( - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" ) type finalityStagingShard struct { diff --git a/domain/consensus/datastructures/finalitystore/finality_store.go b/domain/consensus/datastructures/finalitystore/finality_store.go index ac991def98..dcfcbc1733 100644 --- a/domain/consensus/datastructures/finalitystore/finality_store.go +++ b/domain/consensus/datastructures/finalitystore/finality_store.go @@ -1,10 +1,10 @@ package finalitystore import ( - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/lrucache" - "github.com/karlsen-network/karlsend/util/staging" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/lrucache" + "github.com/karlsen-network/karlsend/v2/util/staging" ) var bucketName = []byte("finality-points") diff --git a/domain/consensus/datastructures/ghostdagdatastore/ghostadag_data_staging_shard.go b/domain/consensus/datastructures/ghostdagdatastore/ghostadag_data_staging_shard.go index ba4f29aafe..0bb798e9bc 100644 --- a/domain/consensus/datastructures/ghostdagdatastore/ghostadag_data_staging_shard.go +++ b/domain/consensus/datastructures/ghostdagdatastore/ghostadag_data_staging_shard.go @@ -1,8 +1,8 @@ package ghostdagdatastore import ( - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" ) type key struct { diff --git a/domain/consensus/datastructures/ghostdagdatastore/ghostdag_data_store.go b/domain/consensus/datastructures/ghostdagdatastore/ghostdag_data_store.go index de3b0a733f..4ecfac3c28 100644 --- a/domain/consensus/datastructures/ghostdagdatastore/ghostdag_data_store.go +++ b/domain/consensus/datastructures/ghostdagdatastore/ghostdag_data_store.go @@ -2,11 +2,11 @@ package ghostdagdatastore import ( "github.com/golang/protobuf/proto" - "github.com/karlsen-network/karlsend/domain/consensus/database/serialization" - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/lrucacheghostdagdata" - "github.com/karlsen-network/karlsend/util/staging" + "github.com/karlsen-network/karlsend/v2/domain/consensus/database/serialization" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/lrucacheghostdagdata" + "github.com/karlsen-network/karlsend/v2/util/staging" ) var ghostdagDataBucketName = []byte("block-ghostdag-data") diff --git a/domain/consensus/datastructures/headersselectedchainstore/headers_selected_chain_staging_shard.go b/domain/consensus/datastructures/headersselectedchainstore/headers_selected_chain_staging_shard.go index e1d6ec606d..c59722cacd 100644 --- a/domain/consensus/datastructures/headersselectedchainstore/headers_selected_chain_staging_shard.go +++ b/domain/consensus/datastructures/headersselectedchainstore/headers_selected_chain_staging_shard.go @@ -1,9 +1,9 @@ package headersselectedchainstore import ( - "github.com/karlsen-network/karlsend/domain/consensus/database/binaryserialization" - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/database/binaryserialization" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" ) type headersSelectedChainStagingShard struct { diff --git a/domain/consensus/datastructures/headersselectedchainstore/headers_selected_chain_store.go b/domain/consensus/datastructures/headersselectedchainstore/headers_selected_chain_store.go index 7bec8001e3..6310207dd3 100644 --- a/domain/consensus/datastructures/headersselectedchainstore/headers_selected_chain_store.go +++ b/domain/consensus/datastructures/headersselectedchainstore/headers_selected_chain_store.go @@ -3,14 +3,14 @@ package headersselectedchainstore import ( "encoding/binary" - "github.com/karlsen-network/karlsend/util/staging" - - "github.com/karlsen-network/karlsend/domain/consensus/database" - "github.com/karlsen-network/karlsend/domain/consensus/database/binaryserialization" - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/lrucache" - "github.com/karlsen-network/karlsend/domain/consensus/utils/lrucacheuint64tohash" + "github.com/karlsen-network/karlsend/v2/util/staging" + + "github.com/karlsen-network/karlsend/v2/domain/consensus/database" + "github.com/karlsen-network/karlsend/v2/domain/consensus/database/binaryserialization" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/lrucache" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/lrucacheuint64tohash" "github.com/pkg/errors" ) diff --git a/domain/consensus/datastructures/headersselectedtipstore/headers_selected_tip_staging_shard.go b/domain/consensus/datastructures/headersselectedtipstore/headers_selected_tip_staging_shard.go index 913e931824..2c4bee0766 100644 --- a/domain/consensus/datastructures/headersselectedtipstore/headers_selected_tip_staging_shard.go +++ b/domain/consensus/datastructures/headersselectedtipstore/headers_selected_tip_staging_shard.go @@ -1,8 +1,8 @@ package headersselectedtipstore import ( - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" ) type headersSelectedTipStagingShard struct { diff --git a/domain/consensus/datastructures/headersselectedtipstore/headers_selected_tips_store.go b/domain/consensus/datastructures/headersselectedtipstore/headers_selected_tips_store.go index ca2b2b15a3..31a6c58dc3 100644 --- a/domain/consensus/datastructures/headersselectedtipstore/headers_selected_tips_store.go +++ b/domain/consensus/datastructures/headersselectedtipstore/headers_selected_tips_store.go @@ -2,10 +2,10 @@ package headersselectedtipstore import ( "github.com/golang/protobuf/proto" - "github.com/karlsen-network/karlsend/domain/consensus/database/serialization" - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/util/staging" + "github.com/karlsen-network/karlsend/v2/domain/consensus/database/serialization" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/util/staging" ) var keyName = []byte("headers-selected-tip") diff --git a/domain/consensus/datastructures/mergedepthrootstore/merge_depth_root_staging_shard.go b/domain/consensus/datastructures/mergedepthrootstore/merge_depth_root_staging_shard.go index 3c6f6925f3..45dfaf3e1b 100644 --- a/domain/consensus/datastructures/mergedepthrootstore/merge_depth_root_staging_shard.go +++ b/domain/consensus/datastructures/mergedepthrootstore/merge_depth_root_staging_shard.go @@ -1,8 +1,8 @@ package mergedepthrootstore import ( - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" ) type mergeDepthRootStagingShard struct { diff --git a/domain/consensus/datastructures/mergedepthrootstore/merge_depth_root_store.go b/domain/consensus/datastructures/mergedepthrootstore/merge_depth_root_store.go index d70acd512a..49a87f32b3 100644 --- a/domain/consensus/datastructures/mergedepthrootstore/merge_depth_root_store.go +++ b/domain/consensus/datastructures/mergedepthrootstore/merge_depth_root_store.go @@ -1,10 +1,10 @@ package mergedepthrootstore import ( - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/lrucache" - "github.com/karlsen-network/karlsend/util/staging" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/lrucache" + "github.com/karlsen-network/karlsend/v2/util/staging" ) var bucketName = []byte("merge-depth-roots") diff --git a/domain/consensus/datastructures/multisetstore/multiset_staging_shard.go b/domain/consensus/datastructures/multisetstore/multiset_staging_shard.go index 6d5b9f6ae1..9cde12bd8a 100644 --- a/domain/consensus/datastructures/multisetstore/multiset_staging_shard.go +++ b/domain/consensus/datastructures/multisetstore/multiset_staging_shard.go @@ -1,8 +1,8 @@ package multisetstore import ( - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" ) type multisetStagingShard struct { diff --git a/domain/consensus/datastructures/multisetstore/multiset_store.go b/domain/consensus/datastructures/multisetstore/multiset_store.go index bb88bfa2e5..8acfd1a018 100644 --- a/domain/consensus/datastructures/multisetstore/multiset_store.go +++ b/domain/consensus/datastructures/multisetstore/multiset_store.go @@ -2,11 +2,11 @@ package multisetstore import ( "github.com/golang/protobuf/proto" - "github.com/karlsen-network/karlsend/domain/consensus/database/serialization" - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/lrucache" - "github.com/karlsen-network/karlsend/util/staging" + "github.com/karlsen-network/karlsend/v2/domain/consensus/database/serialization" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/lrucache" + "github.com/karlsen-network/karlsend/v2/util/staging" ) var bucketName = []byte("multisets") diff --git a/domain/consensus/datastructures/pruningstore/imported_pruning_point.go b/domain/consensus/datastructures/pruningstore/imported_pruning_point.go index a5f3f32772..a3de0666e4 100644 --- a/domain/consensus/datastructures/pruningstore/imported_pruning_point.go +++ b/domain/consensus/datastructures/pruningstore/imported_pruning_point.go @@ -2,9 +2,9 @@ package pruningstore import ( "github.com/golang/protobuf/proto" - "github.com/karlsen-network/karlsend/domain/consensus/database/serialization" - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/database/serialization" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" "github.com/pkg/errors" ) diff --git a/domain/consensus/datastructures/pruningstore/pruning_staging_shard.go b/domain/consensus/datastructures/pruningstore/pruning_staging_shard.go index 798a23cb4a..65a0c919ed 100644 --- a/domain/consensus/datastructures/pruningstore/pruning_staging_shard.go +++ b/domain/consensus/datastructures/pruningstore/pruning_staging_shard.go @@ -1,8 +1,8 @@ package pruningstore import ( - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" ) type pruningStagingShard struct { diff --git a/domain/consensus/datastructures/pruningstore/pruning_store.go b/domain/consensus/datastructures/pruningstore/pruning_store.go index b3e5fc92ef..8852ed708e 100644 --- a/domain/consensus/datastructures/pruningstore/pruning_store.go +++ b/domain/consensus/datastructures/pruningstore/pruning_store.go @@ -4,13 +4,13 @@ import ( "encoding/binary" "github.com/golang/protobuf/proto" - "github.com/karlsen-network/karlsend/domain/consensus/database" - "github.com/karlsen-network/karlsend/domain/consensus/database/binaryserialization" - "github.com/karlsen-network/karlsend/domain/consensus/database/serialization" - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/lrucacheuint64tohash" - "github.com/karlsen-network/karlsend/util/staging" + "github.com/karlsen-network/karlsend/v2/domain/consensus/database" + "github.com/karlsen-network/karlsend/v2/domain/consensus/database/binaryserialization" + "github.com/karlsen-network/karlsend/v2/domain/consensus/database/serialization" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/lrucacheuint64tohash" + "github.com/karlsen-network/karlsend/v2/util/staging" "github.com/pkg/errors" ) diff --git a/domain/consensus/datastructures/reachabilitydatastore/reachability_data_staging_shard.go b/domain/consensus/datastructures/reachabilitydatastore/reachability_data_staging_shard.go index 42ced08e04..ddc1cc7fe9 100644 --- a/domain/consensus/datastructures/reachabilitydatastore/reachability_data_staging_shard.go +++ b/domain/consensus/datastructures/reachabilitydatastore/reachability_data_staging_shard.go @@ -1,8 +1,8 @@ package reachabilitydatastore import ( - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" ) type reachabilityDataStagingShard struct { diff --git a/domain/consensus/datastructures/reachabilitydatastore/reachability_data_store.go b/domain/consensus/datastructures/reachabilitydatastore/reachability_data_store.go index 6918d743c8..2e9ab2dd17 100644 --- a/domain/consensus/datastructures/reachabilitydatastore/reachability_data_store.go +++ b/domain/consensus/datastructures/reachabilitydatastore/reachability_data_store.go @@ -2,12 +2,12 @@ package reachabilitydatastore import ( "github.com/golang/protobuf/proto" - "github.com/karlsen-network/karlsend/domain/consensus/database/serialization" - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/lrucache" - "github.com/karlsen-network/karlsend/infrastructure/db/database" - "github.com/karlsen-network/karlsend/util/staging" + "github.com/karlsen-network/karlsend/v2/domain/consensus/database/serialization" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/lrucache" + "github.com/karlsen-network/karlsend/v2/infrastructure/db/database" + "github.com/karlsen-network/karlsend/v2/util/staging" "github.com/pkg/errors" ) diff --git a/domain/consensus/datastructures/utxodiffstore/utxo_diff_staging_shard.go b/domain/consensus/datastructures/utxodiffstore/utxo_diff_staging_shard.go index 42e41a7fc3..d1410d0071 100644 --- a/domain/consensus/datastructures/utxodiffstore/utxo_diff_staging_shard.go +++ b/domain/consensus/datastructures/utxodiffstore/utxo_diff_staging_shard.go @@ -1,8 +1,8 @@ package utxodiffstore import ( - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" ) type utxoDiffStagingShard struct { diff --git a/domain/consensus/datastructures/utxodiffstore/utxo_diff_store.go b/domain/consensus/datastructures/utxodiffstore/utxo_diff_store.go index 9fd376c8ac..426057fdfe 100644 --- a/domain/consensus/datastructures/utxodiffstore/utxo_diff_store.go +++ b/domain/consensus/datastructures/utxodiffstore/utxo_diff_store.go @@ -2,11 +2,11 @@ package utxodiffstore import ( "github.com/golang/protobuf/proto" - "github.com/karlsen-network/karlsend/domain/consensus/database/serialization" - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/lrucache" - "github.com/karlsen-network/karlsend/util/staging" + "github.com/karlsen-network/karlsend/v2/domain/consensus/database/serialization" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/lrucache" + "github.com/karlsen-network/karlsend/v2/util/staging" "github.com/pkg/errors" ) diff --git a/domain/consensus/factory.go b/domain/consensus/factory.go index 4c70792751..0b8e8ff433 100644 --- a/domain/consensus/factory.go +++ b/domain/consensus/factory.go @@ -5,57 +5,57 @@ import ( "os" "sync" - "github.com/karlsen-network/karlsend/domain/consensus/datastructures/blockwindowheapslicestore" - "github.com/karlsen-network/karlsend/domain/consensus/datastructures/daawindowstore" - "github.com/karlsen-network/karlsend/domain/consensus/datastructures/mergedepthrootstore" - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/processes/blockparentbuilder" - parentssanager "github.com/karlsen-network/karlsend/domain/consensus/processes/parentsmanager" - "github.com/karlsen-network/karlsend/domain/consensus/processes/pruningproofmanager" - "github.com/karlsen-network/karlsend/util/staging" + "github.com/karlsen-network/karlsend/v2/domain/consensus/datastructures/blockwindowheapslicestore" + "github.com/karlsen-network/karlsend/v2/domain/consensus/datastructures/daawindowstore" + "github.com/karlsen-network/karlsend/v2/domain/consensus/datastructures/mergedepthrootstore" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/processes/blockparentbuilder" + parentssanager "github.com/karlsen-network/karlsend/v2/domain/consensus/processes/parentsmanager" + "github.com/karlsen-network/karlsend/v2/domain/consensus/processes/pruningproofmanager" + "github.com/karlsen-network/karlsend/v2/util/staging" "github.com/pkg/errors" - "github.com/karlsen-network/karlsend/domain/prefixmanager/prefix" - "github.com/karlsen-network/karlsend/util/txmass" - - consensusdatabase "github.com/karlsen-network/karlsend/domain/consensus/database" - "github.com/karlsen-network/karlsend/domain/consensus/datastructures/acceptancedatastore" - "github.com/karlsen-network/karlsend/domain/consensus/datastructures/blockheaderstore" - "github.com/karlsen-network/karlsend/domain/consensus/datastructures/blockrelationstore" - "github.com/karlsen-network/karlsend/domain/consensus/datastructures/blockstatusstore" - "github.com/karlsen-network/karlsend/domain/consensus/datastructures/blockstore" - "github.com/karlsen-network/karlsend/domain/consensus/datastructures/consensusstatestore" - "github.com/karlsen-network/karlsend/domain/consensus/datastructures/daablocksstore" - "github.com/karlsen-network/karlsend/domain/consensus/datastructures/finalitystore" - "github.com/karlsen-network/karlsend/domain/consensus/datastructures/ghostdagdatastore" - "github.com/karlsen-network/karlsend/domain/consensus/datastructures/headersselectedchainstore" - "github.com/karlsen-network/karlsend/domain/consensus/datastructures/headersselectedtipstore" - "github.com/karlsen-network/karlsend/domain/consensus/datastructures/multisetstore" - "github.com/karlsen-network/karlsend/domain/consensus/datastructures/pruningstore" - "github.com/karlsen-network/karlsend/domain/consensus/datastructures/reachabilitydatastore" - "github.com/karlsen-network/karlsend/domain/consensus/datastructures/utxodiffstore" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/model/testapi" - "github.com/karlsen-network/karlsend/domain/consensus/processes/blockbuilder" - "github.com/karlsen-network/karlsend/domain/consensus/processes/blockprocessor" - "github.com/karlsen-network/karlsend/domain/consensus/processes/blockvalidator" - "github.com/karlsen-network/karlsend/domain/consensus/processes/coinbasemanager" - "github.com/karlsen-network/karlsend/domain/consensus/processes/consensusstatemanager" - "github.com/karlsen-network/karlsend/domain/consensus/processes/dagtopologymanager" - "github.com/karlsen-network/karlsend/domain/consensus/processes/dagtraversalmanager" - "github.com/karlsen-network/karlsend/domain/consensus/processes/difficultymanager" - "github.com/karlsen-network/karlsend/domain/consensus/processes/finalitymanager" - "github.com/karlsen-network/karlsend/domain/consensus/processes/ghostdagmanager" - "github.com/karlsen-network/karlsend/domain/consensus/processes/headersselectedtipmanager" - "github.com/karlsen-network/karlsend/domain/consensus/processes/mergedepthmanager" - "github.com/karlsen-network/karlsend/domain/consensus/processes/pastmediantimemanager" - "github.com/karlsen-network/karlsend/domain/consensus/processes/pruningmanager" - "github.com/karlsen-network/karlsend/domain/consensus/processes/reachabilitymanager" - "github.com/karlsen-network/karlsend/domain/consensus/processes/syncmanager" - "github.com/karlsen-network/karlsend/domain/consensus/processes/transactionvalidator" - "github.com/karlsen-network/karlsend/domain/dagconfig" - infrastructuredatabase "github.com/karlsen-network/karlsend/infrastructure/db/database" - "github.com/karlsen-network/karlsend/infrastructure/db/database/ldb" + "github.com/karlsen-network/karlsend/v2/domain/prefixmanager/prefix" + "github.com/karlsen-network/karlsend/v2/util/txmass" + + consensusdatabase "github.com/karlsen-network/karlsend/v2/domain/consensus/database" + "github.com/karlsen-network/karlsend/v2/domain/consensus/datastructures/acceptancedatastore" + "github.com/karlsen-network/karlsend/v2/domain/consensus/datastructures/blockheaderstore" + "github.com/karlsen-network/karlsend/v2/domain/consensus/datastructures/blockrelationstore" + "github.com/karlsen-network/karlsend/v2/domain/consensus/datastructures/blockstatusstore" + "github.com/karlsen-network/karlsend/v2/domain/consensus/datastructures/blockstore" + "github.com/karlsen-network/karlsend/v2/domain/consensus/datastructures/consensusstatestore" + "github.com/karlsen-network/karlsend/v2/domain/consensus/datastructures/daablocksstore" + "github.com/karlsen-network/karlsend/v2/domain/consensus/datastructures/finalitystore" + "github.com/karlsen-network/karlsend/v2/domain/consensus/datastructures/ghostdagdatastore" + "github.com/karlsen-network/karlsend/v2/domain/consensus/datastructures/headersselectedchainstore" + "github.com/karlsen-network/karlsend/v2/domain/consensus/datastructures/headersselectedtipstore" + "github.com/karlsen-network/karlsend/v2/domain/consensus/datastructures/multisetstore" + "github.com/karlsen-network/karlsend/v2/domain/consensus/datastructures/pruningstore" + "github.com/karlsen-network/karlsend/v2/domain/consensus/datastructures/reachabilitydatastore" + "github.com/karlsen-network/karlsend/v2/domain/consensus/datastructures/utxodiffstore" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/testapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/processes/blockbuilder" + "github.com/karlsen-network/karlsend/v2/domain/consensus/processes/blockprocessor" + "github.com/karlsen-network/karlsend/v2/domain/consensus/processes/blockvalidator" + "github.com/karlsen-network/karlsend/v2/domain/consensus/processes/coinbasemanager" + "github.com/karlsen-network/karlsend/v2/domain/consensus/processes/consensusstatemanager" + "github.com/karlsen-network/karlsend/v2/domain/consensus/processes/dagtopologymanager" + "github.com/karlsen-network/karlsend/v2/domain/consensus/processes/dagtraversalmanager" + "github.com/karlsen-network/karlsend/v2/domain/consensus/processes/difficultymanager" + "github.com/karlsen-network/karlsend/v2/domain/consensus/processes/finalitymanager" + "github.com/karlsen-network/karlsend/v2/domain/consensus/processes/ghostdagmanager" + "github.com/karlsen-network/karlsend/v2/domain/consensus/processes/headersselectedtipmanager" + "github.com/karlsen-network/karlsend/v2/domain/consensus/processes/mergedepthmanager" + "github.com/karlsen-network/karlsend/v2/domain/consensus/processes/pastmediantimemanager" + "github.com/karlsen-network/karlsend/v2/domain/consensus/processes/pruningmanager" + "github.com/karlsen-network/karlsend/v2/domain/consensus/processes/reachabilitymanager" + "github.com/karlsen-network/karlsend/v2/domain/consensus/processes/syncmanager" + "github.com/karlsen-network/karlsend/v2/domain/consensus/processes/transactionvalidator" + "github.com/karlsen-network/karlsend/v2/domain/dagconfig" + infrastructuredatabase "github.com/karlsen-network/karlsend/v2/infrastructure/db/database" + "github.com/karlsen-network/karlsend/v2/infrastructure/db/database/ldb" ) const ( diff --git a/domain/consensus/factory_test.go b/domain/consensus/factory_test.go index b912649f41..9f2328affd 100644 --- a/domain/consensus/factory_test.go +++ b/domain/consensus/factory_test.go @@ -4,10 +4,10 @@ import ( "io/ioutil" "testing" - "github.com/karlsen-network/karlsend/domain/prefixmanager/prefix" + "github.com/karlsen-network/karlsend/v2/domain/prefixmanager/prefix" - "github.com/karlsen-network/karlsend/domain/dagconfig" - "github.com/karlsen-network/karlsend/infrastructure/db/database/ldb" + "github.com/karlsen-network/karlsend/v2/domain/dagconfig" + "github.com/karlsen-network/karlsend/v2/infrastructure/db/database/ldb" ) func TestNewConsensus(t *testing.T) { diff --git a/domain/consensus/finality_test.go b/domain/consensus/finality_test.go index ce2718bab1..73bc6081f5 100644 --- a/domain/consensus/finality_test.go +++ b/domain/consensus/finality_test.go @@ -6,13 +6,13 @@ import ( "math/rand" "testing" - "github.com/karlsen-network/karlsend/domain/consensus" - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/model/testapi" - "github.com/karlsen-network/karlsend/domain/consensus/ruleerrors" - "github.com/karlsen-network/karlsend/domain/consensus/utils/consensushashing" - "github.com/karlsen-network/karlsend/domain/consensus/utils/testutils" + "github.com/karlsen-network/karlsend/v2/domain/consensus" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/testapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/ruleerrors" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/consensushashing" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/testutils" "github.com/pkg/errors" ) diff --git a/domain/consensus/log.go b/domain/consensus/log.go index 370ab17381..bb6c835c12 100644 --- a/domain/consensus/log.go +++ b/domain/consensus/log.go @@ -1,8 +1,8 @@ package consensus import ( - "github.com/karlsen-network/karlsend/infrastructure/logger" - "github.com/karlsen-network/karlsend/util/panics" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/util/panics" ) var log = logger.RegisterSubSystem("BDAG") diff --git a/domain/consensus/model/acceptancedata_equal_clone_test.go b/domain/consensus/model/acceptancedata_equal_clone_test.go index 32a998bc0b..ee9012dbff 100644 --- a/domain/consensus/model/acceptancedata_equal_clone_test.go +++ b/domain/consensus/model/acceptancedata_equal_clone_test.go @@ -4,8 +4,8 @@ import ( "reflect" "testing" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/utxo" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/utxo" ) func initTestTransactionAcceptanceDataForClone() []*externalapi.TransactionAcceptanceData { diff --git a/domain/consensus/model/block_heap.go b/domain/consensus/model/block_heap.go index 00900eb0f6..fc8998f49b 100644 --- a/domain/consensus/model/block_heap.go +++ b/domain/consensus/model/block_heap.go @@ -1,6 +1,6 @@ package model -import "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" +import "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" // BlockHeap represents a heap of block hashes, providing a priority-queue functionality type BlockHeap interface { diff --git a/domain/consensus/model/blockiterator.go b/domain/consensus/model/blockiterator.go index 107e92a280..9cc0086884 100644 --- a/domain/consensus/model/blockiterator.go +++ b/domain/consensus/model/blockiterator.go @@ -1,6 +1,6 @@ package model -import "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" +import "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" // BlockIterator is an iterator over blocks according to some order. type BlockIterator interface { diff --git a/domain/consensus/model/blockrelations.go b/domain/consensus/model/blockrelations.go index e25a58ce21..477c62cf0d 100644 --- a/domain/consensus/model/blockrelations.go +++ b/domain/consensus/model/blockrelations.go @@ -1,6 +1,6 @@ package model -import "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" +import "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" // BlockRelations represents a block's parent/child relations type BlockRelations struct { diff --git a/domain/consensus/model/blockrelations_equal_clone_test.go b/domain/consensus/model/blockrelations_equal_clone_test.go index d35acba2f5..47570b1c2c 100644 --- a/domain/consensus/model/blockrelations_equal_clone_test.go +++ b/domain/consensus/model/blockrelations_equal_clone_test.go @@ -4,7 +4,7 @@ import ( "reflect" "testing" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" ) func initTestBlockRelationsForClone() []*BlockRelations { diff --git a/domain/consensus/model/externalapi/block_equal_clone_test.go b/domain/consensus/model/externalapi/block_equal_clone_test.go index 6dcaf12861..547696eeb5 100644 --- a/domain/consensus/model/externalapi/block_equal_clone_test.go +++ b/domain/consensus/model/externalapi/block_equal_clone_test.go @@ -5,8 +5,8 @@ import ( "reflect" "testing" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/blockheader" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/blockheader" ) type blockToCompare struct { diff --git a/domain/consensus/model/externalapi/transaction_equal_clone_test.go b/domain/consensus/model/externalapi/transaction_equal_clone_test.go index 901d3b0502..9eff60964a 100644 --- a/domain/consensus/model/externalapi/transaction_equal_clone_test.go +++ b/domain/consensus/model/externalapi/transaction_equal_clone_test.go @@ -4,8 +4,8 @@ import ( "reflect" "testing" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/utxo" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/utxo" ) // Changed fields of a test struct compared to a base test struct marked as "changed" and diff --git a/domain/consensus/model/interface_datastructures_acceptancedatastore.go b/domain/consensus/model/interface_datastructures_acceptancedatastore.go index 60c8ae505e..e24a91cd81 100644 --- a/domain/consensus/model/interface_datastructures_acceptancedatastore.go +++ b/domain/consensus/model/interface_datastructures_acceptancedatastore.go @@ -1,6 +1,6 @@ package model -import "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" +import "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" // AcceptanceDataStore represents a store of AcceptanceData type AcceptanceDataStore interface { diff --git a/domain/consensus/model/interface_datastructures_blockheaderstore.go b/domain/consensus/model/interface_datastructures_blockheaderstore.go index 70f6a8ce2c..d2b9fbd974 100644 --- a/domain/consensus/model/interface_datastructures_blockheaderstore.go +++ b/domain/consensus/model/interface_datastructures_blockheaderstore.go @@ -1,6 +1,6 @@ package model -import "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" +import "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" // BlockHeaderStore represents a store of block headers type BlockHeaderStore interface { diff --git a/domain/consensus/model/interface_datastructures_blockrelationstore.go b/domain/consensus/model/interface_datastructures_blockrelationstore.go index 165e463273..80d7d8340f 100644 --- a/domain/consensus/model/interface_datastructures_blockrelationstore.go +++ b/domain/consensus/model/interface_datastructures_blockrelationstore.go @@ -1,6 +1,6 @@ package model -import "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" +import "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" // BlockRelationStore represents a store of BlockRelations type BlockRelationStore interface { diff --git a/domain/consensus/model/interface_datastructures_blocks_with_trusted_data_daa_window_store.go b/domain/consensus/model/interface_datastructures_blocks_with_trusted_data_daa_window_store.go index 14d583d198..4add4e82f6 100644 --- a/domain/consensus/model/interface_datastructures_blocks_with_trusted_data_daa_window_store.go +++ b/domain/consensus/model/interface_datastructures_blocks_with_trusted_data_daa_window_store.go @@ -1,7 +1,7 @@ package model import ( - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" ) // BlocksWithTrustedDataDAAWindowStore stores the DAA window of blocks with trusted data diff --git a/domain/consensus/model/interface_datastructures_blockstatusstore.go b/domain/consensus/model/interface_datastructures_blockstatusstore.go index 60db3d9ae1..bf7b65ea85 100644 --- a/domain/consensus/model/interface_datastructures_blockstatusstore.go +++ b/domain/consensus/model/interface_datastructures_blockstatusstore.go @@ -1,6 +1,6 @@ package model -import "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" +import "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" // BlockStatusStore represents a store of BlockStatuses type BlockStatusStore interface { diff --git a/domain/consensus/model/interface_datastructures_blockstore.go b/domain/consensus/model/interface_datastructures_blockstore.go index 3cbb85c932..41dd74ebf9 100644 --- a/domain/consensus/model/interface_datastructures_blockstore.go +++ b/domain/consensus/model/interface_datastructures_blockstore.go @@ -1,6 +1,6 @@ package model -import "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" +import "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" // BlockStore represents a store of blocks type BlockStore interface { diff --git a/domain/consensus/model/interface_datastructures_consensusstatestore.go b/domain/consensus/model/interface_datastructures_consensusstatestore.go index b8722b6438..9b7e47cbea 100644 --- a/domain/consensus/model/interface_datastructures_consensusstatestore.go +++ b/domain/consensus/model/interface_datastructures_consensusstatestore.go @@ -1,6 +1,6 @@ package model -import "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" +import "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" // ConsensusStateStore represents a store for the current consensus state type ConsensusStateStore interface { diff --git a/domain/consensus/model/interface_datastructures_daablocksstore.go b/domain/consensus/model/interface_datastructures_daablocksstore.go index 73cf860aee..880deb3917 100644 --- a/domain/consensus/model/interface_datastructures_daablocksstore.go +++ b/domain/consensus/model/interface_datastructures_daablocksstore.go @@ -1,6 +1,6 @@ package model -import "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" +import "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" // DAABlocksStore represents a store of ??? type DAABlocksStore interface { diff --git a/domain/consensus/model/interface_datastructures_finalitystore.go b/domain/consensus/model/interface_datastructures_finalitystore.go index a308bb8645..7567436db6 100644 --- a/domain/consensus/model/interface_datastructures_finalitystore.go +++ b/domain/consensus/model/interface_datastructures_finalitystore.go @@ -1,7 +1,7 @@ package model import ( - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" ) // FinalityStore represents a store for finality data diff --git a/domain/consensus/model/interface_datastructures_ghostdagdatastore.go b/domain/consensus/model/interface_datastructures_ghostdagdatastore.go index e31465f824..d8709f8a5d 100644 --- a/domain/consensus/model/interface_datastructures_ghostdagdatastore.go +++ b/domain/consensus/model/interface_datastructures_ghostdagdatastore.go @@ -1,6 +1,6 @@ package model -import "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" +import "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" // GHOSTDAGDataStore represents a store of BlockGHOSTDAGData type GHOSTDAGDataStore interface { diff --git a/domain/consensus/model/interface_datastructures_headersselectedchainstore.go b/domain/consensus/model/interface_datastructures_headersselectedchainstore.go index 04f86469bc..117b30cac5 100644 --- a/domain/consensus/model/interface_datastructures_headersselectedchainstore.go +++ b/domain/consensus/model/interface_datastructures_headersselectedchainstore.go @@ -1,6 +1,6 @@ package model -import "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" +import "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" // HeadersSelectedChainStore represents a store of the headers selected chain type HeadersSelectedChainStore interface { diff --git a/domain/consensus/model/interface_datastructures_headertipsstore.go b/domain/consensus/model/interface_datastructures_headertipsstore.go index cb95d56cda..1cbd2b10fc 100644 --- a/domain/consensus/model/interface_datastructures_headertipsstore.go +++ b/domain/consensus/model/interface_datastructures_headertipsstore.go @@ -1,6 +1,6 @@ package model -import "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" +import "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" // HeaderSelectedTipStore represents a store of the headers selected tip type HeaderSelectedTipStore interface { diff --git a/domain/consensus/model/interface_datastructures_mergedepthrootstore.go b/domain/consensus/model/interface_datastructures_mergedepthrootstore.go index 874f79e41a..1cfa3d15b8 100644 --- a/domain/consensus/model/interface_datastructures_mergedepthrootstore.go +++ b/domain/consensus/model/interface_datastructures_mergedepthrootstore.go @@ -1,7 +1,7 @@ package model import ( - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" ) // MergeDepthRootStore represents a store for merge depth roots diff --git a/domain/consensus/model/interface_datastructures_multisetstore.go b/domain/consensus/model/interface_datastructures_multisetstore.go index 0f914a0546..569d98e12d 100644 --- a/domain/consensus/model/interface_datastructures_multisetstore.go +++ b/domain/consensus/model/interface_datastructures_multisetstore.go @@ -1,6 +1,6 @@ package model -import "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" +import "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" // MultisetStore represents a store of Multisets type MultisetStore interface { diff --git a/domain/consensus/model/interface_datastructures_pruningstore.go b/domain/consensus/model/interface_datastructures_pruningstore.go index d44c91d70b..34fd4ae01b 100644 --- a/domain/consensus/model/interface_datastructures_pruningstore.go +++ b/domain/consensus/model/interface_datastructures_pruningstore.go @@ -1,6 +1,6 @@ package model -import "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" +import "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" // PruningStore represents a store for the current pruning state type PruningStore interface { diff --git a/domain/consensus/model/interface_datastructures_reachabilitydatastore.go b/domain/consensus/model/interface_datastructures_reachabilitydatastore.go index b8a9d0cdd4..fc2b6619e0 100644 --- a/domain/consensus/model/interface_datastructures_reachabilitydatastore.go +++ b/domain/consensus/model/interface_datastructures_reachabilitydatastore.go @@ -1,6 +1,6 @@ package model -import "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" +import "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" // ReachabilityDataStore represents a store of ReachabilityData type ReachabilityDataStore interface { diff --git a/domain/consensus/model/interface_datastructures_utxodiffstore.go b/domain/consensus/model/interface_datastructures_utxodiffstore.go index cc941323de..a7ddb0b573 100644 --- a/domain/consensus/model/interface_datastructures_utxodiffstore.go +++ b/domain/consensus/model/interface_datastructures_utxodiffstore.go @@ -1,6 +1,6 @@ package model -import "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" +import "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" // UTXODiffStore represents a store of UTXODiffs type UTXODiffStore interface { diff --git a/domain/consensus/model/interface_datastructures_windowheapstore.go b/domain/consensus/model/interface_datastructures_windowheapstore.go index bd59b9bc0a..b5946f67c2 100644 --- a/domain/consensus/model/interface_datastructures_windowheapstore.go +++ b/domain/consensus/model/interface_datastructures_windowheapstore.go @@ -1,6 +1,6 @@ package model -import "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" +import "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" // WindowHeapSliceStore caches the slices that are needed for the heap implementation of DAGTraversalManager.BlockWindow type WindowHeapSliceStore interface { diff --git a/domain/consensus/model/interface_processes_blockbuilder.go b/domain/consensus/model/interface_processes_blockbuilder.go index 07a94d0f87..a9578940d2 100644 --- a/domain/consensus/model/interface_processes_blockbuilder.go +++ b/domain/consensus/model/interface_processes_blockbuilder.go @@ -1,6 +1,6 @@ package model -import "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" +import "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" // BlockBuilder is responsible for creating blocks from the current state type BlockBuilder interface { diff --git a/domain/consensus/model/interface_processes_blockparentbuilder.go b/domain/consensus/model/interface_processes_blockparentbuilder.go index 092b84129f..b3b2a72e2c 100644 --- a/domain/consensus/model/interface_processes_blockparentbuilder.go +++ b/domain/consensus/model/interface_processes_blockparentbuilder.go @@ -1,6 +1,6 @@ package model -import "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" +import "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" // BlockParentBuilder exposes a method to build super-block parents for // a given set of direct parents diff --git a/domain/consensus/model/interface_processes_blockprocessor.go b/domain/consensus/model/interface_processes_blockprocessor.go index 9796555cb5..069a64d52a 100644 --- a/domain/consensus/model/interface_processes_blockprocessor.go +++ b/domain/consensus/model/interface_processes_blockprocessor.go @@ -1,6 +1,6 @@ package model -import "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" +import "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" // BlockProcessor is responsible for processing incoming blocks type BlockProcessor interface { diff --git a/domain/consensus/model/interface_processes_blockvalidator.go b/domain/consensus/model/interface_processes_blockvalidator.go index 1576781389..7f8150963d 100644 --- a/domain/consensus/model/interface_processes_blockvalidator.go +++ b/domain/consensus/model/interface_processes_blockvalidator.go @@ -1,7 +1,7 @@ package model import ( - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" ) // BlockValidator exposes a set of validation classes, after which diff --git a/domain/consensus/model/interface_processes_coinbasemanager.go b/domain/consensus/model/interface_processes_coinbasemanager.go index d1fdaac0b3..ee29a7a3d3 100644 --- a/domain/consensus/model/interface_processes_coinbasemanager.go +++ b/domain/consensus/model/interface_processes_coinbasemanager.go @@ -1,6 +1,6 @@ package model -import "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" +import "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" // CoinbaseManager exposes methods for handling blocks' // coinbase transactions diff --git a/domain/consensus/model/interface_processes_consensusstatemanager.go b/domain/consensus/model/interface_processes_consensusstatemanager.go index c88a52075f..00816a9f02 100644 --- a/domain/consensus/model/interface_processes_consensusstatemanager.go +++ b/domain/consensus/model/interface_processes_consensusstatemanager.go @@ -1,6 +1,6 @@ package model -import "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" +import "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" // ConsensusStateManager manages the node's consensus state type ConsensusStateManager interface { diff --git a/domain/consensus/model/interface_processes_dagtopologymanager.go b/domain/consensus/model/interface_processes_dagtopologymanager.go index c305c10cf8..cae6014fb0 100644 --- a/domain/consensus/model/interface_processes_dagtopologymanager.go +++ b/domain/consensus/model/interface_processes_dagtopologymanager.go @@ -1,6 +1,6 @@ package model -import "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" +import "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" // DAGTopologyManager exposes methods for querying relationships // between blocks in the DAG diff --git a/domain/consensus/model/interface_processes_dagtraversalmanager.go b/domain/consensus/model/interface_processes_dagtraversalmanager.go index 92670de8ea..6ddae587a4 100644 --- a/domain/consensus/model/interface_processes_dagtraversalmanager.go +++ b/domain/consensus/model/interface_processes_dagtraversalmanager.go @@ -1,6 +1,6 @@ package model -import "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" +import "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" // DAGTraversalManager exposes methods for traversing blocks // in the DAG diff --git a/domain/consensus/model/interface_processes_difficultymanager.go b/domain/consensus/model/interface_processes_difficultymanager.go index f710c03128..c810a63772 100644 --- a/domain/consensus/model/interface_processes_difficultymanager.go +++ b/domain/consensus/model/interface_processes_difficultymanager.go @@ -1,7 +1,7 @@ package model import ( - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" ) // DifficultyManager provides a method to resolve the diff --git a/domain/consensus/model/interface_processes_finalitymanager.go b/domain/consensus/model/interface_processes_finalitymanager.go index 990d1066fb..22f86867a6 100644 --- a/domain/consensus/model/interface_processes_finalitymanager.go +++ b/domain/consensus/model/interface_processes_finalitymanager.go @@ -1,6 +1,6 @@ package model -import "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" +import "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" // FinalityManager provides method to validate that a block does not violate finality type FinalityManager interface { diff --git a/domain/consensus/model/interface_processes_ghostdagmanager.go b/domain/consensus/model/interface_processes_ghostdagmanager.go index 9819d8d3af..227e7a1020 100644 --- a/domain/consensus/model/interface_processes_ghostdagmanager.go +++ b/domain/consensus/model/interface_processes_ghostdagmanager.go @@ -1,6 +1,6 @@ package model -import "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" +import "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" // GHOSTDAGManager resolves and manages GHOSTDAG block data type GHOSTDAGManager interface { diff --git a/domain/consensus/model/interface_processes_headertipsmanager.go b/domain/consensus/model/interface_processes_headertipsmanager.go index 1b78bcf043..55df251f13 100644 --- a/domain/consensus/model/interface_processes_headertipsmanager.go +++ b/domain/consensus/model/interface_processes_headertipsmanager.go @@ -1,6 +1,6 @@ package model -import "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" +import "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" // HeadersSelectedTipManager manages the state of the headers selected tip type HeadersSelectedTipManager interface { diff --git a/domain/consensus/model/interface_processes_mergedepthmanager.go b/domain/consensus/model/interface_processes_mergedepthmanager.go index cb69569c47..8028bcc60c 100644 --- a/domain/consensus/model/interface_processes_mergedepthmanager.go +++ b/domain/consensus/model/interface_processes_mergedepthmanager.go @@ -1,6 +1,6 @@ package model -import "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" +import "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" // MergeDepthManager is used to validate mergeDepth for blocks type MergeDepthManager interface { diff --git a/domain/consensus/model/interface_processes_parentsmanager.go b/domain/consensus/model/interface_processes_parentsmanager.go index 79ff24632b..0d0731d46d 100644 --- a/domain/consensus/model/interface_processes_parentsmanager.go +++ b/domain/consensus/model/interface_processes_parentsmanager.go @@ -1,6 +1,6 @@ package model -import "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" +import "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" // ParentsManager lets is a wrapper above header parents that replaces empty parents with genesis when needed. type ParentsManager interface { diff --git a/domain/consensus/model/interface_processes_pastmediantimemanager.go b/domain/consensus/model/interface_processes_pastmediantimemanager.go index 89317bd4ba..49a4c2925a 100644 --- a/domain/consensus/model/interface_processes_pastmediantimemanager.go +++ b/domain/consensus/model/interface_processes_pastmediantimemanager.go @@ -1,6 +1,6 @@ package model -import "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" +import "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" // PastMedianTimeManager provides a method to resolve the // past median time of a block diff --git a/domain/consensus/model/interface_processes_pruningmanager.go b/domain/consensus/model/interface_processes_pruningmanager.go index c30b85af7e..fe5952e91e 100644 --- a/domain/consensus/model/interface_processes_pruningmanager.go +++ b/domain/consensus/model/interface_processes_pruningmanager.go @@ -1,6 +1,6 @@ package model -import "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" +import "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" // PruningManager resolves and manages the current pruning point type PruningManager interface { diff --git a/domain/consensus/model/interface_processes_pruningproofmanager.go b/domain/consensus/model/interface_processes_pruningproofmanager.go index faf0b0afb6..5c051fd978 100644 --- a/domain/consensus/model/interface_processes_pruningproofmanager.go +++ b/domain/consensus/model/interface_processes_pruningproofmanager.go @@ -1,6 +1,6 @@ package model -import "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" +import "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" // PruningProofManager builds, validates and applies pruning proofs. type PruningProofManager interface { diff --git a/domain/consensus/model/interface_processes_reachabilitytree.go b/domain/consensus/model/interface_processes_reachabilitytree.go index 74d050dd18..14261c4e3a 100644 --- a/domain/consensus/model/interface_processes_reachabilitytree.go +++ b/domain/consensus/model/interface_processes_reachabilitytree.go @@ -1,6 +1,6 @@ package model -import "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" +import "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" // ReachabilityManager maintains a structure that allows to answer // reachability queries in sub-linear time diff --git a/domain/consensus/model/interface_processes_syncmanager.go b/domain/consensus/model/interface_processes_syncmanager.go index 64b063c248..d08a5a8928 100644 --- a/domain/consensus/model/interface_processes_syncmanager.go +++ b/domain/consensus/model/interface_processes_syncmanager.go @@ -1,6 +1,6 @@ package model -import "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" +import "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" // SyncManager exposes functions to support sync between karlsend nodes type SyncManager interface { diff --git a/domain/consensus/model/interface_processes_transactionvalidator.go b/domain/consensus/model/interface_processes_transactionvalidator.go index 07256e48ab..41c2a56980 100644 --- a/domain/consensus/model/interface_processes_transactionvalidator.go +++ b/domain/consensus/model/interface_processes_transactionvalidator.go @@ -1,7 +1,7 @@ package model import ( - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" ) // TransactionValidator exposes a set of validation classes, after which diff --git a/domain/consensus/model/multiset.go b/domain/consensus/model/multiset.go index eb44f8980b..38e168764d 100644 --- a/domain/consensus/model/multiset.go +++ b/domain/consensus/model/multiset.go @@ -1,6 +1,6 @@ package model -import "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" +import "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" // Multiset represents a secp256k1 multiset type Multiset interface { diff --git a/domain/consensus/model/reachabilitydata.go b/domain/consensus/model/reachabilitydata.go index dbae05fd56..5998b6f3a9 100644 --- a/domain/consensus/model/reachabilitydata.go +++ b/domain/consensus/model/reachabilitydata.go @@ -3,7 +3,7 @@ package model import ( "fmt" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" ) // MutableReachabilityData represents a node in the reachability tree diff --git a/domain/consensus/model/subdag.go b/domain/consensus/model/subdag.go index 951136b0d4..ae7da22ec1 100644 --- a/domain/consensus/model/subdag.go +++ b/domain/consensus/model/subdag.go @@ -1,6 +1,6 @@ package model -import "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" +import "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" // SubDAG represents a context-free representation of a partial DAG type SubDAG struct { diff --git a/domain/consensus/model/testapi/test_block_builder.go b/domain/consensus/model/testapi/test_block_builder.go index 05ebf46368..d59e8fbca8 100644 --- a/domain/consensus/model/testapi/test_block_builder.go +++ b/domain/consensus/model/testapi/test_block_builder.go @@ -1,8 +1,8 @@ package testapi import ( - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" ) // TestBlockBuilder adds to the main BlockBuilder methods required by tests diff --git a/domain/consensus/model/testapi/test_consensus.go b/domain/consensus/model/testapi/test_consensus.go index 596b790470..382cc53d83 100644 --- a/domain/consensus/model/testapi/test_consensus.go +++ b/domain/consensus/model/testapi/test_consensus.go @@ -3,10 +3,10 @@ package testapi import ( "io" - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/dagconfig" - "github.com/karlsen-network/karlsend/infrastructure/db/database" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/dagconfig" + "github.com/karlsen-network/karlsend/v2/infrastructure/db/database" ) // MineJSONBlockType indicates which type of blocks MineJSON mines diff --git a/domain/consensus/model/testapi/test_consensus_state_manager.go b/domain/consensus/model/testapi/test_consensus_state_manager.go index f50116efe3..39c74f6cdd 100644 --- a/domain/consensus/model/testapi/test_consensus_state_manager.go +++ b/domain/consensus/model/testapi/test_consensus_state_manager.go @@ -1,8 +1,8 @@ package testapi import ( - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" ) // TestConsensusStateManager adds to the main ConsensusStateManager methods required by tests diff --git a/domain/consensus/model/testapi/test_reachability_manager.go b/domain/consensus/model/testapi/test_reachability_manager.go index 121e873b9f..23b7f09459 100644 --- a/domain/consensus/model/testapi/test_reachability_manager.go +++ b/domain/consensus/model/testapi/test_reachability_manager.go @@ -1,8 +1,8 @@ package testapi import ( - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" ) // TestReachabilityManager adds to the main ReachabilityManager methods required by tests diff --git a/domain/consensus/model/testapi/test_transaction_validator.go b/domain/consensus/model/testapi/test_transaction_validator.go index dfa0f1318e..d56965e642 100644 --- a/domain/consensus/model/testapi/test_transaction_validator.go +++ b/domain/consensus/model/testapi/test_transaction_validator.go @@ -1,8 +1,8 @@ package testapi import ( - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/utils/txscript" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/txscript" ) // TestTransactionValidator adds to the main TransactionValidator methods required by tests diff --git a/domain/consensus/model/utxo_diff_reversal_data.go b/domain/consensus/model/utxo_diff_reversal_data.go index 26696c0f91..5152e8023a 100644 --- a/domain/consensus/model/utxo_diff_reversal_data.go +++ b/domain/consensus/model/utxo_diff_reversal_data.go @@ -1,6 +1,6 @@ package model -import "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" +import "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" // UTXODiffReversalData is used by ConsensusStateManager to reverse the UTXODiffs during a re-org type UTXODiffReversalData struct { diff --git a/domain/consensus/model/virtual.go b/domain/consensus/model/virtual.go index 7f6c43a77b..cec4cfde21 100644 --- a/domain/consensus/model/virtual.go +++ b/domain/consensus/model/virtual.go @@ -1,6 +1,6 @@ package model -import "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" +import "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" // VirtualBlockHash is a marker hash for the virtual block var VirtualBlockHash = externalapi.NewDomainHashFromByteArray(&[externalapi.DomainHashSize]byte{ diff --git a/domain/consensus/processes/blockbuilder/block_builder.go b/domain/consensus/processes/blockbuilder/block_builder.go index c3c8da688b..25d1f4e5f1 100644 --- a/domain/consensus/processes/blockbuilder/block_builder.go +++ b/domain/consensus/processes/blockbuilder/block_builder.go @@ -4,17 +4,17 @@ import ( "math/big" "sort" - "github.com/karlsen-network/karlsend/domain/consensus/ruleerrors" - "github.com/karlsen-network/karlsend/domain/consensus/utils/blockheader" + "github.com/karlsen-network/karlsend/v2/domain/consensus/ruleerrors" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/blockheader" "github.com/pkg/errors" - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/consensushashing" - "github.com/karlsen-network/karlsend/domain/consensus/utils/constants" - "github.com/karlsen-network/karlsend/domain/consensus/utils/merkle" - "github.com/karlsen-network/karlsend/infrastructure/logger" - "github.com/karlsen-network/karlsend/util/mstime" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/consensushashing" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/constants" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/merkle" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/util/mstime" ) type blockBuilder struct { diff --git a/domain/consensus/processes/blockbuilder/block_builder_test.go b/domain/consensus/processes/blockbuilder/block_builder_test.go index 3406d457a8..9d6f1102f8 100644 --- a/domain/consensus/processes/blockbuilder/block_builder_test.go +++ b/domain/consensus/processes/blockbuilder/block_builder_test.go @@ -5,12 +5,12 @@ import ( "github.com/pkg/errors" - "github.com/karlsen-network/karlsend/domain/consensus" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/ruleerrors" - "github.com/karlsen-network/karlsend/domain/consensus/utils/constants" - "github.com/karlsen-network/karlsend/domain/consensus/utils/subnetworks" - "github.com/karlsen-network/karlsend/domain/consensus/utils/testutils" + "github.com/karlsen-network/karlsend/v2/domain/consensus" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/ruleerrors" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/constants" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/subnetworks" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/testutils" ) func TestBuildBlockErrorCases(t *testing.T) { diff --git a/domain/consensus/processes/blockbuilder/log.go b/domain/consensus/processes/blockbuilder/log.go index a60079c1b4..021ee165b3 100644 --- a/domain/consensus/processes/blockbuilder/log.go +++ b/domain/consensus/processes/blockbuilder/log.go @@ -1,7 +1,7 @@ package blockbuilder import ( - "github.com/karlsen-network/karlsend/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" ) var log = logger.RegisterSubSystem("BDAG") diff --git a/domain/consensus/processes/blockbuilder/test_block_builder.go b/domain/consensus/processes/blockbuilder/test_block_builder.go index 51cb5167ad..7456ffefed 100644 --- a/domain/consensus/processes/blockbuilder/test_block_builder.go +++ b/domain/consensus/processes/blockbuilder/test_block_builder.go @@ -5,14 +5,14 @@ import ( "math/big" "sort" - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/model/testapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/blockheader" - "github.com/karlsen-network/karlsend/domain/consensus/utils/constants" - "github.com/karlsen-network/karlsend/domain/consensus/utils/transactionhelper" - "github.com/karlsen-network/karlsend/domain/consensus/utils/txscript" - "github.com/karlsen-network/karlsend/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/testapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/blockheader" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/constants" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/transactionhelper" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/txscript" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" "github.com/pkg/errors" ) diff --git a/domain/consensus/processes/blockparentbuilder/blockparentbuilder.go b/domain/consensus/processes/blockparentbuilder/blockparentbuilder.go index 1321324ce3..15d47b0a5b 100644 --- a/domain/consensus/processes/blockparentbuilder/blockparentbuilder.go +++ b/domain/consensus/processes/blockparentbuilder/blockparentbuilder.go @@ -1,10 +1,10 @@ package blockparentbuilder import ( - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/consensushashing" - "github.com/karlsen-network/karlsend/domain/consensus/utils/hashset" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/consensushashing" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/hashset" "github.com/pkg/errors" ) diff --git a/domain/consensus/processes/blockprocessor/blocklogger/blocklogger.go b/domain/consensus/processes/blockprocessor/blocklogger/blocklogger.go index 0a34795d87..c725a3d5b5 100644 --- a/domain/consensus/processes/blockprocessor/blocklogger/blocklogger.go +++ b/domain/consensus/processes/blockprocessor/blocklogger/blocklogger.go @@ -7,8 +7,8 @@ package blocklogger import ( "time" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/util/mstime" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/util/mstime" ) // BlockLogger is a type tracking the amount of blocks/headers/transactions to log the time it took to receive them diff --git a/domain/consensus/processes/blockprocessor/blocklogger/log.go b/domain/consensus/processes/blockprocessor/blocklogger/log.go index 997b0b9713..0ab18907fc 100644 --- a/domain/consensus/processes/blockprocessor/blocklogger/log.go +++ b/domain/consensus/processes/blockprocessor/blocklogger/log.go @@ -5,7 +5,7 @@ package blocklogger import ( - "github.com/karlsen-network/karlsend/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" ) var log = logger.RegisterSubSystem("BDAG") diff --git a/domain/consensus/processes/blockprocessor/blockprocessor.go b/domain/consensus/processes/blockprocessor/blockprocessor.go index f67387c2df..ccb7951041 100644 --- a/domain/consensus/processes/blockprocessor/blockprocessor.go +++ b/domain/consensus/processes/blockprocessor/blockprocessor.go @@ -3,10 +3,10 @@ package blockprocessor import ( "time" - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/processes/blockprocessor/blocklogger" - "github.com/karlsen-network/karlsend/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/processes/blockprocessor/blocklogger" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" ) // blockProcessor is responsible for processing incoming blocks diff --git a/domain/consensus/processes/blockprocessor/log.go b/domain/consensus/processes/blockprocessor/log.go index e9f6cbd709..185b2680da 100644 --- a/domain/consensus/processes/blockprocessor/log.go +++ b/domain/consensus/processes/blockprocessor/log.go @@ -1,7 +1,7 @@ package blockprocessor import ( - "github.com/karlsen-network/karlsend/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" ) var log = logger.RegisterSubSystem("BDAG") diff --git a/domain/consensus/processes/blockprocessor/validate_and_insert_block.go b/domain/consensus/processes/blockprocessor/validate_and_insert_block.go index e626554a3c..afea56439d 100644 --- a/domain/consensus/processes/blockprocessor/validate_and_insert_block.go +++ b/domain/consensus/processes/blockprocessor/validate_and_insert_block.go @@ -5,16 +5,16 @@ import ( _ "embed" "fmt" - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/ruleerrors" - "github.com/karlsen-network/karlsend/domain/consensus/utils/consensushashing" - "github.com/karlsen-network/karlsend/domain/consensus/utils/multiset" - "github.com/karlsen-network/karlsend/domain/consensus/utils/utxo" - "github.com/karlsen-network/karlsend/infrastructure/db/database" - "github.com/karlsen-network/karlsend/infrastructure/logger" - "github.com/karlsen-network/karlsend/util/difficulty" - "github.com/karlsen-network/karlsend/util/staging" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/ruleerrors" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/consensushashing" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/multiset" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/utxo" + "github.com/karlsen-network/karlsend/v2/infrastructure/db/database" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/util/difficulty" + "github.com/karlsen-network/karlsend/v2/util/staging" "github.com/pkg/errors" ) diff --git a/domain/consensus/processes/blockprocessor/validate_and_insert_block_test.go b/domain/consensus/processes/blockprocessor/validate_and_insert_block_test.go index 910e750437..1a46d03612 100644 --- a/domain/consensus/processes/blockprocessor/validate_and_insert_block_test.go +++ b/domain/consensus/processes/blockprocessor/validate_and_insert_block_test.go @@ -4,15 +4,15 @@ import ( "strings" "testing" - "github.com/karlsen-network/karlsend/domain/consensus" - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/ruleerrors" - "github.com/karlsen-network/karlsend/domain/consensus/utils/blockheader" - "github.com/karlsen-network/karlsend/domain/consensus/utils/consensushashing" - "github.com/karlsen-network/karlsend/domain/consensus/utils/constants" - "github.com/karlsen-network/karlsend/domain/consensus/utils/merkle" - "github.com/karlsen-network/karlsend/domain/consensus/utils/testutils" + "github.com/karlsen-network/karlsend/v2/domain/consensus" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/ruleerrors" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/blockheader" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/consensushashing" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/constants" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/merkle" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/testutils" "github.com/pkg/errors" ) diff --git a/domain/consensus/processes/blockprocessor/validate_and_insert_block_with_trusted_data.go b/domain/consensus/processes/blockprocessor/validate_and_insert_block_with_trusted_data.go index c08a7d229f..9832e24ff3 100644 --- a/domain/consensus/processes/blockprocessor/validate_and_insert_block_with_trusted_data.go +++ b/domain/consensus/processes/blockprocessor/validate_and_insert_block_with_trusted_data.go @@ -1,10 +1,10 @@ package blockprocessor import ( - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/consensushashing" - "github.com/karlsen-network/karlsend/infrastructure/db/database" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/consensushashing" + "github.com/karlsen-network/karlsend/v2/infrastructure/db/database" ) func (bp *blockProcessor) validateAndInsertBlockWithTrustedData(stagingArea *model.StagingArea, diff --git a/domain/consensus/processes/blockprocessor/validate_and_insert_imported_pruning_point.go b/domain/consensus/processes/blockprocessor/validate_and_insert_imported_pruning_point.go index 5ac7d3f8a4..80ba4f0a94 100644 --- a/domain/consensus/processes/blockprocessor/validate_and_insert_imported_pruning_point.go +++ b/domain/consensus/processes/blockprocessor/validate_and_insert_imported_pruning_point.go @@ -1,9 +1,9 @@ package blockprocessor import ( - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/ruleerrors" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/ruleerrors" "github.com/pkg/errors" ) diff --git a/domain/consensus/processes/blockprocessor/validate_and_insert_imported_pruning_point_test.go b/domain/consensus/processes/blockprocessor/validate_and_insert_imported_pruning_point_test.go index ab3fb8c033..6cb66dd147 100644 --- a/domain/consensus/processes/blockprocessor/validate_and_insert_imported_pruning_point_test.go +++ b/domain/consensus/processes/blockprocessor/validate_and_insert_imported_pruning_point_test.go @@ -5,18 +5,18 @@ import ( "testing" "time" - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/utils/constants" - "github.com/karlsen-network/karlsend/domain/consensus/utils/txscript" - "github.com/karlsen-network/karlsend/domain/dagconfig" - - "github.com/karlsen-network/karlsend/domain/consensus" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/model/testapi" - "github.com/karlsen-network/karlsend/domain/consensus/ruleerrors" - "github.com/karlsen-network/karlsend/domain/consensus/utils/consensushashing" - "github.com/karlsen-network/karlsend/domain/consensus/utils/testutils" - "github.com/karlsen-network/karlsend/domain/consensus/utils/utxo" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/constants" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/txscript" + "github.com/karlsen-network/karlsend/v2/domain/dagconfig" + + "github.com/karlsen-network/karlsend/v2/domain/consensus" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/testapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/ruleerrors" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/consensushashing" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/testutils" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/utxo" "github.com/pkg/errors" ) diff --git a/domain/consensus/processes/blockprocessor/validate_block.go b/domain/consensus/processes/blockprocessor/validate_block.go index 12f5cef546..754ce018aa 100644 --- a/domain/consensus/processes/blockprocessor/validate_block.go +++ b/domain/consensus/processes/blockprocessor/validate_block.go @@ -1,11 +1,11 @@ package blockprocessor import ( - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/ruleerrors" - "github.com/karlsen-network/karlsend/domain/consensus/utils/consensushashing" - "github.com/karlsen-network/karlsend/util/staging" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/ruleerrors" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/consensushashing" + "github.com/karlsen-network/karlsend/v2/util/staging" "github.com/pkg/errors" ) diff --git a/domain/consensus/processes/blockvalidator/block_body_in_context.go b/domain/consensus/processes/blockvalidator/block_body_in_context.go index cec0806033..c70909cfd0 100644 --- a/domain/consensus/processes/blockvalidator/block_body_in_context.go +++ b/domain/consensus/processes/blockvalidator/block_body_in_context.go @@ -1,12 +1,12 @@ package blockvalidator import ( - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/ruleerrors" - "github.com/karlsen-network/karlsend/domain/consensus/utils/transactionhelper" - "github.com/karlsen-network/karlsend/domain/consensus/utils/virtual" - "github.com/karlsen-network/karlsend/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/ruleerrors" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/transactionhelper" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/virtual" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" "github.com/pkg/errors" ) diff --git a/domain/consensus/processes/blockvalidator/block_body_in_context_test.go b/domain/consensus/processes/blockvalidator/block_body_in_context_test.go index 46edd97d8e..64bdad7bc7 100644 --- a/domain/consensus/processes/blockvalidator/block_body_in_context_test.go +++ b/domain/consensus/processes/blockvalidator/block_body_in_context_test.go @@ -3,14 +3,14 @@ package blockvalidator_test import ( "testing" - "github.com/karlsen-network/karlsend/domain/consensus/model" - - "github.com/karlsen-network/karlsend/domain/consensus" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/ruleerrors" - "github.com/karlsen-network/karlsend/domain/consensus/utils/consensushashing" - "github.com/karlsen-network/karlsend/domain/consensus/utils/constants" - "github.com/karlsen-network/karlsend/domain/consensus/utils/testutils" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + + "github.com/karlsen-network/karlsend/v2/domain/consensus" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/ruleerrors" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/consensushashing" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/constants" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/testutils" "github.com/pkg/errors" ) diff --git a/domain/consensus/processes/blockvalidator/block_body_in_isolation.go b/domain/consensus/processes/blockvalidator/block_body_in_isolation.go index 135d2d20c5..8c2648f606 100644 --- a/domain/consensus/processes/blockvalidator/block_body_in_isolation.go +++ b/domain/consensus/processes/blockvalidator/block_body_in_isolation.go @@ -1,14 +1,14 @@ package blockvalidator import ( - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/ruleerrors" - "github.com/karlsen-network/karlsend/domain/consensus/utils/consensushashing" - "github.com/karlsen-network/karlsend/domain/consensus/utils/merkle" - "github.com/karlsen-network/karlsend/domain/consensus/utils/subnetworks" - "github.com/karlsen-network/karlsend/domain/consensus/utils/transactionhelper" - "github.com/karlsen-network/karlsend/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/ruleerrors" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/consensushashing" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/merkle" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/subnetworks" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/transactionhelper" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" "github.com/pkg/errors" ) diff --git a/domain/consensus/processes/blockvalidator/block_body_in_isolation_test.go b/domain/consensus/processes/blockvalidator/block_body_in_isolation_test.go index 040440e800..063de9ab27 100644 --- a/domain/consensus/processes/blockvalidator/block_body_in_isolation_test.go +++ b/domain/consensus/processes/blockvalidator/block_body_in_isolation_test.go @@ -8,18 +8,18 @@ import ( "runtime" "testing" - "github.com/karlsen-network/karlsend/domain/consensus" - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/model/testapi" - "github.com/karlsen-network/karlsend/domain/consensus/ruleerrors" - "github.com/karlsen-network/karlsend/domain/consensus/utils/blockheader" - "github.com/karlsen-network/karlsend/domain/consensus/utils/consensushashing" - "github.com/karlsen-network/karlsend/domain/consensus/utils/constants" - "github.com/karlsen-network/karlsend/domain/consensus/utils/merkle" - "github.com/karlsen-network/karlsend/domain/consensus/utils/subnetworks" - "github.com/karlsen-network/karlsend/domain/consensus/utils/testutils" - "github.com/karlsen-network/karlsend/domain/consensus/utils/utxo" + "github.com/karlsen-network/karlsend/v2/domain/consensus" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/testapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/ruleerrors" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/blockheader" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/consensushashing" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/constants" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/merkle" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/subnetworks" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/testutils" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/utxo" "github.com/pkg/errors" ) diff --git a/domain/consensus/processes/blockvalidator/block_header_in_context.go b/domain/consensus/processes/blockvalidator/block_header_in_context.go index 3ec4a2259a..3116f9f866 100644 --- a/domain/consensus/processes/blockvalidator/block_header_in_context.go +++ b/domain/consensus/processes/blockvalidator/block_header_in_context.go @@ -3,11 +3,11 @@ package blockvalidator import ( "fmt" - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/ruleerrors" - "github.com/karlsen-network/karlsend/domain/consensus/utils/consensushashing" - "github.com/karlsen-network/karlsend/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/ruleerrors" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/consensushashing" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" "github.com/pkg/errors" ) diff --git a/domain/consensus/processes/blockvalidator/block_header_in_context_test.go b/domain/consensus/processes/blockvalidator/block_header_in_context_test.go index b55120d6d1..3f722f145b 100644 --- a/domain/consensus/processes/blockvalidator/block_header_in_context_test.go +++ b/domain/consensus/processes/blockvalidator/block_header_in_context_test.go @@ -5,16 +5,16 @@ import ( "math/big" "testing" - "github.com/karlsen-network/karlsend/domain/consensus/utils/constants" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/constants" - "github.com/karlsen-network/karlsend/domain/consensus/utils/blockheader" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/blockheader" - "github.com/karlsen-network/karlsend/domain/consensus" - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/ruleerrors" - "github.com/karlsen-network/karlsend/domain/consensus/utils/consensushashing" - "github.com/karlsen-network/karlsend/domain/consensus/utils/testutils" + "github.com/karlsen-network/karlsend/v2/domain/consensus" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/ruleerrors" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/consensushashing" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/testutils" ) func TestValidateMedianTime(t *testing.T) { diff --git a/domain/consensus/processes/blockvalidator/block_header_in_isolation.go b/domain/consensus/processes/blockvalidator/block_header_in_isolation.go index 26e1399f4d..cae6b2e36c 100644 --- a/domain/consensus/processes/blockvalidator/block_header_in_isolation.go +++ b/domain/consensus/processes/blockvalidator/block_header_in_isolation.go @@ -1,13 +1,13 @@ package blockvalidator import ( - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/ruleerrors" - "github.com/karlsen-network/karlsend/domain/consensus/utils/consensushashing" - "github.com/karlsen-network/karlsend/domain/consensus/utils/constants" - "github.com/karlsen-network/karlsend/infrastructure/logger" - "github.com/karlsen-network/karlsend/util/mstime" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/ruleerrors" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/consensushashing" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/constants" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/util/mstime" "github.com/pkg/errors" ) diff --git a/domain/consensus/processes/blockvalidator/block_header_in_isolation_test.go b/domain/consensus/processes/blockvalidator/block_header_in_isolation_test.go index 1a4fa81fba..a12a21ca06 100644 --- a/domain/consensus/processes/blockvalidator/block_header_in_isolation_test.go +++ b/domain/consensus/processes/blockvalidator/block_header_in_isolation_test.go @@ -5,15 +5,15 @@ import ( "runtime" "testing" - "github.com/karlsen-network/karlsend/domain/consensus/model/testapi" - - "github.com/karlsen-network/karlsend/domain/consensus" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/ruleerrors" - "github.com/karlsen-network/karlsend/domain/consensus/utils/blockheader" - "github.com/karlsen-network/karlsend/domain/consensus/utils/constants" - "github.com/karlsen-network/karlsend/domain/consensus/utils/testutils" - "github.com/karlsen-network/karlsend/util/mstime" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/testapi" + + "github.com/karlsen-network/karlsend/v2/domain/consensus" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/ruleerrors" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/blockheader" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/constants" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/testutils" + "github.com/karlsen-network/karlsend/v2/util/mstime" "github.com/pkg/errors" ) diff --git a/domain/consensus/processes/blockvalidator/blockvalidator.go b/domain/consensus/processes/blockvalidator/blockvalidator.go index 1ca4568810..eb79fa9040 100644 --- a/domain/consensus/processes/blockvalidator/blockvalidator.go +++ b/domain/consensus/processes/blockvalidator/blockvalidator.go @@ -4,11 +4,11 @@ import ( "math/big" "time" - "github.com/karlsen-network/karlsend/util/txmass" + "github.com/karlsen-network/karlsend/v2/util/txmass" - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/util/difficulty" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/util/difficulty" ) // blockValidator exposes a set of validation classes, after which diff --git a/domain/consensus/processes/blockvalidator/header_pruning_point.go b/domain/consensus/processes/blockvalidator/header_pruning_point.go index 7fbdfbca7f..91f748e639 100644 --- a/domain/consensus/processes/blockvalidator/header_pruning_point.go +++ b/domain/consensus/processes/blockvalidator/header_pruning_point.go @@ -1,9 +1,9 @@ package blockvalidator import ( - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/ruleerrors" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/ruleerrors" "github.com/pkg/errors" ) diff --git a/domain/consensus/processes/blockvalidator/log.go b/domain/consensus/processes/blockvalidator/log.go index 87b92aa2cb..79892165bf 100644 --- a/domain/consensus/processes/blockvalidator/log.go +++ b/domain/consensus/processes/blockvalidator/log.go @@ -1,7 +1,7 @@ package blockvalidator import ( - "github.com/karlsen-network/karlsend/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" ) var log = logger.RegisterSubSystem("BLVA") diff --git a/domain/consensus/processes/blockvalidator/pruning_violation_proof_of_work_and_difficulty.go b/domain/consensus/processes/blockvalidator/pruning_violation_proof_of_work_and_difficulty.go index f7f591fba9..3cc53a6860 100644 --- a/domain/consensus/processes/blockvalidator/pruning_violation_proof_of_work_and_difficulty.go +++ b/domain/consensus/processes/blockvalidator/pruning_violation_proof_of_work_and_difficulty.go @@ -1,13 +1,13 @@ package blockvalidator import ( - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/ruleerrors" - "github.com/karlsen-network/karlsend/domain/consensus/utils/pow" - "github.com/karlsen-network/karlsend/domain/consensus/utils/virtual" - "github.com/karlsen-network/karlsend/infrastructure/db/database" - "github.com/karlsen-network/karlsend/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/ruleerrors" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/pow" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/virtual" + "github.com/karlsen-network/karlsend/v2/infrastructure/db/database" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" "github.com/pkg/errors" ) diff --git a/domain/consensus/processes/blockvalidator/pruning_violation_proof_of_work_and_difficulty_test.go b/domain/consensus/processes/blockvalidator/pruning_violation_proof_of_work_and_difficulty_test.go index 4bd7593dee..6f99b05389 100644 --- a/domain/consensus/processes/blockvalidator/pruning_violation_proof_of_work_and_difficulty_test.go +++ b/domain/consensus/processes/blockvalidator/pruning_violation_proof_of_work_and_difficulty_test.go @@ -7,18 +7,18 @@ import ( "testing" "time" - "github.com/karlsen-network/karlsend/domain/consensus" - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/ruleerrors" - "github.com/karlsen-network/karlsend/domain/consensus/utils/blockheader" - "github.com/karlsen-network/karlsend/domain/consensus/utils/consensushashing" - "github.com/karlsen-network/karlsend/domain/consensus/utils/constants" - "github.com/karlsen-network/karlsend/domain/consensus/utils/merkle" - "github.com/karlsen-network/karlsend/domain/consensus/utils/mining" - "github.com/karlsen-network/karlsend/domain/consensus/utils/pow" - "github.com/karlsen-network/karlsend/domain/consensus/utils/testutils" - "github.com/karlsen-network/karlsend/util/difficulty" + "github.com/karlsen-network/karlsend/v2/domain/consensus" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/ruleerrors" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/blockheader" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/consensushashing" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/constants" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/merkle" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/mining" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/pow" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/testutils" + "github.com/karlsen-network/karlsend/v2/util/difficulty" "github.com/pkg/errors" ) diff --git a/domain/consensus/processes/coinbasemanager/coinbasemanager.go b/domain/consensus/processes/coinbasemanager/coinbasemanager.go index fbfe25b3e0..7ca776b2c4 100644 --- a/domain/consensus/processes/coinbasemanager/coinbasemanager.go +++ b/domain/consensus/processes/coinbasemanager/coinbasemanager.go @@ -3,13 +3,13 @@ package coinbasemanager import ( "math" - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/constants" - "github.com/karlsen-network/karlsend/domain/consensus/utils/hashset" - "github.com/karlsen-network/karlsend/domain/consensus/utils/subnetworks" - "github.com/karlsen-network/karlsend/domain/consensus/utils/transactionhelper" - "github.com/karlsen-network/karlsend/infrastructure/db/database" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/constants" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/hashset" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/subnetworks" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/transactionhelper" + "github.com/karlsen-network/karlsend/v2/infrastructure/db/database" "github.com/pkg/errors" ) diff --git a/domain/consensus/processes/coinbasemanager/coinbasemanager_external_test.go b/domain/consensus/processes/coinbasemanager/coinbasemanager_external_test.go index 667f0213ba..d7db7e42bb 100644 --- a/domain/consensus/processes/coinbasemanager/coinbasemanager_external_test.go +++ b/domain/consensus/processes/coinbasemanager/coinbasemanager_external_test.go @@ -3,10 +3,10 @@ package coinbasemanager_test import ( "testing" - "github.com/karlsen-network/karlsend/domain/consensus" - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/testutils" + "github.com/karlsen-network/karlsend/v2/domain/consensus" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/testutils" ) func TestExtractCoinbaseDataBlueScoreAndSubsidy(t *testing.T) { diff --git a/domain/consensus/processes/coinbasemanager/coinbasemanager_test.go b/domain/consensus/processes/coinbasemanager/coinbasemanager_test.go index 1c076916f9..4e343e5dbf 100644 --- a/domain/consensus/processes/coinbasemanager/coinbasemanager_test.go +++ b/domain/consensus/processes/coinbasemanager/coinbasemanager_test.go @@ -5,9 +5,9 @@ import ( "strconv" "testing" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/constants" - "github.com/karlsen-network/karlsend/domain/dagconfig" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/constants" + "github.com/karlsen-network/karlsend/v2/domain/dagconfig" ) func TestCalcDeflationaryPeriodBlockSubsidy(t *testing.T) { diff --git a/domain/consensus/processes/coinbasemanager/payload.go b/domain/consensus/processes/coinbasemanager/payload.go index ed3146ee04..892d6e7ee9 100644 --- a/domain/consensus/processes/coinbasemanager/payload.go +++ b/domain/consensus/processes/coinbasemanager/payload.go @@ -3,8 +3,8 @@ package coinbasemanager import ( "encoding/binary" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/ruleerrors" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/ruleerrors" "github.com/pkg/errors" ) diff --git a/domain/consensus/processes/consensusstatemanager/add_block_to_virtual.go b/domain/consensus/processes/consensusstatemanager/add_block_to_virtual.go index b825c9a290..2239b99ec1 100644 --- a/domain/consensus/processes/consensusstatemanager/add_block_to_virtual.go +++ b/domain/consensus/processes/consensusstatemanager/add_block_to_virtual.go @@ -1,10 +1,10 @@ package consensusstatemanager import ( - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/utxo" - "github.com/karlsen-network/karlsend/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/utxo" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" ) // AddBlock submits the given block to be added to the diff --git a/domain/consensus/processes/consensusstatemanager/add_block_to_virtual_test.go b/domain/consensus/processes/consensusstatemanager/add_block_to_virtual_test.go index 27a35a0149..ca0e346729 100644 --- a/domain/consensus/processes/consensusstatemanager/add_block_to_virtual_test.go +++ b/domain/consensus/processes/consensusstatemanager/add_block_to_virtual_test.go @@ -3,13 +3,13 @@ package consensusstatemanager_test import ( "testing" - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/utils/consensushashing" - "github.com/karlsen-network/karlsend/domain/consensus/utils/utxo" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/consensushashing" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/utxo" - "github.com/karlsen-network/karlsend/domain/consensus" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/testutils" + "github.com/karlsen-network/karlsend/v2/domain/consensus" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/testutils" ) func TestVirtualDiff(t *testing.T) { diff --git a/domain/consensus/processes/consensusstatemanager/calculate_past_utxo.go b/domain/consensus/processes/consensusstatemanager/calculate_past_utxo.go index bb6eaf24d5..7869c6d758 100644 --- a/domain/consensus/processes/consensusstatemanager/calculate_past_utxo.go +++ b/domain/consensus/processes/consensusstatemanager/calculate_past_utxo.go @@ -1,15 +1,15 @@ package consensusstatemanager import ( - "github.com/karlsen-network/karlsend/domain/consensus/utils/consensushashing" - "github.com/karlsen-network/karlsend/domain/consensus/utils/utxo" - "github.com/karlsen-network/karlsend/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/consensushashing" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/utxo" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" "github.com/pkg/errors" - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/ruleerrors" - "github.com/karlsen-network/karlsend/domain/consensus/utils/transactionhelper" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/ruleerrors" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/transactionhelper" ) func (csm *consensusStateManager) CalculatePastUTXOAndAcceptanceData(stagingArea *model.StagingArea, diff --git a/domain/consensus/processes/consensusstatemanager/calculate_past_utxo_test.go b/domain/consensus/processes/consensusstatemanager/calculate_past_utxo_test.go index df8e7b065a..99a2a98bc6 100644 --- a/domain/consensus/processes/consensusstatemanager/calculate_past_utxo_test.go +++ b/domain/consensus/processes/consensusstatemanager/calculate_past_utxo_test.go @@ -3,13 +3,13 @@ package consensusstatemanager_test import ( "testing" - "github.com/karlsen-network/karlsend/domain/consensus" - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/model/testapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/multiset" - "github.com/karlsen-network/karlsend/domain/consensus/utils/testutils" - "github.com/karlsen-network/karlsend/domain/consensus/utils/transactionhelper" + "github.com/karlsen-network/karlsend/v2/domain/consensus" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/testapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/multiset" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/testutils" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/transactionhelper" ) func TestUTXOCommitment(t *testing.T) { diff --git a/domain/consensus/processes/consensusstatemanager/check_finality_violation.go b/domain/consensus/processes/consensusstatemanager/check_finality_violation.go index 492c00428a..bcbea82f71 100644 --- a/domain/consensus/processes/consensusstatemanager/check_finality_violation.go +++ b/domain/consensus/processes/consensusstatemanager/check_finality_violation.go @@ -1,8 +1,8 @@ package consensusstatemanager import ( - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" ) func (csm *consensusStateManager) isViolatingFinality(stagingArea *model.StagingArea, blockHash *externalapi.DomainHash, diff --git a/domain/consensus/processes/consensusstatemanager/consensus_state_manager.go b/domain/consensus/processes/consensusstatemanager/consensus_state_manager.go index 0f4c229d5c..7582ffa40a 100644 --- a/domain/consensus/processes/consensusstatemanager/consensus_state_manager.go +++ b/domain/consensus/processes/consensusstatemanager/consensus_state_manager.go @@ -1,8 +1,8 @@ package consensusstatemanager import ( - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" ) // consensusStateManager manages the node's consensus state diff --git a/domain/consensus/processes/consensusstatemanager/find_selected_parent_chain_changes.go b/domain/consensus/processes/consensusstatemanager/find_selected_parent_chain_changes.go index 4e9e8e0844..a8ace7ca1c 100644 --- a/domain/consensus/processes/consensusstatemanager/find_selected_parent_chain_changes.go +++ b/domain/consensus/processes/consensusstatemanager/find_selected_parent_chain_changes.go @@ -1,8 +1,8 @@ package consensusstatemanager import ( - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" ) func (csm *consensusStateManager) GetVirtualSelectedParentChainFromBlock(stagingArea *model.StagingArea, blockHash *externalapi.DomainHash) (*externalapi.SelectedChainPath, error) { diff --git a/domain/consensus/processes/consensusstatemanager/find_selected_parent_chain_changes_test.go b/domain/consensus/processes/consensusstatemanager/find_selected_parent_chain_changes_test.go index 3de8b4784c..2179999f84 100644 --- a/domain/consensus/processes/consensusstatemanager/find_selected_parent_chain_changes_test.go +++ b/domain/consensus/processes/consensusstatemanager/find_selected_parent_chain_changes_test.go @@ -3,10 +3,10 @@ package consensusstatemanager_test import ( "testing" - "github.com/karlsen-network/karlsend/domain/consensus" - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/testutils" + "github.com/karlsen-network/karlsend/v2/domain/consensus" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/testutils" ) func TestCalculateChainPath(t *testing.T) { diff --git a/domain/consensus/processes/consensusstatemanager/import_pruning_utxo_set.go b/domain/consensus/processes/consensusstatemanager/import_pruning_utxo_set.go index 9007006ebb..e29dfabb4b 100644 --- a/domain/consensus/processes/consensusstatemanager/import_pruning_utxo_set.go +++ b/domain/consensus/processes/consensusstatemanager/import_pruning_utxo_set.go @@ -1,14 +1,14 @@ package consensusstatemanager import ( - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/ruleerrors" - "github.com/karlsen-network/karlsend/domain/consensus/utils/consensushashing" - "github.com/karlsen-network/karlsend/domain/consensus/utils/transactionhelper" - "github.com/karlsen-network/karlsend/domain/consensus/utils/utxo" - "github.com/karlsen-network/karlsend/infrastructure/logger" - "github.com/karlsen-network/karlsend/util/staging" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/ruleerrors" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/consensushashing" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/transactionhelper" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/utxo" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/util/staging" "github.com/pkg/errors" ) diff --git a/domain/consensus/processes/consensusstatemanager/log.go b/domain/consensus/processes/consensusstatemanager/log.go index 5c8a956422..ad51b07fa6 100644 --- a/domain/consensus/processes/consensusstatemanager/log.go +++ b/domain/consensus/processes/consensusstatemanager/log.go @@ -1,7 +1,7 @@ package consensusstatemanager import ( - "github.com/karlsen-network/karlsend/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" ) var log = logger.RegisterSubSystem("BDAG") diff --git a/domain/consensus/processes/consensusstatemanager/multisets.go b/domain/consensus/processes/consensusstatemanager/multisets.go index b3923b1b38..e13e5ef627 100644 --- a/domain/consensus/processes/consensusstatemanager/multisets.go +++ b/domain/consensus/processes/consensusstatemanager/multisets.go @@ -1,10 +1,10 @@ package consensusstatemanager import ( - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/consensushashing" - "github.com/karlsen-network/karlsend/domain/consensus/utils/utxo" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/consensushashing" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/utxo" ) func (csm *consensusStateManager) calculateMultiset(stagingArea *model.StagingArea, diff --git a/domain/consensus/processes/consensusstatemanager/pick_virtual_parents.go b/domain/consensus/processes/consensusstatemanager/pick_virtual_parents.go index 4afa69b7e8..1ed1ab0504 100644 --- a/domain/consensus/processes/consensusstatemanager/pick_virtual_parents.go +++ b/domain/consensus/processes/consensusstatemanager/pick_virtual_parents.go @@ -1,13 +1,13 @@ package consensusstatemanager import ( - "github.com/karlsen-network/karlsend/infrastructure/logger" - "github.com/karlsen-network/karlsend/util/math" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/util/math" "github.com/pkg/errors" - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/hashset" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/hashset" ) func (csm *consensusStateManager) pickVirtualParents(stagingArea *model.StagingArea, tips []*externalapi.DomainHash) ([]*externalapi.DomainHash, error) { diff --git a/domain/consensus/processes/consensusstatemanager/populate_tx_with_utxo_entries.go b/domain/consensus/processes/consensusstatemanager/populate_tx_with_utxo_entries.go index f1309ba281..963a9e7998 100644 --- a/domain/consensus/processes/consensusstatemanager/populate_tx_with_utxo_entries.go +++ b/domain/consensus/processes/consensusstatemanager/populate_tx_with_utxo_entries.go @@ -1,10 +1,10 @@ package consensusstatemanager import ( - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/ruleerrors" - "github.com/karlsen-network/karlsend/domain/consensus/utils/consensushashing" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/ruleerrors" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/consensushashing" ) // PopulateTransactionWithUTXOEntries populates the transaction UTXO entries with data from the virtual's UTXO set. diff --git a/domain/consensus/processes/consensusstatemanager/resolve.go b/domain/consensus/processes/consensusstatemanager/resolve.go index b66fc5fdd2..bd5e974ac7 100644 --- a/domain/consensus/processes/consensusstatemanager/resolve.go +++ b/domain/consensus/processes/consensusstatemanager/resolve.go @@ -3,10 +3,10 @@ package consensusstatemanager import ( "sort" - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/infrastructure/logger" - "github.com/karlsen-network/karlsend/util/staging" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/util/staging" "github.com/pkg/errors" ) diff --git a/domain/consensus/processes/consensusstatemanager/resolve_block_status.go b/domain/consensus/processes/consensusstatemanager/resolve_block_status.go index 47c7155799..236fc376b7 100644 --- a/domain/consensus/processes/consensusstatemanager/resolve_block_status.go +++ b/domain/consensus/processes/consensusstatemanager/resolve_block_status.go @@ -3,12 +3,12 @@ package consensusstatemanager import ( "fmt" - "github.com/karlsen-network/karlsend/util/staging" + "github.com/karlsen-network/karlsend/v2/util/staging" - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/ruleerrors" - "github.com/karlsen-network/karlsend/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/ruleerrors" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" "github.com/pkg/errors" ) diff --git a/domain/consensus/processes/consensusstatemanager/resolve_block_status_test.go b/domain/consensus/processes/consensusstatemanager/resolve_block_status_test.go index 42a8a40e63..25a327d9ed 100644 --- a/domain/consensus/processes/consensusstatemanager/resolve_block_status_test.go +++ b/domain/consensus/processes/consensusstatemanager/resolve_block_status_test.go @@ -4,18 +4,18 @@ import ( "errors" "testing" - "github.com/karlsen-network/karlsend/domain/consensus/utils/utxo" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/utxo" - "github.com/karlsen-network/karlsend/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/ruleerrors" + "github.com/karlsen-network/karlsend/v2/domain/consensus/ruleerrors" - "github.com/karlsen-network/karlsend/domain/consensus/utils/consensushashing" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/consensushashing" - "github.com/karlsen-network/karlsend/domain/consensus" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/testutils" - "github.com/karlsen-network/karlsend/domain/consensus/utils/transactionhelper" + "github.com/karlsen-network/karlsend/v2/domain/consensus" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/testutils" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/transactionhelper" ) func TestDoubleSpends(t *testing.T) { diff --git a/domain/consensus/processes/consensusstatemanager/resolve_virtual_test.go b/domain/consensus/processes/consensusstatemanager/resolve_virtual_test.go index e81778f78d..97dc0ab1a3 100644 --- a/domain/consensus/processes/consensusstatemanager/resolve_virtual_test.go +++ b/domain/consensus/processes/consensusstatemanager/resolve_virtual_test.go @@ -4,14 +4,14 @@ import ( "fmt" "testing" - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/testapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/consensushashing" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/testapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/consensushashing" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus" - "github.com/karlsen-network/karlsend/domain/consensus/utils/testutils" + "github.com/karlsen-network/karlsend/v2/domain/consensus" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/testutils" ) func TestAddBlockBetweenResolveVirtualCalls(t *testing.T) { diff --git a/domain/consensus/processes/consensusstatemanager/reverse_utxo_diffs.go b/domain/consensus/processes/consensusstatemanager/reverse_utxo_diffs.go index 0b6705709f..80524dbd8b 100644 --- a/domain/consensus/processes/consensusstatemanager/reverse_utxo_diffs.go +++ b/domain/consensus/processes/consensusstatemanager/reverse_utxo_diffs.go @@ -1,10 +1,10 @@ package consensusstatemanager import ( - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/infrastructure/logger" - "github.com/karlsen-network/karlsend/util/staging" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/util/staging" ) func (csm *consensusStateManager) ReverseUTXODiffs(tipHash *externalapi.DomainHash, diff --git a/domain/consensus/processes/consensusstatemanager/reverse_utxo_diffs_test.go b/domain/consensus/processes/consensusstatemanager/reverse_utxo_diffs_test.go index 01f9e44d11..1f31a3afce 100644 --- a/domain/consensus/processes/consensusstatemanager/reverse_utxo_diffs_test.go +++ b/domain/consensus/processes/consensusstatemanager/reverse_utxo_diffs_test.go @@ -3,14 +3,14 @@ package consensusstatemanager_test import ( "testing" - "github.com/karlsen-network/karlsend/domain/consensus/utils/consensushashing" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/consensushashing" - "github.com/karlsen-network/karlsend/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus" - "github.com/karlsen-network/karlsend/domain/consensus/utils/testutils" + "github.com/karlsen-network/karlsend/v2/domain/consensus" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/testutils" ) func TestReverseUTXODiffs(t *testing.T) { diff --git a/domain/consensus/processes/consensusstatemanager/test_consensus_state_manager.go b/domain/consensus/processes/consensusstatemanager/test_consensus_state_manager.go index 2c4118b7d5..2a1aa98de7 100644 --- a/domain/consensus/processes/consensusstatemanager/test_consensus_state_manager.go +++ b/domain/consensus/processes/consensusstatemanager/test_consensus_state_manager.go @@ -1,9 +1,9 @@ package consensusstatemanager import ( - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/model/testapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/testapi" ) type testConsensusStateManager struct { diff --git a/domain/consensus/processes/consensusstatemanager/update_virtual.go b/domain/consensus/processes/consensusstatemanager/update_virtual.go index 2ff0eaf41c..6435b86080 100644 --- a/domain/consensus/processes/consensusstatemanager/update_virtual.go +++ b/domain/consensus/processes/consensusstatemanager/update_virtual.go @@ -1,9 +1,9 @@ package consensusstatemanager import ( - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" ) func (csm *consensusStateManager) updateVirtual(stagingArea *model.StagingArea, newBlockHash *externalapi.DomainHash, diff --git a/domain/consensus/processes/consensusstatemanager/utxo_diffs.go b/domain/consensus/processes/consensusstatemanager/utxo_diffs.go index 3c15bdccaa..fc1bd28a11 100644 --- a/domain/consensus/processes/consensusstatemanager/utxo_diffs.go +++ b/domain/consensus/processes/consensusstatemanager/utxo_diffs.go @@ -1,8 +1,8 @@ package consensusstatemanager import ( - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" ) func (csm *consensusStateManager) stageDiff(stagingArea *model.StagingArea, blockHash *externalapi.DomainHash, diff --git a/domain/consensus/processes/consensusstatemanager/verify_and_build_utxo.go b/domain/consensus/processes/consensusstatemanager/verify_and_build_utxo.go index e403b16f7f..07dec69a06 100644 --- a/domain/consensus/processes/consensusstatemanager/verify_and_build_utxo.go +++ b/domain/consensus/processes/consensusstatemanager/verify_and_build_utxo.go @@ -3,15 +3,15 @@ package consensusstatemanager import ( "sort" - "github.com/karlsen-network/karlsend/domain/consensus/utils/transactionhelper" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/transactionhelper" - "github.com/karlsen-network/karlsend/domain/consensus/utils/consensushashing" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/consensushashing" - "github.com/karlsen-network/karlsend/domain/consensus/utils/merkle" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/merkle" - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/ruleerrors" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/ruleerrors" "github.com/pkg/errors" ) diff --git a/domain/consensus/processes/consensusstatemanager/virtual_parents_test.go b/domain/consensus/processes/consensusstatemanager/virtual_parents_test.go index 425d557403..de093c7ef8 100644 --- a/domain/consensus/processes/consensusstatemanager/virtual_parents_test.go +++ b/domain/consensus/processes/consensusstatemanager/virtual_parents_test.go @@ -4,12 +4,12 @@ import ( "sort" "testing" - "github.com/karlsen-network/karlsend/domain/consensus" - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/model/testapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/consensushashing" - "github.com/karlsen-network/karlsend/domain/consensus/utils/testutils" + "github.com/karlsen-network/karlsend/v2/domain/consensus" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/testapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/consensushashing" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/testutils" ) func TestConsensusStateManager_pickVirtualParents(t *testing.T) { diff --git a/domain/consensus/processes/dagtopologymanager/dagtopologymanager.go b/domain/consensus/processes/dagtopologymanager/dagtopologymanager.go index ca6da7a509..998ef0fc01 100644 --- a/domain/consensus/processes/dagtopologymanager/dagtopologymanager.go +++ b/domain/consensus/processes/dagtopologymanager/dagtopologymanager.go @@ -1,8 +1,8 @@ package dagtopologymanager import ( - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" "github.com/pkg/errors" ) diff --git a/domain/consensus/processes/dagtopologymanager/dagtopologymanager_external_test.go b/domain/consensus/processes/dagtopologymanager/dagtopologymanager_external_test.go index d2d58355be..d67dc12669 100644 --- a/domain/consensus/processes/dagtopologymanager/dagtopologymanager_external_test.go +++ b/domain/consensus/processes/dagtopologymanager/dagtopologymanager_external_test.go @@ -3,11 +3,11 @@ package dagtopologymanager_test import ( "testing" - "github.com/karlsen-network/karlsend/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/testutils" + "github.com/karlsen-network/karlsend/v2/domain/consensus" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/testutils" ) func TestIsAncestorOf(t *testing.T) { diff --git a/domain/consensus/processes/dagtraversalmanager/anticone.go b/domain/consensus/processes/dagtraversalmanager/anticone.go index fd84d1107d..ea009b508e 100644 --- a/domain/consensus/processes/dagtraversalmanager/anticone.go +++ b/domain/consensus/processes/dagtraversalmanager/anticone.go @@ -1,9 +1,9 @@ package dagtraversalmanager import ( - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/hashset" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/hashset" "github.com/pkg/errors" ) diff --git a/domain/consensus/processes/dagtraversalmanager/block_heap.go b/domain/consensus/processes/dagtraversalmanager/block_heap.go index 52463628c9..d4661f03c3 100644 --- a/domain/consensus/processes/dagtraversalmanager/block_heap.go +++ b/domain/consensus/processes/dagtraversalmanager/block_heap.go @@ -3,8 +3,8 @@ package dagtraversalmanager import ( "container/heap" - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" ) func blockGHOSTDAGDataHashPairLess(left, right *externalapi.BlockGHOSTDAGDataHashPair, gm model.GHOSTDAGManager) bool { diff --git a/domain/consensus/processes/dagtraversalmanager/dagtraversalmanager.go b/domain/consensus/processes/dagtraversalmanager/dagtraversalmanager.go index d955c13f7d..61f1816913 100644 --- a/domain/consensus/processes/dagtraversalmanager/dagtraversalmanager.go +++ b/domain/consensus/processes/dagtraversalmanager/dagtraversalmanager.go @@ -1,8 +1,8 @@ package dagtraversalmanager import ( - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" "github.com/pkg/errors" ) diff --git a/domain/consensus/processes/dagtraversalmanager/dagtraversalmanager_test.go b/domain/consensus/processes/dagtraversalmanager/dagtraversalmanager_test.go index deb74829d4..bdaa3917e5 100644 --- a/domain/consensus/processes/dagtraversalmanager/dagtraversalmanager_test.go +++ b/domain/consensus/processes/dagtraversalmanager/dagtraversalmanager_test.go @@ -3,11 +3,11 @@ package dagtraversalmanager_test import ( "testing" - "github.com/karlsen-network/karlsend/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/testutils" + "github.com/karlsen-network/karlsend/v2/domain/consensus" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/testutils" ) func TestLowestChainBlockAboveOrEqualToBlueScore(t *testing.T) { diff --git a/domain/consensus/processes/dagtraversalmanager/selected_child_iterator.go b/domain/consensus/processes/dagtraversalmanager/selected_child_iterator.go index 217c90b952..45e731b130 100644 --- a/domain/consensus/processes/dagtraversalmanager/selected_child_iterator.go +++ b/domain/consensus/processes/dagtraversalmanager/selected_child_iterator.go @@ -1,8 +1,8 @@ package dagtraversalmanager import ( - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" "github.com/pkg/errors" ) diff --git a/domain/consensus/processes/dagtraversalmanager/window.go b/domain/consensus/processes/dagtraversalmanager/window.go index a08a1897c6..b17021b0ae 100644 --- a/domain/consensus/processes/dagtraversalmanager/window.go +++ b/domain/consensus/processes/dagtraversalmanager/window.go @@ -1,9 +1,9 @@ package dagtraversalmanager import ( - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/infrastructure/db/database" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/infrastructure/db/database" ) func (dtm *dagTraversalManager) DAABlockWindow(stagingArea *model.StagingArea, highHash *externalapi.DomainHash) ([]*externalapi.DomainHash, error) { diff --git a/domain/consensus/processes/dagtraversalmanager/window_test.go b/domain/consensus/processes/dagtraversalmanager/window_test.go index a372dd1548..1ebce8bc58 100644 --- a/domain/consensus/processes/dagtraversalmanager/window_test.go +++ b/domain/consensus/processes/dagtraversalmanager/window_test.go @@ -5,13 +5,13 @@ import ( "sort" "testing" - "github.com/karlsen-network/karlsend/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/hashset" - "github.com/karlsen-network/karlsend/domain/consensus/utils/testutils" - "github.com/karlsen-network/karlsend/domain/dagconfig" + "github.com/karlsen-network/karlsend/v2/domain/consensus" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/hashset" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/testutils" + "github.com/karlsen-network/karlsend/v2/domain/dagconfig" "github.com/pkg/errors" ) diff --git a/domain/consensus/processes/difficultymanager/blockwindow.go b/domain/consensus/processes/difficultymanager/blockwindow.go index fff711bd83..54b05680e0 100644 --- a/domain/consensus/processes/difficultymanager/blockwindow.go +++ b/domain/consensus/processes/difficultymanager/blockwindow.go @@ -4,9 +4,9 @@ import ( "math" "math/big" - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/util/difficulty" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/util/difficulty" ) type difficultyBlock struct { diff --git a/domain/consensus/processes/difficultymanager/difficultymanager.go b/domain/consensus/processes/difficultymanager/difficultymanager.go index 2f73bd1098..b6d6c053ba 100644 --- a/domain/consensus/processes/difficultymanager/difficultymanager.go +++ b/domain/consensus/processes/difficultymanager/difficultymanager.go @@ -4,13 +4,13 @@ import ( "math/big" "time" - "github.com/karlsen-network/karlsend/infrastructure/logger" - "github.com/karlsen-network/karlsend/util/math" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/util/math" - "github.com/karlsen-network/karlsend/util/difficulty" + "github.com/karlsen-network/karlsend/v2/util/difficulty" - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" ) // DifficultyManager provides a method to resolve the diff --git a/domain/consensus/processes/difficultymanager/difficultymanager_test.go b/domain/consensus/processes/difficultymanager/difficultymanager_test.go index c04ff553a1..40c8ec4c40 100644 --- a/domain/consensus/processes/difficultymanager/difficultymanager_test.go +++ b/domain/consensus/processes/difficultymanager/difficultymanager_test.go @@ -4,17 +4,17 @@ import ( "testing" "time" - "github.com/karlsen-network/karlsend/util/difficulty" + "github.com/karlsen-network/karlsend/v2/util/difficulty" - "github.com/karlsen-network/karlsend/util/mstime" + "github.com/karlsen-network/karlsend/v2/util/mstime" - "github.com/karlsen-network/karlsend/domain/consensus/utils/consensushashing" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/consensushashing" - "github.com/karlsen-network/karlsend/domain/consensus" - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/testutils" - "github.com/karlsen-network/karlsend/domain/dagconfig" + "github.com/karlsen-network/karlsend/v2/domain/consensus" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/testutils" + "github.com/karlsen-network/karlsend/v2/domain/dagconfig" ) func TestDifficulty(t *testing.T) { diff --git a/domain/consensus/processes/difficultymanager/hashrate.go b/domain/consensus/processes/difficultymanager/hashrate.go index 0d40925fcf..f365305b69 100644 --- a/domain/consensus/processes/difficultymanager/hashrate.go +++ b/domain/consensus/processes/difficultymanager/hashrate.go @@ -3,9 +3,9 @@ package difficultymanager import ( "math/big" - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" "github.com/pkg/errors" ) diff --git a/domain/consensus/processes/difficultymanager/log.go b/domain/consensus/processes/difficultymanager/log.go index 999dc5fc04..6e70efc057 100644 --- a/domain/consensus/processes/difficultymanager/log.go +++ b/domain/consensus/processes/difficultymanager/log.go @@ -1,7 +1,7 @@ package difficultymanager import ( - "github.com/karlsen-network/karlsend/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" ) var log = logger.RegisterSubSystem("DAA") diff --git a/domain/consensus/processes/finalitymanager/finality_manager.go b/domain/consensus/processes/finalitymanager/finality_manager.go index 99cf6a77e6..1495b6b848 100644 --- a/domain/consensus/processes/finalitymanager/finality_manager.go +++ b/domain/consensus/processes/finalitymanager/finality_manager.go @@ -3,9 +3,9 @@ package finalitymanager import ( "errors" - "github.com/karlsen-network/karlsend/domain/consensus/database" - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/database" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" ) type finalityManager struct { diff --git a/domain/consensus/processes/finalitymanager/log.go b/domain/consensus/processes/finalitymanager/log.go index ef8d4028b9..c4103f73bb 100644 --- a/domain/consensus/processes/finalitymanager/log.go +++ b/domain/consensus/processes/finalitymanager/log.go @@ -1,7 +1,7 @@ package finalitymanager import ( - "github.com/karlsen-network/karlsend/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" ) var log = logger.RegisterSubSystem("BDAG") diff --git a/domain/consensus/processes/ghostdag2/ghostdagimpl.go b/domain/consensus/processes/ghostdag2/ghostdagimpl.go index 49fe968274..2b01132e54 100644 --- a/domain/consensus/processes/ghostdag2/ghostdagimpl.go +++ b/domain/consensus/processes/ghostdag2/ghostdagimpl.go @@ -3,12 +3,12 @@ package ghostdag2 import ( "sort" - "github.com/karlsen-network/karlsend/util/difficulty" + "github.com/karlsen-network/karlsend/v2/util/difficulty" "math/big" - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" ) type ghostdagHelper struct { diff --git a/domain/consensus/processes/ghostdagmanager/compare.go b/domain/consensus/processes/ghostdagmanager/compare.go index 00da4dfa3b..49d30ba0b6 100644 --- a/domain/consensus/processes/ghostdagmanager/compare.go +++ b/domain/consensus/processes/ghostdagmanager/compare.go @@ -1,8 +1,8 @@ package ghostdagmanager import ( - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" ) func (gm *ghostdagManager) findSelectedParent(stagingArea *model.StagingArea, parentHashes []*externalapi.DomainHash) ( diff --git a/domain/consensus/processes/ghostdagmanager/ghostdag.go b/domain/consensus/processes/ghostdagmanager/ghostdag.go index d034e2a58b..13f07287d2 100644 --- a/domain/consensus/processes/ghostdagmanager/ghostdag.go +++ b/domain/consensus/processes/ghostdagmanager/ghostdag.go @@ -3,9 +3,9 @@ package ghostdagmanager import ( "math/big" - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/util/difficulty" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/util/difficulty" "github.com/pkg/errors" ) diff --git a/domain/consensus/processes/ghostdagmanager/ghostdag_test.go b/domain/consensus/processes/ghostdagmanager/ghostdag_test.go index b78a825381..a7fa6d02b8 100644 --- a/domain/consensus/processes/ghostdagmanager/ghostdag_test.go +++ b/domain/consensus/processes/ghostdagmanager/ghostdag_test.go @@ -9,15 +9,15 @@ import ( "reflect" "testing" - "github.com/karlsen-network/karlsend/domain/consensus" - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/processes/ghostdag2" - "github.com/karlsen-network/karlsend/domain/consensus/processes/ghostdagmanager" - "github.com/karlsen-network/karlsend/domain/consensus/utils/blockheader" - "github.com/karlsen-network/karlsend/domain/consensus/utils/constants" - "github.com/karlsen-network/karlsend/domain/consensus/utils/testutils" - "github.com/karlsen-network/karlsend/util/difficulty" + "github.com/karlsen-network/karlsend/v2/domain/consensus" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/processes/ghostdag2" + "github.com/karlsen-network/karlsend/v2/domain/consensus/processes/ghostdagmanager" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/blockheader" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/constants" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/testutils" + "github.com/karlsen-network/karlsend/v2/util/difficulty" "github.com/pkg/errors" ) diff --git a/domain/consensus/processes/ghostdagmanager/ghostdagmanager.go b/domain/consensus/processes/ghostdagmanager/ghostdagmanager.go index 76a802d202..20180b5754 100644 --- a/domain/consensus/processes/ghostdagmanager/ghostdagmanager.go +++ b/domain/consensus/processes/ghostdagmanager/ghostdagmanager.go @@ -1,8 +1,8 @@ package ghostdagmanager import ( - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" ) // ghostdagManager resolves and manages GHOSTDAG block data diff --git a/domain/consensus/processes/ghostdagmanager/mergeset.go b/domain/consensus/processes/ghostdagmanager/mergeset.go index 012abe3941..5a4c9c162a 100644 --- a/domain/consensus/processes/ghostdagmanager/mergeset.go +++ b/domain/consensus/processes/ghostdagmanager/mergeset.go @@ -3,9 +3,9 @@ package ghostdagmanager import ( "sort" - "github.com/karlsen-network/karlsend/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" ) func (gm *ghostdagManager) mergeSetWithoutSelectedParent(stagingArea *model.StagingArea, diff --git a/domain/consensus/processes/headersselectedtipmanager/headersselectedtipmanager.go b/domain/consensus/processes/headersselectedtipmanager/headersselectedtipmanager.go index b6cd879b59..0740cc6955 100644 --- a/domain/consensus/processes/headersselectedtipmanager/headersselectedtipmanager.go +++ b/domain/consensus/processes/headersselectedtipmanager/headersselectedtipmanager.go @@ -1,8 +1,8 @@ package headersselectedtipmanager import ( - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" ) type headerTipsManager struct { diff --git a/domain/consensus/processes/headersselectedtipmanager/headersselectedtipmanager_test.go b/domain/consensus/processes/headersselectedtipmanager/headersselectedtipmanager_test.go index 332a72fe39..fd9a536540 100644 --- a/domain/consensus/processes/headersselectedtipmanager/headersselectedtipmanager_test.go +++ b/domain/consensus/processes/headersselectedtipmanager/headersselectedtipmanager_test.go @@ -3,12 +3,12 @@ package headersselectedtipmanager_test import ( "testing" - "github.com/karlsen-network/karlsend/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/testutils" - "github.com/karlsen-network/karlsend/infrastructure/db/database" + "github.com/karlsen-network/karlsend/v2/domain/consensus" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/testutils" + "github.com/karlsen-network/karlsend/v2/infrastructure/db/database" "github.com/pkg/errors" ) diff --git a/domain/consensus/processes/mergedepthmanager/log.go b/domain/consensus/processes/mergedepthmanager/log.go index e6f9405e68..2c57542194 100644 --- a/domain/consensus/processes/mergedepthmanager/log.go +++ b/domain/consensus/processes/mergedepthmanager/log.go @@ -1,7 +1,7 @@ package mergedepthmanager import ( - "github.com/karlsen-network/karlsend/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" ) var log = logger.RegisterSubSystem("MDMN") diff --git a/domain/consensus/processes/mergedepthmanager/merge_depth_manager.go b/domain/consensus/processes/mergedepthmanager/merge_depth_manager.go index d363aa3985..9d54d22429 100644 --- a/domain/consensus/processes/mergedepthmanager/merge_depth_manager.go +++ b/domain/consensus/processes/mergedepthmanager/merge_depth_manager.go @@ -1,10 +1,10 @@ package mergedepthmanager import ( - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/ruleerrors" - "github.com/karlsen-network/karlsend/infrastructure/db/database" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/ruleerrors" + "github.com/karlsen-network/karlsend/v2/infrastructure/db/database" "github.com/pkg/errors" ) diff --git a/domain/consensus/processes/parentsmanager/parentsmanager.go b/domain/consensus/processes/parentsmanager/parentsmanager.go index bd2e8c9e4d..b3cd9c8203 100644 --- a/domain/consensus/processes/parentsmanager/parentsmanager.go +++ b/domain/consensus/processes/parentsmanager/parentsmanager.go @@ -1,8 +1,8 @@ package parentssanager import ( - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" ) type parentsManager struct { diff --git a/domain/consensus/processes/pastmediantimemanager/pastmediantimemanager.go b/domain/consensus/processes/pastmediantimemanager/pastmediantimemanager.go index 9e43df6561..462e99e57b 100644 --- a/domain/consensus/processes/pastmediantimemanager/pastmediantimemanager.go +++ b/domain/consensus/processes/pastmediantimemanager/pastmediantimemanager.go @@ -3,10 +3,10 @@ package pastmediantimemanager import ( "sort" - "github.com/karlsen-network/karlsend/domain/consensus/utils/sorters" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/sorters" - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" "github.com/pkg/errors" ) diff --git a/domain/consensus/processes/pastmediantimemanager/pastmediantimemanager_test.go b/domain/consensus/processes/pastmediantimemanager/pastmediantimemanager_test.go index 6edbeddf9f..e89370891a 100644 --- a/domain/consensus/processes/pastmediantimemanager/pastmediantimemanager_test.go +++ b/domain/consensus/processes/pastmediantimemanager/pastmediantimemanager_test.go @@ -3,12 +3,12 @@ package pastmediantimemanager_test import ( "testing" - "github.com/karlsen-network/karlsend/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/consensushashing" - "github.com/karlsen-network/karlsend/domain/consensus/utils/testutils" + "github.com/karlsen-network/karlsend/v2/domain/consensus" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/consensushashing" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/testutils" ) func TestPastMedianTime(t *testing.T) { diff --git a/domain/consensus/processes/pruningmanager/log.go b/domain/consensus/processes/pruningmanager/log.go index 186c3aa354..9569cd1d90 100644 --- a/domain/consensus/processes/pruningmanager/log.go +++ b/domain/consensus/processes/pruningmanager/log.go @@ -1,5 +1,5 @@ package pruningmanager -import "github.com/karlsen-network/karlsend/infrastructure/logger" +import "github.com/karlsen-network/karlsend/v2/infrastructure/logger" var log = logger.RegisterSubSystem("PRNM") diff --git a/domain/consensus/processes/pruningmanager/pruning_test.go b/domain/consensus/processes/pruningmanager/pruning_test.go index 6e5e77e798..489c452115 100644 --- a/domain/consensus/processes/pruningmanager/pruning_test.go +++ b/domain/consensus/processes/pruningmanager/pruning_test.go @@ -7,14 +7,14 @@ import ( "testing" "time" - "github.com/karlsen-network/karlsend/infrastructure/db/database" + "github.com/karlsen-network/karlsend/v2/infrastructure/db/database" - "github.com/karlsen-network/karlsend/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/testutils" - "github.com/karlsen-network/karlsend/domain/dagconfig" + "github.com/karlsen-network/karlsend/v2/domain/consensus" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/testutils" + "github.com/karlsen-network/karlsend/v2/domain/dagconfig" ) type jsonBlock struct { diff --git a/domain/consensus/processes/pruningmanager/pruningmanager.go b/domain/consensus/processes/pruningmanager/pruningmanager.go index 202a6a9d72..64dc2335b8 100644 --- a/domain/consensus/processes/pruningmanager/pruningmanager.go +++ b/domain/consensus/processes/pruningmanager/pruningmanager.go @@ -3,15 +3,15 @@ package pruningmanager import ( "sort" - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/consensushashing" - "github.com/karlsen-network/karlsend/domain/consensus/utils/multiset" - "github.com/karlsen-network/karlsend/domain/consensus/utils/utxo" - "github.com/karlsen-network/karlsend/domain/consensus/utils/virtual" - "github.com/karlsen-network/karlsend/infrastructure/db/database" - "github.com/karlsen-network/karlsend/infrastructure/logger" - "github.com/karlsen-network/karlsend/util/staging" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/consensushashing" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/multiset" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/utxo" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/virtual" + "github.com/karlsen-network/karlsend/v2/infrastructure/db/database" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/util/staging" "github.com/pkg/errors" ) diff --git a/domain/consensus/processes/pruningproofmanager/log.go b/domain/consensus/processes/pruningproofmanager/log.go index 79ad4ca91b..1ae526c3aa 100644 --- a/domain/consensus/processes/pruningproofmanager/log.go +++ b/domain/consensus/processes/pruningproofmanager/log.go @@ -1,5 +1,5 @@ package pruningproofmanager -import "github.com/karlsen-network/karlsend/infrastructure/logger" +import "github.com/karlsen-network/karlsend/v2/infrastructure/logger" var log = logger.RegisterSubSystem("PPMN") diff --git a/domain/consensus/processes/pruningproofmanager/pruningproofmanager.go b/domain/consensus/processes/pruningproofmanager/pruningproofmanager.go index c509eda70a..fe92191b1e 100644 --- a/domain/consensus/processes/pruningproofmanager/pruningproofmanager.go +++ b/domain/consensus/processes/pruningproofmanager/pruningproofmanager.go @@ -3,23 +3,23 @@ package pruningproofmanager import ( "math/big" - consensusDB "github.com/karlsen-network/karlsend/domain/consensus/database" - "github.com/karlsen-network/karlsend/domain/consensus/datastructures/blockheaderstore" - "github.com/karlsen-network/karlsend/domain/consensus/datastructures/blockrelationstore" - "github.com/karlsen-network/karlsend/domain/consensus/datastructures/ghostdagdatastore" - "github.com/karlsen-network/karlsend/domain/consensus/datastructures/reachabilitydatastore" - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/processes/dagtopologymanager" - "github.com/karlsen-network/karlsend/domain/consensus/processes/dagtraversalmanager" - "github.com/karlsen-network/karlsend/domain/consensus/processes/ghostdagmanager" - "github.com/karlsen-network/karlsend/domain/consensus/processes/reachabilitymanager" - "github.com/karlsen-network/karlsend/domain/consensus/ruleerrors" - "github.com/karlsen-network/karlsend/domain/consensus/utils/consensushashing" - "github.com/karlsen-network/karlsend/domain/consensus/utils/hashset" - "github.com/karlsen-network/karlsend/infrastructure/db/database" - "github.com/karlsen-network/karlsend/infrastructure/logger" - "github.com/karlsen-network/karlsend/util/staging" + consensusDB "github.com/karlsen-network/karlsend/v2/domain/consensus/database" + "github.com/karlsen-network/karlsend/v2/domain/consensus/datastructures/blockheaderstore" + "github.com/karlsen-network/karlsend/v2/domain/consensus/datastructures/blockrelationstore" + "github.com/karlsen-network/karlsend/v2/domain/consensus/datastructures/ghostdagdatastore" + "github.com/karlsen-network/karlsend/v2/domain/consensus/datastructures/reachabilitydatastore" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/processes/dagtopologymanager" + "github.com/karlsen-network/karlsend/v2/domain/consensus/processes/dagtraversalmanager" + "github.com/karlsen-network/karlsend/v2/domain/consensus/processes/ghostdagmanager" + "github.com/karlsen-network/karlsend/v2/domain/consensus/processes/reachabilitymanager" + "github.com/karlsen-network/karlsend/v2/domain/consensus/ruleerrors" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/consensushashing" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/hashset" + "github.com/karlsen-network/karlsend/v2/infrastructure/db/database" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/util/staging" "github.com/pkg/errors" ) diff --git a/domain/consensus/processes/reachabilitymanager/fetch.go b/domain/consensus/processes/reachabilitymanager/fetch.go index 53d3aad2f9..58c4ac543d 100644 --- a/domain/consensus/processes/reachabilitymanager/fetch.go +++ b/domain/consensus/processes/reachabilitymanager/fetch.go @@ -1,10 +1,10 @@ package reachabilitymanager import ( - "github.com/karlsen-network/karlsend/domain/consensus/database" - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/reachabilitydata" + "github.com/karlsen-network/karlsend/v2/domain/consensus/database" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/reachabilitydata" "github.com/pkg/errors" ) diff --git a/domain/consensus/processes/reachabilitymanager/future_covering_set.go b/domain/consensus/processes/reachabilitymanager/future_covering_set.go index 2529005151..a1254d1670 100644 --- a/domain/consensus/processes/reachabilitymanager/future_covering_set.go +++ b/domain/consensus/processes/reachabilitymanager/future_covering_set.go @@ -1,8 +1,8 @@ package reachabilitymanager import ( - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" ) // insertToFutureCoveringSet inserts the given block into this node's FutureCoveringSet diff --git a/domain/consensus/processes/reachabilitymanager/interval.go b/domain/consensus/processes/reachabilitymanager/interval.go index 40da264c5e..abb8548cb6 100644 --- a/domain/consensus/processes/reachabilitymanager/interval.go +++ b/domain/consensus/processes/reachabilitymanager/interval.go @@ -3,7 +3,7 @@ package reachabilitymanager import ( "math" - "github.com/karlsen-network/karlsend/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" "github.com/pkg/errors" ) diff --git a/domain/consensus/processes/reachabilitymanager/log.go b/domain/consensus/processes/reachabilitymanager/log.go index bad821a421..b33a7d01bf 100644 --- a/domain/consensus/processes/reachabilitymanager/log.go +++ b/domain/consensus/processes/reachabilitymanager/log.go @@ -1,7 +1,7 @@ package reachabilitymanager import ( - "github.com/karlsen-network/karlsend/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" ) var log = logger.RegisterSubSystem("REAC") diff --git a/domain/consensus/processes/reachabilitymanager/main_test.go b/domain/consensus/processes/reachabilitymanager/main_test.go index 013fc4eecc..9f80ed3aca 100644 --- a/domain/consensus/processes/reachabilitymanager/main_test.go +++ b/domain/consensus/processes/reachabilitymanager/main_test.go @@ -4,7 +4,7 @@ import ( "os" "testing" - "github.com/karlsen-network/karlsend/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" ) const logLevel = logger.LevelWarn diff --git a/domain/consensus/processes/reachabilitymanager/ordered_tree_node_set.go b/domain/consensus/processes/reachabilitymanager/ordered_tree_node_set.go index 0c5c017904..a41d69daad 100644 --- a/domain/consensus/processes/reachabilitymanager/ordered_tree_node_set.go +++ b/domain/consensus/processes/reachabilitymanager/ordered_tree_node_set.go @@ -1,8 +1,8 @@ package reachabilitymanager import ( - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" ) // orderedTreeNodeSet is an ordered set of model.DomainHash ordered by the respectful intervals. diff --git a/domain/consensus/processes/reachabilitymanager/reachability.go b/domain/consensus/processes/reachabilitymanager/reachability.go index 4d6a1ff51f..7fa78a89fc 100644 --- a/domain/consensus/processes/reachabilitymanager/reachability.go +++ b/domain/consensus/processes/reachabilitymanager/reachability.go @@ -1,8 +1,8 @@ package reachabilitymanager import ( - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" ) // IsDAGAncestorOf returns true if blockHashA is an ancestor of diff --git a/domain/consensus/processes/reachabilitymanager/reachabilityManager_test.go b/domain/consensus/processes/reachabilitymanager/reachabilityManager_test.go index f1e23369e5..1aea7b6aec 100644 --- a/domain/consensus/processes/reachabilitymanager/reachabilityManager_test.go +++ b/domain/consensus/processes/reachabilitymanager/reachabilityManager_test.go @@ -3,11 +3,11 @@ package reachabilitymanager_test import ( "testing" - "github.com/karlsen-network/karlsend/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/testutils" + "github.com/karlsen-network/karlsend/v2/domain/consensus" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/testutils" ) func TestReachabilityIsDAGAncestorOf(t *testing.T) { diff --git a/domain/consensus/processes/reachabilitymanager/reachability_external_test.go b/domain/consensus/processes/reachabilitymanager/reachability_external_test.go index ab6608a43b..712c949f45 100644 --- a/domain/consensus/processes/reachabilitymanager/reachability_external_test.go +++ b/domain/consensus/processes/reachabilitymanager/reachability_external_test.go @@ -4,11 +4,11 @@ import ( "math" "testing" - "github.com/karlsen-network/karlsend/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/testutils" + "github.com/karlsen-network/karlsend/v2/domain/consensus" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/testutils" ) func TestAddChildThatPointsDirectlyToTheSelectedParentChainBelowReindexRoot(t *testing.T) { diff --git a/domain/consensus/processes/reachabilitymanager/reachability_stretch_test.go b/domain/consensus/processes/reachabilitymanager/reachability_stretch_test.go index 3ba33b4f3f..bb6fc8a612 100644 --- a/domain/consensus/processes/reachabilitymanager/reachability_stretch_test.go +++ b/domain/consensus/processes/reachabilitymanager/reachability_stretch_test.go @@ -8,12 +8,12 @@ import ( "os" "testing" - "github.com/karlsen-network/karlsend/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/model/testapi" - "github.com/karlsen-network/karlsend/domain/dagconfig" + "github.com/karlsen-network/karlsend/v2/domain/consensus" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/testapi" + "github.com/karlsen-network/karlsend/v2/domain/dagconfig" "github.com/pkg/errors" ) diff --git a/domain/consensus/processes/reachabilitymanager/reachability_test.go b/domain/consensus/processes/reachabilitymanager/reachability_test.go index 434f4c93b2..f054589d0e 100644 --- a/domain/consensus/processes/reachabilitymanager/reachability_test.go +++ b/domain/consensus/processes/reachabilitymanager/reachability_test.go @@ -6,8 +6,8 @@ import ( "strings" "testing" - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" ) type reachabilityDataStoreMock struct { diff --git a/domain/consensus/processes/reachabilitymanager/reachabilitymanager.go b/domain/consensus/processes/reachabilitymanager/reachabilitymanager.go index d8694d84a3..cb29bed6b0 100644 --- a/domain/consensus/processes/reachabilitymanager/reachabilitymanager.go +++ b/domain/consensus/processes/reachabilitymanager/reachabilitymanager.go @@ -1,8 +1,8 @@ package reachabilitymanager import ( - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" ) // reachabilityManager maintains a structure that allows to answer diff --git a/domain/consensus/processes/reachabilitymanager/reindex_context.go b/domain/consensus/processes/reachabilitymanager/reindex_context.go index 7c08ac9fdb..f6f0a792c3 100644 --- a/domain/consensus/processes/reachabilitymanager/reindex_context.go +++ b/domain/consensus/processes/reachabilitymanager/reindex_context.go @@ -1,8 +1,8 @@ package reachabilitymanager import ( - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" "github.com/pkg/errors" ) diff --git a/domain/consensus/processes/reachabilitymanager/stage.go b/domain/consensus/processes/reachabilitymanager/stage.go index 5484d89461..d56d38aeec 100644 --- a/domain/consensus/processes/reachabilitymanager/stage.go +++ b/domain/consensus/processes/reachabilitymanager/stage.go @@ -1,8 +1,8 @@ package reachabilitymanager import ( - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" ) func (rt *reachabilityManager) stageData(stagingArea *model.StagingArea, blockHash *externalapi.DomainHash, data model.ReachabilityData) { diff --git a/domain/consensus/processes/reachabilitymanager/test_reachabilitymanager.go b/domain/consensus/processes/reachabilitymanager/test_reachabilitymanager.go index 1a7aaf0047..c0332622bf 100644 --- a/domain/consensus/processes/reachabilitymanager/test_reachabilitymanager.go +++ b/domain/consensus/processes/reachabilitymanager/test_reachabilitymanager.go @@ -1,9 +1,9 @@ package reachabilitymanager import ( - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/model/testapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/testapi" ) type testReachabilityManager struct { diff --git a/domain/consensus/processes/reachabilitymanager/tree.go b/domain/consensus/processes/reachabilitymanager/tree.go index 17ec6fc96f..7900606896 100644 --- a/domain/consensus/processes/reachabilitymanager/tree.go +++ b/domain/consensus/processes/reachabilitymanager/tree.go @@ -5,10 +5,10 @@ import ( "strings" "time" - "github.com/karlsen-network/karlsend/domain/consensus/utils/reachabilitydata" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/reachabilitydata" - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" "github.com/pkg/errors" ) diff --git a/domain/consensus/processes/syncmanager/antipast.go b/domain/consensus/processes/syncmanager/antipast.go index 39a8175289..d8dfe6420f 100644 --- a/domain/consensus/processes/syncmanager/antipast.go +++ b/domain/consensus/processes/syncmanager/antipast.go @@ -1,8 +1,8 @@ package syncmanager import ( - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" "github.com/pkg/errors" ) diff --git a/domain/consensus/processes/syncmanager/blocklocator.go b/domain/consensus/processes/syncmanager/blocklocator.go index fdd887161c..882bd53027 100644 --- a/domain/consensus/processes/syncmanager/blocklocator.go +++ b/domain/consensus/processes/syncmanager/blocklocator.go @@ -1,9 +1,9 @@ package syncmanager import ( - "github.com/karlsen-network/karlsend/domain/consensus/database" - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/database" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" "github.com/pkg/errors" ) diff --git a/domain/consensus/processes/syncmanager/blocklocator_test.go b/domain/consensus/processes/syncmanager/blocklocator_test.go index 1de43cc125..c451b795bb 100644 --- a/domain/consensus/processes/syncmanager/blocklocator_test.go +++ b/domain/consensus/processes/syncmanager/blocklocator_test.go @@ -4,11 +4,11 @@ import ( "strings" "testing" - "github.com/karlsen-network/karlsend/domain/consensus" - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/testutils" - "github.com/karlsen-network/karlsend/infrastructure/db/database" + "github.com/karlsen-network/karlsend/v2/domain/consensus" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/testutils" + "github.com/karlsen-network/karlsend/v2/infrastructure/db/database" "github.com/pkg/errors" ) diff --git a/domain/consensus/processes/syncmanager/log.go b/domain/consensus/processes/syncmanager/log.go index 6f3c257af5..7c09929744 100644 --- a/domain/consensus/processes/syncmanager/log.go +++ b/domain/consensus/processes/syncmanager/log.go @@ -1,7 +1,7 @@ package syncmanager import ( - "github.com/karlsen-network/karlsend/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" ) var log = logger.RegisterSubSystem("SYNC") diff --git a/domain/consensus/processes/syncmanager/syncinfo.go b/domain/consensus/processes/syncmanager/syncinfo.go index 4752968a06..5b93dd56e9 100644 --- a/domain/consensus/processes/syncmanager/syncinfo.go +++ b/domain/consensus/processes/syncmanager/syncinfo.go @@ -1,8 +1,8 @@ package syncmanager import ( - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" ) func (sm *syncManager) syncInfo(stagingArea *model.StagingArea) (*externalapi.SyncInfo, error) { diff --git a/domain/consensus/processes/syncmanager/syncmanager.go b/domain/consensus/processes/syncmanager/syncmanager.go index e57ac61f96..490790cf83 100644 --- a/domain/consensus/processes/syncmanager/syncmanager.go +++ b/domain/consensus/processes/syncmanager/syncmanager.go @@ -1,9 +1,9 @@ package syncmanager import ( - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" "github.com/pkg/errors" ) diff --git a/domain/consensus/processes/syncmanager/syncmanager_test.go b/domain/consensus/processes/syncmanager/syncmanager_test.go index b6caa85ce4..7b880f01cf 100644 --- a/domain/consensus/processes/syncmanager/syncmanager_test.go +++ b/domain/consensus/processes/syncmanager/syncmanager_test.go @@ -6,11 +6,11 @@ import ( "sort" "testing" - "github.com/karlsen-network/karlsend/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/testutils" + "github.com/karlsen-network/karlsend/v2/domain/consensus" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/testutils" ) func TestSyncManager_GetHashesBetween(t *testing.T) { diff --git a/domain/consensus/processes/transactionvalidator/mass.go b/domain/consensus/processes/transactionvalidator/mass.go index ce490d85e8..065b5fc7ec 100644 --- a/domain/consensus/processes/transactionvalidator/mass.go +++ b/domain/consensus/processes/transactionvalidator/mass.go @@ -1,7 +1,7 @@ package transactionvalidator import ( - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" ) // PopulateMass calculates and populates the mass of the given transaction diff --git a/domain/consensus/processes/transactionvalidator/test_transaction_validator.go b/domain/consensus/processes/transactionvalidator/test_transaction_validator.go index 99be1731f6..448c0ee8e6 100644 --- a/domain/consensus/processes/transactionvalidator/test_transaction_validator.go +++ b/domain/consensus/processes/transactionvalidator/test_transaction_validator.go @@ -1,9 +1,9 @@ package transactionvalidator import ( - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/testapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/txscript" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/testapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/txscript" ) type testTransactionValidator struct { diff --git a/domain/consensus/processes/transactionvalidator/transaction_in_context.go b/domain/consensus/processes/transactionvalidator/transaction_in_context.go index 300c48a916..9ab14b2b22 100644 --- a/domain/consensus/processes/transactionvalidator/transaction_in_context.go +++ b/domain/consensus/processes/transactionvalidator/transaction_in_context.go @@ -3,13 +3,13 @@ package transactionvalidator import ( "math" - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/ruleerrors" - "github.com/karlsen-network/karlsend/domain/consensus/utils/consensushashing" - "github.com/karlsen-network/karlsend/domain/consensus/utils/constants" - "github.com/karlsen-network/karlsend/domain/consensus/utils/transactionhelper" - "github.com/karlsen-network/karlsend/domain/consensus/utils/txscript" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/ruleerrors" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/consensushashing" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/constants" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/transactionhelper" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/txscript" "github.com/pkg/errors" ) diff --git a/domain/consensus/processes/transactionvalidator/transaction_in_isolation.go b/domain/consensus/processes/transactionvalidator/transaction_in_isolation.go index 65b37f1e38..51b5b13806 100644 --- a/domain/consensus/processes/transactionvalidator/transaction_in_isolation.go +++ b/domain/consensus/processes/transactionvalidator/transaction_in_isolation.go @@ -1,11 +1,11 @@ package transactionvalidator import ( - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/ruleerrors" - "github.com/karlsen-network/karlsend/domain/consensus/utils/constants" - "github.com/karlsen-network/karlsend/domain/consensus/utils/subnetworks" - "github.com/karlsen-network/karlsend/domain/consensus/utils/transactionhelper" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/ruleerrors" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/constants" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/subnetworks" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/transactionhelper" "github.com/pkg/errors" ) diff --git a/domain/consensus/processes/transactionvalidator/transaction_in_isolation_test.go b/domain/consensus/processes/transactionvalidator/transaction_in_isolation_test.go index 8fd672ceec..68af6078f2 100644 --- a/domain/consensus/processes/transactionvalidator/transaction_in_isolation_test.go +++ b/domain/consensus/processes/transactionvalidator/transaction_in_isolation_test.go @@ -3,13 +3,13 @@ package transactionvalidator_test import ( "testing" - "github.com/karlsen-network/karlsend/domain/consensus" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/ruleerrors" - "github.com/karlsen-network/karlsend/domain/consensus/utils/constants" - "github.com/karlsen-network/karlsend/domain/consensus/utils/subnetworks" - "github.com/karlsen-network/karlsend/domain/consensus/utils/testutils" - "github.com/karlsen-network/karlsend/domain/consensus/utils/transactionhelper" + "github.com/karlsen-network/karlsend/v2/domain/consensus" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/ruleerrors" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/constants" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/subnetworks" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/testutils" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/transactionhelper" "github.com/pkg/errors" ) diff --git a/domain/consensus/processes/transactionvalidator/transactionvalidator.go b/domain/consensus/processes/transactionvalidator/transactionvalidator.go index ab014a156b..5e108762ef 100644 --- a/domain/consensus/processes/transactionvalidator/transactionvalidator.go +++ b/domain/consensus/processes/transactionvalidator/transactionvalidator.go @@ -1,10 +1,10 @@ package transactionvalidator import ( - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/txscript" - "github.com/karlsen-network/karlsend/util/txmass" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/txscript" + "github.com/karlsen-network/karlsend/v2/util/txmass" ) const sigCacheSize = 10_000 diff --git a/domain/consensus/processes/transactionvalidator/transactionvalidator_test.go b/domain/consensus/processes/transactionvalidator/transactionvalidator_test.go index 66932c5f5d..13fbdb3892 100644 --- a/domain/consensus/processes/transactionvalidator/transactionvalidator_test.go +++ b/domain/consensus/processes/transactionvalidator/transactionvalidator_test.go @@ -1,21 +1,21 @@ package transactionvalidator_test import ( - "github.com/karlsen-network/karlsend/domain/consensus" - "github.com/karlsen-network/karlsend/domain/consensus/ruleerrors" - "github.com/karlsen-network/karlsend/domain/consensus/utils/consensushashing" - "github.com/karlsen-network/karlsend/domain/consensus/utils/testutils" - "github.com/karlsen-network/karlsend/domain/consensus/utils/txscript" - "github.com/karlsen-network/karlsend/domain/consensus/utils/utxo" - "github.com/karlsen-network/karlsend/util" + "github.com/karlsen-network/karlsend/v2/domain/consensus" + "github.com/karlsen-network/karlsend/v2/domain/consensus/ruleerrors" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/consensushashing" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/testutils" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/txscript" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/utxo" + "github.com/karlsen-network/karlsend/v2/util" "github.com/kaspanet/go-secp256k1" "testing" - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/constants" - "github.com/karlsen-network/karlsend/domain/consensus/utils/subnetworks" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/constants" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/subnetworks" "github.com/pkg/errors" ) diff --git a/domain/consensus/pruning_test.go b/domain/consensus/pruning_test.go index 09fe435afc..9956df723f 100644 --- a/domain/consensus/pruning_test.go +++ b/domain/consensus/pruning_test.go @@ -3,9 +3,9 @@ package consensus_test import ( "testing" - "github.com/karlsen-network/karlsend/domain/consensus" - "github.com/karlsen-network/karlsend/domain/consensus/utils/testutils" - "github.com/karlsen-network/karlsend/domain/dagconfig" + "github.com/karlsen-network/karlsend/v2/domain/consensus" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/testutils" + "github.com/karlsen-network/karlsend/v2/domain/dagconfig" ) func TestPruningDepth(t *testing.T) { diff --git a/domain/consensus/ruleerrors/rule_error.go b/domain/consensus/ruleerrors/rule_error.go index 65081516a9..bd057fbbd2 100644 --- a/domain/consensus/ruleerrors/rule_error.go +++ b/domain/consensus/ruleerrors/rule_error.go @@ -3,8 +3,8 @@ package ruleerrors import ( "fmt" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/consensushashing" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/consensushashing" "github.com/pkg/errors" ) diff --git a/domain/consensus/ruleerrors/rule_error_test.go b/domain/consensus/ruleerrors/rule_error_test.go index f1e680dd1c..57a9a5c6cf 100644 --- a/domain/consensus/ruleerrors/rule_error_test.go +++ b/domain/consensus/ruleerrors/rule_error_test.go @@ -5,9 +5,9 @@ import ( "fmt" "testing" - "github.com/karlsen-network/karlsend/domain/consensus/utils/consensushashing" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/consensushashing" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" ) func TestNewErrMissingTxOut(t *testing.T) { diff --git a/domain/consensus/test_consensus.go b/domain/consensus/test_consensus.go index d02840da70..e2bb507170 100644 --- a/domain/consensus/test_consensus.go +++ b/domain/consensus/test_consensus.go @@ -5,15 +5,15 @@ import ( "fmt" "io" - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/utils/hashset" - "github.com/karlsen-network/karlsend/util/staging" - - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/model/testapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/consensushashing" - "github.com/karlsen-network/karlsend/domain/dagconfig" - "github.com/karlsen-network/karlsend/infrastructure/db/database" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/hashset" + "github.com/karlsen-network/karlsend/v2/util/staging" + + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/testapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/consensushashing" + "github.com/karlsen-network/karlsend/v2/domain/dagconfig" + "github.com/karlsen-network/karlsend/v2/infrastructure/db/database" "github.com/pkg/errors" ) diff --git a/domain/consensus/test_consensus_getters.go b/domain/consensus/test_consensus_getters.go index dc362cfc23..7f2c22b3f7 100644 --- a/domain/consensus/test_consensus_getters.go +++ b/domain/consensus/test_consensus_getters.go @@ -1,10 +1,10 @@ package consensus import ( - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/model/testapi" - "github.com/karlsen-network/karlsend/infrastructure/db/database" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/testapi" + "github.com/karlsen-network/karlsend/v2/infrastructure/db/database" ) func (tc *testConsensus) DatabaseContext() model.DBManager { diff --git a/domain/consensus/test_consensus_render_to_dot.go b/domain/consensus/test_consensus_render_to_dot.go index d36c4a3e70..456d2a9a3d 100644 --- a/domain/consensus/test_consensus_render_to_dot.go +++ b/domain/consensus/test_consensus_render_to_dot.go @@ -8,7 +8,7 @@ import ( "os/exec" "strings" - "github.com/karlsen-network/karlsend/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" ) // RenderDAGToDot is a helper function for debugging tests. diff --git a/domain/consensus/timelock_CLTV_test.go b/domain/consensus/timelock_CLTV_test.go index 7187abf97f..7c01a0b0d1 100644 --- a/domain/consensus/timelock_CLTV_test.go +++ b/domain/consensus/timelock_CLTV_test.go @@ -4,15 +4,15 @@ import ( "errors" "testing" - "github.com/karlsen-network/karlsend/domain/consensus" - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/ruleerrors" - "github.com/karlsen-network/karlsend/domain/consensus/utils/consensushashing" - "github.com/karlsen-network/karlsend/domain/consensus/utils/constants" - "github.com/karlsen-network/karlsend/domain/consensus/utils/testutils" - "github.com/karlsen-network/karlsend/domain/consensus/utils/transactionhelper" - "github.com/karlsen-network/karlsend/domain/consensus/utils/txscript" + "github.com/karlsen-network/karlsend/v2/domain/consensus" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/ruleerrors" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/consensushashing" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/constants" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/testutils" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/transactionhelper" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/txscript" ) // TestCheckLockTimeVerifyConditionedByDAAScore verifies that an output locked by the CLTV script is spendable only after diff --git a/domain/consensus/utils/blockheader/blockheader.go b/domain/consensus/utils/blockheader/blockheader.go index adccbcb1c8..f234a74809 100644 --- a/domain/consensus/utils/blockheader/blockheader.go +++ b/domain/consensus/utils/blockheader/blockheader.go @@ -3,8 +3,8 @@ package blockheader import ( "math/big" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/pow" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/pow" ) type blockHeader struct { diff --git a/domain/consensus/utils/blockheader/blockheader_test.go b/domain/consensus/utils/blockheader/blockheader_test.go index 829bf3ec20..2bc85ab5d4 100644 --- a/domain/consensus/utils/blockheader/blockheader_test.go +++ b/domain/consensus/utils/blockheader/blockheader_test.go @@ -4,7 +4,7 @@ import ( "math/big" "testing" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" ) func TestDomainBlockHeader_Equal(t *testing.T) { diff --git a/domain/consensus/utils/consensushashing/block.go b/domain/consensus/utils/consensushashing/block.go index 60628fe968..97bc45f0eb 100644 --- a/domain/consensus/utils/consensushashing/block.go +++ b/domain/consensus/utils/consensushashing/block.go @@ -3,10 +3,10 @@ package consensushashing import ( "io" - "github.com/karlsen-network/karlsend/domain/consensus/utils/serialization" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/serialization" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/hashes" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/hashes" "github.com/pkg/errors" ) diff --git a/domain/consensus/utils/consensushashing/calculate_signature_hash.go b/domain/consensus/utils/consensushashing/calculate_signature_hash.go index b89de29b2e..5259fde88a 100644 --- a/domain/consensus/utils/consensushashing/calculate_signature_hash.go +++ b/domain/consensus/utils/consensushashing/calculate_signature_hash.go @@ -1,10 +1,10 @@ package consensushashing import ( - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/hashes" - "github.com/karlsen-network/karlsend/domain/consensus/utils/serialization" - "github.com/karlsen-network/karlsend/domain/consensus/utils/subnetworks" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/hashes" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/serialization" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/subnetworks" "github.com/pkg/errors" ) diff --git a/domain/consensus/utils/consensushashing/calculate_signature_hash_test.go b/domain/consensus/utils/consensushashing/calculate_signature_hash_test.go index 3ab642fb8b..93d0b78ae4 100644 --- a/domain/consensus/utils/consensushashing/calculate_signature_hash_test.go +++ b/domain/consensus/utils/consensushashing/calculate_signature_hash_test.go @@ -5,17 +5,17 @@ import ( "fmt" "testing" - "github.com/karlsen-network/karlsend/domain/consensus/utils/subnetworks" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/subnetworks" "github.com/kaspanet/go-secp256k1" - "github.com/karlsen-network/karlsend/domain/consensus/utils/consensushashing" - "github.com/karlsen-network/karlsend/domain/consensus/utils/txscript" - "github.com/karlsen-network/karlsend/domain/consensus/utils/utxo" - "github.com/karlsen-network/karlsend/domain/dagconfig" - "github.com/karlsen-network/karlsend/util" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/consensushashing" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/txscript" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/utxo" + "github.com/karlsen-network/karlsend/v2/domain/dagconfig" + "github.com/karlsen-network/karlsend/v2/util" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" ) // shortened versions of SigHash types to fit in single line of test case diff --git a/domain/consensus/utils/consensushashing/transaction.go b/domain/consensus/utils/consensushashing/transaction.go index fa7806e0e3..e301d2228d 100644 --- a/domain/consensus/utils/consensushashing/transaction.go +++ b/domain/consensus/utils/consensushashing/transaction.go @@ -3,12 +3,12 @@ package consensushashing import ( "io" - "github.com/karlsen-network/karlsend/domain/consensus/utils/serialization" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/serialization" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/hashes" - "github.com/karlsen-network/karlsend/domain/consensus/utils/transactionhelper" - "github.com/karlsen-network/karlsend/util/binaryserializer" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/hashes" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/transactionhelper" + "github.com/karlsen-network/karlsend/v2/util/binaryserializer" "github.com/pkg/errors" ) diff --git a/domain/consensus/utils/hashes/strings.go b/domain/consensus/utils/hashes/strings.go index f4a1ce351d..b1b725186c 100644 --- a/domain/consensus/utils/hashes/strings.go +++ b/domain/consensus/utils/hashes/strings.go @@ -1,7 +1,7 @@ package hashes import ( - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" ) // ToStrings converts a slice of hashes into a slice of the corresponding strings diff --git a/domain/consensus/utils/hashes/writers.go b/domain/consensus/utils/hashes/writers.go index dcf9054eab..34a40e1c67 100644 --- a/domain/consensus/utils/hashes/writers.go +++ b/domain/consensus/utils/hashes/writers.go @@ -3,7 +3,7 @@ package hashes import ( "hash" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" "github.com/pkg/errors" "golang.org/x/crypto/sha3" "lukechampine.com/blake3" diff --git a/domain/consensus/utils/hashset/hash_set.go b/domain/consensus/utils/hashset/hash_set.go index b44b33429f..59a1586616 100644 --- a/domain/consensus/utils/hashset/hash_set.go +++ b/domain/consensus/utils/hashset/hash_set.go @@ -3,7 +3,7 @@ package hashset import ( "strings" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" ) // HashSet is an unsorted unique collection of DomainHashes diff --git a/domain/consensus/utils/lrucache/lrucache.go b/domain/consensus/utils/lrucache/lrucache.go index 14981e0775..d25d2d8110 100644 --- a/domain/consensus/utils/lrucache/lrucache.go +++ b/domain/consensus/utils/lrucache/lrucache.go @@ -1,7 +1,7 @@ package lrucache import ( - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" ) // LRUCache is a least-recently-used cache for any type diff --git a/domain/consensus/utils/lrucacheghostdagdata/lrucacheghostdagdata.go b/domain/consensus/utils/lrucacheghostdagdata/lrucacheghostdagdata.go index 9573ed960e..6313e47486 100644 --- a/domain/consensus/utils/lrucacheghostdagdata/lrucacheghostdagdata.go +++ b/domain/consensus/utils/lrucacheghostdagdata/lrucacheghostdagdata.go @@ -1,6 +1,6 @@ package lrucacheghostdagdata -import "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" +import "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" type lruKey struct { blockHash externalapi.DomainHash diff --git a/domain/consensus/utils/lrucachehashandwindowsizetoblockghostdagdatahashpairs/lrucachehashandwindowsizetoblockghostdagdatahashpairs.go b/domain/consensus/utils/lrucachehashandwindowsizetoblockghostdagdatahashpairs/lrucachehashandwindowsizetoblockghostdagdatahashpairs.go index 435e49aaf4..61cd15e6b9 100644 --- a/domain/consensus/utils/lrucachehashandwindowsizetoblockghostdagdatahashpairs/lrucachehashandwindowsizetoblockghostdagdatahashpairs.go +++ b/domain/consensus/utils/lrucachehashandwindowsizetoblockghostdagdatahashpairs/lrucachehashandwindowsizetoblockghostdagdatahashpairs.go @@ -1,6 +1,6 @@ package lrucachehashandwindowsizetoblockghostdagdatahashpairs -import "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" +import "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" type lruKey struct { blockHash externalapi.DomainHash diff --git a/domain/consensus/utils/lrucachehashpairtoblockghostdagdatahashpair/lrucachehashpairtoblockghostdagdatahashpair.go b/domain/consensus/utils/lrucachehashpairtoblockghostdagdatahashpair/lrucachehashpairtoblockghostdagdatahashpair.go index f6bd062af6..a795019011 100644 --- a/domain/consensus/utils/lrucachehashpairtoblockghostdagdatahashpair/lrucachehashpairtoblockghostdagdatahashpair.go +++ b/domain/consensus/utils/lrucachehashpairtoblockghostdagdatahashpair/lrucachehashpairtoblockghostdagdatahashpair.go @@ -1,6 +1,6 @@ package lrucachehashpairtoblockghostdagdatahashpair -import "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" +import "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" type lruKey struct { blockHash externalapi.DomainHash diff --git a/domain/consensus/utils/lrucacheuint64tohash/lrucacheuint64tohash.go b/domain/consensus/utils/lrucacheuint64tohash/lrucacheuint64tohash.go index 899e694f46..d4be95e13c 100644 --- a/domain/consensus/utils/lrucacheuint64tohash/lrucacheuint64tohash.go +++ b/domain/consensus/utils/lrucacheuint64tohash/lrucacheuint64tohash.go @@ -1,6 +1,6 @@ package lrucacheuint64tohash -import "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" +import "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" // LRUCache is a least-recently-used cache from // uint64 to DomainHash diff --git a/domain/consensus/utils/merkle/merkle.go b/domain/consensus/utils/merkle/merkle.go index 9159b5f34a..00ad16035d 100644 --- a/domain/consensus/utils/merkle/merkle.go +++ b/domain/consensus/utils/merkle/merkle.go @@ -3,9 +3,9 @@ package merkle import ( "math" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/consensushashing" - "github.com/karlsen-network/karlsend/domain/consensus/utils/hashes" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/consensushashing" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/hashes" ) // nextPowerOfTwo returns the next highest power of two from a given number if diff --git a/domain/consensus/utils/mining/solve.go b/domain/consensus/utils/mining/solve.go index 1ae47bae97..dc8a0bab30 100644 --- a/domain/consensus/utils/mining/solve.go +++ b/domain/consensus/utils/mining/solve.go @@ -4,8 +4,8 @@ import ( "math" "math/rand" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/pow" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/pow" "github.com/pkg/errors" ) diff --git a/domain/consensus/utils/multiset/multiset.go b/domain/consensus/utils/multiset/multiset.go index 49b483d46a..f2867cee03 100644 --- a/domain/consensus/utils/multiset/multiset.go +++ b/domain/consensus/utils/multiset/multiset.go @@ -1,8 +1,8 @@ package multiset import ( - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" "github.com/kaspanet/go-muhash" "github.com/pkg/errors" ) diff --git a/domain/consensus/utils/pow/fishhashplus_kernel.go b/domain/consensus/utils/pow/fishhashplus_kernel.go index e26311929d..9c3dedc085 100644 --- a/domain/consensus/utils/pow/fishhashplus_kernel.go +++ b/domain/consensus/utils/pow/fishhashplus_kernel.go @@ -1,7 +1,7 @@ package pow import ( - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" //"crypto/sha3" "encoding/binary" diff --git a/domain/consensus/utils/pow/heavyhash.go b/domain/consensus/utils/pow/heavyhash.go index bd673826d4..d13b0dec3f 100644 --- a/domain/consensus/utils/pow/heavyhash.go +++ b/domain/consensus/utils/pow/heavyhash.go @@ -3,8 +3,8 @@ package pow import ( "math" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/hashes" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/hashes" ) const eps float64 = 1e-9 diff --git a/domain/consensus/utils/pow/heavyhash_test.go b/domain/consensus/utils/pow/heavyhash_test.go index f256fa9e0c..eaee93af6c 100644 --- a/domain/consensus/utils/pow/heavyhash_test.go +++ b/domain/consensus/utils/pow/heavyhash_test.go @@ -6,8 +6,8 @@ import ( "math/rand" "testing" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/hashes" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/hashes" ) func BenchmarkMatrix_HeavyHash(b *testing.B) { diff --git a/domain/consensus/utils/pow/log.go b/domain/consensus/utils/pow/log.go index ba17b89d01..6852557e35 100644 --- a/domain/consensus/utils/pow/log.go +++ b/domain/consensus/utils/pow/log.go @@ -1,8 +1,8 @@ package pow import ( - "github.com/karlsen-network/karlsend/infrastructure/logger" - "github.com/karlsen-network/karlsend/util/panics" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/util/panics" ) var log = logger.RegisterSubSystem("POWK") diff --git a/domain/consensus/utils/pow/pow.go b/domain/consensus/utils/pow/pow.go index ce0ff272c4..b8771b8e12 100644 --- a/domain/consensus/utils/pow/pow.go +++ b/domain/consensus/utils/pow/pow.go @@ -1,14 +1,14 @@ package pow import ( - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/consensushashing" - "github.com/karlsen-network/karlsend/domain/consensus/utils/constants" - "github.com/karlsen-network/karlsend/domain/consensus/utils/hashes" - "github.com/karlsen-network/karlsend/domain/consensus/utils/serialization" - "github.com/karlsen-network/karlsend/infrastructure/logger" - "github.com/karlsen-network/karlsend/util/difficulty" - "github.com/karlsen-network/karlsend/util/panics" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/consensushashing" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/constants" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/hashes" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/serialization" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/util/difficulty" + "github.com/karlsen-network/karlsend/v2/util/panics" "github.com/pkg/errors" "math/big" diff --git a/domain/consensus/utils/pow/xoshiro.go b/domain/consensus/utils/pow/xoshiro.go index 27c4c32b87..e2286e6845 100644 --- a/domain/consensus/utils/pow/xoshiro.go +++ b/domain/consensus/utils/pow/xoshiro.go @@ -4,7 +4,7 @@ import ( "encoding/binary" "math/bits" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" ) type xoShiRo256PlusPlus struct { diff --git a/domain/consensus/utils/reachabilitydata/reachability_data.go b/domain/consensus/utils/reachabilitydata/reachability_data.go index eb9452fdd9..00abdda6db 100644 --- a/domain/consensus/utils/reachabilitydata/reachability_data.go +++ b/domain/consensus/utils/reachabilitydata/reachability_data.go @@ -1,8 +1,8 @@ package reachabilitydata import ( - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" ) type reachabilityData struct { diff --git a/domain/consensus/utils/reachabilitydata/reachabilitydata_equal_clone_test.go b/domain/consensus/utils/reachabilitydata/reachabilitydata_equal_clone_test.go index af90e6abdc..3b0c3c0516 100644 --- a/domain/consensus/utils/reachabilitydata/reachabilitydata_equal_clone_test.go +++ b/domain/consensus/utils/reachabilitydata/reachabilitydata_equal_clone_test.go @@ -4,8 +4,8 @@ import ( "reflect" "testing" - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" ) func TestReachabilityData_Equal(t *testing.T) { diff --git a/domain/consensus/utils/serialization/common.go b/domain/consensus/utils/serialization/common.go index b83b34c037..71694e6b98 100644 --- a/domain/consensus/utils/serialization/common.go +++ b/domain/consensus/utils/serialization/common.go @@ -3,8 +3,8 @@ package serialization import ( "io" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/util/binaryserializer" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/util/binaryserializer" "github.com/pkg/errors" ) diff --git a/domain/consensus/utils/subnetworks/compare.go b/domain/consensus/utils/subnetworks/compare.go index 84f4811b9f..3a5a5e79b7 100644 --- a/domain/consensus/utils/subnetworks/compare.go +++ b/domain/consensus/utils/subnetworks/compare.go @@ -3,7 +3,7 @@ package subnetworks import ( "bytes" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" ) // Less returns true iff id a is less than id b diff --git a/domain/consensus/utils/subnetworks/from_bytes.go b/domain/consensus/utils/subnetworks/from_bytes.go index 7bda7665a2..a37340fa58 100644 --- a/domain/consensus/utils/subnetworks/from_bytes.go +++ b/domain/consensus/utils/subnetworks/from_bytes.go @@ -1,7 +1,7 @@ package subnetworks import ( - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" "github.com/pkg/errors" ) diff --git a/domain/consensus/utils/subnetworks/from_string.go b/domain/consensus/utils/subnetworks/from_string.go index f373037cf7..fc9cea07e9 100644 --- a/domain/consensus/utils/subnetworks/from_string.go +++ b/domain/consensus/utils/subnetworks/from_string.go @@ -3,7 +3,7 @@ package subnetworks import ( "encoding/hex" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" ) // FromString creates a DomainSubnetworkID from the given byte slice diff --git a/domain/consensus/utils/subnetworks/subnetworks.go b/domain/consensus/utils/subnetworks/subnetworks.go index 56a3eb3fd6..2fcc1c6d18 100644 --- a/domain/consensus/utils/subnetworks/subnetworks.go +++ b/domain/consensus/utils/subnetworks/subnetworks.go @@ -1,6 +1,6 @@ package subnetworks -import "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" +import "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" var ( // SubnetworkIDNative is the default subnetwork ID which is used for transactions without related payload data diff --git a/domain/consensus/utils/testutils/create_transaction.go b/domain/consensus/utils/testutils/create_transaction.go index d4f0b1514a..25afbf628c 100644 --- a/domain/consensus/utils/testutils/create_transaction.go +++ b/domain/consensus/utils/testutils/create_transaction.go @@ -1,10 +1,10 @@ package testutils import ( - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/consensushashing" - "github.com/karlsen-network/karlsend/domain/consensus/utils/constants" - "github.com/karlsen-network/karlsend/domain/consensus/utils/txscript" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/consensushashing" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/constants" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/txscript" ) // CreateTransaction create a transaction that spends the first output of provided transaction. diff --git a/domain/consensus/utils/testutils/for_all_nets.go b/domain/consensus/utils/testutils/for_all_nets.go index fc5bb156bc..756290ad9e 100644 --- a/domain/consensus/utils/testutils/for_all_nets.go +++ b/domain/consensus/utils/testutils/for_all_nets.go @@ -3,8 +3,8 @@ package testutils import ( "testing" - "github.com/karlsen-network/karlsend/domain/consensus" - "github.com/karlsen-network/karlsend/domain/dagconfig" + "github.com/karlsen-network/karlsend/v2/domain/consensus" + "github.com/karlsen-network/karlsend/v2/domain/dagconfig" ) // ForAllNets runs the passed testFunc with all available networks diff --git a/domain/consensus/utils/testutils/for_all_paths.go b/domain/consensus/utils/testutils/for_all_paths.go index ffb9cec267..9cb29745f4 100644 --- a/domain/consensus/utils/testutils/for_all_paths.go +++ b/domain/consensus/utils/testutils/for_all_paths.go @@ -4,7 +4,7 @@ import ( "fmt" "testing" - "github.com/karlsen-network/karlsend/cmd/karlsenwallet/keys" + "github.com/karlsen-network/karlsend/v2/cmd/karlsenwallet/keys" ) // ForAllPaths runs the passed testFunc with all available derivation paths diff --git a/domain/consensus/utils/testutils/op_true_script.go b/domain/consensus/utils/testutils/op_true_script.go index 53cfb294b8..e3eddcd537 100644 --- a/domain/consensus/utils/testutils/op_true_script.go +++ b/domain/consensus/utils/testutils/op_true_script.go @@ -1,9 +1,9 @@ package testutils import ( - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/constants" - "github.com/karlsen-network/karlsend/domain/consensus/utils/txscript" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/constants" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/txscript" "github.com/pkg/errors" ) diff --git a/domain/consensus/utils/testutils/test_ghostdag.go b/domain/consensus/utils/testutils/test_ghostdag.go index 62c805a412..6519eda4e3 100644 --- a/domain/consensus/utils/testutils/test_ghostdag.go +++ b/domain/consensus/utils/testutils/test_ghostdag.go @@ -4,9 +4,9 @@ import ( "sort" "testing" - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/model/testapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/testapi" ) type testGhostDAGSorter struct { diff --git a/domain/consensus/utils/transactionhelper/coinbase.go b/domain/consensus/utils/transactionhelper/coinbase.go index 6584dde138..cd67c3e32b 100644 --- a/domain/consensus/utils/transactionhelper/coinbase.go +++ b/domain/consensus/utils/transactionhelper/coinbase.go @@ -1,8 +1,8 @@ package transactionhelper import ( - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/subnetworks" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/subnetworks" ) // CoinbaseTransactionIndex is the index of the coinbase transaction in every block diff --git a/domain/consensus/utils/transactionhelper/new.go b/domain/consensus/utils/transactionhelper/new.go index 6cc0df31eb..a70232a01b 100644 --- a/domain/consensus/utils/transactionhelper/new.go +++ b/domain/consensus/utils/transactionhelper/new.go @@ -1,8 +1,8 @@ package transactionhelper import ( - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/subnetworks" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/subnetworks" ) // NewSubnetworkTransaction returns a new trsnactions in the specified subnetwork with specified gas and payload diff --git a/domain/consensus/utils/transactionid/from_bytes.go b/domain/consensus/utils/transactionid/from_bytes.go index 9b17e77ebe..87e5e449b1 100644 --- a/domain/consensus/utils/transactionid/from_bytes.go +++ b/domain/consensus/utils/transactionid/from_bytes.go @@ -1,7 +1,7 @@ package transactionid import ( - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" ) // FromBytes creates a DomainTransactionID from the given byte slice diff --git a/domain/consensus/utils/transactionid/from_string.go b/domain/consensus/utils/transactionid/from_string.go index ef23dd2680..4f01a42d00 100644 --- a/domain/consensus/utils/transactionid/from_string.go +++ b/domain/consensus/utils/transactionid/from_string.go @@ -1,7 +1,7 @@ package transactionid import ( - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" ) // FromString creates a new DomainTransactionID from the given string diff --git a/domain/consensus/utils/txscript/engine.go b/domain/consensus/utils/txscript/engine.go index 59f1eb1d26..a385ae505f 100644 --- a/domain/consensus/utils/txscript/engine.go +++ b/domain/consensus/utils/txscript/engine.go @@ -7,10 +7,10 @@ package txscript import ( "fmt" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/consensushashing" - "github.com/karlsen-network/karlsend/domain/consensus/utils/constants" - "github.com/karlsen-network/karlsend/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/consensushashing" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/constants" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" ) // ScriptFlags is a bitmask defining additional operations or tests that will be diff --git a/domain/consensus/utils/txscript/engine_test.go b/domain/consensus/utils/txscript/engine_test.go index dd0df90289..27152e0df6 100644 --- a/domain/consensus/utils/txscript/engine_test.go +++ b/domain/consensus/utils/txscript/engine_test.go @@ -7,9 +7,9 @@ package txscript import ( "testing" - "github.com/karlsen-network/karlsend/domain/consensus/utils/consensushashing" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/consensushashing" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" ) // TestBadPC sets the pc to a deliberately bad result then confirms that Step() diff --git a/domain/consensus/utils/txscript/example_test.go b/domain/consensus/utils/txscript/example_test.go index a058b24132..48e6f39593 100644 --- a/domain/consensus/utils/txscript/example_test.go +++ b/domain/consensus/utils/txscript/example_test.go @@ -8,11 +8,11 @@ import ( "encoding/hex" "fmt" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/txscript" - "github.com/karlsen-network/karlsend/domain/dagconfig" - "github.com/karlsen-network/karlsend/util" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/txscript" + "github.com/karlsen-network/karlsend/v2/domain/dagconfig" + "github.com/karlsen-network/karlsend/v2/util" ) // This example demonstrates creating a script which pays to a karlsen address. diff --git a/domain/consensus/utils/txscript/log.go b/domain/consensus/utils/txscript/log.go index 938c021026..196ba1c749 100644 --- a/domain/consensus/utils/txscript/log.go +++ b/domain/consensus/utils/txscript/log.go @@ -5,7 +5,7 @@ package txscript import ( - "github.com/karlsen-network/karlsend/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" ) var log = logger.RegisterSubSystem("SCRP") diff --git a/domain/consensus/utils/txscript/main_test.go b/domain/consensus/utils/txscript/main_test.go index 5db56cb2ca..fd365ed560 100644 --- a/domain/consensus/utils/txscript/main_test.go +++ b/domain/consensus/utils/txscript/main_test.go @@ -4,7 +4,7 @@ import ( "os" "testing" - "github.com/karlsen-network/karlsend/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" ) func TestMain(m *testing.M) { diff --git a/domain/consensus/utils/txscript/opcode.go b/domain/consensus/utils/txscript/opcode.go index b86a71158d..024f50b63c 100644 --- a/domain/consensus/utils/txscript/opcode.go +++ b/domain/consensus/utils/txscript/opcode.go @@ -11,11 +11,11 @@ import ( "fmt" "hash" - "github.com/karlsen-network/karlsend/domain/consensus/utils/consensushashing" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/consensushashing" "golang.org/x/crypto/blake2b" - "github.com/karlsen-network/karlsend/domain/consensus/utils/constants" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/constants" "github.com/kaspanet/go-secp256k1" ) diff --git a/domain/consensus/utils/txscript/reference_test.go b/domain/consensus/utils/txscript/reference_test.go index 4061ec4846..22261dfdbd 100644 --- a/domain/consensus/utils/txscript/reference_test.go +++ b/domain/consensus/utils/txscript/reference_test.go @@ -13,12 +13,12 @@ import ( "strings" "testing" - "github.com/karlsen-network/karlsend/domain/consensus/utils/constants" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/constants" - "github.com/karlsen-network/karlsend/domain/consensus/utils/consensushashing" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/consensushashing" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" "github.com/pkg/errors" ) diff --git a/domain/consensus/utils/txscript/script.go b/domain/consensus/utils/txscript/script.go index 7eef764835..d1b9af78b9 100644 --- a/domain/consensus/utils/txscript/script.go +++ b/domain/consensus/utils/txscript/script.go @@ -8,9 +8,9 @@ import ( "bytes" "fmt" - "github.com/karlsen-network/karlsend/domain/consensus/utils/constants" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/constants" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" ) // These are the constants specified for maximums in individual scripts. diff --git a/domain/consensus/utils/txscript/script_test.go b/domain/consensus/utils/txscript/script_test.go index 44fce313c4..9a2e043561 100644 --- a/domain/consensus/utils/txscript/script_test.go +++ b/domain/consensus/utils/txscript/script_test.go @@ -10,7 +10,7 @@ import ( "reflect" "testing" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" ) // TestParseOpcode tests for opcode parsing with bad data templates. diff --git a/domain/consensus/utils/txscript/sign.go b/domain/consensus/utils/txscript/sign.go index 265ea00b65..848f64e75e 100644 --- a/domain/consensus/utils/txscript/sign.go +++ b/domain/consensus/utils/txscript/sign.go @@ -5,13 +5,13 @@ package txscript import ( - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/consensushashing" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/consensushashing" "github.com/kaspanet/go-secp256k1" "github.com/pkg/errors" - "github.com/karlsen-network/karlsend/domain/dagconfig" - "github.com/karlsen-network/karlsend/util" + "github.com/karlsen-network/karlsend/v2/domain/dagconfig" + "github.com/karlsen-network/karlsend/v2/util" ) // RawTxInSignature returns the serialized Schnorr signature for the input idx of diff --git a/domain/consensus/utils/txscript/sign_test.go b/domain/consensus/utils/txscript/sign_test.go index afcf79764e..520a092b5d 100644 --- a/domain/consensus/utils/txscript/sign_test.go +++ b/domain/consensus/utils/txscript/sign_test.go @@ -8,16 +8,16 @@ import ( "fmt" "testing" - "github.com/karlsen-network/karlsend/domain/consensus/utils/utxo" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/utxo" - "github.com/karlsen-network/karlsend/domain/consensus/utils/consensushashing" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/consensushashing" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" "github.com/kaspanet/go-secp256k1" "github.com/pkg/errors" - "github.com/karlsen-network/karlsend/domain/dagconfig" - "github.com/karlsen-network/karlsend/util" + "github.com/karlsen-network/karlsend/v2/domain/dagconfig" + "github.com/karlsen-network/karlsend/v2/util" ) func mkGetKey(keys map[string]*secp256k1.SchnorrKeyPair) KeyDB { diff --git a/domain/consensus/utils/txscript/standard.go b/domain/consensus/utils/txscript/standard.go index 2b06edf0b8..253d11aba2 100644 --- a/domain/consensus/utils/txscript/standard.go +++ b/domain/consensus/utils/txscript/standard.go @@ -7,12 +7,12 @@ package txscript import ( "fmt" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/constants" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/constants" "github.com/pkg/errors" - "github.com/karlsen-network/karlsend/domain/dagconfig" - "github.com/karlsen-network/karlsend/util" + "github.com/karlsen-network/karlsend/v2/domain/dagconfig" + "github.com/karlsen-network/karlsend/v2/util" ) // ScriptClass is an enumeration for the list of standard types of script. diff --git a/domain/consensus/utils/txscript/standard_test.go b/domain/consensus/utils/txscript/standard_test.go index 3ec1a71e71..f2ce4b2883 100644 --- a/domain/consensus/utils/txscript/standard_test.go +++ b/domain/consensus/utils/txscript/standard_test.go @@ -9,10 +9,10 @@ import ( "reflect" "testing" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/dagconfig" - "github.com/karlsen-network/karlsend/util" + "github.com/karlsen-network/karlsend/v2/domain/dagconfig" + "github.com/karlsen-network/karlsend/v2/util" ) // mustParseShortForm parses the passed short form script and returns the diff --git a/domain/consensus/utils/utxo/diff_algebra.go b/domain/consensus/utils/utxo/diff_algebra.go index 7f16b4ab41..44160a60f5 100644 --- a/domain/consensus/utils/utxo/diff_algebra.go +++ b/domain/consensus/utils/utxo/diff_algebra.go @@ -1,7 +1,7 @@ package utxo import ( - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" "github.com/pkg/errors" ) diff --git a/domain/consensus/utils/utxo/diff_algebra_test.go b/domain/consensus/utils/utxo/diff_algebra_test.go index 268b3b32b1..5e38df61b3 100644 --- a/domain/consensus/utils/utxo/diff_algebra_test.go +++ b/domain/consensus/utils/utxo/diff_algebra_test.go @@ -4,9 +4,9 @@ import ( "reflect" "testing" - "github.com/karlsen-network/karlsend/domain/consensus/utils/transactionid" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/transactionid" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" ) func (mud *mutableUTXODiff) equal(other *mutableUTXODiff) bool { diff --git a/domain/consensus/utils/utxo/immutable_utxo_diff.go b/domain/consensus/utils/utxo/immutable_utxo_diff.go index 2842926d16..6642340425 100644 --- a/domain/consensus/utils/utxo/immutable_utxo_diff.go +++ b/domain/consensus/utils/utxo/immutable_utxo_diff.go @@ -1,7 +1,7 @@ package utxo import ( - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" "github.com/pkg/errors" ) diff --git a/domain/consensus/utils/utxo/mutable_utxo_diff.go b/domain/consensus/utils/utxo/mutable_utxo_diff.go index 3db4a127d9..819a835299 100644 --- a/domain/consensus/utils/utxo/mutable_utxo_diff.go +++ b/domain/consensus/utils/utxo/mutable_utxo_diff.go @@ -3,9 +3,9 @@ package utxo import ( "fmt" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/consensushashing" - "github.com/karlsen-network/karlsend/domain/consensus/utils/transactionhelper" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/consensushashing" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/transactionhelper" "github.com/pkg/errors" ) diff --git a/domain/consensus/utils/utxo/serialization.go b/domain/consensus/utils/utxo/serialization.go index b4ae15b426..df2b679262 100644 --- a/domain/consensus/utils/utxo/serialization.go +++ b/domain/consensus/utils/utxo/serialization.go @@ -4,9 +4,9 @@ import ( "bytes" "io" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/serialization" - "github.com/karlsen-network/karlsend/domain/consensus/utils/transactionid" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/serialization" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/transactionid" "github.com/pkg/errors" ) diff --git a/domain/consensus/utils/utxo/serialization_test.go b/domain/consensus/utils/utxo/serialization_test.go index bb3ea35540..4ec329ad61 100644 --- a/domain/consensus/utils/utxo/serialization_test.go +++ b/domain/consensus/utils/utxo/serialization_test.go @@ -5,7 +5,7 @@ import ( "reflect" "testing" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" ) func Benchmark_serializeUTXO(b *testing.B) { diff --git a/domain/consensus/utils/utxo/utxo_collection.go b/domain/consensus/utils/utxo/utxo_collection.go index 0d49bd98fc..f02ff0afd7 100644 --- a/domain/consensus/utils/utxo/utxo_collection.go +++ b/domain/consensus/utils/utxo/utxo_collection.go @@ -5,7 +5,7 @@ import ( "sort" "strings" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" ) type utxoCollection map[externalapi.DomainOutpoint]externalapi.UTXOEntry diff --git a/domain/consensus/utils/utxo/utxo_entry.go b/domain/consensus/utils/utxo/utxo_entry.go index a02e221a52..517ec0d3b2 100644 --- a/domain/consensus/utils/utxo/utxo_entry.go +++ b/domain/consensus/utils/utxo/utxo_entry.go @@ -1,7 +1,7 @@ package utxo import ( - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" ) type utxoEntry struct { diff --git a/domain/consensus/utils/utxo/utxo_entry_test.go b/domain/consensus/utils/utxo/utxo_entry_test.go index 6e8f0714fa..e34a326ab5 100644 --- a/domain/consensus/utils/utxo/utxo_entry_test.go +++ b/domain/consensus/utils/utxo/utxo_entry_test.go @@ -3,7 +3,7 @@ package utxo import ( "testing" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" ) func TestUTXOEntry_Equal(t *testing.T) { diff --git a/domain/consensus/utils/utxo/utxo_iterator.go b/domain/consensus/utils/utxo/utxo_iterator.go index 446eef6bc3..8f6e93fe31 100644 --- a/domain/consensus/utils/utxo/utxo_iterator.go +++ b/domain/consensus/utils/utxo/utxo_iterator.go @@ -1,7 +1,7 @@ package utxo import ( - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" "github.com/pkg/errors" ) diff --git a/domain/consensus/utils/utxo/utxo_iterator_with_diff.go b/domain/consensus/utils/utxo/utxo_iterator_with_diff.go index cddec7bf65..e4def29fa4 100644 --- a/domain/consensus/utils/utxo/utxo_iterator_with_diff.go +++ b/domain/consensus/utils/utxo/utxo_iterator_with_diff.go @@ -1,7 +1,7 @@ package utxo import ( - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" "github.com/pkg/errors" ) diff --git a/domain/consensus/utils/utxolrucache/utxolrucache.go b/domain/consensus/utils/utxolrucache/utxolrucache.go index 34e4369d77..5c040d94f7 100644 --- a/domain/consensus/utils/utxolrucache/utxolrucache.go +++ b/domain/consensus/utils/utxolrucache/utxolrucache.go @@ -1,7 +1,7 @@ package utxolrucache import ( - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" ) // LRUCache is a least-recently-used cache for UTXO entries diff --git a/domain/consensus/utils/virtual/virtual.go b/domain/consensus/utils/virtual/virtual.go index c245b69c14..65d05aba13 100644 --- a/domain/consensus/utils/virtual/virtual.go +++ b/domain/consensus/utils/virtual/virtual.go @@ -1,8 +1,8 @@ package virtual import ( - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" ) // ContainsOnlyVirtualGenesis returns whether the given block hashes contain only the virtual diff --git a/domain/consensusreference/consensusreference.go b/domain/consensusreference/consensusreference.go index 923e455530..9f2c6d4b9e 100644 --- a/domain/consensusreference/consensusreference.go +++ b/domain/consensusreference/consensusreference.go @@ -1,6 +1,6 @@ package consensusreference -import "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" +import "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" // ConsensusReference holds a reference to a consensus object. // The consensus object may be swapped with a new one entirely diff --git a/domain/dagconfig/consensus_defaults.go b/domain/dagconfig/consensus_defaults.go index 4ac05847d5..feb15ee4bf 100644 --- a/domain/dagconfig/consensus_defaults.go +++ b/domain/dagconfig/consensus_defaults.go @@ -3,7 +3,7 @@ package dagconfig import ( "time" - "github.com/karlsen-network/karlsend/domain/consensus/utils/constants" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/constants" ) // The documentation refers to the following constants which aren't explicated in the code: diff --git a/domain/dagconfig/doc.go b/domain/dagconfig/doc.go index de0a926fc2..2d679dadf4 100644 --- a/domain/dagconfig/doc.go +++ b/domain/dagconfig/doc.go @@ -27,8 +27,8 @@ variable (either directly, or hidden in a library call). "fmt" "log" - "github.com/karlsen-network/karlsend/util" - "github.com/karlsen-network/karlsend/domain/dagconfig" + "github.com/karlsen-network/karlsend/v2/util" + "github.com/karlsen-network/karlsend/v2/domain/dagconfig" ) var testnet = flag.Bool("testnet", false, "operate on the testnet Karlsen network") diff --git a/domain/dagconfig/genesis.go b/domain/dagconfig/genesis.go index 5308898d26..f3dfd78e80 100644 --- a/domain/dagconfig/genesis.go +++ b/domain/dagconfig/genesis.go @@ -7,10 +7,10 @@ package dagconfig import ( "math/big" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/blockheader" - "github.com/karlsen-network/karlsend/domain/consensus/utils/subnetworks" - "github.com/karlsen-network/karlsend/domain/consensus/utils/transactionhelper" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/blockheader" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/subnetworks" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/transactionhelper" "github.com/kaspanet/go-muhash" ) diff --git a/domain/dagconfig/genesis_test.go b/domain/dagconfig/genesis_test.go index 6bf264fd3f..ea81c41993 100644 --- a/domain/dagconfig/genesis_test.go +++ b/domain/dagconfig/genesis_test.go @@ -7,7 +7,7 @@ package dagconfig import ( "testing" - "github.com/karlsen-network/karlsend/domain/consensus/utils/consensushashing" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/consensushashing" ) // TestGenesisBlock tests the genesis block of the main network for validity by diff --git a/domain/dagconfig/params.go b/domain/dagconfig/params.go index 41c58ac64b..3abf323667 100644 --- a/domain/dagconfig/params.go +++ b/domain/dagconfig/params.go @@ -8,14 +8,14 @@ import ( "math/big" "time" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/app/appmessage" - "github.com/karlsen-network/karlsend/util/network" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + "github.com/karlsen-network/karlsend/v2/util/network" "github.com/pkg/errors" - "github.com/karlsen-network/karlsend/util" + "github.com/karlsen-network/karlsend/v2/util" ) // These variables are the DAG proof-of-work limit parameters for each default diff --git a/domain/dagconfig/params_test.go b/domain/dagconfig/params_test.go index 003d7a537e..26f889de61 100644 --- a/domain/dagconfig/params_test.go +++ b/domain/dagconfig/params_test.go @@ -7,7 +7,7 @@ package dagconfig import ( "testing" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" ) func TestNewHashFromStr(t *testing.T) { diff --git a/domain/dagconfig/register_test.go b/domain/dagconfig/register_test.go index 362729bf77..225493a465 100644 --- a/domain/dagconfig/register_test.go +++ b/domain/dagconfig/register_test.go @@ -3,7 +3,7 @@ package dagconfig_test import ( "testing" - . "github.com/karlsen-network/karlsend/domain/dagconfig" + . "github.com/karlsen-network/karlsend/v2/domain/dagconfig" ) // Define some of the required parameters for a user-registered diff --git a/domain/domain.go b/domain/domain.go index 7245502338..1a7585b6ab 100644 --- a/domain/domain.go +++ b/domain/domain.go @@ -5,15 +5,15 @@ import ( "sync/atomic" "unsafe" - "github.com/karlsen-network/karlsend/domain/consensusreference" - - "github.com/karlsen-network/karlsend/domain/consensus" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/miningmanager" - "github.com/karlsen-network/karlsend/domain/miningmanager/mempool" - "github.com/karlsen-network/karlsend/domain/prefixmanager" - "github.com/karlsen-network/karlsend/domain/prefixmanager/prefix" - infrastructuredatabase "github.com/karlsen-network/karlsend/infrastructure/db/database" + "github.com/karlsen-network/karlsend/v2/domain/consensusreference" + + "github.com/karlsen-network/karlsend/v2/domain/consensus" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/miningmanager" + "github.com/karlsen-network/karlsend/v2/domain/miningmanager/mempool" + "github.com/karlsen-network/karlsend/v2/domain/prefixmanager" + "github.com/karlsen-network/karlsend/v2/domain/prefixmanager/prefix" + infrastructuredatabase "github.com/karlsen-network/karlsend/v2/infrastructure/db/database" "github.com/pkg/errors" ) diff --git a/domain/domain_test.go b/domain/domain_test.go index 5bc4ab165d..4e6de43d69 100644 --- a/domain/domain_test.go +++ b/domain/domain_test.go @@ -9,14 +9,14 @@ import ( "strings" "testing" - "github.com/karlsen-network/karlsend/domain" - "github.com/karlsen-network/karlsend/domain/consensus" - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/consensushashing" - "github.com/karlsen-network/karlsend/domain/consensus/utils/testutils" - "github.com/karlsen-network/karlsend/domain/miningmanager/mempool" - "github.com/karlsen-network/karlsend/infrastructure/db/database/ldb" + "github.com/karlsen-network/karlsend/v2/domain" + "github.com/karlsen-network/karlsend/v2/domain/consensus" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/consensushashing" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/testutils" + "github.com/karlsen-network/karlsend/v2/domain/miningmanager/mempool" + "github.com/karlsen-network/karlsend/v2/infrastructure/db/database/ldb" ) func TestCreateStagingConsensus(t *testing.T) { diff --git a/domain/log.go b/domain/log.go index ff47d2e06c..c0aae610c9 100644 --- a/domain/log.go +++ b/domain/log.go @@ -1,7 +1,7 @@ package domain import ( - "github.com/karlsen-network/karlsend/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" ) var log = logger.RegisterSubSystem("DOMN") diff --git a/domain/migrate.go b/domain/migrate.go index ca11205a6a..9bb5d116b2 100644 --- a/domain/migrate.go +++ b/domain/migrate.go @@ -3,7 +3,7 @@ package domain import ( "math" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" "github.com/pkg/errors" ) diff --git a/domain/miningmanager/blocktemplatebuilder/blocktemplatebuilder.go b/domain/miningmanager/blocktemplatebuilder/blocktemplatebuilder.go index 9c30b772e2..e63e79a469 100644 --- a/domain/miningmanager/blocktemplatebuilder/blocktemplatebuilder.go +++ b/domain/miningmanager/blocktemplatebuilder/blocktemplatebuilder.go @@ -4,18 +4,18 @@ import ( "math" "sort" - "github.com/karlsen-network/karlsend/domain/consensus/processes/coinbasemanager" - "github.com/karlsen-network/karlsend/domain/consensus/utils/merkle" - "github.com/karlsen-network/karlsend/domain/consensus/utils/transactionhelper" - "github.com/karlsen-network/karlsend/domain/consensusreference" - "github.com/karlsen-network/karlsend/util/mstime" - - "github.com/karlsen-network/karlsend/util/difficulty" - - consensusexternalapi "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/ruleerrors" - "github.com/karlsen-network/karlsend/domain/consensus/utils/subnetworks" - miningmanagerapi "github.com/karlsen-network/karlsend/domain/miningmanager/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/processes/coinbasemanager" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/merkle" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/transactionhelper" + "github.com/karlsen-network/karlsend/v2/domain/consensusreference" + "github.com/karlsen-network/karlsend/v2/util/mstime" + + "github.com/karlsen-network/karlsend/v2/util/difficulty" + + consensusexternalapi "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/ruleerrors" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/subnetworks" + miningmanagerapi "github.com/karlsen-network/karlsend/v2/domain/miningmanager/model" "github.com/pkg/errors" ) diff --git a/domain/miningmanager/blocktemplatebuilder/log.go b/domain/miningmanager/blocktemplatebuilder/log.go index 46557dcf45..e6648a9fb4 100644 --- a/domain/miningmanager/blocktemplatebuilder/log.go +++ b/domain/miningmanager/blocktemplatebuilder/log.go @@ -5,7 +5,7 @@ package blocktemplatebuilder import ( - "github.com/karlsen-network/karlsend/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" ) var log = logger.RegisterSubSystem("BLTB") diff --git a/domain/miningmanager/blocktemplatebuilder/txselection.go b/domain/miningmanager/blocktemplatebuilder/txselection.go index 158d3cb5a3..66ec3570e2 100644 --- a/domain/miningmanager/blocktemplatebuilder/txselection.go +++ b/domain/miningmanager/blocktemplatebuilder/txselection.go @@ -5,9 +5,9 @@ import ( "math/rand" "sort" - consensusexternalapi "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/consensushashing" - "github.com/karlsen-network/karlsend/domain/consensus/utils/subnetworks" + consensusexternalapi "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/consensushashing" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/subnetworks" ) const ( diff --git a/domain/miningmanager/factory.go b/domain/miningmanager/factory.go index 5872e13aba..49d5775c99 100644 --- a/domain/miningmanager/factory.go +++ b/domain/miningmanager/factory.go @@ -4,10 +4,10 @@ import ( "sync" "time" - "github.com/karlsen-network/karlsend/domain/consensusreference" - "github.com/karlsen-network/karlsend/domain/dagconfig" - "github.com/karlsen-network/karlsend/domain/miningmanager/blocktemplatebuilder" - mempoolpkg "github.com/karlsen-network/karlsend/domain/miningmanager/mempool" + "github.com/karlsen-network/karlsend/v2/domain/consensusreference" + "github.com/karlsen-network/karlsend/v2/domain/dagconfig" + "github.com/karlsen-network/karlsend/v2/domain/miningmanager/blocktemplatebuilder" + mempoolpkg "github.com/karlsen-network/karlsend/v2/domain/miningmanager/mempool" ) // Factory instantiates new mining managers diff --git a/domain/miningmanager/mempool/check_transaction_standard.go b/domain/miningmanager/mempool/check_transaction_standard.go index 811e579859..e5ced3ffde 100644 --- a/domain/miningmanager/mempool/check_transaction_standard.go +++ b/domain/miningmanager/mempool/check_transaction_standard.go @@ -3,13 +3,13 @@ package mempool import ( "fmt" - "github.com/karlsen-network/karlsend/util/txmass" + "github.com/karlsen-network/karlsend/v2/util/txmass" - "github.com/karlsen-network/karlsend/domain/consensus/utils/consensushashing" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/consensushashing" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/constants" - "github.com/karlsen-network/karlsend/domain/consensus/utils/txscript" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/constants" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/txscript" ) const ( diff --git a/domain/miningmanager/mempool/check_transaction_standard_test.go b/domain/miningmanager/mempool/check_transaction_standard_test.go index d5c5f353c1..3c3c4a130e 100644 --- a/domain/miningmanager/mempool/check_transaction_standard_test.go +++ b/domain/miningmanager/mempool/check_transaction_standard_test.go @@ -9,17 +9,17 @@ import ( "math" "testing" - "github.com/karlsen-network/karlsend/domain/consensusreference" + "github.com/karlsen-network/karlsend/v2/domain/consensusreference" - "github.com/karlsen-network/karlsend/domain/consensus/utils/testutils" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/testutils" - "github.com/karlsen-network/karlsend/domain/consensus" + "github.com/karlsen-network/karlsend/v2/domain/consensus" - "github.com/karlsen-network/karlsend/domain/consensus/utils/constants" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/constants" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/txscript" - "github.com/karlsen-network/karlsend/util" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/txscript" + "github.com/karlsen-network/karlsend/v2/util" "github.com/pkg/errors" ) diff --git a/domain/miningmanager/mempool/config.go b/domain/miningmanager/mempool/config.go index a932c4ae92..66d8eb332f 100644 --- a/domain/miningmanager/mempool/config.go +++ b/domain/miningmanager/mempool/config.go @@ -3,11 +3,11 @@ package mempool import ( "time" - "github.com/karlsen-network/karlsend/domain/consensus/utils/constants" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/constants" - "github.com/karlsen-network/karlsend/util" + "github.com/karlsen-network/karlsend/v2/util" - "github.com/karlsen-network/karlsend/domain/dagconfig" + "github.com/karlsen-network/karlsend/v2/domain/dagconfig" ) const ( diff --git a/domain/miningmanager/mempool/fill_inputs_and_get_missing_parents.go b/domain/miningmanager/mempool/fill_inputs_and_get_missing_parents.go index 6f10a67893..776c2ed692 100644 --- a/domain/miningmanager/mempool/fill_inputs_and_get_missing_parents.go +++ b/domain/miningmanager/mempool/fill_inputs_and_get_missing_parents.go @@ -1,11 +1,11 @@ package mempool import ( - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/ruleerrors" - "github.com/karlsen-network/karlsend/domain/consensus/utils/constants" - "github.com/karlsen-network/karlsend/domain/consensus/utils/utxo" - "github.com/karlsen-network/karlsend/domain/miningmanager/mempool/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/ruleerrors" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/constants" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/utxo" + "github.com/karlsen-network/karlsend/v2/domain/miningmanager/mempool/model" "github.com/pkg/errors" ) diff --git a/domain/miningmanager/mempool/handle_new_block_transactions.go b/domain/miningmanager/mempool/handle_new_block_transactions.go index 9460333255..4add53714e 100644 --- a/domain/miningmanager/mempool/handle_new_block_transactions.go +++ b/domain/miningmanager/mempool/handle_new_block_transactions.go @@ -1,9 +1,9 @@ package mempool import ( - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/consensushashing" - "github.com/karlsen-network/karlsend/domain/consensus/utils/transactionhelper" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/consensushashing" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/transactionhelper" ) func (mp *mempool) handleNewBlockTransactions(blockTransactions []*externalapi.DomainTransaction) ( diff --git a/domain/miningmanager/mempool/log.go b/domain/miningmanager/mempool/log.go index 9ddbaccda5..ae7f1990b2 100644 --- a/domain/miningmanager/mempool/log.go +++ b/domain/miningmanager/mempool/log.go @@ -5,7 +5,7 @@ package mempool import ( - "github.com/karlsen-network/karlsend/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" ) var log = logger.RegisterSubSystem("TXMP") diff --git a/domain/miningmanager/mempool/mempool.go b/domain/miningmanager/mempool/mempool.go index 21b70ac656..c76835729c 100644 --- a/domain/miningmanager/mempool/mempool.go +++ b/domain/miningmanager/mempool/mempool.go @@ -3,15 +3,15 @@ package mempool import ( "sync" - "github.com/karlsen-network/karlsend/domain/consensus/ruleerrors" - "github.com/karlsen-network/karlsend/domain/consensus/utils/consensushashing" - "github.com/karlsen-network/karlsend/domain/consensus/utils/constants" + "github.com/karlsen-network/karlsend/v2/domain/consensus/ruleerrors" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/consensushashing" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/constants" "github.com/pkg/errors" - "github.com/karlsen-network/karlsend/domain/consensusreference" + "github.com/karlsen-network/karlsend/v2/domain/consensusreference" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - miningmanagermodel "github.com/karlsen-network/karlsend/domain/miningmanager/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + miningmanagermodel "github.com/karlsen-network/karlsend/v2/domain/miningmanager/model" ) type mempool struct { diff --git a/domain/miningmanager/mempool/mempool_utxo_set.go b/domain/miningmanager/mempool/mempool_utxo_set.go index 4a4d99006c..fc3ba5abf2 100644 --- a/domain/miningmanager/mempool/mempool_utxo_set.go +++ b/domain/miningmanager/mempool/mempool_utxo_set.go @@ -3,13 +3,13 @@ package mempool import ( "fmt" - "github.com/karlsen-network/karlsend/domain/consensus/utils/constants" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/constants" - "github.com/karlsen-network/karlsend/domain/consensus/utils/consensushashing" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/consensushashing" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/utxo" - "github.com/karlsen-network/karlsend/domain/miningmanager/mempool/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/utxo" + "github.com/karlsen-network/karlsend/v2/domain/miningmanager/mempool/model" ) type mempoolUTXOSet struct { diff --git a/domain/miningmanager/mempool/model/map_types.go b/domain/miningmanager/mempool/model/map_types.go index 8e94606ed3..56da7867ba 100644 --- a/domain/miningmanager/mempool/model/map_types.go +++ b/domain/miningmanager/mempool/model/map_types.go @@ -1,7 +1,7 @@ package model import ( - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" ) // IDToTransactionMap maps transactionID to a MempoolTransaction diff --git a/domain/miningmanager/mempool/model/mempool_transaction.go b/domain/miningmanager/mempool/model/mempool_transaction.go index 62e59b6fac..e5aec693f1 100644 --- a/domain/miningmanager/mempool/model/mempool_transaction.go +++ b/domain/miningmanager/mempool/model/mempool_transaction.go @@ -1,8 +1,8 @@ package model import ( - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/consensushashing" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/consensushashing" ) // MempoolTransaction represents a transaction inside the main TransactionPool diff --git a/domain/miningmanager/mempool/model/orphan_transaction.go b/domain/miningmanager/mempool/model/orphan_transaction.go index d4b9c3bcf6..691a73cec3 100644 --- a/domain/miningmanager/mempool/model/orphan_transaction.go +++ b/domain/miningmanager/mempool/model/orphan_transaction.go @@ -1,8 +1,8 @@ package model import ( - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/consensushashing" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/consensushashing" ) // OrphanTransaction represents a transaction in the OrphanPool diff --git a/domain/miningmanager/mempool/model/transaction.go b/domain/miningmanager/mempool/model/transaction.go index 39cf3f1e7b..9699bef18b 100644 --- a/domain/miningmanager/mempool/model/transaction.go +++ b/domain/miningmanager/mempool/model/transaction.go @@ -1,6 +1,6 @@ package model -import "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" +import "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" // Transaction represents a generic transaction either in the mempool's main TransactionPool or OrphanPool type Transaction interface { diff --git a/domain/miningmanager/mempool/orphan_pool.go b/domain/miningmanager/mempool/orphan_pool.go index 0b67e286d1..79cb987769 100644 --- a/domain/miningmanager/mempool/orphan_pool.go +++ b/domain/miningmanager/mempool/orphan_pool.go @@ -3,16 +3,16 @@ package mempool import ( "fmt" - "github.com/karlsen-network/karlsend/domain/consensus/utils/constants" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/constants" - "github.com/karlsen-network/karlsend/domain/consensus/ruleerrors" + "github.com/karlsen-network/karlsend/v2/domain/consensus/ruleerrors" - "github.com/karlsen-network/karlsend/domain/consensus/utils/consensushashing" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/consensushashing" - "github.com/karlsen-network/karlsend/domain/consensus/utils/utxo" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/utxo" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/miningmanager/mempool/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/miningmanager/mempool/model" "github.com/pkg/errors" ) diff --git a/domain/miningmanager/mempool/remove_transaction.go b/domain/miningmanager/mempool/remove_transaction.go index cae364fca1..a386bee7cd 100644 --- a/domain/miningmanager/mempool/remove_transaction.go +++ b/domain/miningmanager/mempool/remove_transaction.go @@ -1,8 +1,8 @@ package mempool import ( - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/miningmanager/mempool/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/miningmanager/mempool/model" ) func (mp *mempool) removeTransaction(transactionID *externalapi.DomainTransactionID, removeRedeemers bool) error { diff --git a/domain/miningmanager/mempool/revalidate_high_priority_transactions.go b/domain/miningmanager/mempool/revalidate_high_priority_transactions.go index 01ec3833b9..a932fc158f 100644 --- a/domain/miningmanager/mempool/revalidate_high_priority_transactions.go +++ b/domain/miningmanager/mempool/revalidate_high_priority_transactions.go @@ -1,9 +1,9 @@ package mempool import ( - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/miningmanager/mempool/model" - "github.com/karlsen-network/karlsend/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/miningmanager/mempool/model" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" ) func (mp *mempool) revalidateHighPriorityTransactions() ([]*externalapi.DomainTransaction, error) { diff --git a/domain/miningmanager/mempool/transactions_pool.go b/domain/miningmanager/mempool/transactions_pool.go index 9c41212c60..8a82497ffb 100644 --- a/domain/miningmanager/mempool/transactions_pool.go +++ b/domain/miningmanager/mempool/transactions_pool.go @@ -5,9 +5,9 @@ import ( "github.com/pkg/errors" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/consensushashing" - "github.com/karlsen-network/karlsend/domain/miningmanager/mempool/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/consensushashing" + "github.com/karlsen-network/karlsend/v2/domain/miningmanager/mempool/model" ) type transactionsPool struct { diff --git a/domain/miningmanager/mempool/validate_and_insert_transaction.go b/domain/miningmanager/mempool/validate_and_insert_transaction.go index 0bc072f460..ecc76174cd 100644 --- a/domain/miningmanager/mempool/validate_and_insert_transaction.go +++ b/domain/miningmanager/mempool/validate_and_insert_transaction.go @@ -3,10 +3,10 @@ package mempool import ( "fmt" - "github.com/karlsen-network/karlsend/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/consensushashing" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/consensushashing" ) func (mp *mempool) validateAndInsertTransaction(transaction *externalapi.DomainTransaction, isHighPriority bool, diff --git a/domain/miningmanager/mempool/validate_transaction.go b/domain/miningmanager/mempool/validate_transaction.go index 92034f7d59..fbf8abd6e4 100644 --- a/domain/miningmanager/mempool/validate_transaction.go +++ b/domain/miningmanager/mempool/validate_transaction.go @@ -3,10 +3,10 @@ package mempool import ( "fmt" - "github.com/karlsen-network/karlsend/domain/consensus/utils/constants" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/constants" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/consensushashing" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/consensushashing" ) func (mp *mempool) validateTransactionPreUTXOEntry(transaction *externalapi.DomainTransaction) error { diff --git a/domain/miningmanager/miningmanager.go b/domain/miningmanager/miningmanager.go index 73c4bd075e..95365ff93c 100644 --- a/domain/miningmanager/miningmanager.go +++ b/domain/miningmanager/miningmanager.go @@ -4,9 +4,9 @@ import ( "sync" "time" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensusreference" - miningmanagermodel "github.com/karlsen-network/karlsend/domain/miningmanager/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensusreference" + miningmanagermodel "github.com/karlsen-network/karlsend/v2/domain/miningmanager/model" ) // MiningManager creates block templates for mining as well as maintaining diff --git a/domain/miningmanager/miningmanager_test.go b/domain/miningmanager/miningmanager_test.go index f9bad68046..9e05f0ca77 100644 --- a/domain/miningmanager/miningmanager_test.go +++ b/domain/miningmanager/miningmanager_test.go @@ -5,25 +5,25 @@ import ( "strings" "testing" - "github.com/karlsen-network/karlsend/cmd/karlsenwallet/libkarlsenwallet" - "github.com/karlsen-network/karlsend/domain/consensusreference" - "github.com/karlsen-network/karlsend/domain/miningmanager/model" - "github.com/karlsen-network/karlsend/util" - "github.com/karlsen-network/karlsend/version" - - "github.com/karlsen-network/karlsend/domain/miningmanager/mempool" - - "github.com/karlsen-network/karlsend/domain/consensus" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/model/testapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/consensushashing" - "github.com/karlsen-network/karlsend/domain/consensus/utils/constants" - "github.com/karlsen-network/karlsend/domain/consensus/utils/subnetworks" - "github.com/karlsen-network/karlsend/domain/consensus/utils/testutils" - "github.com/karlsen-network/karlsend/domain/consensus/utils/transactionhelper" - "github.com/karlsen-network/karlsend/domain/consensus/utils/txscript" - "github.com/karlsen-network/karlsend/domain/consensus/utils/utxo" - "github.com/karlsen-network/karlsend/domain/miningmanager" + "github.com/karlsen-network/karlsend/v2/cmd/karlsenwallet/libkarlsenwallet" + "github.com/karlsen-network/karlsend/v2/domain/consensusreference" + "github.com/karlsen-network/karlsend/v2/domain/miningmanager/model" + "github.com/karlsen-network/karlsend/v2/util" + "github.com/karlsen-network/karlsend/v2/version" + + "github.com/karlsen-network/karlsend/v2/domain/miningmanager/mempool" + + "github.com/karlsen-network/karlsend/v2/domain/consensus" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/testapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/consensushashing" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/constants" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/subnetworks" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/testutils" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/transactionhelper" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/txscript" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/utxo" + "github.com/karlsen-network/karlsend/v2/domain/miningmanager" "github.com/pkg/errors" ) diff --git a/domain/miningmanager/model/interface_blocktemplatebuilder.go b/domain/miningmanager/model/interface_blocktemplatebuilder.go index ae1c35d620..d2fd89847e 100644 --- a/domain/miningmanager/model/interface_blocktemplatebuilder.go +++ b/domain/miningmanager/model/interface_blocktemplatebuilder.go @@ -1,7 +1,7 @@ package model import ( - consensusexternalapi "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + consensusexternalapi "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" ) // BlockTemplateBuilder builds block templates for miners to consume diff --git a/domain/miningmanager/model/interface_mempool.go b/domain/miningmanager/model/interface_mempool.go index 2218538ea4..d4ecbe7e58 100644 --- a/domain/miningmanager/model/interface_mempool.go +++ b/domain/miningmanager/model/interface_mempool.go @@ -1,8 +1,8 @@ package model import ( - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/ruleerrors" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/ruleerrors" ) // Mempool maintains a set of known transactions that diff --git a/domain/prefixmanager/log.go b/domain/prefixmanager/log.go index 2942988736..912f9e7edc 100644 --- a/domain/prefixmanager/log.go +++ b/domain/prefixmanager/log.go @@ -1,8 +1,8 @@ package prefixmanager import ( - "github.com/karlsen-network/karlsend/infrastructure/logger" - "github.com/karlsen-network/karlsend/util/panics" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/util/panics" ) var log = logger.RegisterSubSystem("PRFX") diff --git a/domain/prefixmanager/prefix.go b/domain/prefixmanager/prefix.go index 4a124d4e88..ba3f85237c 100644 --- a/domain/prefixmanager/prefix.go +++ b/domain/prefixmanager/prefix.go @@ -1,8 +1,8 @@ package prefixmanager import ( - "github.com/karlsen-network/karlsend/domain/prefixmanager/prefix" - "github.com/karlsen-network/karlsend/infrastructure/db/database" + "github.com/karlsen-network/karlsend/v2/domain/prefixmanager/prefix" + "github.com/karlsen-network/karlsend/v2/infrastructure/db/database" ) var activePrefixKey = database.MakeBucket(nil).Key([]byte("active-prefix")) diff --git a/domain/utxoindex/log.go b/domain/utxoindex/log.go index ab8647dad5..bb857dc904 100644 --- a/domain/utxoindex/log.go +++ b/domain/utxoindex/log.go @@ -5,7 +5,7 @@ package utxoindex import ( - "github.com/karlsen-network/karlsend/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" ) var log = logger.RegisterSubSystem("UTIN") diff --git a/domain/utxoindex/model.go b/domain/utxoindex/model.go index e2d2417673..4f269505a9 100644 --- a/domain/utxoindex/model.go +++ b/domain/utxoindex/model.go @@ -1,7 +1,7 @@ package utxoindex import ( - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" ) // ScriptPublicKeyString is a script public key represented as a string diff --git a/domain/utxoindex/serialization.go b/domain/utxoindex/serialization.go index 2ee354e725..3577056c2a 100644 --- a/domain/utxoindex/serialization.go +++ b/domain/utxoindex/serialization.go @@ -4,8 +4,8 @@ import ( "encoding/binary" "io" - "github.com/karlsen-network/karlsend/domain/consensus/database/serialization" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/database/serialization" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" "github.com/pkg/errors" "google.golang.org/protobuf/proto" ) diff --git a/domain/utxoindex/serialization_test.go b/domain/utxoindex/serialization_test.go index 4202ac03ac..647e669091 100644 --- a/domain/utxoindex/serialization_test.go +++ b/domain/utxoindex/serialization_test.go @@ -6,7 +6,7 @@ import ( "math/rand" "testing" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" "github.com/pkg/errors" ) diff --git a/domain/utxoindex/store.go b/domain/utxoindex/store.go index 864eab1c9c..731db2ac96 100644 --- a/domain/utxoindex/store.go +++ b/domain/utxoindex/store.go @@ -3,10 +3,10 @@ package utxoindex import ( "encoding/binary" - "github.com/karlsen-network/karlsend/domain/consensus/database/binaryserialization" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/infrastructure/db/database" - "github.com/karlsen-network/karlsend/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/domain/consensus/database/binaryserialization" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/infrastructure/db/database" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" "github.com/pkg/errors" ) diff --git a/domain/utxoindex/utxoindex.go b/domain/utxoindex/utxoindex.go index d04c25a6ae..c61c31e836 100644 --- a/domain/utxoindex/utxoindex.go +++ b/domain/utxoindex/utxoindex.go @@ -3,10 +3,10 @@ package utxoindex import ( "sync" - "github.com/karlsen-network/karlsend/domain" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/infrastructure/db/database" - "github.com/karlsen-network/karlsend/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/domain" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/infrastructure/db/database" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" ) // UTXOIndex maintains an index between transaction scriptPublicKeys diff --git a/infrastructure/config/config.go b/infrastructure/config/config.go index 30cd48486f..2bfe10f8a1 100644 --- a/infrastructure/config/config.go +++ b/infrastructure/config/config.go @@ -18,12 +18,12 @@ import ( "github.com/btcsuite/go-socks/socks" "github.com/jessevdk/go-flags" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/dagconfig" - "github.com/karlsen-network/karlsend/infrastructure/logger" - "github.com/karlsen-network/karlsend/util" - "github.com/karlsen-network/karlsend/util/network" - "github.com/karlsen-network/karlsend/version" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/dagconfig" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/util" + "github.com/karlsen-network/karlsend/v2/util/network" + "github.com/karlsen-network/karlsend/v2/version" "github.com/pkg/errors" ) diff --git a/infrastructure/config/config_test.go b/infrastructure/config/config_test.go index 94dae03888..e036530c4e 100644 --- a/infrastructure/config/config_test.go +++ b/infrastructure/config/config_test.go @@ -7,9 +7,9 @@ import ( "runtime" "testing" - "github.com/karlsen-network/karlsend/domain/consensus/utils/subnetworks" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/subnetworks" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" ) func TestCreateDefaultConfigFile(t *testing.T) { diff --git a/infrastructure/config/log.go b/infrastructure/config/log.go index 798d5079ff..a53bc8f91d 100644 --- a/infrastructure/config/log.go +++ b/infrastructure/config/log.go @@ -5,7 +5,7 @@ package config import ( - "github.com/karlsen-network/karlsend/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" ) var log = logger.RegisterSubSystem("CNFG") diff --git a/infrastructure/config/network.go b/infrastructure/config/network.go index 29bee3df66..8c5ec3bd1d 100644 --- a/infrastructure/config/network.go +++ b/infrastructure/config/network.go @@ -7,11 +7,11 @@ import ( "os" "time" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" "github.com/jessevdk/go-flags" - "github.com/karlsen-network/karlsend/domain/dagconfig" - "github.com/karlsen-network/karlsend/util/difficulty" + "github.com/karlsen-network/karlsend/v2/domain/dagconfig" + "github.com/karlsen-network/karlsend/v2/util/difficulty" "github.com/pkg/errors" ) diff --git a/infrastructure/db/database/common_test.go b/infrastructure/db/database/common_test.go index 0dfd652bab..4e955dc264 100644 --- a/infrastructure/db/database/common_test.go +++ b/infrastructure/db/database/common_test.go @@ -5,8 +5,8 @@ import ( "io/ioutil" "testing" - "github.com/karlsen-network/karlsend/infrastructure/db/database" - "github.com/karlsen-network/karlsend/infrastructure/db/database/ldb" + "github.com/karlsen-network/karlsend/v2/infrastructure/db/database" + "github.com/karlsen-network/karlsend/v2/infrastructure/db/database/ldb" ) type databasePrepareFunc func(t *testing.T, testName string) (db database.Database, name string, teardownFunc func()) diff --git a/infrastructure/db/database/cursor_test.go b/infrastructure/db/database/cursor_test.go index d891fabef5..44284f201c 100644 --- a/infrastructure/db/database/cursor_test.go +++ b/infrastructure/db/database/cursor_test.go @@ -12,7 +12,7 @@ import ( "strings" "testing" - "github.com/karlsen-network/karlsend/infrastructure/db/database" + "github.com/karlsen-network/karlsend/v2/infrastructure/db/database" ) func prepareCursorForTest(t *testing.T, db database.Database, testName string) database.Cursor { diff --git a/infrastructure/db/database/database_test.go b/infrastructure/db/database/database_test.go index d850ea0f15..30c52e6f9c 100644 --- a/infrastructure/db/database/database_test.go +++ b/infrastructure/db/database/database_test.go @@ -9,7 +9,7 @@ import ( "bytes" "testing" - "github.com/karlsen-network/karlsend/infrastructure/db/database" + "github.com/karlsen-network/karlsend/v2/infrastructure/db/database" ) func TestDatabasePut(t *testing.T) { diff --git a/infrastructure/db/database/ldb/cursor.go b/infrastructure/db/database/ldb/cursor.go index 5c13903b1d..c0d253e229 100644 --- a/infrastructure/db/database/ldb/cursor.go +++ b/infrastructure/db/database/ldb/cursor.go @@ -3,7 +3,7 @@ package ldb import ( "bytes" - "github.com/karlsen-network/karlsend/infrastructure/db/database" + "github.com/karlsen-network/karlsend/v2/infrastructure/db/database" "github.com/pkg/errors" "github.com/syndtr/goleveldb/leveldb/iterator" "github.com/syndtr/goleveldb/leveldb/util" diff --git a/infrastructure/db/database/ldb/cursor_test.go b/infrastructure/db/database/ldb/cursor_test.go index 4063c8666a..238aafd78f 100644 --- a/infrastructure/db/database/ldb/cursor_test.go +++ b/infrastructure/db/database/ldb/cursor_test.go @@ -7,7 +7,7 @@ import ( "strings" "testing" - "github.com/karlsen-network/karlsend/infrastructure/db/database" + "github.com/karlsen-network/karlsend/v2/infrastructure/db/database" ) func validateCurrentCursorKeyAndValue(t *testing.T, testName string, cursor database.Cursor, diff --git a/infrastructure/db/database/ldb/leveldb.go b/infrastructure/db/database/ldb/leveldb.go index 3c6377a0ff..25624eefd6 100644 --- a/infrastructure/db/database/ldb/leveldb.go +++ b/infrastructure/db/database/ldb/leveldb.go @@ -1,7 +1,7 @@ package ldb import ( - "github.com/karlsen-network/karlsend/infrastructure/db/database" + "github.com/karlsen-network/karlsend/v2/infrastructure/db/database" "github.com/pkg/errors" "github.com/syndtr/goleveldb/leveldb" ldbErrors "github.com/syndtr/goleveldb/leveldb/errors" diff --git a/infrastructure/db/database/ldb/leveldb_test.go b/infrastructure/db/database/ldb/leveldb_test.go index ce00aacecf..a4e2f409db 100644 --- a/infrastructure/db/database/ldb/leveldb_test.go +++ b/infrastructure/db/database/ldb/leveldb_test.go @@ -5,7 +5,7 @@ import ( "reflect" "testing" - "github.com/karlsen-network/karlsend/infrastructure/db/database" + "github.com/karlsen-network/karlsend/v2/infrastructure/db/database" ) func prepareDatabaseForTest(t *testing.T, testName string) (ldb *LevelDB, teardownFunc func()) { diff --git a/infrastructure/db/database/ldb/log.go b/infrastructure/db/database/ldb/log.go index 06d1a443bd..c434010195 100644 --- a/infrastructure/db/database/ldb/log.go +++ b/infrastructure/db/database/ldb/log.go @@ -1,7 +1,7 @@ package ldb import ( - "github.com/karlsen-network/karlsend/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" ) var log = logger.RegisterSubSystem("KSDB") diff --git a/infrastructure/db/database/ldb/transaction.go b/infrastructure/db/database/ldb/transaction.go index 060150d398..3d96601c35 100644 --- a/infrastructure/db/database/ldb/transaction.go +++ b/infrastructure/db/database/ldb/transaction.go @@ -1,7 +1,7 @@ package ldb import ( - "github.com/karlsen-network/karlsend/infrastructure/db/database" + "github.com/karlsen-network/karlsend/v2/infrastructure/db/database" "github.com/pkg/errors" "github.com/syndtr/goleveldb/leveldb" ) diff --git a/infrastructure/db/database/ldb/transaction_test.go b/infrastructure/db/database/ldb/transaction_test.go index ee000d591c..1d5a53ce19 100644 --- a/infrastructure/db/database/ldb/transaction_test.go +++ b/infrastructure/db/database/ldb/transaction_test.go @@ -4,7 +4,7 @@ import ( "strings" "testing" - "github.com/karlsen-network/karlsend/infrastructure/db/database" + "github.com/karlsen-network/karlsend/v2/infrastructure/db/database" ) func TestTransactionCloseErrors(t *testing.T) { diff --git a/infrastructure/db/database/transaction_test.go b/infrastructure/db/database/transaction_test.go index 87e1ef9a50..aaa29c355f 100644 --- a/infrastructure/db/database/transaction_test.go +++ b/infrastructure/db/database/transaction_test.go @@ -10,7 +10,7 @@ import ( "strings" "testing" - "github.com/karlsen-network/karlsend/infrastructure/db/database" + "github.com/karlsen-network/karlsend/v2/infrastructure/db/database" ) func TestTransactionPut(t *testing.T) { diff --git a/infrastructure/logger/logs.go b/infrastructure/logger/logs.go index 46b8c7d735..645c867592 100644 --- a/infrastructure/logger/logs.go +++ b/infrastructure/logger/logs.go @@ -39,7 +39,7 @@ import ( "runtime" "sync/atomic" - "github.com/karlsen-network/karlsend/util/mstime" + "github.com/karlsen-network/karlsend/v2/util/mstime" ) // Logger is a subsystem logger for a Backend. diff --git a/infrastructure/network/addressmanager/addressmanager.go b/infrastructure/network/addressmanager/addressmanager.go index 919cee4935..e9e6cb81f1 100644 --- a/infrastructure/network/addressmanager/addressmanager.go +++ b/infrastructure/network/addressmanager/addressmanager.go @@ -9,10 +9,10 @@ import ( "sync" "time" - "github.com/karlsen-network/karlsend/infrastructure/db/database" - "github.com/karlsen-network/karlsend/util/mstime" + "github.com/karlsen-network/karlsend/v2/infrastructure/db/database" + "github.com/karlsen-network/karlsend/v2/util/mstime" - "github.com/karlsen-network/karlsend/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/appmessage" "github.com/pkg/errors" ) diff --git a/infrastructure/network/addressmanager/addressmanager_test.go b/infrastructure/network/addressmanager/addressmanager_test.go index 0bb8fced53..1bc9eee326 100644 --- a/infrastructure/network/addressmanager/addressmanager_test.go +++ b/infrastructure/network/addressmanager/addressmanager_test.go @@ -9,10 +9,10 @@ import ( "reflect" "testing" - "github.com/karlsen-network/karlsend/app/appmessage" - "github.com/karlsen-network/karlsend/infrastructure/config" - "github.com/karlsen-network/karlsend/infrastructure/db/database/ldb" - "github.com/karlsen-network/karlsend/util/mstime" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + "github.com/karlsen-network/karlsend/v2/infrastructure/config" + "github.com/karlsen-network/karlsend/v2/infrastructure/db/database/ldb" + "github.com/karlsen-network/karlsend/v2/util/mstime" ) func newAddressManagerForTest(t *testing.T, testName string) (addressManager *AddressManager, teardown func()) { diff --git a/infrastructure/network/addressmanager/addressrandomize.go b/infrastructure/network/addressmanager/addressrandomize.go index 0ac07e4d93..351c4836b8 100644 --- a/infrastructure/network/addressmanager/addressrandomize.go +++ b/infrastructure/network/addressmanager/addressrandomize.go @@ -5,7 +5,7 @@ import ( "math/rand" "time" - "github.com/karlsen-network/karlsend/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/appmessage" ) // AddressRandomize implement addressRandomizer interface diff --git a/infrastructure/network/addressmanager/config.go b/infrastructure/network/addressmanager/config.go index 5035bea0bc..97d03ba0c1 100644 --- a/infrastructure/network/addressmanager/config.go +++ b/infrastructure/network/addressmanager/config.go @@ -3,7 +3,7 @@ package addressmanager import ( "net" - "github.com/karlsen-network/karlsend/infrastructure/config" + "github.com/karlsen-network/karlsend/v2/infrastructure/config" ) // Config is a descriptor which specifies the AddressManager instance configuration. diff --git a/infrastructure/network/addressmanager/localaddressmanager.go b/infrastructure/network/addressmanager/localaddressmanager.go index fb504d0238..c68b00b40c 100644 --- a/infrastructure/network/addressmanager/localaddressmanager.go +++ b/infrastructure/network/addressmanager/localaddressmanager.go @@ -7,7 +7,7 @@ import ( "strings" "sync" - "github.com/karlsen-network/karlsend/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/appmessage" "github.com/pkg/errors" ) diff --git a/infrastructure/network/addressmanager/log.go b/infrastructure/network/addressmanager/log.go index ebae82b750..9b221f3af5 100644 --- a/infrastructure/network/addressmanager/log.go +++ b/infrastructure/network/addressmanager/log.go @@ -5,7 +5,7 @@ package addressmanager import ( - "github.com/karlsen-network/karlsend/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" ) var log = logger.RegisterSubSystem("ADXR") diff --git a/infrastructure/network/addressmanager/network.go b/infrastructure/network/addressmanager/network.go index 3e67224019..ad9773713e 100644 --- a/infrastructure/network/addressmanager/network.go +++ b/infrastructure/network/addressmanager/network.go @@ -7,7 +7,7 @@ package addressmanager import ( "net" - "github.com/karlsen-network/karlsend/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/appmessage" ) var ( diff --git a/infrastructure/network/addressmanager/network_test.go b/infrastructure/network/addressmanager/network_test.go index 7d9a75b598..893bfbfeeb 100644 --- a/infrastructure/network/addressmanager/network_test.go +++ b/infrastructure/network/addressmanager/network_test.go @@ -8,7 +8,7 @@ import ( "net" "testing" - "github.com/karlsen-network/karlsend/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/appmessage" ) // TestIPTypes ensures the various functions which determine the type of an IP diff --git a/infrastructure/network/addressmanager/store.go b/infrastructure/network/addressmanager/store.go index 2ebfa545e5..688f4c20a3 100644 --- a/infrastructure/network/addressmanager/store.go +++ b/infrastructure/network/addressmanager/store.go @@ -4,9 +4,9 @@ import ( "encoding/binary" "net" - "github.com/karlsen-network/karlsend/app/appmessage" - "github.com/karlsen-network/karlsend/infrastructure/db/database" - "github.com/karlsen-network/karlsend/util/mstime" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + "github.com/karlsen-network/karlsend/v2/infrastructure/db/database" + "github.com/karlsen-network/karlsend/v2/util/mstime" "github.com/pkg/errors" ) diff --git a/infrastructure/network/addressmanager/store_test.go b/infrastructure/network/addressmanager/store_test.go index e626a47dca..c9d6e76772 100644 --- a/infrastructure/network/addressmanager/store_test.go +++ b/infrastructure/network/addressmanager/store_test.go @@ -5,8 +5,8 @@ import ( "reflect" "testing" - "github.com/karlsen-network/karlsend/app/appmessage" - "github.com/karlsen-network/karlsend/util/mstime" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + "github.com/karlsen-network/karlsend/v2/util/mstime" ) func TestAddressKeySerialization(t *testing.T) { diff --git a/infrastructure/network/addressmanager/test_utils.go b/infrastructure/network/addressmanager/test_utils.go index 589ffb4e19..297fcfdb82 100644 --- a/infrastructure/network/addressmanager/test_utils.go +++ b/infrastructure/network/addressmanager/test_utils.go @@ -4,8 +4,8 @@ import ( "net" "strconv" - "github.com/karlsen-network/karlsend/app/appmessage" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" "github.com/pkg/errors" ) diff --git a/infrastructure/network/connmanager/connection_set.go b/infrastructure/network/connmanager/connection_set.go index fd6936c9dc..c8fb8a2d7e 100644 --- a/infrastructure/network/connmanager/connection_set.go +++ b/infrastructure/network/connmanager/connection_set.go @@ -1,7 +1,7 @@ package connmanager import ( - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter" ) type connectionSet map[string]*netadapter.NetConnection diff --git a/infrastructure/network/connmanager/connmanager.go b/infrastructure/network/connmanager/connmanager.go index b633754446..6806f954ba 100644 --- a/infrastructure/network/connmanager/connmanager.go +++ b/infrastructure/network/connmanager/connmanager.go @@ -6,15 +6,15 @@ import ( "sync/atomic" "time" - "github.com/karlsen-network/karlsend/app/appmessage" - "github.com/karlsen-network/karlsend/infrastructure/network/dnsseed" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/dnsseed" "github.com/pkg/errors" - "github.com/karlsen-network/karlsend/infrastructure/network/addressmanager" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/addressmanager" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter" - "github.com/karlsen-network/karlsend/infrastructure/config" + "github.com/karlsen-network/karlsend/v2/infrastructure/config" ) // connectionRequest represents a user request (either through CLI or RPC) to connect to a certain node diff --git a/infrastructure/network/connmanager/log.go b/infrastructure/network/connmanager/log.go index 098f6ce3b7..7855eddd90 100644 --- a/infrastructure/network/connmanager/log.go +++ b/infrastructure/network/connmanager/log.go @@ -1,8 +1,8 @@ package connmanager import ( - "github.com/karlsen-network/karlsend/infrastructure/logger" - "github.com/karlsen-network/karlsend/util/panics" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/util/panics" ) var log = logger.RegisterSubSystem("CMGR") diff --git a/infrastructure/network/connmanager/outgoing_connections.go b/infrastructure/network/connmanager/outgoing_connections.go index ae266673a2..abd85adf05 100644 --- a/infrastructure/network/connmanager/outgoing_connections.go +++ b/infrastructure/network/connmanager/outgoing_connections.go @@ -1,6 +1,6 @@ package connmanager -import "github.com/karlsen-network/karlsend/app/appmessage" +import "github.com/karlsen-network/karlsend/v2/app/appmessage" // checkOutgoingConnections goes over all activeOutgoing and makes sure they are still active. // Then it opens connections so that we have targetOutgoing active connections diff --git a/infrastructure/network/dnsseed/log.go b/infrastructure/network/dnsseed/log.go index 562a4ce1cd..8cbb119fb2 100644 --- a/infrastructure/network/dnsseed/log.go +++ b/infrastructure/network/dnsseed/log.go @@ -5,8 +5,8 @@ package dnsseed import ( - "github.com/karlsen-network/karlsend/infrastructure/logger" - "github.com/karlsen-network/karlsend/util/panics" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/util/panics" ) var log = logger.RegisterSubSystem("CMGR") diff --git a/infrastructure/network/dnsseed/seed.go b/infrastructure/network/dnsseed/seed.go index dbb4eb2f40..c93a1be7ab 100644 --- a/infrastructure/network/dnsseed/seed.go +++ b/infrastructure/network/dnsseed/seed.go @@ -12,15 +12,15 @@ import ( "strconv" "time" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/app/appmessage" - pb2 "github.com/karlsen-network/karlsend/infrastructure/network/dnsseed/pb" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + pb2 "github.com/karlsen-network/karlsend/v2/infrastructure/network/dnsseed/pb" "google.golang.org/grpc" - "github.com/karlsen-network/karlsend/util/mstime" + "github.com/karlsen-network/karlsend/v2/util/mstime" - "github.com/karlsen-network/karlsend/domain/dagconfig" + "github.com/karlsen-network/karlsend/v2/domain/dagconfig" ) const ( diff --git a/infrastructure/network/netadapter/log.go b/infrastructure/network/netadapter/log.go index 1533b8237e..65b6277d1b 100644 --- a/infrastructure/network/netadapter/log.go +++ b/infrastructure/network/netadapter/log.go @@ -1,7 +1,7 @@ package netadapter import ( - "github.com/karlsen-network/karlsend/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" ) var log = logger.RegisterSubSystem("NTAR") diff --git a/infrastructure/network/netadapter/netadapter.go b/infrastructure/network/netadapter/netadapter.go index 14aad0a2f8..d7ac6cd65b 100644 --- a/infrastructure/network/netadapter/netadapter.go +++ b/infrastructure/network/netadapter/netadapter.go @@ -4,12 +4,12 @@ import ( "sync" "sync/atomic" - "github.com/karlsen-network/karlsend/app/appmessage" - "github.com/karlsen-network/karlsend/infrastructure/config" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/id" - routerpkg "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/router" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/server" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/server/grpcserver" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + "github.com/karlsen-network/karlsend/v2/infrastructure/config" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/id" + routerpkg "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/router" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/server" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/server/grpcserver" "github.com/pkg/errors" ) diff --git a/infrastructure/network/netadapter/netadapter_test.go b/infrastructure/network/netadapter/netadapter_test.go index 8095ec5414..06aed7c5dc 100644 --- a/infrastructure/network/netadapter/netadapter_test.go +++ b/infrastructure/network/netadapter/netadapter_test.go @@ -6,10 +6,10 @@ import ( "testing" "time" - "github.com/karlsen-network/karlsend/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/appmessage" - "github.com/karlsen-network/karlsend/infrastructure/config" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/router" + "github.com/karlsen-network/karlsend/v2/infrastructure/config" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/router" ) // routerInitializerForTest returns new RouterInitializer which simply sets diff --git a/infrastructure/network/netadapter/netconnection.go b/infrastructure/network/netadapter/netconnection.go index 0651fc37c5..f64aefbef3 100644 --- a/infrastructure/network/netadapter/netconnection.go +++ b/infrastructure/network/netadapter/netconnection.go @@ -4,12 +4,12 @@ import ( "fmt" "sync/atomic" - "github.com/karlsen-network/karlsend/app/appmessage" - routerpkg "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/router" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + routerpkg "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/router" "github.com/pkg/errors" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/id" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/server" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/id" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/server" ) // NetConnection is a wrapper to a server connection for use by services external to NetAdapter diff --git a/infrastructure/network/netadapter/router/log.go b/infrastructure/network/netadapter/router/log.go index 7c01cd4355..ba272ad573 100644 --- a/infrastructure/network/netadapter/router/log.go +++ b/infrastructure/network/netadapter/router/log.go @@ -1,7 +1,7 @@ package router import ( - "github.com/karlsen-network/karlsend/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" ) var log = logger.RegisterSubSystem("ROUT") diff --git a/infrastructure/network/netadapter/router/route.go b/infrastructure/network/netadapter/router/route.go index ae46a78562..64892b5696 100644 --- a/infrastructure/network/netadapter/router/route.go +++ b/infrastructure/network/netadapter/router/route.go @@ -4,9 +4,9 @@ import ( "sync" "time" - "github.com/karlsen-network/karlsend/app/protocol/protocolerrors" + "github.com/karlsen-network/karlsend/v2/app/protocol/protocolerrors" - "github.com/karlsen-network/karlsend/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/appmessage" "github.com/pkg/errors" ) diff --git a/infrastructure/network/netadapter/router/router.go b/infrastructure/network/netadapter/router/router.go index 26a06b80ca..743c6da91f 100644 --- a/infrastructure/network/netadapter/router/router.go +++ b/infrastructure/network/netadapter/router/router.go @@ -4,7 +4,7 @@ import ( "fmt" "sync" - "github.com/karlsen-network/karlsend/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/appmessage" "github.com/pkg/errors" ) diff --git a/infrastructure/network/netadapter/server/grpcserver/connection_loops.go b/infrastructure/network/netadapter/server/grpcserver/connection_loops.go index 83f70ab29b..44b059bfe2 100644 --- a/infrastructure/network/netadapter/server/grpcserver/connection_loops.go +++ b/infrastructure/network/netadapter/server/grpcserver/connection_loops.go @@ -8,13 +8,13 @@ import ( "time" "github.com/davecgh/go-spew/spew" - "github.com/karlsen-network/karlsend/app/appmessage" - "github.com/karlsen-network/karlsend/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" - routerpkg "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/router" + routerpkg "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/router" "github.com/pkg/errors" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/server/grpcserver/protowire" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/server/grpcserver/protowire" ) func (c *gRPCConnection) connectionLoops() error { diff --git a/infrastructure/network/netadapter/server/grpcserver/grpc_connection.go b/infrastructure/network/netadapter/server/grpcserver/grpc_connection.go index c90ddd6859..83a32c0213 100644 --- a/infrastructure/network/netadapter/server/grpcserver/grpc_connection.go +++ b/infrastructure/network/netadapter/server/grpcserver/grpc_connection.go @@ -5,13 +5,13 @@ import ( "sync" "sync/atomic" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/router" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/server/grpcserver/protowire" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/router" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/server/grpcserver/protowire" "github.com/pkg/errors" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/server" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/server" "google.golang.org/grpc" ) diff --git a/infrastructure/network/netadapter/server/grpcserver/grpc_server.go b/infrastructure/network/netadapter/server/grpcserver/grpc_server.go index 38397dfd88..294c0c2a9c 100644 --- a/infrastructure/network/netadapter/server/grpcserver/grpc_server.go +++ b/infrastructure/network/netadapter/server/grpcserver/grpc_server.go @@ -7,8 +7,8 @@ import ( "sync" "time" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/server" - "github.com/karlsen-network/karlsend/util/panics" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/server" + "github.com/karlsen-network/karlsend/v2/util/panics" "github.com/pkg/errors" "google.golang.org/grpc" "google.golang.org/grpc/peer" diff --git a/infrastructure/network/netadapter/server/grpcserver/log.go b/infrastructure/network/netadapter/server/grpcserver/log.go index dbc3812f74..c4f31a3b1d 100644 --- a/infrastructure/network/netadapter/server/grpcserver/log.go +++ b/infrastructure/network/netadapter/server/grpcserver/log.go @@ -5,8 +5,8 @@ package grpcserver import ( - "github.com/karlsen-network/karlsend/infrastructure/logger" - "github.com/karlsen-network/karlsend/util/panics" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/util/panics" ) var log = logger.RegisterSubSystem("TXMP") diff --git a/infrastructure/network/netadapter/server/grpcserver/p2pserver.go b/infrastructure/network/netadapter/server/grpcserver/p2pserver.go index c178f08845..adba147580 100644 --- a/infrastructure/network/netadapter/server/grpcserver/p2pserver.go +++ b/infrastructure/network/netadapter/server/grpcserver/p2pserver.go @@ -5,9 +5,9 @@ import ( "net" "time" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/server" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/server/grpcserver/protowire" - "github.com/karlsen-network/karlsend/util/panics" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/server" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/server/grpcserver/protowire" + "github.com/karlsen-network/karlsend/v2/util/panics" "github.com/pkg/errors" "google.golang.org/grpc" "google.golang.org/grpc/encoding/gzip" diff --git a/infrastructure/network/netadapter/server/grpcserver/protowire/common.go b/infrastructure/network/netadapter/server/grpcserver/protowire/common.go index 0fa25dbc6b..a164750dc9 100644 --- a/infrastructure/network/netadapter/server/grpcserver/protowire/common.go +++ b/infrastructure/network/netadapter/server/grpcserver/protowire/common.go @@ -3,12 +3,12 @@ package protowire import ( "math" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/subnetworks" - "github.com/karlsen-network/karlsend/domain/consensus/utils/transactionid" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/subnetworks" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/transactionid" - "github.com/karlsen-network/karlsend/app/appmessage" - "github.com/karlsen-network/karlsend/util/mstime" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + "github.com/karlsen-network/karlsend/v2/util/mstime" "github.com/pkg/errors" ) diff --git a/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_addresses.go b/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_addresses.go index 64da8ae084..ee703ffe8c 100644 --- a/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_addresses.go +++ b/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_addresses.go @@ -1,7 +1,7 @@ package protowire import ( - "github.com/karlsen-network/karlsend/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/appmessage" "github.com/pkg/errors" ) diff --git a/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_block.go b/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_block.go index 1fa0df42f0..be03c1cb72 100644 --- a/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_block.go +++ b/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_block.go @@ -1,7 +1,7 @@ package protowire import ( - "github.com/karlsen-network/karlsend/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/appmessage" "github.com/pkg/errors" ) diff --git a/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_block_headers.go b/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_block_headers.go index 261add29c1..6ac98a2784 100644 --- a/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_block_headers.go +++ b/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_block_headers.go @@ -1,7 +1,7 @@ package protowire import ( - "github.com/karlsen-network/karlsend/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/appmessage" "github.com/pkg/errors" ) diff --git a/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_block_locator.go b/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_block_locator.go index 6d274cd6d0..2860ab1813 100644 --- a/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_block_locator.go +++ b/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_block_locator.go @@ -1,8 +1,8 @@ package protowire import ( - "github.com/karlsen-network/karlsend/app/appmessage" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" "github.com/pkg/errors" ) diff --git a/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_block_with_trusted_data.go b/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_block_with_trusted_data.go index 39b963c0a1..c5499da6c1 100644 --- a/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_block_with_trusted_data.go +++ b/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_block_with_trusted_data.go @@ -3,8 +3,8 @@ package protowire import ( "math/big" - "github.com/karlsen-network/karlsend/app/appmessage" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" "github.com/pkg/errors" ) diff --git a/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_block_with_trusted_data_v4.go b/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_block_with_trusted_data_v4.go index 3131925bd3..ad2856615e 100644 --- a/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_block_with_trusted_data_v4.go +++ b/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_block_with_trusted_data_v4.go @@ -1,7 +1,7 @@ package protowire import ( - "github.com/karlsen-network/karlsend/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/appmessage" "github.com/pkg/errors" ) diff --git a/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_done_blocks_with_trusted_data.go b/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_done_blocks_with_trusted_data.go index 5d4f13869d..edae3f2cbc 100644 --- a/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_done_blocks_with_trusted_data.go +++ b/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_done_blocks_with_trusted_data.go @@ -1,7 +1,7 @@ package protowire import ( - "github.com/karlsen-network/karlsend/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/appmessage" "github.com/pkg/errors" ) diff --git a/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_done_headers.go b/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_done_headers.go index 5103bd22af..0c26a68d73 100644 --- a/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_done_headers.go +++ b/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_done_headers.go @@ -1,7 +1,7 @@ package protowire import ( - "github.com/karlsen-network/karlsend/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/appmessage" "github.com/pkg/errors" ) diff --git a/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_done_pruning_point_utxo_set_chunks.go b/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_done_pruning_point_utxo_set_chunks.go index affe8b58df..3cc323aaf0 100644 --- a/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_done_pruning_point_utxo_set_chunks.go +++ b/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_done_pruning_point_utxo_set_chunks.go @@ -1,7 +1,7 @@ package protowire import ( - "github.com/karlsen-network/karlsend/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/appmessage" "github.com/pkg/errors" ) diff --git a/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_header.go b/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_header.go index 4a81662b35..0be4962f93 100644 --- a/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_header.go +++ b/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_header.go @@ -4,9 +4,9 @@ import ( "math" "math/big" - "github.com/karlsen-network/karlsend/app/appmessage" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/util/mstime" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/util/mstime" "github.com/pkg/errors" ) diff --git a/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_ibd_block.go b/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_ibd_block.go index 711973ec65..403b2b5e44 100644 --- a/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_ibd_block.go +++ b/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_ibd_block.go @@ -1,7 +1,7 @@ package protowire import ( - "github.com/karlsen-network/karlsend/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/appmessage" "github.com/pkg/errors" ) diff --git a/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_ibd_block_locator.go b/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_ibd_block_locator.go index ec2928ee4f..83fc45daca 100644 --- a/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_ibd_block_locator.go +++ b/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_ibd_block_locator.go @@ -1,7 +1,7 @@ package protowire import ( - "github.com/karlsen-network/karlsend/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/appmessage" "github.com/pkg/errors" ) diff --git a/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_ibd_block_locator_highest_hash.go b/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_ibd_block_locator_highest_hash.go index e435729743..72ff2b73f7 100644 --- a/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_ibd_block_locator_highest_hash.go +++ b/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_ibd_block_locator_highest_hash.go @@ -1,7 +1,7 @@ package protowire import ( - "github.com/karlsen-network/karlsend/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/appmessage" "github.com/pkg/errors" ) diff --git a/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_ibd_block_locator_highest_hash_not_found.go b/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_ibd_block_locator_highest_hash_not_found.go index 88881feae0..9ddb6628df 100644 --- a/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_ibd_block_locator_highest_hash_not_found.go +++ b/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_ibd_block_locator_highest_hash_not_found.go @@ -1,7 +1,7 @@ package protowire import ( - "github.com/karlsen-network/karlsend/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/appmessage" "github.com/pkg/errors" ) diff --git a/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_ibd_chain_block_locator.go b/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_ibd_chain_block_locator.go index 4e06aa07d6..e63dffa3f3 100644 --- a/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_ibd_chain_block_locator.go +++ b/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_ibd_chain_block_locator.go @@ -1,7 +1,7 @@ package protowire import ( - "github.com/karlsen-network/karlsend/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/appmessage" "github.com/pkg/errors" ) diff --git a/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_inv_relay_block.go b/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_inv_relay_block.go index 3074378bf4..83e09f4c8d 100644 --- a/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_inv_relay_block.go +++ b/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_inv_relay_block.go @@ -1,7 +1,7 @@ package protowire import ( - "github.com/karlsen-network/karlsend/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/appmessage" "github.com/pkg/errors" ) diff --git a/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_inv_transactions.go b/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_inv_transactions.go index 45eec8b4d6..fb50d463b2 100644 --- a/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_inv_transactions.go +++ b/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_inv_transactions.go @@ -1,7 +1,7 @@ package protowire import ( - "github.com/karlsen-network/karlsend/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/appmessage" "github.com/pkg/errors" ) diff --git a/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_ping.go b/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_ping.go index 40324b063c..e4ce6ebf01 100644 --- a/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_ping.go +++ b/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_ping.go @@ -1,7 +1,7 @@ package protowire import ( - "github.com/karlsen-network/karlsend/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/appmessage" "github.com/pkg/errors" ) diff --git a/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_pong.go b/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_pong.go index 5f0653756a..09929244ff 100644 --- a/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_pong.go +++ b/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_pong.go @@ -1,7 +1,7 @@ package protowire import ( - "github.com/karlsen-network/karlsend/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/appmessage" "github.com/pkg/errors" ) diff --git a/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_pruning_point_proof.go b/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_pruning_point_proof.go index 93183d09ab..9b4118d81a 100644 --- a/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_pruning_point_proof.go +++ b/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_pruning_point_proof.go @@ -1,7 +1,7 @@ package protowire import ( - "github.com/karlsen-network/karlsend/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/appmessage" "github.com/pkg/errors" ) diff --git a/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_pruning_point_utxo_set_chunk.go b/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_pruning_point_utxo_set_chunk.go index fa423e9c00..cb3a1c7396 100644 --- a/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_pruning_point_utxo_set_chunk.go +++ b/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_pruning_point_utxo_set_chunk.go @@ -1,7 +1,7 @@ package protowire import ( - "github.com/karlsen-network/karlsend/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/appmessage" "github.com/pkg/errors" ) diff --git a/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_pruning_points.go b/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_pruning_points.go index 15245e4bbf..b52ad3dff6 100644 --- a/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_pruning_points.go +++ b/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_pruning_points.go @@ -1,7 +1,7 @@ package protowire import ( - "github.com/karlsen-network/karlsend/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/appmessage" "github.com/pkg/errors" ) diff --git a/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_ready.go b/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_ready.go index a96a2d60f5..11b1d727f9 100644 --- a/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_ready.go +++ b/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_ready.go @@ -1,7 +1,7 @@ package protowire import ( - "github.com/karlsen-network/karlsend/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/appmessage" "github.com/pkg/errors" ) diff --git a/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_reject.go b/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_reject.go index 51ca9941ef..445cc6faeb 100644 --- a/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_reject.go +++ b/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_reject.go @@ -1,7 +1,7 @@ package protowire import ( - "github.com/karlsen-network/karlsend/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/appmessage" "github.com/pkg/errors" ) diff --git a/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_request_addresses.go b/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_request_addresses.go index 859be54df3..68b64684dd 100644 --- a/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_request_addresses.go +++ b/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_request_addresses.go @@ -1,7 +1,7 @@ package protowire import ( - "github.com/karlsen-network/karlsend/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/appmessage" "github.com/pkg/errors" ) diff --git a/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_request_anticone.go b/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_request_anticone.go index b73b18999a..6eccbf16d8 100644 --- a/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_request_anticone.go +++ b/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_request_anticone.go @@ -1,7 +1,7 @@ package protowire import ( - "github.com/karlsen-network/karlsend/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/appmessage" "github.com/pkg/errors" ) diff --git a/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_request_block_locator.go b/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_request_block_locator.go index 64a93c7b6e..68bc6714de 100644 --- a/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_request_block_locator.go +++ b/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_request_block_locator.go @@ -1,7 +1,7 @@ package protowire import ( - "github.com/karlsen-network/karlsend/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/appmessage" "github.com/pkg/errors" ) diff --git a/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_request_headers.go b/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_request_headers.go index b70c399387..e74567fa20 100644 --- a/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_request_headers.go +++ b/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_request_headers.go @@ -1,7 +1,7 @@ package protowire import ( - "github.com/karlsen-network/karlsend/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/appmessage" "github.com/pkg/errors" ) diff --git a/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_request_ibd_blocks.go b/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_request_ibd_blocks.go index ca858655bf..35482392f6 100644 --- a/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_request_ibd_blocks.go +++ b/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_request_ibd_blocks.go @@ -1,7 +1,7 @@ package protowire import ( - "github.com/karlsen-network/karlsend/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/appmessage" "github.com/pkg/errors" ) diff --git a/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_request_ibd_chain_block_locator.go b/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_request_ibd_chain_block_locator.go index cc5160a18f..a237bc3124 100644 --- a/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_request_ibd_chain_block_locator.go +++ b/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_request_ibd_chain_block_locator.go @@ -1,8 +1,8 @@ package protowire import ( - "github.com/karlsen-network/karlsend/app/appmessage" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" "github.com/pkg/errors" ) diff --git a/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_request_next_headers.go b/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_request_next_headers.go index 7cce5896ce..1fdb619a60 100644 --- a/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_request_next_headers.go +++ b/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_request_next_headers.go @@ -1,7 +1,7 @@ package protowire import ( - "github.com/karlsen-network/karlsend/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/appmessage" "github.com/pkg/errors" ) diff --git a/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_request_next_pruning_point_and_its_anticone_blocks.go b/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_request_next_pruning_point_and_its_anticone_blocks.go index 33375bf24d..2e24f27a78 100644 --- a/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_request_next_pruning_point_and_its_anticone_blocks.go +++ b/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_request_next_pruning_point_and_its_anticone_blocks.go @@ -1,7 +1,7 @@ package protowire import ( - "github.com/karlsen-network/karlsend/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/appmessage" "github.com/pkg/errors" ) diff --git a/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_request_next_pruning_point_utxo_set_chunk.go b/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_request_next_pruning_point_utxo_set_chunk.go index 7122361072..51264abbbe 100644 --- a/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_request_next_pruning_point_utxo_set_chunk.go +++ b/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_request_next_pruning_point_utxo_set_chunk.go @@ -1,7 +1,7 @@ package protowire import ( - "github.com/karlsen-network/karlsend/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/appmessage" "github.com/pkg/errors" ) diff --git a/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_request_pruning_point_and_its_anticone.go b/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_request_pruning_point_and_its_anticone.go index 0a37bfbc45..6de990599b 100644 --- a/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_request_pruning_point_and_its_anticone.go +++ b/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_request_pruning_point_and_its_anticone.go @@ -1,7 +1,7 @@ package protowire import ( - "github.com/karlsen-network/karlsend/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/appmessage" "github.com/pkg/errors" ) diff --git a/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_request_pruning_point_proof.go b/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_request_pruning_point_proof.go index 8ec3ab7f43..94679958e2 100644 --- a/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_request_pruning_point_proof.go +++ b/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_request_pruning_point_proof.go @@ -1,7 +1,7 @@ package protowire import ( - "github.com/karlsen-network/karlsend/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/appmessage" "github.com/pkg/errors" ) diff --git a/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_request_pruning_point_utxo_set_and_block.go b/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_request_pruning_point_utxo_set_and_block.go index 9e7386a442..97625b072c 100644 --- a/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_request_pruning_point_utxo_set_and_block.go +++ b/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_request_pruning_point_utxo_set_and_block.go @@ -1,7 +1,7 @@ package protowire import ( - "github.com/karlsen-network/karlsend/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/appmessage" "github.com/pkg/errors" ) diff --git a/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_request_relay_blocks.go b/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_request_relay_blocks.go index 105b947a0c..788bf03319 100644 --- a/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_request_relay_blocks.go +++ b/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_request_relay_blocks.go @@ -1,7 +1,7 @@ package protowire import ( - "github.com/karlsen-network/karlsend/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/appmessage" "github.com/pkg/errors" ) diff --git a/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_request_transactions.go b/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_request_transactions.go index a29bad91e1..0e9df5e132 100644 --- a/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_request_transactions.go +++ b/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_request_transactions.go @@ -1,7 +1,7 @@ package protowire import ( - "github.com/karlsen-network/karlsend/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/appmessage" "github.com/pkg/errors" ) diff --git a/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_transaction.go b/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_transaction.go index 0fbf71508b..b1fbd2a29c 100644 --- a/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_transaction.go +++ b/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_transaction.go @@ -3,7 +3,7 @@ package protowire import ( "math" - "github.com/karlsen-network/karlsend/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/appmessage" "github.com/pkg/errors" ) diff --git a/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_transaction_not_found.go b/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_transaction_not_found.go index 309a47ce03..0b3e46c9ce 100644 --- a/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_transaction_not_found.go +++ b/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_transaction_not_found.go @@ -1,7 +1,7 @@ package protowire import ( - "github.com/karlsen-network/karlsend/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/appmessage" "github.com/pkg/errors" ) diff --git a/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_trusted_data.go b/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_trusted_data.go index 2c9d298579..0fe8140952 100644 --- a/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_trusted_data.go +++ b/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_trusted_data.go @@ -1,7 +1,7 @@ package protowire import ( - "github.com/karlsen-network/karlsend/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/appmessage" "github.com/pkg/errors" ) diff --git a/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_unexpected_pruning_point.go b/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_unexpected_pruning_point.go index 91104e2a69..a1bb50fe98 100644 --- a/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_unexpected_pruning_point.go +++ b/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_unexpected_pruning_point.go @@ -1,6 +1,6 @@ package protowire -import "github.com/karlsen-network/karlsend/app/appmessage" +import "github.com/karlsen-network/karlsend/v2/app/appmessage" func (x *KarlsendMessage_UnexpectedPruningPoint) toAppMessage() (appmessage.Message, error) { return &appmessage.MsgUnexpectedPruningPoint{}, nil diff --git a/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_verack.go b/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_verack.go index e2079f744e..7d35ce9363 100644 --- a/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_verack.go +++ b/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_verack.go @@ -1,7 +1,7 @@ package protowire import ( - "github.com/karlsen-network/karlsend/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/appmessage" "github.com/pkg/errors" ) diff --git a/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_version.go b/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_version.go index 3a4ad89e8d..beb84782ef 100644 --- a/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_version.go +++ b/infrastructure/network/netadapter/server/grpcserver/protowire/p2p_version.go @@ -1,9 +1,9 @@ package protowire import ( - "github.com/karlsen-network/karlsend/app/appmessage" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/id" - "github.com/karlsen-network/karlsend/util/mstime" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/id" + "github.com/karlsen-network/karlsend/v2/util/mstime" "github.com/pkg/errors" ) diff --git a/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_add_peer.go b/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_add_peer.go index 646d826ea1..f820d7d94e 100644 --- a/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_add_peer.go +++ b/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_add_peer.go @@ -1,7 +1,7 @@ package protowire import ( - "github.com/karlsen-network/karlsend/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/appmessage" "github.com/pkg/errors" ) diff --git a/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_ban.go b/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_ban.go index dae54ad574..42bc6bb412 100644 --- a/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_ban.go +++ b/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_ban.go @@ -1,7 +1,7 @@ package protowire import ( - "github.com/karlsen-network/karlsend/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/appmessage" "github.com/pkg/errors" ) diff --git a/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_error.go b/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_error.go index 7d5975e7c5..ba71214966 100644 --- a/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_error.go +++ b/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_error.go @@ -1,7 +1,7 @@ package protowire import ( - "github.com/karlsen-network/karlsend/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/appmessage" "github.com/pkg/errors" ) diff --git a/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_estimate_network_hashes_per_second.go b/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_estimate_network_hashes_per_second.go index 2478bc0b3e..660c1c2b44 100644 --- a/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_estimate_network_hashes_per_second.go +++ b/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_estimate_network_hashes_per_second.go @@ -1,7 +1,7 @@ package protowire import ( - "github.com/karlsen-network/karlsend/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/appmessage" "github.com/pkg/errors" ) diff --git a/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_get_balance_by_address.go b/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_get_balance_by_address.go index 2cea69530b..9166ee2b44 100644 --- a/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_get_balance_by_address.go +++ b/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_get_balance_by_address.go @@ -1,7 +1,7 @@ package protowire import ( - "github.com/karlsen-network/karlsend/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/appmessage" "github.com/pkg/errors" ) diff --git a/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_get_balances_by_addresses.go b/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_get_balances_by_addresses.go index ba66fc70cd..24f8e018d9 100644 --- a/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_get_balances_by_addresses.go +++ b/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_get_balances_by_addresses.go @@ -1,7 +1,7 @@ package protowire import ( - "github.com/karlsen-network/karlsend/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/appmessage" "github.com/pkg/errors" ) diff --git a/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_get_block.go b/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_get_block.go index dea01e3b05..83262312ce 100644 --- a/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_get_block.go +++ b/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_get_block.go @@ -1,7 +1,7 @@ package protowire import ( - "github.com/karlsen-network/karlsend/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/appmessage" "github.com/pkg/errors" ) diff --git a/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_get_block_count.go b/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_get_block_count.go index 3fed77b295..693f66e561 100644 --- a/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_get_block_count.go +++ b/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_get_block_count.go @@ -1,7 +1,7 @@ package protowire import ( - "github.com/karlsen-network/karlsend/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/appmessage" "github.com/pkg/errors" ) diff --git a/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_get_block_dag_info.go b/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_get_block_dag_info.go index 25cdd227fd..3aee1d5491 100644 --- a/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_get_block_dag_info.go +++ b/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_get_block_dag_info.go @@ -1,7 +1,7 @@ package protowire import ( - "github.com/karlsen-network/karlsend/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/appmessage" "github.com/pkg/errors" ) diff --git a/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_get_block_template.go b/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_get_block_template.go index 2ebc9a557c..d22b0d06d8 100644 --- a/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_get_block_template.go +++ b/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_get_block_template.go @@ -1,7 +1,7 @@ package protowire import ( - "github.com/karlsen-network/karlsend/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/appmessage" "github.com/pkg/errors" ) diff --git a/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_get_blocks.go b/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_get_blocks.go index 82d4c96e1f..0370ea4fa2 100644 --- a/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_get_blocks.go +++ b/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_get_blocks.go @@ -1,7 +1,7 @@ package protowire import ( - "github.com/karlsen-network/karlsend/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/appmessage" "github.com/pkg/errors" ) diff --git a/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_get_connected_peer_info.go b/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_get_connected_peer_info.go index 544ee94b9c..3bced7cdf2 100644 --- a/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_get_connected_peer_info.go +++ b/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_get_connected_peer_info.go @@ -1,7 +1,7 @@ package protowire import ( - "github.com/karlsen-network/karlsend/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/appmessage" "github.com/pkg/errors" ) diff --git a/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_get_current_network.go b/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_get_current_network.go index 75b9564026..e2f2152856 100644 --- a/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_get_current_network.go +++ b/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_get_current_network.go @@ -1,7 +1,7 @@ package protowire import ( - "github.com/karlsen-network/karlsend/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/appmessage" "github.com/pkg/errors" ) diff --git a/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_get_headers.go b/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_get_headers.go index 016dc84e47..000014c9f8 100644 --- a/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_get_headers.go +++ b/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_get_headers.go @@ -1,7 +1,7 @@ package protowire import ( - "github.com/karlsen-network/karlsend/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/appmessage" "github.com/pkg/errors" ) diff --git a/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_get_info.go b/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_get_info.go index eb7a848705..180fddfab2 100644 --- a/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_get_info.go +++ b/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_get_info.go @@ -1,7 +1,7 @@ package protowire import ( - "github.com/karlsen-network/karlsend/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/appmessage" "github.com/pkg/errors" ) diff --git a/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_get_mempool_entries.go b/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_get_mempool_entries.go index f637785e82..dc083e4c77 100644 --- a/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_get_mempool_entries.go +++ b/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_get_mempool_entries.go @@ -1,7 +1,7 @@ package protowire import ( - "github.com/karlsen-network/karlsend/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/appmessage" "github.com/pkg/errors" ) diff --git a/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_get_mempool_entries_by_addresses.go b/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_get_mempool_entries_by_addresses.go index 50adc3f552..fe210314b8 100644 --- a/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_get_mempool_entries_by_addresses.go +++ b/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_get_mempool_entries_by_addresses.go @@ -1,7 +1,7 @@ package protowire import ( - "github.com/karlsen-network/karlsend/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/appmessage" "github.com/pkg/errors" ) diff --git a/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_get_mempool_entry.go b/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_get_mempool_entry.go index 52ac8b52d1..2c050a826b 100644 --- a/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_get_mempool_entry.go +++ b/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_get_mempool_entry.go @@ -1,7 +1,7 @@ package protowire import ( - "github.com/karlsen-network/karlsend/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/appmessage" "github.com/pkg/errors" ) diff --git a/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_get_peer_addresses.go b/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_get_peer_addresses.go index ebb4df9e07..c2bba50412 100644 --- a/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_get_peer_addresses.go +++ b/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_get_peer_addresses.go @@ -1,7 +1,7 @@ package protowire import ( - "github.com/karlsen-network/karlsend/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/appmessage" "github.com/pkg/errors" ) diff --git a/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_get_selected_tip_hash.go b/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_get_selected_tip_hash.go index 9aeb6f2362..73d19581aa 100644 --- a/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_get_selected_tip_hash.go +++ b/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_get_selected_tip_hash.go @@ -1,7 +1,7 @@ package protowire import ( - "github.com/karlsen-network/karlsend/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/appmessage" "github.com/pkg/errors" ) diff --git a/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_get_subnetwork.go b/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_get_subnetwork.go index 88b7043140..befb5c7fab 100644 --- a/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_get_subnetwork.go +++ b/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_get_subnetwork.go @@ -1,7 +1,7 @@ package protowire import ( - "github.com/karlsen-network/karlsend/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/appmessage" "github.com/pkg/errors" ) diff --git a/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_get_supply.go b/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_get_supply.go index 262d7d5765..a0b1cdf94b 100644 --- a/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_get_supply.go +++ b/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_get_supply.go @@ -1,7 +1,7 @@ package protowire import ( - "github.com/karlsen-network/karlsend/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/appmessage" "github.com/pkg/errors" ) diff --git a/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_get_utxos_by_addresses.go b/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_get_utxos_by_addresses.go index a50fef40f4..7f2d142c63 100644 --- a/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_get_utxos_by_addresses.go +++ b/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_get_utxos_by_addresses.go @@ -1,7 +1,7 @@ package protowire import ( - "github.com/karlsen-network/karlsend/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/appmessage" "github.com/pkg/errors" ) diff --git a/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_get_virtual_selected_parent_blue_score.go b/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_get_virtual_selected_parent_blue_score.go index b9ffe6493a..cb50170921 100644 --- a/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_get_virtual_selected_parent_blue_score.go +++ b/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_get_virtual_selected_parent_blue_score.go @@ -1,7 +1,7 @@ package protowire import ( - "github.com/karlsen-network/karlsend/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/appmessage" "github.com/pkg/errors" ) diff --git a/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_get_virtual_selected_parent_chain_from_block.go b/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_get_virtual_selected_parent_chain_from_block.go index c338a5069c..619ec09870 100644 --- a/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_get_virtual_selected_parent_chain_from_block.go +++ b/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_get_virtual_selected_parent_chain_from_block.go @@ -1,7 +1,7 @@ package protowire import ( - "github.com/karlsen-network/karlsend/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/appmessage" "github.com/pkg/errors" ) diff --git a/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_notify_block_added.go b/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_notify_block_added.go index e4c892ef76..1a8bba7cc0 100644 --- a/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_notify_block_added.go +++ b/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_notify_block_added.go @@ -1,7 +1,7 @@ package protowire import ( - "github.com/karlsen-network/karlsend/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/appmessage" "github.com/pkg/errors" ) diff --git a/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_notify_finality_conflicts.go b/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_notify_finality_conflicts.go index c1859992de..3dc1416f49 100644 --- a/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_notify_finality_conflicts.go +++ b/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_notify_finality_conflicts.go @@ -1,7 +1,7 @@ package protowire import ( - "github.com/karlsen-network/karlsend/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/appmessage" "github.com/pkg/errors" ) diff --git a/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_notify_new_block_template.go b/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_notify_new_block_template.go index b58d60b038..5a037e3aad 100644 --- a/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_notify_new_block_template.go +++ b/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_notify_new_block_template.go @@ -1,7 +1,7 @@ package protowire import ( - "github.com/karlsen-network/karlsend/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/appmessage" "github.com/pkg/errors" ) diff --git a/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_notify_pruning_point_utxo_set_override.go b/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_notify_pruning_point_utxo_set_override.go index e9cc8faee4..913c632a23 100644 --- a/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_notify_pruning_point_utxo_set_override.go +++ b/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_notify_pruning_point_utxo_set_override.go @@ -1,7 +1,7 @@ package protowire import ( - "github.com/karlsen-network/karlsend/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/appmessage" "github.com/pkg/errors" ) diff --git a/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_notify_utxos_changed.go b/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_notify_utxos_changed.go index 6bffec9761..5ce892a1fb 100644 --- a/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_notify_utxos_changed.go +++ b/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_notify_utxos_changed.go @@ -1,7 +1,7 @@ package protowire import ( - "github.com/karlsen-network/karlsend/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/appmessage" "github.com/pkg/errors" ) diff --git a/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_notify_virtual_daa_score_changed.go b/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_notify_virtual_daa_score_changed.go index fc70b7d8b6..319f17cce5 100644 --- a/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_notify_virtual_daa_score_changed.go +++ b/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_notify_virtual_daa_score_changed.go @@ -1,7 +1,7 @@ package protowire import ( - "github.com/karlsen-network/karlsend/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/appmessage" "github.com/pkg/errors" ) diff --git a/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_notify_virtual_selected_parent_blue_score_changed.go b/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_notify_virtual_selected_parent_blue_score_changed.go index 278673d86d..777754df33 100644 --- a/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_notify_virtual_selected_parent_blue_score_changed.go +++ b/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_notify_virtual_selected_parent_blue_score_changed.go @@ -1,7 +1,7 @@ package protowire import ( - "github.com/karlsen-network/karlsend/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/appmessage" "github.com/pkg/errors" ) diff --git a/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_notify_virtual_selected_parent_chain_changed.go b/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_notify_virtual_selected_parent_chain_changed.go index 16edb7eb15..404dd3f097 100644 --- a/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_notify_virtual_selected_parent_chain_changed.go +++ b/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_notify_virtual_selected_parent_chain_changed.go @@ -1,7 +1,7 @@ package protowire import ( - "github.com/karlsen-network/karlsend/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/appmessage" "github.com/pkg/errors" ) diff --git a/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_resolve_finality_conflict.go b/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_resolve_finality_conflict.go index 818ca2c026..1d5e2d05a2 100644 --- a/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_resolve_finality_conflict.go +++ b/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_resolve_finality_conflict.go @@ -1,7 +1,7 @@ package protowire import ( - "github.com/karlsen-network/karlsend/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/appmessage" "github.com/pkg/errors" ) diff --git a/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_shut_down.go b/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_shut_down.go index 33b0d2c03f..1df285e421 100644 --- a/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_shut_down.go +++ b/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_shut_down.go @@ -1,7 +1,7 @@ package protowire import ( - "github.com/karlsen-network/karlsend/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/appmessage" "github.com/pkg/errors" ) diff --git a/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_stop_notifying_utxos_changed.go b/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_stop_notifying_utxos_changed.go index ca70fcd02b..c1b6680411 100644 --- a/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_stop_notifying_utxos_changed.go +++ b/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_stop_notifying_utxos_changed.go @@ -1,7 +1,7 @@ package protowire import ( - "github.com/karlsen-network/karlsend/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/appmessage" "github.com/pkg/errors" ) diff --git a/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_submit_block.go b/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_submit_block.go index 7fd7a876e2..1ee28d510d 100644 --- a/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_submit_block.go +++ b/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_submit_block.go @@ -3,7 +3,7 @@ package protowire import ( "math" - "github.com/karlsen-network/karlsend/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/appmessage" "github.com/pkg/errors" ) diff --git a/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_submit_transaction.go b/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_submit_transaction.go index 8b6f8a0be2..7271373561 100644 --- a/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_submit_transaction.go +++ b/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_submit_transaction.go @@ -3,7 +3,7 @@ package protowire import ( "math" - "github.com/karlsen-network/karlsend/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/appmessage" "github.com/pkg/errors" ) diff --git a/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_unban.go b/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_unban.go index 7a685341b7..3d25dd5be9 100644 --- a/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_unban.go +++ b/infrastructure/network/netadapter/server/grpcserver/protowire/rpc_unban.go @@ -1,7 +1,7 @@ package protowire import ( - "github.com/karlsen-network/karlsend/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/appmessage" "github.com/pkg/errors" ) diff --git a/infrastructure/network/netadapter/server/grpcserver/protowire/wire.go b/infrastructure/network/netadapter/server/grpcserver/protowire/wire.go index 0d3c27ae5c..a87b1651ed 100644 --- a/infrastructure/network/netadapter/server/grpcserver/protowire/wire.go +++ b/infrastructure/network/netadapter/server/grpcserver/protowire/wire.go @@ -1,7 +1,7 @@ package protowire import ( - "github.com/karlsen-network/karlsend/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/appmessage" "github.com/pkg/errors" ) diff --git a/infrastructure/network/netadapter/server/grpcserver/rpcserver.go b/infrastructure/network/netadapter/server/grpcserver/rpcserver.go index ff1b0fe0ec..742a4473f0 100644 --- a/infrastructure/network/netadapter/server/grpcserver/rpcserver.go +++ b/infrastructure/network/netadapter/server/grpcserver/rpcserver.go @@ -1,9 +1,9 @@ package grpcserver import ( - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/server" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/server/grpcserver/protowire" - "github.com/karlsen-network/karlsend/util/panics" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/server" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/server/grpcserver/protowire" + "github.com/karlsen-network/karlsend/v2/util/panics" ) type rpcServer struct { diff --git a/infrastructure/network/netadapter/server/server.go b/infrastructure/network/netadapter/server/server.go index 6cce2d9100..81b72e68a1 100644 --- a/infrastructure/network/netadapter/server/server.go +++ b/infrastructure/network/netadapter/server/server.go @@ -4,7 +4,7 @@ import ( "fmt" "net" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/router" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/router" ) // OnConnectedHandler is a function that is to be called diff --git a/infrastructure/network/netadapter/standalone/log.go b/infrastructure/network/netadapter/standalone/log.go index 2b8bda1dcf..6d906b2df1 100644 --- a/infrastructure/network/netadapter/standalone/log.go +++ b/infrastructure/network/netadapter/standalone/log.go @@ -1,8 +1,8 @@ package standalone import ( - "github.com/karlsen-network/karlsend/infrastructure/logger" - "github.com/karlsen-network/karlsend/util/panics" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/util/panics" ) var log = logger.RegisterSubSystem("NTAR") diff --git a/infrastructure/network/netadapter/standalone/minimal_net_adapter.go b/infrastructure/network/netadapter/standalone/minimal_net_adapter.go index e68e2ab890..d39dd6b45b 100644 --- a/infrastructure/network/netadapter/standalone/minimal_net_adapter.go +++ b/infrastructure/network/netadapter/standalone/minimal_net_adapter.go @@ -3,16 +3,16 @@ package standalone import ( "sync" - "github.com/karlsen-network/karlsend/app/protocol/common" - "github.com/karlsen-network/karlsend/util/mstime" + "github.com/karlsen-network/karlsend/v2/app/protocol/common" + "github.com/karlsen-network/karlsend/v2/util/mstime" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/id" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/id" - "github.com/karlsen-network/karlsend/app/appmessage" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/router" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/router" - "github.com/karlsen-network/karlsend/infrastructure/config" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter" + "github.com/karlsen-network/karlsend/v2/infrastructure/config" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter" "github.com/pkg/errors" ) diff --git a/infrastructure/network/netadapter/standalone/routes.go b/infrastructure/network/netadapter/standalone/routes.go index 509f8aa23f..33290c53ff 100644 --- a/infrastructure/network/netadapter/standalone/routes.go +++ b/infrastructure/network/netadapter/standalone/routes.go @@ -3,12 +3,12 @@ package standalone import ( "time" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter" "github.com/pkg/errors" - "github.com/karlsen-network/karlsend/app/appmessage" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/router" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/router" ) // Routes holds the incoming and outgoing routes of a connection created by MinimalNetAdapter diff --git a/infrastructure/network/rpcclient/grpcclient/grpcclient.go b/infrastructure/network/rpcclient/grpcclient/grpcclient.go index 7f5029e6ab..20d4bc17e7 100644 --- a/infrastructure/network/rpcclient/grpcclient/grpcclient.go +++ b/infrastructure/network/rpcclient/grpcclient/grpcclient.go @@ -7,10 +7,10 @@ import ( "sync/atomic" "time" - "github.com/karlsen-network/karlsend/app/appmessage" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/router" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/server/grpcserver" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/server/grpcserver/protowire" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/router" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/server/grpcserver" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/server/grpcserver/protowire" "github.com/pkg/errors" "google.golang.org/grpc" "google.golang.org/grpc/encoding/gzip" diff --git a/infrastructure/network/rpcclient/grpcclient/log.go b/infrastructure/network/rpcclient/grpcclient/log.go index baf401e1d6..0246a7bedc 100644 --- a/infrastructure/network/rpcclient/grpcclient/log.go +++ b/infrastructure/network/rpcclient/grpcclient/log.go @@ -1,8 +1,8 @@ package grpcclient import ( - "github.com/karlsen-network/karlsend/infrastructure/logger" - "github.com/karlsen-network/karlsend/util/panics" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/util/panics" ) var log = logger.RegisterSubSystem("RPCC") diff --git a/infrastructure/network/rpcclient/grpcclient/post.go b/infrastructure/network/rpcclient/grpcclient/post.go index 513a40273d..9495219a5b 100644 --- a/infrastructure/network/rpcclient/grpcclient/post.go +++ b/infrastructure/network/rpcclient/grpcclient/post.go @@ -1,8 +1,8 @@ package grpcclient import ( - "github.com/karlsen-network/karlsend/app/appmessage" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/server/grpcserver/protowire" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/server/grpcserver/protowire" "github.com/pkg/errors" "google.golang.org/protobuf/encoding/protojson" ) diff --git a/infrastructure/network/rpcclient/log.go b/infrastructure/network/rpcclient/log.go index fa9cdb1829..d66970e2e3 100644 --- a/infrastructure/network/rpcclient/log.go +++ b/infrastructure/network/rpcclient/log.go @@ -1,8 +1,8 @@ package rpcclient import ( - "github.com/karlsen-network/karlsend/infrastructure/logger" - "github.com/karlsen-network/karlsend/util/panics" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/util/panics" ) var log = logger.RegisterSubSystem("RPCC") diff --git a/infrastructure/network/rpcclient/rpc_ban.go b/infrastructure/network/rpcclient/rpc_ban.go index ffdbd404bf..c4baedd3ef 100644 --- a/infrastructure/network/rpcclient/rpc_ban.go +++ b/infrastructure/network/rpcclient/rpc_ban.go @@ -1,6 +1,6 @@ package rpcclient -import "github.com/karlsen-network/karlsend/app/appmessage" +import "github.com/karlsen-network/karlsend/v2/app/appmessage" // Ban sends an RPC request respective to the function's name and returns the RPC server's response func (c *RPCClient) Ban(ip string) (*appmessage.BanResponseMessage, error) { diff --git a/infrastructure/network/rpcclient/rpc_connect_to_peer.go b/infrastructure/network/rpcclient/rpc_connect_to_peer.go index 94dd792b0d..0bb3a3c968 100644 --- a/infrastructure/network/rpcclient/rpc_connect_to_peer.go +++ b/infrastructure/network/rpcclient/rpc_connect_to_peer.go @@ -1,6 +1,6 @@ package rpcclient -import "github.com/karlsen-network/karlsend/app/appmessage" +import "github.com/karlsen-network/karlsend/v2/app/appmessage" // AddPeer sends an RPC request respective to the function's name and returns the RPC server's response func (c *RPCClient) AddPeer(address string, isPermanent bool) error { diff --git a/infrastructure/network/rpcclient/rpc_estimate_network_hashes_per_second.go b/infrastructure/network/rpcclient/rpc_estimate_network_hashes_per_second.go index 4a0d839d3e..8dbba8229f 100644 --- a/infrastructure/network/rpcclient/rpc_estimate_network_hashes_per_second.go +++ b/infrastructure/network/rpcclient/rpc_estimate_network_hashes_per_second.go @@ -1,6 +1,6 @@ package rpcclient -import "github.com/karlsen-network/karlsend/app/appmessage" +import "github.com/karlsen-network/karlsend/v2/app/appmessage" // EstimateNetworkHashesPerSecond sends an RPC request respective to the function's name and returns the RPC server's response func (c *RPCClient) EstimateNetworkHashesPerSecond(startHash string, windowSize uint32) (*appmessage.EstimateNetworkHashesPerSecondResponseMessage, error) { diff --git a/infrastructure/network/rpcclient/rpc_get_balance_by_address.go b/infrastructure/network/rpcclient/rpc_get_balance_by_address.go index 24feb72f49..4822f72aa6 100644 --- a/infrastructure/network/rpcclient/rpc_get_balance_by_address.go +++ b/infrastructure/network/rpcclient/rpc_get_balance_by_address.go @@ -1,6 +1,6 @@ package rpcclient -import "github.com/karlsen-network/karlsend/app/appmessage" +import "github.com/karlsen-network/karlsend/v2/app/appmessage" // GetBalanceByAddress sends an RPC request respective to the function's name and returns the RPC server's response func (c *RPCClient) GetBalanceByAddress(address string) (*appmessage.GetBalanceByAddressResponseMessage, error) { diff --git a/infrastructure/network/rpcclient/rpc_get_balances_by_addresses.go b/infrastructure/network/rpcclient/rpc_get_balances_by_addresses.go index 2ff7f10ba9..c7266cd7d4 100644 --- a/infrastructure/network/rpcclient/rpc_get_balances_by_addresses.go +++ b/infrastructure/network/rpcclient/rpc_get_balances_by_addresses.go @@ -1,6 +1,6 @@ package rpcclient -import "github.com/karlsen-network/karlsend/app/appmessage" +import "github.com/karlsen-network/karlsend/v2/app/appmessage" // GetBalancesByAddresses sends an RPC request respective to the function's name and returns the RPC server's response func (c *RPCClient) GetBalancesByAddresses(addresses []string) (*appmessage.GetBalancesByAddressesResponseMessage, error) { diff --git a/infrastructure/network/rpcclient/rpc_get_block.go b/infrastructure/network/rpcclient/rpc_get_block.go index f8115ee5df..52f8cdc640 100644 --- a/infrastructure/network/rpcclient/rpc_get_block.go +++ b/infrastructure/network/rpcclient/rpc_get_block.go @@ -1,6 +1,6 @@ package rpcclient -import "github.com/karlsen-network/karlsend/app/appmessage" +import "github.com/karlsen-network/karlsend/v2/app/appmessage" // GetBlock sends an RPC request respective to the function's name and returns the RPC server's response func (c *RPCClient) GetBlock(hash string, includeTransactions bool) ( diff --git a/infrastructure/network/rpcclient/rpc_get_block_count.go b/infrastructure/network/rpcclient/rpc_get_block_count.go index c08817b0a6..07b3e3a592 100644 --- a/infrastructure/network/rpcclient/rpc_get_block_count.go +++ b/infrastructure/network/rpcclient/rpc_get_block_count.go @@ -1,6 +1,6 @@ package rpcclient -import "github.com/karlsen-network/karlsend/app/appmessage" +import "github.com/karlsen-network/karlsend/v2/app/appmessage" // GetBlockCount sends an RPC request respective to the function's name and returns the RPC server's response func (c *RPCClient) GetBlockCount() (*appmessage.GetBlockCountResponseMessage, error) { diff --git a/infrastructure/network/rpcclient/rpc_get_block_dag_info.go b/infrastructure/network/rpcclient/rpc_get_block_dag_info.go index e3a79fe68a..2de5e0f53e 100644 --- a/infrastructure/network/rpcclient/rpc_get_block_dag_info.go +++ b/infrastructure/network/rpcclient/rpc_get_block_dag_info.go @@ -1,6 +1,6 @@ package rpcclient -import "github.com/karlsen-network/karlsend/app/appmessage" +import "github.com/karlsen-network/karlsend/v2/app/appmessage" // GetBlockDAGInfo sends an RPC request respective to the function's name and returns the RPC server's response func (c *RPCClient) GetBlockDAGInfo() (*appmessage.GetBlockDAGInfoResponseMessage, error) { diff --git a/infrastructure/network/rpcclient/rpc_get_block_template.go b/infrastructure/network/rpcclient/rpc_get_block_template.go index a4066991f2..100f45317f 100644 --- a/infrastructure/network/rpcclient/rpc_get_block_template.go +++ b/infrastructure/network/rpcclient/rpc_get_block_template.go @@ -1,6 +1,6 @@ package rpcclient -import "github.com/karlsen-network/karlsend/app/appmessage" +import "github.com/karlsen-network/karlsend/v2/app/appmessage" // GetBlockTemplate sends an RPC request respective to the function's name and returns the RPC server's response func (c *RPCClient) GetBlockTemplate(miningAddress, extraData string) (*appmessage.GetBlockTemplateResponseMessage, error) { diff --git a/infrastructure/network/rpcclient/rpc_get_blocks.go b/infrastructure/network/rpcclient/rpc_get_blocks.go index 15d3667a22..0cf34a2e06 100644 --- a/infrastructure/network/rpcclient/rpc_get_blocks.go +++ b/infrastructure/network/rpcclient/rpc_get_blocks.go @@ -1,6 +1,6 @@ package rpcclient -import "github.com/karlsen-network/karlsend/app/appmessage" +import "github.com/karlsen-network/karlsend/v2/app/appmessage" // GetBlocks sends an RPC request respective to the function's name and returns the RPC server's response func (c *RPCClient) GetBlocks(lowHash string, includeBlocks bool, diff --git a/infrastructure/network/rpcclient/rpc_get_chain_from_block.go b/infrastructure/network/rpcclient/rpc_get_chain_from_block.go index 2e50d61ee0..eae09c7ab3 100644 --- a/infrastructure/network/rpcclient/rpc_get_chain_from_block.go +++ b/infrastructure/network/rpcclient/rpc_get_chain_from_block.go @@ -1,6 +1,6 @@ package rpcclient -import "github.com/karlsen-network/karlsend/app/appmessage" +import "github.com/karlsen-network/karlsend/v2/app/appmessage" // GetVirtualSelectedParentChainFromBlock sends an RPC request respective to the function's name and returns the RPC server's response func (c *RPCClient) GetVirtualSelectedParentChainFromBlock(startHash string, includeAcceptedTransactionIDs bool) ( diff --git a/infrastructure/network/rpcclient/rpc_get_coin_supply.go b/infrastructure/network/rpcclient/rpc_get_coin_supply.go index 396949b183..88f48d7e6d 100644 --- a/infrastructure/network/rpcclient/rpc_get_coin_supply.go +++ b/infrastructure/network/rpcclient/rpc_get_coin_supply.go @@ -1,6 +1,6 @@ package rpcclient -import "github.com/karlsen-network/karlsend/app/appmessage" +import "github.com/karlsen-network/karlsend/v2/app/appmessage" // GetCoinSupply sends an RPC request respective to the function's name and returns the RPC server's response func (c *RPCClient) GetCoinSupply() (*appmessage.GetCoinSupplyResponseMessage, error) { diff --git a/infrastructure/network/rpcclient/rpc_get_connected_peer_info.go b/infrastructure/network/rpcclient/rpc_get_connected_peer_info.go index 646e8b29b3..c32e85da12 100644 --- a/infrastructure/network/rpcclient/rpc_get_connected_peer_info.go +++ b/infrastructure/network/rpcclient/rpc_get_connected_peer_info.go @@ -1,6 +1,6 @@ package rpcclient -import "github.com/karlsen-network/karlsend/app/appmessage" +import "github.com/karlsen-network/karlsend/v2/app/appmessage" // GetConnectedPeerInfo sends an RPC request respective to the function's name and returns the RPC server's response func (c *RPCClient) GetConnectedPeerInfo() (*appmessage.GetConnectedPeerInfoResponseMessage, error) { diff --git a/infrastructure/network/rpcclient/rpc_get_headers.go b/infrastructure/network/rpcclient/rpc_get_headers.go index c038ec7a2d..3d7fc4334c 100644 --- a/infrastructure/network/rpcclient/rpc_get_headers.go +++ b/infrastructure/network/rpcclient/rpc_get_headers.go @@ -1,6 +1,6 @@ package rpcclient -import "github.com/karlsen-network/karlsend/app/appmessage" +import "github.com/karlsen-network/karlsend/v2/app/appmessage" // GetHeaders sends an RPC request respective to the function's name and returns the RPC server's response func (c *RPCClient) GetHeaders(startHash string, limit uint64, isAscending bool) (*appmessage.GetHeadersResponseMessage, error) { diff --git a/infrastructure/network/rpcclient/rpc_get_info.go b/infrastructure/network/rpcclient/rpc_get_info.go index 4688e81b8a..b2394ad9b4 100644 --- a/infrastructure/network/rpcclient/rpc_get_info.go +++ b/infrastructure/network/rpcclient/rpc_get_info.go @@ -1,6 +1,6 @@ package rpcclient -import "github.com/karlsen-network/karlsend/app/appmessage" +import "github.com/karlsen-network/karlsend/v2/app/appmessage" // GetInfo sends an RPC request respective to the function's name and returns the RPC server's response func (c *RPCClient) GetInfo() (*appmessage.GetInfoResponseMessage, error) { diff --git a/infrastructure/network/rpcclient/rpc_get_mempool_entries.go b/infrastructure/network/rpcclient/rpc_get_mempool_entries.go index e4ecbe0eef..c1c3657005 100644 --- a/infrastructure/network/rpcclient/rpc_get_mempool_entries.go +++ b/infrastructure/network/rpcclient/rpc_get_mempool_entries.go @@ -1,6 +1,6 @@ package rpcclient -import "github.com/karlsen-network/karlsend/app/appmessage" +import "github.com/karlsen-network/karlsend/v2/app/appmessage" // GetMempoolEntries sends an RPC request respective to the function's name and returns the RPC server's response func (c *RPCClient) GetMempoolEntries(includeOrphanPool bool, filterTransactionPool bool) (*appmessage.GetMempoolEntriesResponseMessage, error) { diff --git a/infrastructure/network/rpcclient/rpc_get_mempool_entries_by_address.go b/infrastructure/network/rpcclient/rpc_get_mempool_entries_by_address.go index e45cedd1e7..f43baf4022 100644 --- a/infrastructure/network/rpcclient/rpc_get_mempool_entries_by_address.go +++ b/infrastructure/network/rpcclient/rpc_get_mempool_entries_by_address.go @@ -1,6 +1,6 @@ package rpcclient -import "github.com/karlsen-network/karlsend/app/appmessage" +import "github.com/karlsen-network/karlsend/v2/app/appmessage" // GetMempoolEntriesByAddresses sends an RPC request respective to the function's name and returns the RPC server's response func (c *RPCClient) GetMempoolEntriesByAddresses(addresses []string, includeOrphanPool bool, filterTransactionPool bool) (*appmessage.GetMempoolEntriesByAddressesResponseMessage, error) { diff --git a/infrastructure/network/rpcclient/rpc_get_mempool_entry.go b/infrastructure/network/rpcclient/rpc_get_mempool_entry.go index 72f3c04034..bfb4ddc508 100644 --- a/infrastructure/network/rpcclient/rpc_get_mempool_entry.go +++ b/infrastructure/network/rpcclient/rpc_get_mempool_entry.go @@ -1,6 +1,6 @@ package rpcclient -import "github.com/karlsen-network/karlsend/app/appmessage" +import "github.com/karlsen-network/karlsend/v2/app/appmessage" // GetMempoolEntry sends an RPC request respective to the function's name and returns the RPC server's response func (c *RPCClient) GetMempoolEntry(txID string, includeOrphanPool bool, filterTransactionPool bool) (*appmessage.GetMempoolEntryResponseMessage, error) { diff --git a/infrastructure/network/rpcclient/rpc_get_peer_addresses.go b/infrastructure/network/rpcclient/rpc_get_peer_addresses.go index 4ced564798..8c6099abd7 100644 --- a/infrastructure/network/rpcclient/rpc_get_peer_addresses.go +++ b/infrastructure/network/rpcclient/rpc_get_peer_addresses.go @@ -1,6 +1,6 @@ package rpcclient -import "github.com/karlsen-network/karlsend/app/appmessage" +import "github.com/karlsen-network/karlsend/v2/app/appmessage" // GetPeerAddresses sends an RPC request respective to the function's name and returns the RPC server's response func (c *RPCClient) GetPeerAddresses() (*appmessage.GetPeerAddressesResponseMessage, error) { diff --git a/infrastructure/network/rpcclient/rpc_get_selected_tip_hash.go b/infrastructure/network/rpcclient/rpc_get_selected_tip_hash.go index 930631fa18..16cfd274aa 100644 --- a/infrastructure/network/rpcclient/rpc_get_selected_tip_hash.go +++ b/infrastructure/network/rpcclient/rpc_get_selected_tip_hash.go @@ -1,6 +1,6 @@ package rpcclient -import "github.com/karlsen-network/karlsend/app/appmessage" +import "github.com/karlsen-network/karlsend/v2/app/appmessage" // GetSelectedTipHash sends an RPC request respective to the function's name and returns the RPC server's response func (c *RPCClient) GetSelectedTipHash() (*appmessage.GetSelectedTipHashResponseMessage, error) { diff --git a/infrastructure/network/rpcclient/rpc_get_subnetwork.go b/infrastructure/network/rpcclient/rpc_get_subnetwork.go index 4f558ddd75..e23cac4e75 100644 --- a/infrastructure/network/rpcclient/rpc_get_subnetwork.go +++ b/infrastructure/network/rpcclient/rpc_get_subnetwork.go @@ -1,6 +1,6 @@ package rpcclient -import "github.com/karlsen-network/karlsend/app/appmessage" +import "github.com/karlsen-network/karlsend/v2/app/appmessage" // GetSubnetwork sends an RPC request respective to the function's name and returns the RPC server's response func (c *RPCClient) GetSubnetwork(subnetworkID string) (*appmessage.GetSubnetworkResponseMessage, error) { diff --git a/infrastructure/network/rpcclient/rpc_get_utxos_by_addresses.go b/infrastructure/network/rpcclient/rpc_get_utxos_by_addresses.go index 032799f350..d7e77c989e 100644 --- a/infrastructure/network/rpcclient/rpc_get_utxos_by_addresses.go +++ b/infrastructure/network/rpcclient/rpc_get_utxos_by_addresses.go @@ -1,6 +1,6 @@ package rpcclient -import "github.com/karlsen-network/karlsend/app/appmessage" +import "github.com/karlsen-network/karlsend/v2/app/appmessage" // GetUTXOsByAddresses sends an RPC request respective to the function's name and returns the RPC server's response func (c *RPCClient) GetUTXOsByAddresses(addresses []string) (*appmessage.GetUTXOsByAddressesResponseMessage, error) { diff --git a/infrastructure/network/rpcclient/rpc_get_virtual_selected_parent_blue_score.go b/infrastructure/network/rpcclient/rpc_get_virtual_selected_parent_blue_score.go index 548abb6918..dbc163d5b2 100644 --- a/infrastructure/network/rpcclient/rpc_get_virtual_selected_parent_blue_score.go +++ b/infrastructure/network/rpcclient/rpc_get_virtual_selected_parent_blue_score.go @@ -1,6 +1,6 @@ package rpcclient -import "github.com/karlsen-network/karlsend/app/appmessage" +import "github.com/karlsen-network/karlsend/v2/app/appmessage" // GetVirtualSelectedParentBlueScore sends an RPC request respective to the function's name and returns the RPC server's response func (c *RPCClient) GetVirtualSelectedParentBlueScore() (*appmessage.GetVirtualSelectedParentBlueScoreResponseMessage, error) { diff --git a/infrastructure/network/rpcclient/rpc_on_block_added.go b/infrastructure/network/rpcclient/rpc_on_block_added.go index 0abe777ebe..eb851c5bd5 100644 --- a/infrastructure/network/rpcclient/rpc_on_block_added.go +++ b/infrastructure/network/rpcclient/rpc_on_block_added.go @@ -1,8 +1,8 @@ package rpcclient import ( - "github.com/karlsen-network/karlsend/app/appmessage" - routerpkg "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/router" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + routerpkg "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/router" "github.com/pkg/errors" ) diff --git a/infrastructure/network/rpcclient/rpc_on_chain_changed.go b/infrastructure/network/rpcclient/rpc_on_chain_changed.go index b1765f0f23..0cdbd3612a 100644 --- a/infrastructure/network/rpcclient/rpc_on_chain_changed.go +++ b/infrastructure/network/rpcclient/rpc_on_chain_changed.go @@ -1,8 +1,8 @@ package rpcclient import ( - "github.com/karlsen-network/karlsend/app/appmessage" - routerpkg "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/router" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + routerpkg "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/router" "github.com/pkg/errors" ) diff --git a/infrastructure/network/rpcclient/rpc_on_finality_conflicts.go b/infrastructure/network/rpcclient/rpc_on_finality_conflicts.go index bdf70bf66c..5132b8e2fa 100644 --- a/infrastructure/network/rpcclient/rpc_on_finality_conflicts.go +++ b/infrastructure/network/rpcclient/rpc_on_finality_conflicts.go @@ -1,8 +1,8 @@ package rpcclient import ( - "github.com/karlsen-network/karlsend/app/appmessage" - routerpkg "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/router" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + routerpkg "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/router" "github.com/pkg/errors" ) diff --git a/infrastructure/network/rpcclient/rpc_on_new_block_template.go b/infrastructure/network/rpcclient/rpc_on_new_block_template.go index 83b10edefa..6a03377612 100644 --- a/infrastructure/network/rpcclient/rpc_on_new_block_template.go +++ b/infrastructure/network/rpcclient/rpc_on_new_block_template.go @@ -1,8 +1,8 @@ package rpcclient import ( - "github.com/karlsen-network/karlsend/app/appmessage" - routerpkg "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/router" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + routerpkg "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/router" "github.com/pkg/errors" ) diff --git a/infrastructure/network/rpcclient/rpc_on_pruning_point_utxo_set_override.go b/infrastructure/network/rpcclient/rpc_on_pruning_point_utxo_set_override.go index b5ceaf8f76..7cc7ab868c 100644 --- a/infrastructure/network/rpcclient/rpc_on_pruning_point_utxo_set_override.go +++ b/infrastructure/network/rpcclient/rpc_on_pruning_point_utxo_set_override.go @@ -1,8 +1,8 @@ package rpcclient import ( - "github.com/karlsen-network/karlsend/app/appmessage" - routerpkg "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/router" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + routerpkg "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/router" "github.com/pkg/errors" ) diff --git a/infrastructure/network/rpcclient/rpc_on_utxos_changed.go b/infrastructure/network/rpcclient/rpc_on_utxos_changed.go index 7373ad985d..d39a0b9092 100644 --- a/infrastructure/network/rpcclient/rpc_on_utxos_changed.go +++ b/infrastructure/network/rpcclient/rpc_on_utxos_changed.go @@ -1,8 +1,8 @@ package rpcclient import ( - "github.com/karlsen-network/karlsend/app/appmessage" - routerpkg "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/router" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + routerpkg "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/router" "github.com/pkg/errors" ) diff --git a/infrastructure/network/rpcclient/rpc_on_virtual_daa_score_changed.go b/infrastructure/network/rpcclient/rpc_on_virtual_daa_score_changed.go index d5166505b6..ed3ea1b197 100644 --- a/infrastructure/network/rpcclient/rpc_on_virtual_daa_score_changed.go +++ b/infrastructure/network/rpcclient/rpc_on_virtual_daa_score_changed.go @@ -1,8 +1,8 @@ package rpcclient import ( - "github.com/karlsen-network/karlsend/app/appmessage" - routerpkg "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/router" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + routerpkg "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/router" "github.com/pkg/errors" ) diff --git a/infrastructure/network/rpcclient/rpc_on_virtual_selected_parent_blue_score_changed.go b/infrastructure/network/rpcclient/rpc_on_virtual_selected_parent_blue_score_changed.go index 62383352a2..1f248e8e58 100644 --- a/infrastructure/network/rpcclient/rpc_on_virtual_selected_parent_blue_score_changed.go +++ b/infrastructure/network/rpcclient/rpc_on_virtual_selected_parent_blue_score_changed.go @@ -1,8 +1,8 @@ package rpcclient import ( - "github.com/karlsen-network/karlsend/app/appmessage" - routerpkg "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/router" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + routerpkg "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/router" "github.com/pkg/errors" ) diff --git a/infrastructure/network/rpcclient/rpc_resolve_finality_conflict.go b/infrastructure/network/rpcclient/rpc_resolve_finality_conflict.go index 7bcb0665ba..f9788ef55a 100644 --- a/infrastructure/network/rpcclient/rpc_resolve_finality_conflict.go +++ b/infrastructure/network/rpcclient/rpc_resolve_finality_conflict.go @@ -1,6 +1,6 @@ package rpcclient -import "github.com/karlsen-network/karlsend/app/appmessage" +import "github.com/karlsen-network/karlsend/v2/app/appmessage" // ResolveFinalityConflict sends an RPC request respective to the function's name and returns the RPC server's response func (c *RPCClient) ResolveFinalityConflict(finalityBlockHash string) (*appmessage.ResolveFinalityConflictResponseMessage, error) { diff --git a/infrastructure/network/rpcclient/rpc_send_raw_transaction.go b/infrastructure/network/rpcclient/rpc_send_raw_transaction.go index b7f169e806..a892d07a17 100644 --- a/infrastructure/network/rpcclient/rpc_send_raw_transaction.go +++ b/infrastructure/network/rpcclient/rpc_send_raw_transaction.go @@ -1,7 +1,7 @@ package rpcclient import ( - "github.com/karlsen-network/karlsend/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/appmessage" ) // SubmitTransaction sends an RPC request respective to the function's name and returns the RPC server's response diff --git a/infrastructure/network/rpcclient/rpc_submit_block.go b/infrastructure/network/rpcclient/rpc_submit_block.go index ae0d7f1cef..b2c5167b88 100644 --- a/infrastructure/network/rpcclient/rpc_submit_block.go +++ b/infrastructure/network/rpcclient/rpc_submit_block.go @@ -1,8 +1,8 @@ package rpcclient import ( - "github.com/karlsen-network/karlsend/app/appmessage" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" ) func (c *RPCClient) submitBlock(block *externalapi.DomainBlock, allowNonDAABlocks bool) (appmessage.RejectReason, error) { diff --git a/infrastructure/network/rpcclient/rpc_unban.go b/infrastructure/network/rpcclient/rpc_unban.go index 47ae971d5d..d6ae08a4cf 100644 --- a/infrastructure/network/rpcclient/rpc_unban.go +++ b/infrastructure/network/rpcclient/rpc_unban.go @@ -1,6 +1,6 @@ package rpcclient -import "github.com/karlsen-network/karlsend/app/appmessage" +import "github.com/karlsen-network/karlsend/v2/app/appmessage" // Unban sends an RPC request respective to the function's name and returns the RPC server's response func (c *RPCClient) Unban(ip string) (*appmessage.UnbanResponseMessage, error) { diff --git a/infrastructure/network/rpcclient/rpcclient.go b/infrastructure/network/rpcclient/rpcclient.go index 9be8cae3fe..a0f70996e8 100644 --- a/infrastructure/network/rpcclient/rpcclient.go +++ b/infrastructure/network/rpcclient/rpcclient.go @@ -4,12 +4,12 @@ import ( "sync/atomic" "time" - "github.com/karlsen-network/karlsend/app/appmessage" - "github.com/karlsen-network/karlsend/infrastructure/logger" - routerpkg "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/router" - "github.com/karlsen-network/karlsend/infrastructure/network/rpcclient/grpcclient" - "github.com/karlsen-network/karlsend/util/panics" - "github.com/karlsen-network/karlsend/version" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" + routerpkg "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/router" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/rpcclient/grpcclient" + "github.com/karlsen-network/karlsend/v2/util/panics" + "github.com/karlsen-network/karlsend/v2/version" "github.com/pkg/errors" ) diff --git a/infrastructure/network/rpcclient/rpcrouter.go b/infrastructure/network/rpcclient/rpcrouter.go index b1a1f48a53..d6b1b7438d 100644 --- a/infrastructure/network/rpcclient/rpcrouter.go +++ b/infrastructure/network/rpcclient/rpcrouter.go @@ -1,8 +1,8 @@ package rpcclient import ( - "github.com/karlsen-network/karlsend/app/appmessage" - routerpkg "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/router" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + routerpkg "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/router" ) type rpcRouter struct { diff --git a/infrastructure/os/execenv/initialize.go b/infrastructure/os/execenv/initialize.go index 482aa1df3c..0051fdf8aa 100644 --- a/infrastructure/os/execenv/initialize.go +++ b/infrastructure/os/execenv/initialize.go @@ -5,7 +5,7 @@ import ( "os" "runtime" - "github.com/karlsen-network/karlsend/infrastructure/os/limits" + "github.com/karlsen-network/karlsend/v2/infrastructure/os/limits" ) // Initialize initializes the execution environment required to run karlsend diff --git a/infrastructure/os/signal/log.go b/infrastructure/os/signal/log.go index 78519de200..3cebac1568 100644 --- a/infrastructure/os/signal/log.go +++ b/infrastructure/os/signal/log.go @@ -5,7 +5,7 @@ package signal import ( - "github.com/karlsen-network/karlsend/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" ) var klsdLog = logger.RegisterSubSystem("KLSD") diff --git a/infrastructure/os/winservice/common.go b/infrastructure/os/winservice/common.go index dde8378b8f..9122bcdf5e 100644 --- a/infrastructure/os/winservice/common.go +++ b/infrastructure/os/winservice/common.go @@ -1,6 +1,6 @@ package winservice -import "github.com/karlsen-network/karlsend/infrastructure/config" +import "github.com/karlsen-network/karlsend/v2/infrastructure/config" // ServiceDescription contains information about a service, needed to administer it type ServiceDescription struct { diff --git a/infrastructure/os/winservice/log.go b/infrastructure/os/winservice/log.go index 22a7a00c6c..fb5143ef7b 100644 --- a/infrastructure/os/winservice/log.go +++ b/infrastructure/os/winservice/log.go @@ -5,8 +5,8 @@ package winservice import ( - "github.com/karlsen-network/karlsend/infrastructure/logger" - "github.com/karlsen-network/karlsend/util/panics" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/util/panics" ) var log = logger.RegisterSubSystem("CNFG") diff --git a/infrastructure/os/winservice/service_main_windows.go b/infrastructure/os/winservice/service_main_windows.go index 8418bdd5ef..6bf96c3b1a 100644 --- a/infrastructure/os/winservice/service_main_windows.go +++ b/infrastructure/os/winservice/service_main_windows.go @@ -2,7 +2,7 @@ package winservice import ( "github.com/btcsuite/winsvc/svc" - "github.com/karlsen-network/karlsend/infrastructure/config" + "github.com/karlsen-network/karlsend/v2/infrastructure/config" ) // serviceMain checks whether we're being invoked as a service, and if so uses diff --git a/infrastructure/os/winservice/service_windows.go b/infrastructure/os/winservice/service_windows.go index 2ed5879237..a7d234736a 100644 --- a/infrastructure/os/winservice/service_windows.go +++ b/infrastructure/os/winservice/service_windows.go @@ -9,9 +9,9 @@ import ( "github.com/btcsuite/winsvc/eventlog" "github.com/btcsuite/winsvc/svc" - "github.com/karlsen-network/karlsend/infrastructure/config" - "github.com/karlsen-network/karlsend/infrastructure/os/signal" - "github.com/karlsen-network/karlsend/version" + "github.com/karlsen-network/karlsend/v2/infrastructure/config" + "github.com/karlsen-network/karlsend/v2/infrastructure/os/signal" + "github.com/karlsen-network/karlsend/v2/version" ) // Service houses the main service handler which handles all service diff --git a/main.go b/main.go index d9239ab066..417e21f44b 100644 --- a/main.go +++ b/main.go @@ -8,7 +8,7 @@ import ( _ "net/http/pprof" "os" - "github.com/karlsen-network/karlsend/app" + "github.com/karlsen-network/karlsend/v2/app" ) func main() { diff --git a/stability-tests/application-level-garbage/config.go b/stability-tests/application-level-garbage/config.go index be9e321960..10ebfd4248 100644 --- a/stability-tests/application-level-garbage/config.go +++ b/stability-tests/application-level-garbage/config.go @@ -4,11 +4,11 @@ import ( "os" "path/filepath" - "github.com/karlsen-network/karlsend/infrastructure/logger" - "github.com/karlsen-network/karlsend/stability-tests/common" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/stability-tests/common" "github.com/jessevdk/go-flags" - "github.com/karlsen-network/karlsend/infrastructure/config" + "github.com/karlsen-network/karlsend/v2/infrastructure/config" ) const ( diff --git a/stability-tests/application-level-garbage/log.go b/stability-tests/application-level-garbage/log.go index 2ffb7f7f48..79eaa98b95 100644 --- a/stability-tests/application-level-garbage/log.go +++ b/stability-tests/application-level-garbage/log.go @@ -1,8 +1,8 @@ package main import ( - "github.com/karlsen-network/karlsend/infrastructure/logger" - "github.com/karlsen-network/karlsend/util/panics" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/util/panics" ) var ( diff --git a/stability-tests/application-level-garbage/main.go b/stability-tests/application-level-garbage/main.go index 7dc5777ac2..1087b4093d 100644 --- a/stability-tests/application-level-garbage/main.go +++ b/stability-tests/application-level-garbage/main.go @@ -4,11 +4,11 @@ import ( "fmt" "os" - "github.com/karlsen-network/karlsend/infrastructure/config" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/standalone" - "github.com/karlsen-network/karlsend/stability-tests/common" - "github.com/karlsen-network/karlsend/util/panics" - "github.com/karlsen-network/karlsend/util/profiling" + "github.com/karlsen-network/karlsend/v2/infrastructure/config" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/standalone" + "github.com/karlsen-network/karlsend/v2/stability-tests/common" + "github.com/karlsen-network/karlsend/v2/util/panics" + "github.com/karlsen-network/karlsend/v2/util/profiling" ) func main() { diff --git a/stability-tests/application-level-garbage/read.go b/stability-tests/application-level-garbage/read.go index 8eb80aeae6..1c357234e1 100644 --- a/stability-tests/application-level-garbage/read.go +++ b/stability-tests/application-level-garbage/read.go @@ -3,8 +3,8 @@ package main import ( "encoding/json" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/stability-tests/common" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/stability-tests/common" "github.com/pkg/errors" ) diff --git a/stability-tests/application-level-garbage/send.go b/stability-tests/application-level-garbage/send.go index c939a2d819..c3e55d579c 100644 --- a/stability-tests/application-level-garbage/send.go +++ b/stability-tests/application-level-garbage/send.go @@ -1,11 +1,11 @@ package main import ( - "github.com/karlsen-network/karlsend/app/appmessage" - "github.com/karlsen-network/karlsend/app/protocol/common" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/consensushashing" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/standalone" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/protocol/common" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/consensushashing" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/standalone" "github.com/pkg/errors" ) diff --git a/stability-tests/common/cmd.go b/stability-tests/common/cmd.go index cc7bdfff67..13fd0f2eda 100644 --- a/stability-tests/common/cmd.go +++ b/stability-tests/common/cmd.go @@ -5,8 +5,8 @@ import ( "os/exec" "strings" - "github.com/karlsen-network/karlsend/domain/dagconfig" - "github.com/karlsen-network/karlsend/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/domain/dagconfig" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" "github.com/pkg/errors" ) diff --git a/stability-tests/common/log-writer.go b/stability-tests/common/log-writer.go index 4a6db0aa0a..c4cd2cbe16 100644 --- a/stability-tests/common/log-writer.go +++ b/stability-tests/common/log-writer.go @@ -3,7 +3,7 @@ package common import ( "strings" - "github.com/karlsen-network/karlsend/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" ) // LogWriter writes to the given log with the given log level and prefix diff --git a/stability-tests/common/log.go b/stability-tests/common/log.go index 47e5b2c849..1ccc85cb75 100644 --- a/stability-tests/common/log.go +++ b/stability-tests/common/log.go @@ -4,10 +4,10 @@ import ( "fmt" "os" - "github.com/karlsen-network/karlsend/infrastructure/logger" - "github.com/karlsen-network/karlsend/stability-tests/common/mine" - "github.com/karlsen-network/karlsend/stability-tests/common/rpc" - "github.com/karlsen-network/karlsend/util/panics" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/stability-tests/common/mine" + "github.com/karlsen-network/karlsend/v2/stability-tests/common/rpc" + "github.com/karlsen-network/karlsend/v2/util/panics" ) // log is a logger that is initialized with no output filters. This diff --git a/stability-tests/common/mine/db.go b/stability-tests/common/mine/db.go index c68b11ec14..0f88470767 100644 --- a/stability-tests/common/mine/db.go +++ b/stability-tests/common/mine/db.go @@ -3,9 +3,9 @@ package mine import ( "path/filepath" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/infrastructure/db/database" - "github.com/karlsen-network/karlsend/infrastructure/db/database/ldb" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/infrastructure/db/database" + "github.com/karlsen-network/karlsend/v2/infrastructure/db/database/ldb" ) const leveldbCacheSizeMiB = 256 diff --git a/stability-tests/common/mine/log.go b/stability-tests/common/mine/log.go index 50b4e71387..424bb38485 100644 --- a/stability-tests/common/mine/log.go +++ b/stability-tests/common/mine/log.go @@ -1,8 +1,8 @@ package mine import ( - "github.com/karlsen-network/karlsend/infrastructure/logger" - "github.com/karlsen-network/karlsend/util/panics" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/util/panics" ) // log is a logger that is initialized with no output filters. This diff --git a/stability-tests/common/mine/mine.go b/stability-tests/common/mine/mine.go index 9290abd513..3b4d7a5fa3 100644 --- a/stability-tests/common/mine/mine.go +++ b/stability-tests/common/mine/mine.go @@ -6,13 +6,13 @@ import ( "strings" "time" - "github.com/karlsen-network/karlsend/app/appmessage" - "github.com/karlsen-network/karlsend/domain/consensus" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/model/testapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/consensushashing" - "github.com/karlsen-network/karlsend/domain/consensus/utils/mining" - "github.com/karlsen-network/karlsend/stability-tests/common/rpc" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + "github.com/karlsen-network/karlsend/v2/domain/consensus" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/testapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/consensushashing" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/mining" + "github.com/karlsen-network/karlsend/v2/stability-tests/common/rpc" "github.com/pkg/errors" ) diff --git a/stability-tests/common/paths.go b/stability-tests/common/paths.go index 51957b5c65..678eea46c3 100644 --- a/stability-tests/common/paths.go +++ b/stability-tests/common/paths.go @@ -1,6 +1,6 @@ package common -import "github.com/karlsen-network/karlsend/util" +import "github.com/karlsen-network/karlsend/v2/util" // DefaultAppDir is the default app directory to be used by all tests var DefaultAppDir = util.AppDir("stability-tests", false) diff --git a/stability-tests/common/rpc/log.go b/stability-tests/common/rpc/log.go index 02e80377cc..0047c4917f 100644 --- a/stability-tests/common/rpc/log.go +++ b/stability-tests/common/rpc/log.go @@ -1,8 +1,8 @@ package rpc import ( - "github.com/karlsen-network/karlsend/infrastructure/logger" - "github.com/karlsen-network/karlsend/util/panics" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/util/panics" ) // log is a logger that is initialized with no output filters. This diff --git a/stability-tests/common/rpc/rpc.go b/stability-tests/common/rpc/rpc.go index a70807e117..6f38ceb494 100644 --- a/stability-tests/common/rpc/rpc.go +++ b/stability-tests/common/rpc/rpc.go @@ -3,10 +3,10 @@ package rpc import ( "time" - "github.com/karlsen-network/karlsend/app/appmessage" - "github.com/karlsen-network/karlsend/infrastructure/network/rpcclient" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/rpcclient" - "github.com/karlsen-network/karlsend/domain/dagconfig" + "github.com/karlsen-network/karlsend/v2/domain/dagconfig" ) const defaultRPCServer = "localhost" diff --git a/stability-tests/common/run-karlsend.go b/stability-tests/common/run-karlsend.go index 1ef2a5d579..84e15e66ce 100644 --- a/stability-tests/common/run-karlsend.go +++ b/stability-tests/common/run-karlsend.go @@ -7,7 +7,7 @@ import ( "syscall" "testing" - "github.com/karlsen-network/karlsend/domain/dagconfig" + "github.com/karlsen-network/karlsend/v2/domain/dagconfig" ) // RunKarlsendForTesting runs karlsend for testing purposes diff --git a/stability-tests/daa/daa_test.go b/stability-tests/daa/daa_test.go index 088dafbb80..ced2cf7da7 100644 --- a/stability-tests/daa/daa_test.go +++ b/stability-tests/daa/daa_test.go @@ -7,12 +7,12 @@ import ( "testing" "time" - "github.com/karlsen-network/karlsend/app/appmessage" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/pow" - "github.com/karlsen-network/karlsend/domain/dagconfig" - "github.com/karlsen-network/karlsend/infrastructure/network/rpcclient" - "github.com/karlsen-network/karlsend/stability-tests/common" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/pow" + "github.com/karlsen-network/karlsend/v2/domain/dagconfig" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/rpcclient" + "github.com/karlsen-network/karlsend/v2/stability-tests/common" ) const rpcAddress = "localhost:9000" diff --git a/stability-tests/infra-level-garbage/config.go b/stability-tests/infra-level-garbage/config.go index e543d49a3b..bb86d23cbf 100644 --- a/stability-tests/infra-level-garbage/config.go +++ b/stability-tests/infra-level-garbage/config.go @@ -4,9 +4,9 @@ import ( "os" "path/filepath" - "github.com/karlsen-network/karlsend/infrastructure/config" - "github.com/karlsen-network/karlsend/infrastructure/logger" - "github.com/karlsen-network/karlsend/stability-tests/common" + "github.com/karlsen-network/karlsend/v2/infrastructure/config" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/stability-tests/common" "github.com/jessevdk/go-flags" ) diff --git a/stability-tests/infra-level-garbage/log.go b/stability-tests/infra-level-garbage/log.go index 7a937160ba..2c36c3f898 100644 --- a/stability-tests/infra-level-garbage/log.go +++ b/stability-tests/infra-level-garbage/log.go @@ -1,8 +1,8 @@ package main import ( - "github.com/karlsen-network/karlsend/infrastructure/logger" - "github.com/karlsen-network/karlsend/util/panics" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/util/panics" ) var ( diff --git a/stability-tests/infra-level-garbage/main.go b/stability-tests/infra-level-garbage/main.go index 26351a9e24..4a2ece53dd 100644 --- a/stability-tests/infra-level-garbage/main.go +++ b/stability-tests/infra-level-garbage/main.go @@ -5,8 +5,8 @@ import ( "os" "time" - "github.com/karlsen-network/karlsend/stability-tests/common" - "github.com/karlsen-network/karlsend/util/profiling" + "github.com/karlsen-network/karlsend/v2/stability-tests/common" + "github.com/karlsen-network/karlsend/v2/util/profiling" ) const timeout = 5 * time.Second diff --git a/stability-tests/infra-level-garbage/send.go b/stability-tests/infra-level-garbage/send.go index 62991396d0..755e06977b 100644 --- a/stability-tests/infra-level-garbage/send.go +++ b/stability-tests/infra-level-garbage/send.go @@ -5,7 +5,7 @@ import ( "net" "time" - "github.com/karlsen-network/karlsend/app/protocol/common" + "github.com/karlsen-network/karlsend/v2/app/protocol/common" "github.com/pkg/errors" ) diff --git a/stability-tests/karlsendsanity/commandloop.go b/stability-tests/karlsendsanity/commandloop.go index a83f14cff4..33e000610e 100644 --- a/stability-tests/karlsendsanity/commandloop.go +++ b/stability-tests/karlsendsanity/commandloop.go @@ -7,8 +7,8 @@ import ( "strings" "time" - "github.com/karlsen-network/karlsend/infrastructure/logger" - "github.com/karlsen-network/karlsend/stability-tests/common" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/stability-tests/common" "github.com/pkg/errors" ) diff --git a/stability-tests/karlsendsanity/config.go b/stability-tests/karlsendsanity/config.go index 37c194b5c7..09752944d0 100644 --- a/stability-tests/karlsendsanity/config.go +++ b/stability-tests/karlsendsanity/config.go @@ -4,7 +4,7 @@ import ( "path/filepath" "github.com/jessevdk/go-flags" - "github.com/karlsen-network/karlsend/stability-tests/common" + "github.com/karlsen-network/karlsend/v2/stability-tests/common" ) const ( diff --git a/stability-tests/karlsendsanity/log.go b/stability-tests/karlsendsanity/log.go index d6acc94853..f6957bda5c 100644 --- a/stability-tests/karlsendsanity/log.go +++ b/stability-tests/karlsendsanity/log.go @@ -4,9 +4,9 @@ import ( "fmt" "os" - "github.com/karlsen-network/karlsend/infrastructure/logger" - "github.com/karlsen-network/karlsend/stability-tests/common" - "github.com/karlsen-network/karlsend/util/panics" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/stability-tests/common" + "github.com/karlsen-network/karlsend/v2/util/panics" ) var ( diff --git a/stability-tests/karlsendsanity/main.go b/stability-tests/karlsendsanity/main.go index f2d85f2c7c..adc3ac277f 100644 --- a/stability-tests/karlsendsanity/main.go +++ b/stability-tests/karlsendsanity/main.go @@ -4,10 +4,10 @@ import ( "fmt" "os" - "github.com/karlsen-network/karlsend/stability-tests/common" - "github.com/karlsen-network/karlsend/util/profiling" + "github.com/karlsen-network/karlsend/v2/stability-tests/common" + "github.com/karlsen-network/karlsend/v2/util/profiling" - "github.com/karlsen-network/karlsend/util/panics" + "github.com/karlsen-network/karlsend/v2/util/panics" "github.com/pkg/errors" ) diff --git a/stability-tests/many-tips/config.go b/stability-tests/many-tips/config.go index 9b1d01c2db..8c11245583 100644 --- a/stability-tests/many-tips/config.go +++ b/stability-tests/many-tips/config.go @@ -4,8 +4,8 @@ import ( "path/filepath" "github.com/jessevdk/go-flags" - "github.com/karlsen-network/karlsend/infrastructure/config" - "github.com/karlsen-network/karlsend/stability-tests/common" + "github.com/karlsen-network/karlsend/v2/infrastructure/config" + "github.com/karlsen-network/karlsend/v2/stability-tests/common" ) const ( diff --git a/stability-tests/many-tips/log.go b/stability-tests/many-tips/log.go index 431a6695da..15f92b98b0 100644 --- a/stability-tests/many-tips/log.go +++ b/stability-tests/many-tips/log.go @@ -4,9 +4,9 @@ import ( "fmt" "os" - "github.com/karlsen-network/karlsend/infrastructure/logger" - "github.com/karlsen-network/karlsend/stability-tests/common" - "github.com/karlsen-network/karlsend/util/panics" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/stability-tests/common" + "github.com/karlsen-network/karlsend/v2/util/panics" ) var ( diff --git a/stability-tests/many-tips/main.go b/stability-tests/many-tips/main.go index f8175887e9..d5dcdf038c 100644 --- a/stability-tests/many-tips/main.go +++ b/stability-tests/many-tips/main.go @@ -11,15 +11,15 @@ import ( "syscall" "time" - "github.com/karlsen-network/karlsend/app/appmessage" - "github.com/karlsen-network/karlsend/domain/consensus/utils/mining" - "github.com/karlsen-network/karlsend/util" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/mining" + "github.com/karlsen-network/karlsend/v2/util" "github.com/kaspanet/go-secp256k1" - "github.com/karlsen-network/karlsend/stability-tests/common" - "github.com/karlsen-network/karlsend/stability-tests/common/rpc" - "github.com/karlsen-network/karlsend/util/panics" - "github.com/karlsen-network/karlsend/util/profiling" + "github.com/karlsen-network/karlsend/v2/stability-tests/common" + "github.com/karlsen-network/karlsend/v2/stability-tests/common/rpc" + "github.com/karlsen-network/karlsend/v2/util/panics" + "github.com/karlsen-network/karlsend/v2/util/profiling" "github.com/pkg/errors" ) diff --git a/stability-tests/mempool-limits/config.go b/stability-tests/mempool-limits/config.go index 3eb2a09de5..334114c9b2 100644 --- a/stability-tests/mempool-limits/config.go +++ b/stability-tests/mempool-limits/config.go @@ -4,7 +4,7 @@ import ( "path/filepath" "github.com/jessevdk/go-flags" - "github.com/karlsen-network/karlsend/stability-tests/common" + "github.com/karlsen-network/karlsend/v2/stability-tests/common" ) const ( diff --git a/stability-tests/mempool-limits/log.go b/stability-tests/mempool-limits/log.go index c1024fb920..1d70ebc09a 100644 --- a/stability-tests/mempool-limits/log.go +++ b/stability-tests/mempool-limits/log.go @@ -4,9 +4,9 @@ import ( "fmt" "os" - "github.com/karlsen-network/karlsend/infrastructure/logger" - "github.com/karlsen-network/karlsend/stability-tests/common" - "github.com/karlsen-network/karlsend/util/panics" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/stability-tests/common" + "github.com/karlsen-network/karlsend/v2/util/panics" ) var ( diff --git a/stability-tests/mempool-limits/main_test.go b/stability-tests/mempool-limits/main_test.go index ba313e7a96..7ebeac271d 100644 --- a/stability-tests/mempool-limits/main_test.go +++ b/stability-tests/mempool-limits/main_test.go @@ -4,10 +4,10 @@ import ( "os" "testing" - "github.com/karlsen-network/karlsend/infrastructure/network/rpcclient" - "github.com/karlsen-network/karlsend/stability-tests/common" - "github.com/karlsen-network/karlsend/util/panics" - "github.com/karlsen-network/karlsend/util/profiling" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/rpcclient" + "github.com/karlsen-network/karlsend/v2/stability-tests/common" + "github.com/karlsen-network/karlsend/v2/util/panics" + "github.com/karlsen-network/karlsend/v2/util/profiling" ) const ( diff --git a/stability-tests/mempool-limits/transactions.go b/stability-tests/mempool-limits/transactions.go index 13d364a4a2..7ad61018c3 100644 --- a/stability-tests/mempool-limits/transactions.go +++ b/stability-tests/mempool-limits/transactions.go @@ -5,18 +5,18 @@ import ( "strings" "testing" - "github.com/karlsen-network/karlsend/app/appmessage" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/consensushashing" - "github.com/karlsen-network/karlsend/domain/consensus/utils/constants" - "github.com/karlsen-network/karlsend/domain/consensus/utils/subnetworks" - "github.com/karlsen-network/karlsend/domain/consensus/utils/transactionhelper" - "github.com/karlsen-network/karlsend/domain/consensus/utils/txscript" - utxopkg "github.com/karlsen-network/karlsend/domain/consensus/utils/utxo" - "github.com/karlsen-network/karlsend/domain/dagconfig" - "github.com/karlsen-network/karlsend/infrastructure/network/rpcclient" - "github.com/karlsen-network/karlsend/stability-tests/common/mine" - "github.com/karlsen-network/karlsend/util" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/consensushashing" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/constants" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/subnetworks" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/transactionhelper" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/txscript" + utxopkg "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/utxo" + "github.com/karlsen-network/karlsend/v2/domain/dagconfig" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/rpcclient" + "github.com/karlsen-network/karlsend/v2/stability-tests/common/mine" + "github.com/karlsen-network/karlsend/v2/util" "github.com/kaspanet/go-secp256k1" ) diff --git a/stability-tests/minejson/config.go b/stability-tests/minejson/config.go index 085bb3be87..2163e641e0 100644 --- a/stability-tests/minejson/config.go +++ b/stability-tests/minejson/config.go @@ -3,10 +3,10 @@ package main import ( "path/filepath" - "github.com/karlsen-network/karlsend/infrastructure/config" - "github.com/karlsen-network/karlsend/infrastructure/logger" - "github.com/karlsen-network/karlsend/stability-tests/common" - "github.com/karlsen-network/karlsend/stability-tests/common/rpc" + "github.com/karlsen-network/karlsend/v2/infrastructure/config" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/stability-tests/common" + "github.com/karlsen-network/karlsend/v2/stability-tests/common/rpc" "github.com/jessevdk/go-flags" ) diff --git a/stability-tests/minejson/log.go b/stability-tests/minejson/log.go index 29bde56532..639c16afd3 100644 --- a/stability-tests/minejson/log.go +++ b/stability-tests/minejson/log.go @@ -1,8 +1,8 @@ package main import ( - "github.com/karlsen-network/karlsend/infrastructure/logger" - "github.com/karlsen-network/karlsend/util/panics" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/util/panics" ) var ( diff --git a/stability-tests/minejson/main.go b/stability-tests/minejson/main.go index 299000c884..2ffa24b6a6 100644 --- a/stability-tests/minejson/main.go +++ b/stability-tests/minejson/main.go @@ -1,12 +1,12 @@ package main import ( - "github.com/karlsen-network/karlsend/domain/consensus" - "github.com/karlsen-network/karlsend/stability-tests/common" - "github.com/karlsen-network/karlsend/stability-tests/common/mine" - "github.com/karlsen-network/karlsend/stability-tests/common/rpc" - "github.com/karlsen-network/karlsend/util/panics" - "github.com/karlsen-network/karlsend/util/profiling" + "github.com/karlsen-network/karlsend/v2/domain/consensus" + "github.com/karlsen-network/karlsend/v2/stability-tests/common" + "github.com/karlsen-network/karlsend/v2/stability-tests/common/mine" + "github.com/karlsen-network/karlsend/v2/stability-tests/common/rpc" + "github.com/karlsen-network/karlsend/v2/util/panics" + "github.com/karlsen-network/karlsend/v2/util/profiling" "github.com/pkg/errors" ) diff --git a/stability-tests/netsync/chain_generator/config.go b/stability-tests/netsync/chain_generator/config.go index f62139a652..40f85c59da 100644 --- a/stability-tests/netsync/chain_generator/config.go +++ b/stability-tests/netsync/chain_generator/config.go @@ -4,7 +4,7 @@ import ( "path/filepath" "github.com/jessevdk/go-flags" - "github.com/karlsen-network/karlsend/stability-tests/common" + "github.com/karlsen-network/karlsend/v2/stability-tests/common" ) const ( diff --git a/stability-tests/netsync/chain_generator/log.go b/stability-tests/netsync/chain_generator/log.go index d01c42cd89..ec1d2748fa 100644 --- a/stability-tests/netsync/chain_generator/log.go +++ b/stability-tests/netsync/chain_generator/log.go @@ -4,9 +4,9 @@ import ( "fmt" "os" - "github.com/karlsen-network/karlsend/infrastructure/logger" - "github.com/karlsen-network/karlsend/stability-tests/common" - "github.com/karlsen-network/karlsend/util/panics" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/stability-tests/common" + "github.com/karlsen-network/karlsend/v2/util/panics" ) var ( diff --git a/stability-tests/netsync/chain_generator/main.go b/stability-tests/netsync/chain_generator/main.go index 00770f698f..3063e85fcb 100644 --- a/stability-tests/netsync/chain_generator/main.go +++ b/stability-tests/netsync/chain_generator/main.go @@ -5,8 +5,8 @@ import ( "os" "strconv" - "github.com/karlsen-network/karlsend/stability-tests/common" - "github.com/karlsen-network/karlsend/stability-tests/common/mine" + "github.com/karlsen-network/karlsend/v2/stability-tests/common" + "github.com/karlsen-network/karlsend/v2/stability-tests/common/mine" "github.com/pkg/errors" ) diff --git a/stability-tests/netsync/check_resolve_virtual.go b/stability-tests/netsync/check_resolve_virtual.go index 58d9f74319..028059449c 100644 --- a/stability-tests/netsync/check_resolve_virtual.go +++ b/stability-tests/netsync/check_resolve_virtual.go @@ -4,8 +4,8 @@ import ( "fmt" "time" - "github.com/karlsen-network/karlsend/app/appmessage" - "github.com/karlsen-network/karlsend/stability-tests/common/rpc" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + "github.com/karlsen-network/karlsend/v2/stability-tests/common/rpc" "github.com/pkg/errors" ) diff --git a/stability-tests/netsync/check_sync_rate.go b/stability-tests/netsync/check_sync_rate.go index cd6d8f213d..4dc2665e0e 100644 --- a/stability-tests/netsync/check_sync_rate.go +++ b/stability-tests/netsync/check_sync_rate.go @@ -3,7 +3,7 @@ package main import ( "time" - "github.com/karlsen-network/karlsend/stability-tests/common/rpc" + "github.com/karlsen-network/karlsend/v2/stability-tests/common/rpc" "github.com/pkg/errors" ) diff --git a/stability-tests/netsync/config.go b/stability-tests/netsync/config.go index 3bf26b4f80..fd246a34c1 100644 --- a/stability-tests/netsync/config.go +++ b/stability-tests/netsync/config.go @@ -3,8 +3,8 @@ package main import ( "path/filepath" - "github.com/karlsen-network/karlsend/infrastructure/config" - "github.com/karlsen-network/karlsend/stability-tests/common" + "github.com/karlsen-network/karlsend/v2/infrastructure/config" + "github.com/karlsen-network/karlsend/v2/stability-tests/common" "github.com/jessevdk/go-flags" ) diff --git a/stability-tests/netsync/fast-pruning-ibd-test/generate_test.go b/stability-tests/netsync/fast-pruning-ibd-test/generate_test.go index 04881c32f0..bcb4aec55e 100644 --- a/stability-tests/netsync/fast-pruning-ibd-test/generate_test.go +++ b/stability-tests/netsync/fast-pruning-ibd-test/generate_test.go @@ -7,10 +7,10 @@ import ( "testing" "time" - "github.com/karlsen-network/karlsend/domain/consensus" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/testutils" - "github.com/karlsen-network/karlsend/domain/dagconfig" + "github.com/karlsen-network/karlsend/v2/domain/consensus" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/testutils" + "github.com/karlsen-network/karlsend/v2/domain/dagconfig" ) // TestGenerateFastPruningIBDTest generates the json needed for dag-for-fast-pruning-ibd-test.json.gz diff --git a/stability-tests/netsync/log.go b/stability-tests/netsync/log.go index 141441c05a..a3409580e0 100644 --- a/stability-tests/netsync/log.go +++ b/stability-tests/netsync/log.go @@ -4,9 +4,9 @@ import ( "fmt" "os" - "github.com/karlsen-network/karlsend/infrastructure/logger" - "github.com/karlsen-network/karlsend/stability-tests/common" - "github.com/karlsen-network/karlsend/util/panics" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/stability-tests/common" + "github.com/karlsen-network/karlsend/v2/util/panics" ) var ( diff --git a/stability-tests/netsync/main.go b/stability-tests/netsync/main.go index fc86dda264..e9b3900470 100644 --- a/stability-tests/netsync/main.go +++ b/stability-tests/netsync/main.go @@ -3,9 +3,9 @@ package main import ( "sync/atomic" - "github.com/karlsen-network/karlsend/stability-tests/common" - "github.com/karlsen-network/karlsend/util/panics" - "github.com/karlsen-network/karlsend/util/profiling" + "github.com/karlsen-network/karlsend/v2/stability-tests/common" + "github.com/karlsen-network/karlsend/v2/util/panics" + "github.com/karlsen-network/karlsend/v2/util/profiling" "github.com/pkg/errors" ) diff --git a/stability-tests/netsync/node.go b/stability-tests/netsync/node.go index d14c324131..87b33fdb7c 100644 --- a/stability-tests/netsync/node.go +++ b/stability-tests/netsync/node.go @@ -8,14 +8,14 @@ import ( "syscall" "time" - "github.com/karlsen-network/karlsend/domain/consensus" - - "github.com/karlsen-network/karlsend/app/appmessage" - "github.com/karlsen-network/karlsend/stability-tests/common" - "github.com/karlsen-network/karlsend/stability-tests/common/mine" - "github.com/karlsen-network/karlsend/stability-tests/common/rpc" - "github.com/karlsen-network/karlsend/util" - "github.com/karlsen-network/karlsend/util/panics" + "github.com/karlsen-network/karlsend/v2/domain/consensus" + + "github.com/karlsen-network/karlsend/v2/app/appmessage" + "github.com/karlsen-network/karlsend/v2/stability-tests/common" + "github.com/karlsen-network/karlsend/v2/stability-tests/common/mine" + "github.com/karlsen-network/karlsend/v2/stability-tests/common/rpc" + "github.com/karlsen-network/karlsend/v2/util" + "github.com/karlsen-network/karlsend/v2/util/panics" "github.com/pkg/errors" ) diff --git a/stability-tests/orphans/check_top_is_tip.go b/stability-tests/orphans/check_top_is_tip.go index 417f504f0a..81272fd210 100644 --- a/stability-tests/orphans/check_top_is_tip.go +++ b/stability-tests/orphans/check_top_is_tip.go @@ -1,9 +1,9 @@ package main import ( - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/consensushashing" - "github.com/karlsen-network/karlsend/stability-tests/common/rpc" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/consensushashing" + "github.com/karlsen-network/karlsend/v2/stability-tests/common/rpc" "github.com/pkg/errors" ) diff --git a/stability-tests/orphans/config.go b/stability-tests/orphans/config.go index 36088184c9..ca3d16ab1b 100644 --- a/stability-tests/orphans/config.go +++ b/stability-tests/orphans/config.go @@ -4,10 +4,10 @@ import ( "os" "path/filepath" - "github.com/karlsen-network/karlsend/infrastructure/config" - "github.com/karlsen-network/karlsend/infrastructure/logger" - "github.com/karlsen-network/karlsend/stability-tests/common" - "github.com/karlsen-network/karlsend/stability-tests/common/rpc" + "github.com/karlsen-network/karlsend/v2/infrastructure/config" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/stability-tests/common" + "github.com/karlsen-network/karlsend/v2/stability-tests/common/rpc" "github.com/jessevdk/go-flags" ) diff --git a/stability-tests/orphans/connect_to_node.go b/stability-tests/orphans/connect_to_node.go index f94f02d136..d8ee15d361 100644 --- a/stability-tests/orphans/connect_to_node.go +++ b/stability-tests/orphans/connect_to_node.go @@ -4,8 +4,8 @@ import ( "fmt" "os" - "github.com/karlsen-network/karlsend/infrastructure/config" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/standalone" + "github.com/karlsen-network/karlsend/v2/infrastructure/config" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/standalone" ) func connectToNode() *standalone.Routes { diff --git a/stability-tests/orphans/log.go b/stability-tests/orphans/log.go index 81725cf3d2..e458385e5c 100644 --- a/stability-tests/orphans/log.go +++ b/stability-tests/orphans/log.go @@ -1,8 +1,8 @@ package main import ( - "github.com/karlsen-network/karlsend/infrastructure/logger" - "github.com/karlsen-network/karlsend/util/panics" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/util/panics" ) var ( diff --git a/stability-tests/orphans/main.go b/stability-tests/orphans/main.go index 76bc7db1ee..0fae13a52b 100644 --- a/stability-tests/orphans/main.go +++ b/stability-tests/orphans/main.go @@ -7,9 +7,9 @@ import ( "github.com/pkg/errors" - "github.com/karlsen-network/karlsend/stability-tests/common" - "github.com/karlsen-network/karlsend/stability-tests/common/rpc" - "github.com/karlsen-network/karlsend/util/profiling" + "github.com/karlsen-network/karlsend/v2/stability-tests/common" + "github.com/karlsen-network/karlsend/v2/stability-tests/common/rpc" + "github.com/karlsen-network/karlsend/v2/util/profiling" ) var timeout = 30 * time.Second diff --git a/stability-tests/orphans/prepare_blocks.go b/stability-tests/orphans/prepare_blocks.go index 73ab44109e..97464bdab1 100644 --- a/stability-tests/orphans/prepare_blocks.go +++ b/stability-tests/orphans/prepare_blocks.go @@ -1,12 +1,12 @@ package main import ( - "github.com/karlsen-network/karlsend/domain/consensus" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/consensushashing" - "github.com/karlsen-network/karlsend/infrastructure/db/database/ldb" - "github.com/karlsen-network/karlsend/stability-tests/common" - "github.com/karlsen-network/karlsend/stability-tests/common/mine" + "github.com/karlsen-network/karlsend/v2/domain/consensus" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/consensushashing" + "github.com/karlsen-network/karlsend/v2/infrastructure/db/database/ldb" + "github.com/karlsen-network/karlsend/v2/stability-tests/common" + "github.com/karlsen-network/karlsend/v2/stability-tests/common/mine" "github.com/pkg/errors" ) diff --git a/stability-tests/orphans/send_blocks.go b/stability-tests/orphans/send_blocks.go index fd17d5c442..80bcf1d456 100644 --- a/stability-tests/orphans/send_blocks.go +++ b/stability-tests/orphans/send_blocks.go @@ -1,10 +1,10 @@ package main import ( - "github.com/karlsen-network/karlsend/app/appmessage" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/consensushashing" - "github.com/karlsen-network/karlsend/infrastructure/network/netadapter/standalone" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/consensushashing" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/netadapter/standalone" "github.com/pkg/errors" ) diff --git a/stability-tests/reorg/config.go b/stability-tests/reorg/config.go index 0bd1fc36cf..ffe5578c84 100644 --- a/stability-tests/reorg/config.go +++ b/stability-tests/reorg/config.go @@ -4,8 +4,8 @@ import ( "os" "path/filepath" - "github.com/karlsen-network/karlsend/infrastructure/logger" - "github.com/karlsen-network/karlsend/stability-tests/common" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/stability-tests/common" "github.com/jessevdk/go-flags" ) diff --git a/stability-tests/reorg/log.go b/stability-tests/reorg/log.go index de0eba988c..3bf9a80503 100644 --- a/stability-tests/reorg/log.go +++ b/stability-tests/reorg/log.go @@ -1,8 +1,8 @@ package main import ( - "github.com/karlsen-network/karlsend/infrastructure/logger" - "github.com/karlsen-network/karlsend/util/panics" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/util/panics" ) var ( diff --git a/stability-tests/reorg/main.go b/stability-tests/reorg/main.go index 81f222420d..f52a757056 100644 --- a/stability-tests/reorg/main.go +++ b/stability-tests/reorg/main.go @@ -4,8 +4,8 @@ import ( "fmt" "os" - "github.com/karlsen-network/karlsend/stability-tests/common" - "github.com/karlsen-network/karlsend/util/profiling" + "github.com/karlsen-network/karlsend/v2/stability-tests/common" + "github.com/karlsen-network/karlsend/v2/util/profiling" ) func main() { diff --git a/stability-tests/reorg/reorg.go b/stability-tests/reorg/reorg.go index 405dc1f304..311fcaf05b 100644 --- a/stability-tests/reorg/reorg.go +++ b/stability-tests/reorg/reorg.go @@ -7,13 +7,13 @@ import ( "os" "time" - "github.com/karlsen-network/karlsend/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" - "github.com/karlsen-network/karlsend/domain/consensus" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/model/testapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/consensushashing" - "github.com/karlsen-network/karlsend/domain/dagconfig" + "github.com/karlsen-network/karlsend/v2/domain/consensus" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/testapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/consensushashing" + "github.com/karlsen-network/karlsend/v2/domain/dagconfig" ) func testReorg(cfg *configFlags) { diff --git a/stability-tests/rpc-idle-clients/config.go b/stability-tests/rpc-idle-clients/config.go index 8eab9aa7a6..8b7aef06f6 100644 --- a/stability-tests/rpc-idle-clients/config.go +++ b/stability-tests/rpc-idle-clients/config.go @@ -4,10 +4,10 @@ import ( "path/filepath" "github.com/jessevdk/go-flags" - "github.com/karlsen-network/karlsend/infrastructure/config" - "github.com/karlsen-network/karlsend/infrastructure/logger" - "github.com/karlsen-network/karlsend/stability-tests/common" - "github.com/karlsen-network/karlsend/stability-tests/common/rpc" + "github.com/karlsen-network/karlsend/v2/infrastructure/config" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/stability-tests/common" + "github.com/karlsen-network/karlsend/v2/stability-tests/common/rpc" ) const ( diff --git a/stability-tests/rpc-idle-clients/log.go b/stability-tests/rpc-idle-clients/log.go index f84c48e035..f48f7757d9 100644 --- a/stability-tests/rpc-idle-clients/log.go +++ b/stability-tests/rpc-idle-clients/log.go @@ -1,8 +1,8 @@ package main import ( - "github.com/karlsen-network/karlsend/infrastructure/logger" - "github.com/karlsen-network/karlsend/util/panics" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/util/panics" ) var ( diff --git a/stability-tests/rpc-idle-clients/main.go b/stability-tests/rpc-idle-clients/main.go index 85113260e0..2394225df7 100644 --- a/stability-tests/rpc-idle-clients/main.go +++ b/stability-tests/rpc-idle-clients/main.go @@ -3,10 +3,10 @@ package main import ( "time" - "github.com/karlsen-network/karlsend/stability-tests/common" - "github.com/karlsen-network/karlsend/stability-tests/common/rpc" - "github.com/karlsen-network/karlsend/util/panics" - "github.com/karlsen-network/karlsend/util/profiling" + "github.com/karlsen-network/karlsend/v2/stability-tests/common" + "github.com/karlsen-network/karlsend/v2/stability-tests/common/rpc" + "github.com/karlsen-network/karlsend/v2/util/panics" + "github.com/karlsen-network/karlsend/v2/util/profiling" "github.com/pkg/errors" ) diff --git a/stability-tests/rpc-stability/config.go b/stability-tests/rpc-stability/config.go index 965f4ff58e..34ca9a7fd8 100644 --- a/stability-tests/rpc-stability/config.go +++ b/stability-tests/rpc-stability/config.go @@ -3,10 +3,10 @@ package main import ( "path/filepath" - "github.com/karlsen-network/karlsend/infrastructure/config" - "github.com/karlsen-network/karlsend/infrastructure/logger" - "github.com/karlsen-network/karlsend/stability-tests/common" - "github.com/karlsen-network/karlsend/stability-tests/common/rpc" + "github.com/karlsen-network/karlsend/v2/infrastructure/config" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/stability-tests/common" + "github.com/karlsen-network/karlsend/v2/stability-tests/common/rpc" "github.com/jessevdk/go-flags" ) diff --git a/stability-tests/rpc-stability/log.go b/stability-tests/rpc-stability/log.go index 895970ce4f..d3c700eeac 100644 --- a/stability-tests/rpc-stability/log.go +++ b/stability-tests/rpc-stability/log.go @@ -1,8 +1,8 @@ package main import ( - "github.com/karlsen-network/karlsend/infrastructure/logger" - "github.com/karlsen-network/karlsend/util/panics" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/util/panics" ) var ( diff --git a/stability-tests/rpc-stability/main.go b/stability-tests/rpc-stability/main.go index c491134add..1e0544a498 100644 --- a/stability-tests/rpc-stability/main.go +++ b/stability-tests/rpc-stability/main.go @@ -1,10 +1,10 @@ package main import ( - "github.com/karlsen-network/karlsend/infrastructure/network/rpcclient/grpcclient" - "github.com/karlsen-network/karlsend/stability-tests/common" - "github.com/karlsen-network/karlsend/util/panics" - "github.com/karlsen-network/karlsend/util/profiling" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/rpcclient/grpcclient" + "github.com/karlsen-network/karlsend/v2/stability-tests/common" + "github.com/karlsen-network/karlsend/v2/util/panics" + "github.com/karlsen-network/karlsend/v2/util/profiling" "github.com/pkg/errors" ) diff --git a/stability-tests/rpc-stability/send.go b/stability-tests/rpc-stability/send.go index 7c4d857fbd..0a9dde271f 100644 --- a/stability-tests/rpc-stability/send.go +++ b/stability-tests/rpc-stability/send.go @@ -1,7 +1,7 @@ package main import ( - "github.com/karlsen-network/karlsend/infrastructure/network/rpcclient/grpcclient" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/rpcclient/grpcclient" "github.com/pkg/errors" ) diff --git a/stability-tests/simple-sync/config.go b/stability-tests/simple-sync/config.go index 07ce7a3d5d..251512ad37 100644 --- a/stability-tests/simple-sync/config.go +++ b/stability-tests/simple-sync/config.go @@ -4,8 +4,8 @@ import ( "path/filepath" "github.com/jessevdk/go-flags" - "github.com/karlsen-network/karlsend/infrastructure/config" - "github.com/karlsen-network/karlsend/stability-tests/common" + "github.com/karlsen-network/karlsend/v2/infrastructure/config" + "github.com/karlsen-network/karlsend/v2/stability-tests/common" ) const ( diff --git a/stability-tests/simple-sync/log.go b/stability-tests/simple-sync/log.go index 0ce01dee7c..ecdcd46be1 100644 --- a/stability-tests/simple-sync/log.go +++ b/stability-tests/simple-sync/log.go @@ -4,9 +4,9 @@ import ( "fmt" "os" - "github.com/karlsen-network/karlsend/infrastructure/logger" - "github.com/karlsen-network/karlsend/stability-tests/common" - "github.com/karlsen-network/karlsend/util/panics" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/stability-tests/common" + "github.com/karlsen-network/karlsend/v2/util/panics" ) var ( diff --git a/stability-tests/simple-sync/main.go b/stability-tests/simple-sync/main.go index af2f7da23b..3e24ed5617 100644 --- a/stability-tests/simple-sync/main.go +++ b/stability-tests/simple-sync/main.go @@ -4,10 +4,10 @@ import ( "os" "sync/atomic" - "github.com/karlsen-network/karlsend/stability-tests/common" - "github.com/karlsen-network/karlsend/stability-tests/common/rpc" - "github.com/karlsen-network/karlsend/util/panics" - "github.com/karlsen-network/karlsend/util/profiling" + "github.com/karlsen-network/karlsend/v2/stability-tests/common" + "github.com/karlsen-network/karlsend/v2/stability-tests/common/rpc" + "github.com/karlsen-network/karlsend/v2/util/panics" + "github.com/karlsen-network/karlsend/v2/util/profiling" "github.com/pkg/errors" ) diff --git a/stability-tests/simple-sync/mineloop.go b/stability-tests/simple-sync/mineloop.go index 525b0f9507..81747ac4d5 100644 --- a/stability-tests/simple-sync/mineloop.go +++ b/stability-tests/simple-sync/mineloop.go @@ -3,10 +3,10 @@ package main import ( "time" - "github.com/karlsen-network/karlsend/app/appmessage" - "github.com/karlsen-network/karlsend/stability-tests/common" - "github.com/karlsen-network/karlsend/stability-tests/common/rpc" - "github.com/karlsen-network/karlsend/util" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + "github.com/karlsen-network/karlsend/v2/stability-tests/common" + "github.com/karlsen-network/karlsend/v2/stability-tests/common/rpc" + "github.com/karlsen-network/karlsend/v2/util" "github.com/kaspanet/go-secp256k1" "github.com/pkg/errors" ) diff --git a/stability-tests/simple-sync/start-nodes.go b/stability-tests/simple-sync/start-nodes.go index 9d83698fc9..ad46f59099 100644 --- a/stability-tests/simple-sync/start-nodes.go +++ b/stability-tests/simple-sync/start-nodes.go @@ -7,8 +7,8 @@ import ( "sync/atomic" "time" - "github.com/karlsen-network/karlsend/stability-tests/common" - "github.com/karlsen-network/karlsend/util/panics" + "github.com/karlsen-network/karlsend/v2/stability-tests/common" + "github.com/karlsen-network/karlsend/v2/util/panics" "github.com/pkg/errors" ) diff --git a/testing/integration/16_incoming_connections_test.go b/testing/integration/16_incoming_connections_test.go index 8a10bf0228..ceb79971b0 100644 --- a/testing/integration/16_incoming_connections_test.go +++ b/testing/integration/16_incoming_connections_test.go @@ -6,7 +6,7 @@ import ( "testing" "time" - "github.com/karlsen-network/karlsend/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/appmessage" ) func Test16IncomingConnections(t *testing.T) { diff --git a/testing/integration/address_exchange_test.go b/testing/integration/address_exchange_test.go index 2ef8d51819..b356b7c36a 100644 --- a/testing/integration/address_exchange_test.go +++ b/testing/integration/address_exchange_test.go @@ -3,7 +3,7 @@ package integration import ( "testing" - "github.com/karlsen-network/karlsend/infrastructure/network/addressmanager" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/addressmanager" ) func TestAddressExchange(t *testing.T) { diff --git a/testing/integration/basic_sync_test.go b/testing/integration/basic_sync_test.go index df21b8cd7a..a22122057b 100644 --- a/testing/integration/basic_sync_test.go +++ b/testing/integration/basic_sync_test.go @@ -4,9 +4,9 @@ import ( "testing" "time" - "github.com/karlsen-network/karlsend/domain/consensus/utils/consensushashing" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/consensushashing" - "github.com/karlsen-network/karlsend/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/appmessage" ) func TestIntegrationBasicSync(t *testing.T) { diff --git a/testing/integration/config_test.go b/testing/integration/config_test.go index 334f1d813f..2fae9efc0e 100644 --- a/testing/integration/config_test.go +++ b/testing/integration/config_test.go @@ -5,8 +5,8 @@ import ( "testing" "time" - "github.com/karlsen-network/karlsend/domain/dagconfig" - "github.com/karlsen-network/karlsend/infrastructure/config" + "github.com/karlsen-network/karlsend/v2/domain/dagconfig" + "github.com/karlsen-network/karlsend/v2/infrastructure/config" ) const ( diff --git a/testing/integration/ibd_test.go b/testing/integration/ibd_test.go index 59a14cd965..19a21ab096 100644 --- a/testing/integration/ibd_test.go +++ b/testing/integration/ibd_test.go @@ -7,13 +7,13 @@ import ( "testing" "time" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/consensushashing" - "github.com/karlsen-network/karlsend/domain/consensus/utils/mining" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/consensushashing" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/mining" - "github.com/karlsen-network/karlsend/domain/dagconfig" + "github.com/karlsen-network/karlsend/v2/domain/dagconfig" - "github.com/karlsen-network/karlsend/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/appmessage" ) func TestIBD(t *testing.T) { diff --git a/testing/integration/log_test.go b/testing/integration/log_test.go index d7744cd06f..5eb71e4acb 100644 --- a/testing/integration/log_test.go +++ b/testing/integration/log_test.go @@ -6,8 +6,8 @@ package integration import ( - "github.com/karlsen-network/karlsend/infrastructure/logger" - "github.com/karlsen-network/karlsend/util/panics" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/util/panics" ) var log = logger.RegisterSubSystem("INTG") diff --git a/testing/integration/main_test.go b/testing/integration/main_test.go index 0daf70d033..f40489d0dd 100644 --- a/testing/integration/main_test.go +++ b/testing/integration/main_test.go @@ -4,7 +4,7 @@ import ( "os" "testing" - "github.com/karlsen-network/karlsend/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" ) func TestMain(m *testing.M) { diff --git a/testing/integration/mining_test.go b/testing/integration/mining_test.go index 632b0c09d5..d89b0251b9 100644 --- a/testing/integration/mining_test.go +++ b/testing/integration/mining_test.go @@ -5,9 +5,9 @@ import ( "testing" "time" - "github.com/karlsen-network/karlsend/app/appmessage" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/mining" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/mining" ) func mineNextBlock(t *testing.T, harness *appHarness) *externalapi.DomainBlock { diff --git a/testing/integration/notifications_test.go b/testing/integration/notifications_test.go index 4f87995b4f..a9b72f00fe 100644 --- a/testing/integration/notifications_test.go +++ b/testing/integration/notifications_test.go @@ -3,7 +3,7 @@ package integration import ( "testing" - "github.com/karlsen-network/karlsend/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/appmessage" ) func setOnBlockAddedHandler(t *testing.T, harness *appHarness, handler func(notification *appmessage.BlockAddedNotificationMessage)) { diff --git a/testing/integration/rpc_test.go b/testing/integration/rpc_test.go index 0d7f815e34..ded129158e 100644 --- a/testing/integration/rpc_test.go +++ b/testing/integration/rpc_test.go @@ -5,9 +5,9 @@ import ( "testing" "time" - "github.com/karlsen-network/karlsend/infrastructure/config" + "github.com/karlsen-network/karlsend/v2/infrastructure/config" - "github.com/karlsen-network/karlsend/infrastructure/network/rpcclient" + "github.com/karlsen-network/karlsend/v2/infrastructure/network/rpcclient" ) const rpcTimeout = 10 * time.Second diff --git a/testing/integration/selected_parent_chain_test.go b/testing/integration/selected_parent_chain_test.go index fbb56b285b..c511108954 100644 --- a/testing/integration/selected_parent_chain_test.go +++ b/testing/integration/selected_parent_chain_test.go @@ -3,10 +3,10 @@ package integration import ( "testing" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/app/appmessage" - "github.com/karlsen-network/karlsend/domain/consensus/utils/consensushashing" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/consensushashing" ) func TestVirtualSelectedParentChain(t *testing.T) { diff --git a/testing/integration/setup_test.go b/testing/integration/setup_test.go index 5f4e4aebea..50988429d5 100644 --- a/testing/integration/setup_test.go +++ b/testing/integration/setup_test.go @@ -4,14 +4,14 @@ import ( "path/filepath" "testing" - "github.com/karlsen-network/karlsend/domain/dagconfig" + "github.com/karlsen-network/karlsend/v2/domain/dagconfig" - "github.com/karlsen-network/karlsend/infrastructure/db/database/ldb" + "github.com/karlsen-network/karlsend/v2/infrastructure/db/database/ldb" - "github.com/karlsen-network/karlsend/infrastructure/db/database" + "github.com/karlsen-network/karlsend/v2/infrastructure/db/database" - "github.com/karlsen-network/karlsend/app" - "github.com/karlsen-network/karlsend/infrastructure/config" + "github.com/karlsen-network/karlsend/v2/app" + "github.com/karlsen-network/karlsend/v2/infrastructure/config" ) type appHarness struct { diff --git a/testing/integration/tx_relay_test.go b/testing/integration/tx_relay_test.go index 9b496b5ad4..755bcb666a 100644 --- a/testing/integration/tx_relay_test.go +++ b/testing/integration/tx_relay_test.go @@ -6,17 +6,17 @@ import ( "testing" "time" - "github.com/karlsen-network/karlsend/app/protocol/flowcontext" + "github.com/karlsen-network/karlsend/v2/app/protocol/flowcontext" - "github.com/karlsen-network/karlsend/domain/consensus/utils/utxo" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/utxo" - "github.com/karlsen-network/karlsend/app/appmessage" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/consensushashing" - "github.com/karlsen-network/karlsend/domain/consensus/utils/constants" - "github.com/karlsen-network/karlsend/domain/consensus/utils/transactionhelper" - "github.com/karlsen-network/karlsend/domain/consensus/utils/txscript" - "github.com/karlsen-network/karlsend/util" + "github.com/karlsen-network/karlsend/v2/app/appmessage" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/consensushashing" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/constants" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/transactionhelper" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/txscript" + "github.com/karlsen-network/karlsend/v2/util" "github.com/kaspanet/go-secp256k1" ) diff --git a/testing/integration/utxo_index_test.go b/testing/integration/utxo_index_test.go index a7991e088b..5040697a6d 100644 --- a/testing/integration/utxo_index_test.go +++ b/testing/integration/utxo_index_test.go @@ -4,15 +4,15 @@ import ( "encoding/hex" "testing" - "github.com/karlsen-network/karlsend/domain/consensus/utils/utxo" - - "github.com/karlsen-network/karlsend/app/appmessage" - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/consensushashing" - "github.com/karlsen-network/karlsend/domain/consensus/utils/constants" - "github.com/karlsen-network/karlsend/domain/consensus/utils/transactionid" - "github.com/karlsen-network/karlsend/domain/consensus/utils/txscript" - "github.com/karlsen-network/karlsend/util" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/utxo" + + "github.com/karlsen-network/karlsend/v2/app/appmessage" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/consensushashing" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/constants" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/transactionid" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/txscript" + "github.com/karlsen-network/karlsend/v2/util" "github.com/kaspanet/go-secp256k1" ) diff --git a/testing/integration/virtual_selected_parent_blue_score_test.go b/testing/integration/virtual_selected_parent_blue_score_test.go index e2ce38fc6a..53e8b78ef2 100644 --- a/testing/integration/virtual_selected_parent_blue_score_test.go +++ b/testing/integration/virtual_selected_parent_blue_score_test.go @@ -3,7 +3,7 @@ package integration import ( "testing" - "github.com/karlsen-network/karlsend/app/appmessage" + "github.com/karlsen-network/karlsend/v2/app/appmessage" ) func TestVirtualSelectedParentBlueScoreAndVirtualDAAScore(t *testing.T) { diff --git a/util/address.go b/util/address.go index 97890c3924..9b3d110fa1 100644 --- a/util/address.go +++ b/util/address.go @@ -8,7 +8,7 @@ import ( "github.com/pkg/errors" "golang.org/x/crypto/blake2b" - "github.com/karlsen-network/karlsend/util/bech32" + "github.com/karlsen-network/karlsend/v2/util/bech32" ) var ( diff --git a/util/address_test.go b/util/address_test.go index bfdf439ba1..dedbe409bc 100644 --- a/util/address_test.go +++ b/util/address_test.go @@ -13,7 +13,7 @@ import ( "golang.org/x/crypto/blake2b" - "github.com/karlsen-network/karlsend/util" + "github.com/karlsen-network/karlsend/v2/util" ) func TestAddresses(t *testing.T) { diff --git a/util/amount.go b/util/amount.go index 31d42337da..a7bd2aa40a 100644 --- a/util/amount.go +++ b/util/amount.go @@ -8,7 +8,7 @@ import ( "math" "strconv" - "github.com/karlsen-network/karlsend/domain/consensus/utils/constants" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/constants" "github.com/pkg/errors" ) diff --git a/util/amount_test.go b/util/amount_test.go index c120d5375c..a818e48355 100644 --- a/util/amount_test.go +++ b/util/amount_test.go @@ -8,9 +8,9 @@ import ( "math" "testing" - "github.com/karlsen-network/karlsend/domain/consensus/utils/constants" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/constants" - . "github.com/karlsen-network/karlsend/util" + . "github.com/karlsen-network/karlsend/v2/util" ) func TestAmountCreation(t *testing.T) { diff --git a/util/appdata_test.go b/util/appdata_test.go index 1cc32e5de3..ae96c16843 100644 --- a/util/appdata_test.go +++ b/util/appdata_test.go @@ -12,7 +12,7 @@ import ( "testing" "unicode" - "github.com/karlsen-network/karlsend/util" + "github.com/karlsen-network/karlsend/v2/util" ) // TestAppDataDir tests the API for AppDir to ensure it gives expected diff --git a/util/bech32/bech32_test.go b/util/bech32/bech32_test.go index c892422639..bc71577f25 100644 --- a/util/bech32/bech32_test.go +++ b/util/bech32/bech32_test.go @@ -7,7 +7,7 @@ package bech32_test import ( "testing" - "github.com/karlsen-network/karlsend/util/bech32" + "github.com/karlsen-network/karlsend/v2/util/bech32" ) var checkEncodingStringTests = []struct { diff --git a/util/bech32/example_test.go b/util/bech32/example_test.go index 83770fb9b3..de3920f57b 100644 --- a/util/bech32/example_test.go +++ b/util/bech32/example_test.go @@ -8,7 +8,7 @@ import ( "encoding/hex" "fmt" - "github.com/karlsen-network/karlsend/util/bech32" + "github.com/karlsen-network/karlsend/v2/util/bech32" ) // This example demonstrates how to decode a bech32 encoded string. diff --git a/util/difficulty/difficulty_test.go b/util/difficulty/difficulty_test.go index 5a1890d4e9..b1ac789d44 100644 --- a/util/difficulty/difficulty_test.go +++ b/util/difficulty/difficulty_test.go @@ -6,11 +6,11 @@ import ( "math/big" "testing" - "github.com/karlsen-network/karlsend/domain/consensus" + "github.com/karlsen-network/karlsend/v2/domain/consensus" - "github.com/karlsen-network/karlsend/domain/consensus/utils/testutils" - "github.com/karlsen-network/karlsend/domain/dagconfig" - "github.com/karlsen-network/karlsend/util/difficulty" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/testutils" + "github.com/karlsen-network/karlsend/v2/domain/dagconfig" + "github.com/karlsen-network/karlsend/v2/util/difficulty" ) func TestGetHashrateString(t *testing.T) { diff --git a/util/example_test.go b/util/example_test.go index 7da66dddcd..b9ba5038a7 100644 --- a/util/example_test.go +++ b/util/example_test.go @@ -5,9 +5,9 @@ import ( "math" "math/big" - "github.com/karlsen-network/karlsend/util/difficulty" + "github.com/karlsen-network/karlsend/v2/util/difficulty" - "github.com/karlsen-network/karlsend/util" + "github.com/karlsen-network/karlsend/v2/util" ) func ExampleAmount() { diff --git a/util/internal_test.go b/util/internal_test.go index 7f0eaf8b27..82f457b89c 100644 --- a/util/internal_test.go +++ b/util/internal_test.go @@ -12,7 +12,7 @@ interface. The functions are only exported while the tests are being run. package util import ( - "github.com/karlsen-network/karlsend/util/bech32" + "github.com/karlsen-network/karlsend/v2/util/bech32" "golang.org/x/crypto/blake2b" ) diff --git a/util/locks/log.go b/util/locks/log.go index 7878ad3fa0..a6cba09015 100644 --- a/util/locks/log.go +++ b/util/locks/log.go @@ -1,7 +1,7 @@ package locks import ( - "github.com/karlsen-network/karlsend/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" ) var log = logger.RegisterSubSystem("UTIL") diff --git a/util/math/min_test.go b/util/math/min_test.go index 11ded83b3f..468d684f09 100644 --- a/util/math/min_test.go +++ b/util/math/min_test.go @@ -4,7 +4,7 @@ import ( "math" "testing" - utilMath "github.com/karlsen-network/karlsend/util/math" + utilMath "github.com/karlsen-network/karlsend/v2/util/math" ) const ( diff --git a/util/panics/log.go b/util/panics/log.go index 227774bf1f..9458697c11 100644 --- a/util/panics/log.go +++ b/util/panics/log.go @@ -1,7 +1,7 @@ package panics import ( - "github.com/karlsen-network/karlsend/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" ) var utilLog = logger.RegisterSubSystem("UTIL") diff --git a/util/panics/panics.go b/util/panics/panics.go index 46229138a4..a3b4dddb13 100644 --- a/util/panics/panics.go +++ b/util/panics/panics.go @@ -7,7 +7,7 @@ import ( "sync/atomic" "time" - "github.com/karlsen-network/karlsend/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" ) const exitHandlerTimeout = 5 * time.Second diff --git a/util/profiling/profiling.go b/util/profiling/profiling.go index 5b1dd3d3e7..f794aeb8eb 100644 --- a/util/profiling/profiling.go +++ b/util/profiling/profiling.go @@ -8,7 +8,7 @@ import ( "path/filepath" "time" - "github.com/karlsen-network/karlsend/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" // Required for profiling _ "net/http/pprof" @@ -16,7 +16,7 @@ import ( "runtime" "runtime/pprof" - "github.com/karlsen-network/karlsend/util/panics" + "github.com/karlsen-network/karlsend/v2/util/panics" ) // heapDumpFileName is the name of the heap dump file. We want every run to have its own diff --git a/util/staging/commit_all_changes.go b/util/staging/commit_all_changes.go index bc1a7ce7eb..a499d053c1 100644 --- a/util/staging/commit_all_changes.go +++ b/util/staging/commit_all_changes.go @@ -3,8 +3,8 @@ package staging import ( "sync/atomic" - "github.com/karlsen-network/karlsend/domain/consensus/model" - "github.com/karlsen-network/karlsend/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" ) // CommitAllChanges creates a transaction in `databaseContext`, and commits all changes in `stagingArea` through it. diff --git a/util/staging/log.go b/util/staging/log.go index 7f609304b3..1b0d4b6f5d 100644 --- a/util/staging/log.go +++ b/util/staging/log.go @@ -1,7 +1,7 @@ package staging import ( - "github.com/karlsen-network/karlsend/infrastructure/logger" + "github.com/karlsen-network/karlsend/v2/infrastructure/logger" ) var utilLog = logger.RegisterSubSystem("UTIL") diff --git a/util/txmass/calculator.go b/util/txmass/calculator.go index e60687b6ae..728d79cac7 100644 --- a/util/txmass/calculator.go +++ b/util/txmass/calculator.go @@ -1,8 +1,8 @@ package txmass import ( - "github.com/karlsen-network/karlsend/domain/consensus/model/externalapi" - "github.com/karlsen-network/karlsend/domain/consensus/utils/transactionhelper" + "github.com/karlsen-network/karlsend/v2/domain/consensus/model/externalapi" + "github.com/karlsen-network/karlsend/v2/domain/consensus/utils/transactionhelper" ) // Calculator exposes methods to calculate the mass of a transaction