Branch: refs/heads/master
Home: https://github.com/conformal/btcd
Commit: 37d3d83ed3058a971e33e34309bc4deeff9d00c7
https://github.com/conformal/btcd/commit/37d3d83ed3058a971e33e34309bc4deeff9d00c7
Author: Dave Collins <[email protected]>
Date: 2013-11-15 (Fri, 15 Nov 2013)
Changed paths:
M blockmanager.go
M mempool.go
M peer.go
Log Message:
-----------
Improve mempool handling.
- Lock the mempool when removing transactions during a notification as
intended
- When generating the inventory vectors to serve on a mempool request,
recheck the memory pool for each hash since it's possible another thread
could have removed an entry after the initial query for available
hashes
- When a block is connected, remove any transactions which are now double
spends as a result of the newly connected transactions