Changeset View
Changeset View
Standalone View
Standalone View
src/txmempool.cpp
Context not available. | |||||
return mempool.exists(outpoint) || base->HaveCoin(outpoint); | return mempool.exists(outpoint) || base->HaveCoin(outpoint); | ||||
} | } | ||||
bool CCoinsViewMemPool::HasUnspentCoin(const COutPoint &outpoint, Coin &coin) const { | |||||
deadalnix: I'm not sure, but I do think this does not follow the formatting. If you install clang-format 4. | |||||
return GetCoin(outpoint, coin) && !mempool.isSpent(outpoint); | |||||
deadalnixUnsubmitted Not Done Inline ActionsThis seems like a very dangerous design to me. This require a mutex to be held and it is hidden behind an abstraction. deadalnix: This seems like a very dangerous design to me. This require a mutex to be held and it is hidden… | |||||
} | |||||
size_t CTxMemPool::DynamicMemoryUsage() const { | size_t CTxMemPool::DynamicMemoryUsage() const { | ||||
LOCK(cs); | LOCK(cs); | ||||
// Estimate the overhead of mapTx to be 15 pointers + an allocation, as no | // Estimate the overhead of mapTx to be 15 pointers + an allocation, as no | ||||
Context not available. |
I'm not sure, but I do think this does not follow the formatting. If you install clang-format 4.0 , arc will format everything for you when submitting the patch.