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

Pull is too long #290

Open
g4s8 opened this issue Jul 30, 2019 · 3 comments
Open

Pull is too long #290

g4s8 opened this issue Jul 30, 2019 · 3 comments

Comments

@g4s8
Copy link

g4s8 commented Jul 30, 2019

README suggested to use /pull before each WTS access and says that it's fast operation:

asks the server to pull your wallet from the network. This is a pretty fast and safe operation, you can do it every time before reading the wallet content, like finding transactions or checking the balance. If the wallet already exists on our server, there will be no pull from the network. If you really want to pull, no matter what, add force=true.

But actually it's quite expensive operations, it takes 15-20 seconds to pull and wait the job to complete. So I'd update the readme or make /pull faster.

@0crat
Copy link

0crat commented Jul 30, 2019

@yegor256/z please, pay attention to this issue

@yegor256
Copy link
Contributor

@g4s8 are you sure it's slow? I just checked the code, it looks like it should be very fast, unless you use force.

@g4s8
Copy link
Author

g4s8 commented Oct 10, 2019

@yegor256 yes, it takes more than 10 seconds on each pull (even if my wallet is already pulled). I don't use force. This is what I'm doing to pull the wallet:

  • send GET - /pull to https://wts.zold.io
  • parse X-Zold-Job header
  • send GET - /job?id=<job-id> every second, until it returns OK or error

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

No branches or pull requests

3 participants