diff options
| author | Pieter Wuille <[email protected]> | 2014-09-02 21:21:15 +0200 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2014-09-03 14:24:52 +0200 |
| commit | 629d75faac84bc0a00533d01dd291a4e6394a51f (patch) | |
| tree | b855afa03cefc473be513288880dbc1da34d8d1a /src/test/multisig_tests.cpp | |
| parent | Merge pull request #4812 (diff) | |
| download | discoin-629d75faac84bc0a00533d01dd291a4e6394a51f.tar.xz discoin-629d75faac84bc0a00533d01dd291a4e6394a51f.zip | |
Combine CCoinsViewCache's HaveCoins and const GetCoins into AccessCoins.
The efficient version of CCoinsViewCache::GetCoins only works for known-to-exist
cache entries, requiring a separate HaveCoins call beforehand. This is
inefficient as both perform a hashtable lookup.
Replace the non-mutable GetCoins with AccessCoins, which returns a potentially-NULL
pointer. This also decreases the overloading of GetCoins.
Also replace some copying (inefficient) GetCoins calls with equivalent AccessCoins,
decreasing the copying.
Diffstat (limited to 'src/test/multisig_tests.cpp')
0 files changed, 0 insertions, 0 deletions