Skip to content

Conversation

@gavinandresen
Copy link
Contributor

Removes dead code.

@sipa
Copy link
Member

sipa commented Apr 4, 2012

w00t code removal

@Diapolo
Copy link

Diapolo commented Apr 4, 2012

I like ... red in commits that remove dead code ^^.

@jgarzik
Copy link
Contributor

jgarzik commented Apr 4, 2012

ACK

1 similar comment
@laanwj
Copy link
Member

laanwj commented Apr 5, 2012

ACK

gavinandresen added a commit that referenced this pull request Apr 5, 2012
Remove half-implemented publish/subscribe system
@gavinandresen gavinandresen merged commit c7fa55b into bitcoin:master Apr 5, 2012
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
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants