-
Notifications
You must be signed in to change notification settings - Fork 20.4k
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
cmd: Added support for downloading to another DB instance #14785
Conversation
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.
Still need to try it, but code looks simple enough.
cmd/geth/chaincmd.go
Outdated
return err | ||
} | ||
for dl.Synchronising() { | ||
time.Sleep(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.
That's 1000ns. Please add a unit, e.g. 1 * time.Microsecond
. Maybe it should sleep longer, too.
Thank you for your contribution! Your commits seem to not adhere to the repository coding standards
Please check the contribution guidelines for more details. This message was auto-generated by https://gitcop.com |
7187da9
to
eb9c445
Compare
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.
If I'm reading it right, this is a very non-invasive change, which shouldn't affect any existing functionality.
utils.DataDirFlag, | ||
utils.CacheFlag, | ||
utils.SyncModeFlag, | ||
utils.FakePoWFlag, |
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 think we're going to need
utils.TestnetFlag,
utils.RinkebyFlag,
too to allow copying over the testnet chains.
cmd/geth/chaincmd.go
Outdated
}, | ||
Category: "BLOCKCHAIN COMMANDS", | ||
Description: ` | ||
The first argument must be the directory containing the blockchain to download from`, |
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.
From, or to? Aren't we downloading from the --datadir
?
I've moved the localPeer into |
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
No description provided.