zold-io / zold

An Experimental Non-Blockchain Cryptocurrency for Fast Micro Payments
https://www.zold.io
MIT License
194 stars 53 forks source link

Not clear how farm mechanizm works #693

Open strogiyotec opened 5 years ago

strogiyotec commented 5 years ago

It's not clear to my how farm class works. Firstly , method start create endless loop which call methods cycle and cleanup(right?) Secondly , method cleanup save new empty score to file save(threads, [Score.new(host: host, port: port, invoice: @invoice, strength: @strength)]) (why do we need to save empty score ?) then we reject scores by threads names scores.reject { |s| @threads.exists?(s.to_mnemo) }(why do we need it ?) and finally we add new score to pipeline Thirdly , method cycle we pop score from pipeline, assign score's name to thread name , and then we get new score using farmer farmer.up(s) and save this score to file. The main incomprehensible part is cleanup . I didn't find any explanation in White Paper so please add more comments in source code or put your answer here. Thanks in advance

0crat commented 5 years ago

@yegor256/z please, pay attention to this issue

0crat commented 5 years ago

@strogiyotec/z this project will fix the problem faster if you donate a few dollars to it; just click here and pay via Stripe, it's very fast, convenient and appreciated; thanks a lot!

0crat commented 5 years ago

Job #693 is now in scope, role is DEV

0crat commented 5 years ago

Bug was reported, see §29: +15 point(s) just awarded to @strogiyotec/z