-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Restore full sync mode #90
Conversation
f68a6b5
to
12759bf
Compare
build/env.sh
Outdated
@@ -8,20 +8,13 @@ if [ ! -f "build/env.sh" ]; then | |||
fi | |||
|
|||
# Create fake Go workspace if it doesn't exist yet. | |||
workspace="$PWD/build/_workspace" | |||
workspace="$GOPATH" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This introduces dependency on GOPATH, doesn't it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A good point! I had an old master in the branch, now it should be updated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
core/blockchain.go
Outdated
|
||
func (bc *BlockChain) NotifyHeightKnownBlock(h uint64) { | ||
if atomic.LoadUint64(bc.highestKnownBlock) < h { | ||
atomic.StoreUint64(bc.highestKnownBlock, h) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it could be a datarace. Why Notify?
if block == nil { | ||
return configKey(-1) | ||
} | ||
return configKey(block.Uint64() + 1000) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've not found -1000
812bf14
to
393afd1
Compare
Remove failing TestGnosisForkDigest
* more bucketzzz (#87) * save * save * Fix duplicate bucket name, remove presigned URLs (#88) Co-authored-by: Alex Sharp <[email protected]> * toml lint (#89) * save * save * save * save --------- Co-authored-by: Alex Sharov <[email protected]> Co-authored-by: Alex Sharp <[email protected]>
closes #89