Bitcoin Forum
April 26, 2024, 05:46:40 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Electrum Mobile wallet's inaccurate mempool estimations  (Read 116 times)
Bitcoin_Arena (OP)
Copper Member
Legendary
*
Offline Offline

Activity: 2016
Merit: 1781


฿itcoin for all, All for ฿itcoin.


View Profile
December 06, 2020, 10:27:42 PM
 #1

I was trying to send out a transaction a few moments ago through my electrum mobile wallet but was surprised by the outcome. First tjhe suggested fee was 2 sats/byte for a transaction that would be 0.5 MB form the tip but upon broadcasting the transaction, The app is now showing me something completely different. The transaction is now at 13.91 MB from the tip as suggested by the app  Shocked



when i tried to bump the fee, the app is still suggesting that a transaction of 2 sats/byte would be 0.5 MB from the tip


.BEST..CHANGE.███████████████
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
███████████████
..BUY/ SELL CRYPTO..
1714153600
Hero Member
*
Offline Offline

Posts: 1714153600

View Profile Personal Message (Offline)

Ignore
1714153600
Reply with quote  #2

1714153600
Report to moderator
1714153600
Hero Member
*
Offline Offline

Posts: 1714153600

View Profile Personal Message (Offline)

Ignore
1714153600
Reply with quote  #2

1714153600
Report to moderator
1714153600
Hero Member
*
Offline Offline

Posts: 1714153600

View Profile Personal Message (Offline)

Ignore
1714153600
Reply with quote  #2

1714153600
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714153600
Hero Member
*
Offline Offline

Posts: 1714153600

View Profile Personal Message (Offline)

Ignore
1714153600
Reply with quote  #2

1714153600
Report to moderator
1714153600
Hero Member
*
Offline Offline

Posts: 1714153600

View Profile Personal Message (Offline)

Ignore
1714153600
Reply with quote  #2

1714153600
Report to moderator
jackg
Copper Member
Legendary
*
Offline Offline

Activity: 2856
Merit: 3071


https://bit.ly/387FXHi lightning theory


View Profile
December 06, 2020, 10:51:15 PM
 #2

I'm getting 8...

You're probably better off reporting this on their github: github.com/spesmilo/electrum/
(also find out who's running the server)
Rath_
aka BitCryptex
Legendary
*
Offline Offline

Activity: 1876
Merit: 3131



View Profile
December 06, 2020, 10:59:42 PM
Last edit: December 06, 2020, 11:11:30 PM by Rath_
Merited by Bitcoin_Arena (1)
 #3

when i tried to bump the fee, the app is still suggesting that a transaction of 2 sats/byte would be 0.5 MB from the tip

I don't think there is anything wrong here. It looks like 2 sat/byte was enough in the last three hours to get a transaction confirmed in the next block (source - look at the third graph). There was a small spike for a few minutes, but your transaction definitely was not over 13 MB from the tip.

Edit: Ah, now I can see your problem. I have just tried creating a watch-only wallet with some random address which has just sent a transaction. Someone paid over a 86 sat/byte fee and Electrum shows that the transaction is over 11 MB from the tip. There's clearly something wrong with Electrum.
o_e_l_e_o
In memoriam
Legendary
*
Offline Offline

Activity: 2268
Merit: 18507


View Profile
December 06, 2020, 11:10:10 PM
Merited by ABCbits (1), jackg (1), Bitcoin_Arena (1), Rath_ (1)
 #4

I think the issue here is that the mempool currently looks like this:


The entire big blue section at the bottom is for transactions which are paying between 1 and 2 sats/vbyte. Therefore, a very small difference in the fee you pay would be enough to move your transaction from 0.01 MB from the tip to 13 MB from the tip. It would seem that Electrum's fee estimator has made a very small error here which has translated in to a huge change in mempool priority.

If I create a transaction on Electrum right now and use the "Mempool" slider for the fees, if I select 0.5 MB from the tip it gives me 2 sats/bytes, and if I select 10 MB from the tip it also gives me 2 sats/bytes.
BitMaxz
Legendary
*
Offline Offline

Activity: 3234
Merit: 2942


Block halving is coming.


View Profile WWW
December 06, 2020, 11:31:21 PM
 #5

I tried to make a transaction today but it looks fine to me with Electrum app 4.0.3.

Are you using the latest version of Electrum?

You might be using the latest version with some bugs or you might be using an older version than 4.0.3?

Try to clear the app cache on the phone settings then reopen the app again and check if there are changes.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
Bitcoin_Arena (OP)
Copper Member
Legendary
*
Offline Offline

Activity: 2016
Merit: 1781


฿itcoin for all, All for ฿itcoin.


View Profile
December 06, 2020, 11:33:39 PM
 #6

>>>snip<<<

Ooh, I see now.
Which brings me to this question. Which factors are considered for a transaction to be of higher priority so as to be confirmed in the next block or be closer from the tip if all the transactions in the mempool were of the same free rate, say all were at 1 sat/byte at a given time?



I tried to make a transaction today but it looks fine to me with Electrum app 4.0.3.
Are you using the latest version of Electrum?
I am using 4.0.6. Not really the latest as a new version was released 2 days ago but transaction got confirmed a few minutes ago despite displaying that it was far away from the tip Wink

.BEST..CHANGE.███████████████
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
██
███████████████
..BUY/ SELL CRYPTO..
o_e_l_e_o
In memoriam
Legendary
*
Offline Offline

Activity: 2268
Merit: 18507


View Profile
December 06, 2020, 11:52:31 PM
 #7

Which factors are considered for a transaction to be of higher priority so as to be confirmed in the next block or be closer from the tip if all the transactions in the mempool were of the same free rate, say all were at 1 sat/byte at a given time?
There used to be a concept called transaction priority. It was based on the following formula:

Code:
sum(input_value_in_base_units * input_age)/transaction_size_in_bytes

input_age was how many confirmations the input to the transaction had, so coins which had not been moved in a long time had priority over coins which were being moved around frequently. Transactions which moved larger quantities of bitcoin were higher priority, and transactions which were smaller in terms of bytes were higher priority.

This has all since been removed, though, and so is no longer relevant. Miners and pools will now decide for themselves which transactions to prioritize.
Abdussamad
Legendary
*
Offline Offline

Activity: 3598
Merit: 1560



View Profile
December 07, 2020, 02:53:58 AM
 #8

Which factors are considered for a transaction to be of higher priority so as to be confirmed in the next block or be closer from the tip if all the transactions in the mempool were of the same free rate, say all were at 1 sat/byte at a given time?
There used to be a concept called transaction priority. It was based on the following formula:

Code:
sum(input_value_in_base_units * input_age)/transaction_size_in_bytes

input_age was how many confirmations the input to the transaction had, so coins which had not been moved in a long time had priority over coins which were being moved around frequently. Transactions which moved larger quantities of bitcoin were higher priority, and transactions which were smaller in terms of bytes were higher priority.

This has all since been removed, though, and so is no longer relevant. Miners and pools will now decide for themselves which transactions to prioritize.


And that is by looking at the fees they pay. So they will prefer transactions paying more over less.
o_e_l_e_o
In memoriam
Legendary
*
Offline Offline

Activity: 2268
Merit: 18507


View Profile
December 07, 2020, 03:26:05 AM
 #9

And that is by looking at the fees they pay. So they will prefer transactions paying more over less.
The question I was replying to was asking how miners would prioritize transactions if all transactions in the mempool were of the same fee rate. Further, they will not prioritize transaction paying more in fees, but rather transactions which pay a higher fee rate. They won't choose one transaction which pays 10,000 sats in fees if they could fit 5 transactions which each pay 5,000 sats in fees in the same space.
nc50lc
Legendary
*
Offline Offline

Activity: 2394
Merit: 5538


Self-proclaimed Genius


View Profile
December 07, 2020, 04:17:06 AM
Merited by pooya87 (1)
 #10

Next time it happens, try to change server and then let Electrum run for a few minutes.
Because it heavily relies on the server since Electrum client itself doesn't have a mempool.

BTW, I'm using a specific server and the "unconfirmed transaction depth" is working, pretty accurate actually.
That's for v4.0.6 mobile (Android) and W10 PC.

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
pooya87
Legendary
*
Offline Offline

Activity: 3430
Merit: 10504



View Profile
December 07, 2020, 04:55:06 AM
 #11

As far as I can tell from the Electrum source code there shouldn't be any difference between the mobile version and the desktop version since both are connecting to the same type of bitcoin nodes and both are getting their fee estimation from the same set of nodes. Only the UI and the platform are different.
That means if you are getting different fee estimations the nodes that you connect to are sending you different values.

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!