Giter Club home page Giter Club logo

Comments (8)

bobbieltd avatar bobbieltd commented on September 14, 2024

This issue : monero-project/monero#2386 . It got fixed in Monero, how can I apply to Electroneum :(

from nodejs-pool.

bobbieltd avatar bobbieltd commented on September 14, 2024

@MoneroOcean For etn.js, there is if (body.fee && body.fee > 10), do I need to change it ? Do you know what this if means and why 10 ? With ETN it triggers else "Unknown error ..." even the payment transaction is passed.

unknow error

from nodejs-pool.

MoneroOcean avatar MoneroOcean commented on September 14, 2024

I afraid I will not be able to help here. First of all I do not want to support ETN code and second thing is that I prefer to keep away from this sensitive part of pool code (leaving its support to Snipa). I can only guess that body.fee > 10 is just a extra check against some garbage output from wallet. Fee here is integer number that should be divided by huge 1000... to get value in XMR and it I guess Snipa decided that it can't be less than 10 under any normal circumstances. Maybe for ETN normal fees can be less than 10 here.

from nodejs-pool.

bobbieltd avatar bobbieltd commented on September 14, 2024

Great help. Your explanation seems very correct. Thank you alot.

from nodejs-pool.

MoneroOcean avatar MoneroOcean commented on September 14, 2024

Just stumbled upon relevant commit that contains some explanations that can help you (if you still need help here of course): Snipa22@5d31708

from nodejs-pool.

bobbieltd avatar bobbieltd commented on September 14, 2024

Thanks to your suggestions, I fixed it by myself. The ETN has only 100 atomic units, so I correct it by body.fee > 0.0000001 ( whatever number that is smaller than 1 should work, I think I can put this part away because fee = 1 is possible with ETN ). At the moment, I got only issues with all rows with fee type (pool, dev, poolDev) are always zero in balance. I think pehaps because of 100 atomic units but I see all codes look fine. I can’t debug directly with my pool ( The miners are mining at pool and I’m promoting it ). In the short term, pool with 0% fee is all right. I’ll look at your fix, I think your fix is better, thank you πŸ‘

from nodejs-pool.

bobbieltd avatar bobbieltd commented on September 14, 2024

if (body.fee && body.fee > 10) {
β€”> if (typeof body.tx_hash !== 'undefined') {

What if body.tx_hash is NULL ?, I’m not coders so sometimes I can ask noob questions ?
If I apply this fix to my AEON pool (aeon.js), which modules do I need to restart ?

from nodejs-pool.

bobbieltd avatar bobbieltd commented on September 14, 2024

For info, I understand it now, it's for DEFAULT_DUST_THRESHOLD as you guessed. You are correct !!!

from nodejs-pool.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.