Skip to content
Snippets Groups Projects
Commit 9351e364 authored by Alexander Sporn's avatar Alexander Sporn
Browse files

Fix wrong lock being used

GetTransactionHashes was not using the correct lock
parent 48cd6feb
No related branches found
No related tags found
No related merge requests found
......@@ -48,9 +48,9 @@ func (bundle *Bundle) SetHash(hash trinary.Trytes) {
}
func (bundle *Bundle) GetTransactionHashes() (result []trinary.Trytes) {
bundle.bundleEssenceHashMutex.RLock()
bundle.transactionHashesMutex.RLock()
result = bundle.transactionHashes
bundle.bundleEssenceHashMutex.RUnlock()
bundle.transactionHashesMutex.RUnlock()
return
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment