MatterPool / boostpow-publish

Boost POW Publish Widget
https://publish.boostpow.com
3 stars 8 forks source link

Update index.js #45

Closed pyramids33 closed 3 years ago

pyramids33 commented 3 years ago

sliderCtrl is not defined unless the payProps contains content.hash, its created on startup from the user config but doesn't appear to change when the content changes. so AddedBoost should be the difficulty value (from slider) as the allOutputs function uses that to create the boost output.

DanielKrawisz commented 3 years ago

And there two functions in pages/index.js that do the initial boost query if its in the user config, updateBoostsRank and sliderMarkerStepsInit. I think those could be reused to update if the content changes?

Yes