namecoin / electrum-nmc

Namecoin port of Electrum Bitcoin client.
https://www.namecoin.org/
MIT License
29 stars 24 forks source link

Mempool fee estimation doesn't satisfy minimum relay fee #241

Closed JeremyRand closed 4 years ago

JeremyRand commented 4 years ago

Steps to reproduce

  1. Tools -> Preferences -> Fees -> Fee estimation -> Mempool.
  2. Send -> (whatever address and amount you like) -> Pay.

Expected results

The mining fees suggested should be in an acceptable range.

Observed results

The mining fee slider uses 1 swartz/byte as both the minimum and maximum, presumably because the memory pool has a very small number of fees and/or a very small number of bytes. As a result, regardless of what I select for the slider, this message appears:

This transaction requires a higher fee, or it will not be propagated by your current server
Try to raise your transaction fee, or use a server with a lower relay fee.

And the Send button is grayed out.

Other notes

Originally reported in comments of https://github.com/namecoin/electrum-nmc/issues/234 by @gits7r . This is arguably an upstream bug, but is worth tracking in Electrum-NMC's issue tracker since Bitcoin's mempool is much higher-traffic and therefore this issue is not likely to occur in real life in Bitcoin.

JeremyRand commented 4 years ago

Actually I think this is caused by Namecoin's relay policies being different from Bitcoin's. https://github.com/namecoin/electrum-nmc/pull/195 might plausibly fix this (though it was intended to fix something else).