Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/wallet.cpp
Show First 20 Lines • Show All 94 Lines • ▼ Show 20 Lines | static void ReleaseWallet(CWallet *wallet) { | ||||
wallet->Flush(); | wallet->Flush(); | ||||
delete wallet; | delete wallet; | ||||
} | } | ||||
static const size_t OUTPUT_GROUP_MAX_ENTRIES = 10; | static const size_t OUTPUT_GROUP_MAX_ENTRIES = 10; | ||||
const uint32_t BIP32_HARDENED_KEY_LIMIT = 0x80000000; | const uint32_t BIP32_HARDENED_KEY_LIMIT = 0x80000000; | ||||
const uint256 CMerkleTx::ABANDON_HASH(uint256S( | const BlockHash CMerkleTx::ABANDON_HASH(uint256S( | ||||
"0000000000000000000000000000000000000000000000000000000000000001")); | "0000000000000000000000000000000000000000000000000000000000000001")); | ||||
/** @defgroup mapWallet | /** @defgroup mapWallet | ||||
* | * | ||||
* @{ | * @{ | ||||
*/ | */ | ||||
std::string COutput::ToString() const { | std::string COutput::ToString() const { | ||||
▲ Show 20 Lines • Show All 1,117 Lines • ▼ Show 20 Lines | while (!todo.empty()) { | ||||
} | } | ||||
} | } | ||||
} | } | ||||
} | } | ||||
return true; | return true; | ||||
} | } | ||||
void CWallet::MarkConflicted(const uint256 &hashBlock, const TxId &txid) { | void CWallet::MarkConflicted(const BlockHash &hashBlock, const TxId &txid) { | ||||
LOCK2(cs_main, cs_wallet); | LOCK2(cs_main, cs_wallet); | ||||
int conflictconfirms = 0; | int conflictconfirms = 0; | ||||
CBlockIndex *pindex = LookupBlockIndex(hashBlock); | CBlockIndex *pindex = LookupBlockIndex(hashBlock); | ||||
if (pindex && chainActive.Contains(pindex)) { | if (pindex && chainActive.Contains(pindex)) { | ||||
conflictconfirms = -(chainActive.Height() - pindex->nHeight + 1); | conflictconfirms = -(chainActive.Height() - pindex->nHeight + 1); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 3,698 Lines • Show Last 20 Lines |