Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/wallet.cpp
// Copyright (c) 2009-2010 Satoshi Nakamoto | // Copyright (c) 2009-2010 Satoshi Nakamoto | ||||
// Copyright (c) 2009-2016 The Bitcoin Core developers | // Copyright (c) 2009-2016 The Bitcoin Core developers | ||||
// Distributed under the MIT software license, see the accompanying | // Distributed under the MIT software license, see the accompanying | ||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
#include <wallet/wallet.h> | #include <wallet/wallet.h> | ||||
#include <chain.h> | #include <chain.h> | ||||
#include <checkpoints.h> | #include <checkpoints.h> | ||||
#include <config.h> | #include <config.h> | ||||
#include <consensus/consensus.h> | #include <consensus/consensus.h> | ||||
#include <consensus/validation.h> | #include <consensus/validation.h> | ||||
#include <fs.h> | #include <fs.h> | ||||
#include <interfaces/chain.h> | #include <interfaces/chain.h> | ||||
#include <interfaces/wallet.h> | |||||
#include <key.h> | #include <key.h> | ||||
#include <key_io.h> | #include <key_io.h> | ||||
#include <keystore.h> | #include <keystore.h> | ||||
#include <net.h> | #include <net.h> | ||||
#include <policy/mempool.h> | #include <policy/mempool.h> | ||||
#include <policy/policy.h> | #include <policy/policy.h> | ||||
#include <primitives/block.h> | #include <primitives/block.h> | ||||
#include <primitives/transaction.h> | #include <primitives/transaction.h> | ||||
▲ Show 20 Lines • Show All 4,753 Lines • ▼ Show 20 Lines | if (tip_height && *tip_height != rescan_height) { | ||||
copyTo->fFromMe = copyFrom->fFromMe; | copyTo->fFromMe = copyFrom->fFromMe; | ||||
copyTo->nOrderPos = copyFrom->nOrderPos; | copyTo->nOrderPos = copyFrom->nOrderPos; | ||||
batch.WriteTx(*copyTo); | batch.WriteTx(*copyTo); | ||||
} | } | ||||
} | } | ||||
} | } | ||||
} | } | ||||
uiInterface.LoadWallet(walletInstance); | chain.loadWallet(interfaces::MakeWallet(walletInstance)); | ||||
// Register with the validation interface. It's ok to do this after rescan | // Register with the validation interface. It's ok to do this after rescan | ||||
// since we're still holding cs_main. | // since we're still holding cs_main. | ||||
RegisterValidationInterface(walletInstance.get()); | RegisterValidationInterface(walletInstance.get()); | ||||
walletInstance->SetBroadcastTransactions( | walletInstance->SetBroadcastTransactions( | ||||
gArgs.GetBoolArg("-walletbroadcast", DEFAULT_WALLETBROADCAST)); | gArgs.GetBoolArg("-walletbroadcast", DEFAULT_WALLETBROADCAST)); | ||||
▲ Show 20 Lines • Show All 162 Lines • Show Last 20 Lines |