Skip to content
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

Merged
merged 2 commits into from
Oct 11, 2017

Conversation

Arachnid
Copy link
Contributor

No description provided.

Copy link
Contributor

@fjl fjl left a 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.

return err
}
for dl.Synchronising() {
time.Sleep(1000)
Copy link
Contributor

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.

@GitCop
Copy link

GitCop commented Sep 7, 2017

Thank you for your contribution! Your commits seem to not adhere to the repository coding standards

  • Commit: f4af32ea9c03b0856385974d0be0e64114d84b4f
  • Commits must be prefixed with the package(s) they modify

Please check the contribution guidelines for more details.


This message was auto-generated by https://gitcop.com

@Arachnid Arachnid force-pushed the downloaddb branch 5 times, most recently from 7187da9 to eb9c445 Compare September 8, 2017 07:53
Copy link
Contributor

@holiman holiman left a 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,
Copy link
Member

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.

},
Category: "BLOCKCHAIN COMMANDS",
Description: `
The first argument must be the directory containing the blockchain to download from`,
Copy link
Member

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?

@karalabe
Copy link
Member

I've moved the localPeer into downloader.FakePeer so it may be reused by other code too if need be (also it was an annoyingly large chunk of code inside cmd/geth/chaincmd.go). The last commit also fixes a small issue where PoA chains couldn't be copied due to utils.MakeChain always picking ethash.

@Arachnid @fjl @holiman PTAL

@karalabe karalabe added this to the 1.7.2 milestone Oct 10, 2017
@karalabe
Copy link
Member

It's LGTM from me and @Arachnid. But since it's a combo PR, @fjl or @holiman please thumb it up once again.

Copy link
Contributor

@holiman holiman left a comment

Choose a reason for hiding this comment

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

LGTM

@karalabe karalabe merged commit ad44475 into ethereum:master Oct 11, 2017
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.

5 participants