-
Notifications
You must be signed in to change notification settings - Fork 38.7k
Remove half-implemented publish/subscribe system #1036
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Member
|
w00t code removal |
|
I like ... red in commits that remove dead code ^^. |
Contributor
|
ACK |
1 similar comment
Member
|
ACK |
gavinandresen
added a commit
that referenced
this pull request
Apr 5, 2012
Remove half-implemented publish/subscribe system
coblee
referenced
this pull request
in litecoin-project/litecoin
Jul 17, 2012
Remove half-implemented publish/subscribe system
ptschip
added a commit
to ptschip/bitcoin
that referenced
this pull request
May 1, 2018
* Track blocks in flight by nodeid as well as block hash Because we can re-request the same block via the request-manager we need to also track blocks in flight by nodeid as well as hash. We also need to be aware that when a block returns or when we finalize the node that we only remove the block hashes from mapBlocksInFlight for that specific peer. * Move methods for handling mapBlocksInFlight from requestManager.h into requestManager.cpp * Remove QueuedBlock lookups from GetNodeStateStats Instead lookup blocks in flight for this nodeid by using the requestManager and mapBlocksInFlight. * Remove QueuedBlock from FinalizeNode() * Move QueuedBlock to the requestmanager * Remove state from CheckForDownloadTimeout() We no longer require state because we've moved the state we need into the requestmanager. As a result we also do not need cs_main and we can thus move the check for download timeout to before we take the cs_main lock in SendMessages(). * Move nBlocksInFlight from nodestate.h to the requestmanager This now allows us to completely move FindNextBlocksToDownload() to the request manager but more importantly we can now remove cs_main from MarkBlocksAsInFlight. * Remove a nodesate from the requestmanager on FinalizeNode() * Cleanup and code simplification * Simplify GetBlocksInFlight() * Return false if pnode is null in MarkBlocksAsReceived() * Lock cs_objDownloader in two other places * use itInflight to check for nodeid count rather than a second lookup * use an iterator to erase from mapblocksinflight * use a temporary to avoid a dangling iterator
lateminer
pushed a commit
to lateminer/bitcoin
that referenced
this pull request
Oct 30, 2019
e7364ca Update for merging (Fuzzbawls) 4de4932 add snapcraft support to pivx, static build (cevap) Pull request description: Re-submission of @cevap 's Pull request due to his account being closed. This adds the ability to do nightly snapcraft builds (released to the beta channel) via LaunchPad. Builds are published on the snapcraft store (https://snapcraft.io/pivx-core) ACKs for top commit: random-zebra: utACK e7364ca furszy: utACK e7364ca Warrows: utACK e7364ca Tree-SHA512: f4614c34d55100944b369333222217a9275f3fb87f985f4f7e34a33c03d4b3095b26d5c0b71427bfa71107579ea0b2c36a5375a287860f46e7d966acd27b8890
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Removes dead code.