Bitcoin Forum
April 25, 2024, 08:21:29 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: "Raise network fee" assumes 1kB transaction... and spends outrageous fee  (Read 1102 times)
mrb (OP)
Legendary
*
Offline Offline

Activity: 1512
Merit: 1027


View Profile WWW
March 02, 2017, 09:32:15 PM
Last edit: March 03, 2017, 06:28:54 PM by mrb
 #1

When using the "raise network fee" option, Bitcoin Wallet for Android 5.14 disregards the fee category the transaction was initially sent at (ECONOMIC, NORMAL, PRIORITY) but blindly takes the PRIORITY fee value, and multiply it by 2 (hence implicitly assuming a transaction of 1kB since PRIORITY is supposed to be a value in sat/kB):

Code: (RaiseFeeDialogFragment.java)
feeRaise = data.get(FeeCategory.PRIORITY).multiply(2);

This causes unnecessarily high fees. For example today I had a small 225-byte transaction stuck unconfirmed after 10 mined block despite a fee of ~28000 sat (~126 sat/B, a NORMAL fee). When I tried to raise its network fee it generated a second 192-byte tx with a fee of 320000 sat because PRIORITY right now is at 160000:

Code:
$ curl https://wallet.schildbach.de/fees
ECONOMIC=25000
NORMAL=125000
PRIORITY=160000

So in total I paid ~348000 sat for 417 bytes or ~835 sat/B, which is 4 times higher than necessary according to https://bitcoinfees.21.co which recommends ~220 sat/B for an estimated delay of 0 blocks. IMHO the code should be changed to properly compute the fee in sat/B instead of assuming a 1kB transaction. And I question the validity of picking 2*PRIORITY. Shouldn't the logic of raising the fee be "pick the next higher-category fee" and only if at PRIORITY already, multiply by 2 (or 1.5 or some other less drastic value)?

Thoughts, anybody?
"In a nutshell, the network works like a distributed timestamp server, stamping the first transaction to spend a coin. It takes advantage of the nature of information being easy to spread but hard to stifle." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
mrb (OP)
Legendary
*
Offline Offline

Activity: 1512
Merit: 1027


View Profile WWW
March 05, 2017, 06:19:38 PM
 #2

I opened https://github.com/bitcoin-wallet/bitcoin-wallet/issues/381
shorena
Copper Member
Legendary
*
Offline Offline

Activity: 1498
Merit: 1499


No I dont escrow anymore.


View Profile WWW
March 05, 2017, 08:14:32 PM
 #3

Just to update those only reading here, it seems fixed -> https://github.com/bitcoin-wallet/bitcoin-wallet/pull/382

Im not really here, its just your imagination.
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!