Skip to content

upload hangs #82

@George3d6

Description

@George3d6

Currently,

It seems that calling .upload just hangs for many dozens of minutes for the first few chunks.

The .upload method borderline works with gasInPct set to 300 - in so far as a 2815.36 KB file was uploaded in ~11 minutes

It's quite unclear to me, a hypothetical user, how to use the gasInPct. A few things that would be reasonable here, from my PoV, are:

  1. Have some parameter that controls the speed in a more intuitive way (e.g. gasPerByte or ethPerByte might be a very good abstraction here - whereby that's the maximum I'm willing to spend and the sdk handles how to spend it in order to get as fast an upload as possible)
  2. Some estimate of total upload time printed to the console, given the gas I'm spending (right now, unless I modify the undocumented gasInPct it essentially looks like upload hangs - even though I do buy it might finish in some hypothetical future)
  3. Estimating upload time with estimateCost, to avoid unreasonably large updates

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions