Skip to content

Frontier/blockpool BUGFIX #667

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 9 commits into from
Apr 9, 2015
Merged

Conversation

zelig
Copy link
Contributor

@zelig zelig commented Apr 8, 2015

fixes #563 / deadlock

@zelig zelig force-pushed the frontier/blockpool branch 2 times, most recently from 7f0ce8c to 72a3292 Compare April 9, 2015 05:37
zelig added 9 commits April 9, 2015 13:58
- do not break from headsection on error
[remove peer after protocol quit will close switchC, until then head block can arrive and block on channel while keeping peers lock causing a deadlock.]
- more careful locking in AddBlock
- TestPeerPromotionByTdOnBlock renamed and skipped for now test should pass iff
  if TD is updated based on an agreement
- senders register in AddBlock, flag records if they are coming from newblock
  message (and therefore advertise their TD with the block) or block message
  (TODO: latter are stored on the cache and updated by checkTD call;
  protocol should also call AddBlock on newblock messages by non-best peers)
- remove TD update from optional TD field in addBlock: this is no longer part of
  the eth protocol spec -> TODO: reflect in wiki
- only initialise peer map if at least two
- queued       bool // flag for blockpool to skip TD check
- set to true when future block queued
- in checkTD: skip check if queued
- TODO: add test (insertchain sets future block)
- add peer switch channel arg to activateChain - no peer locking within
- proper locking in AddBlock - fixes deadlock issue
- comment out TD check and skip incorrect TD test again for hotfix
@zelig zelig force-pushed the frontier/blockpool branch from 72a3292 to be25396 Compare April 9, 2015 12:59
@obscuren obscuren merged commit be25396 into ethereum:develop Apr 9, 2015
ngtuna added a commit to ngtuna/tomochain that referenced this pull request Sep 4, 2019
…ed-order

Remove pending orders once processing
tony-ricciardi pushed a commit to tony-ricciardi/go-ethereum that referenced this pull request Jan 20, 2022
maoueh pushed a commit to streamingfast/go-ethereum that referenced this pull request Jan 31, 2022
Co-authored-by: Péter Szilágyi <peterke@gmail.com>
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants