Skip to content

Fix loadChain failure, remove the lock in sync()#114

Merged
leventeliu merged 7 commits into
developfrom
bugfix/loadchainFailed
Nov 8, 2018
Merged

Fix loadChain failure, remove the lock in sync()#114
leventeliu merged 7 commits into
developfrom
bugfix/loadchainFailed

Conversation

@zeqing-guo

@zeqing-guo zeqing-guo commented Nov 8, 2018

Copy link
Copy Markdown
Contributor
  1. loadChain will fail in bp because every load config, the chainInitTime will be reset. I simply remove the reset function.
  2. I also remove the lock in sync() to make block load faster. Because sync() executes first alone, it's ok to sync without locking runtime.
  3. Add go test option: -cpu 16

@zeqing-guo zeqing-guo requested review from auxten, leventeliu and xq262144 and removed request for auxten and leventeliu November 8, 2018 09:40

@leventeliu leventeliu left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, approve.

@leventeliu leventeliu merged commit 05d047f into develop Nov 8, 2018
@leventeliu leventeliu deleted the bugfix/loadchainFailed branch November 8, 2018 11:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants