HomePhabricator

Fix locking in GetTransaction.
131c23d02733Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

Fix locking in GetTransaction.

GetTransaction needs to lock cs_main until ReadBlockFromDisk completes, the data inside CBlockIndex's can change since pruning. This lock was held by all calls to GetTransaction except rest_tx.

Details

Provenance
Alex Morcos <morcos@chaincode.com>Authored on Sep 17 2015, 21:43
schancelPushed on Jan 5 2018, 21:58
schancelPushed on Jan 5 2018, 21:39
schancelPushed on Jan 5 2018, 21:17
Parents
rSTAGING83f0e2249765: Temporarily disable ZMQ tests in bitcoin test suite
Branches
Unknown
Tags
Unknown

Event Timeline

Alex Morcos <morcos@chaincode.com> committed rSTAGING131c23d02733: Fix locking in GetTransaction. (authored by Alex Morcos <morcos@chaincode.com>).Sep 18 2015, 00:26