HomePhabricator

Save the last unnecessary database read
8504867b1460Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

Save the last unnecessary database read

It's possible coins with the same hash exist when you create a duplicate coinbase, so previously we were reading from the database to make sure we had the old coins cached so if we were to spend the new ones, the old ones would also be spent. This pull instead just marks the new coins as not fresh if they are from a coinbase, so if they are spent they will be written all the way down to the database anyway overwriting any duplicates.

Details

Provenance
Alex Morcos <morcos@chaincode.com>Authored on Nov 12 2015, 21:57
deadalnixPushed on May 14 2017, 22:04
Parents
rABC072e2f864445: Alter assumptions in CCoinsViewCache::BatchWrite
Branches
Unknown
Tags
Unknown

Event Timeline

Alex Morcos <morcos@chaincode.com> committed rABC8504867b1460: Save the last unnecessary database read (authored by Alex Morcos <morcos@chaincode.com>).Nov 18 2015, 17:16