Bitcoin Forum
April 25, 2024, 02:48:33 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: minrelaytxfee vs mintxfee  (Read 768 times)
cdb1690 (OP)
Full Member
***
Offline Offline

Activity: 266
Merit: 101


View Profile
July 25, 2017, 03:21:54 PM
Merited by ABCbits (1)
 #1

I have some trouble with figuring out how bitcoin minimum transaction fees work. Could someone please explain me the difference between minrelaytxfee and mintxfee setting? I get that minrelaytxfee set the minimum transaction fee for relaying transactions across the network. What I don’t get is what mintxfee does. Is it a separate settings that sets the threshold for creating/broadcasting transaction? If so, doesn’t the minimum fee for broadcasting also depend minrelaytxfee? If so, why there are actually two separate settings being used?

And what about miners: which setting do they use to set the threshold for including transactions into the block?

Also, if  minrelaytxfee != 0, why there is non-zero defualt value in the limitfreerelay setting?

★ ★ ★ ★ ★   DeepOnion    Anonymous and Untraceable Cryptocurrency    TOR INTEGRATED & SECURED   ★ ★ ★ ★ ★
› › › › ›  JOIN THE NEW AIRDROP ✈️        VERIFIED WITH DEEPVAULT  ‹ ‹ ‹ ‹ ‹
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬   ANN  WHITEPAPER  FACEBOOK  TWITTER  YOUTUBE  FORUM   ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
1714056513
Hero Member
*
Offline Offline

Posts: 1714056513

View Profile Personal Message (Offline)

Ignore
1714056513
Reply with quote  #2

1714056513
Report to moderator
"This isn't the kind of software where we can leave so many unresolved bugs that we need a tracker for them." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714056513
Hero Member
*
Offline Offline

Posts: 1714056513

View Profile Personal Message (Offline)

Ignore
1714056513
Reply with quote  #2

1714056513
Report to moderator
1714056513
Hero Member
*
Offline Offline

Posts: 1714056513

View Profile Personal Message (Offline)

Ignore
1714056513
Reply with quote  #2

1714056513
Report to moderator
HCP
Legendary
*
Offline Offline

Activity: 2086
Merit: 4316

<insert witty quote here>


View Profile
July 25, 2017, 04:31:35 PM
Merited by ABCbits (3)
 #2

minrelaytxfee is used to define what the minimum fee should be on a transaction for your node to relay it...

mintxfee is the minimum fee that the client will create a transaction with...

So, if minrelaytxfee is set to 0.00001 your node will happily relay any transactions with that fee or higher (ie. yours and other peoples txes)... however, if you then set mintxfee to 0.00005, then any transaction you create will have that value as the minimum possible fee, but you'll still relay other peoples txes with fees of only 0.00001.

As for minrelayfee and limitfreerelay... you'll see the reasoning if you read here: https://en.bitcoin.it/wiki/Transaction_fees#Relaying

minrelayfee is effectively the "free" level... but relaying rules don't include the 0.01 BTC output minimum requirement (refer: https://en.bitcoin.it/wiki/Transaction_fees#Historic_rules_for_free_transactions).... so, to prevent a DoS attack of a bunch of transactions with tiny outputs and with the minrelayfee, you can set limitfreerelay and your node will only relay X thousand bytes per minute to throttle any spam

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
cdb1690 (OP)
Full Member
***
Offline Offline

Activity: 266
Merit: 101


View Profile
July 26, 2017, 07:06:04 PM
 #3

Thanks. I think I get it know (at least I hope so):
  • for creating transaction, transaction fee has to be > max(minrelaytxfee; mintxfee)
  • for relaying transaction, transaction fee has to be > minrelaytxfee

Now, if and only if a transaction satisfies all the conditions necessary to be considered high priority, it is relayed even if it has transactions fees that are smaller than minrelaytxfee setting. And one can cap the number of high priority transactions relayed by the node using limirelayfree setting.

Funny thing is that limitfreerelay setting has a non-zero default, but blockprioritysize has zero default value. So using default settings, high priority transaction can be relayed but not mined.

★ ★ ★ ★ ★   DeepOnion    Anonymous and Untraceable Cryptocurrency    TOR INTEGRATED & SECURED   ★ ★ ★ ★ ★
› › › › ›  JOIN THE NEW AIRDROP ✈️        VERIFIED WITH DEEPVAULT  ‹ ‹ ‹ ‹ ‹
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬   ANN  WHITEPAPER  FACEBOOK  TWITTER  YOUTUBE  FORUM   ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
HCP
Legendary
*
Offline Offline

Activity: 2086
Merit: 4316

<insert witty quote here>


View Profile
July 26, 2017, 10:05:27 PM
Merited by ABCbits (1)
 #4

I'm fairly sure that the so-called "priority" system has been (or is due to be) deprecated...

refer:
https://bitcoin.org/en/release/v0.14.0#minimum-fee-rate-policies
https://bitcoin.org/en/release/v0.14.0#removal-of-priority-estimation
https://github.com/bitcoin/bitcoin/pull/9602

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
achow101
Moderator
Legendary
*
expert
Offline Offline

Activity: 3374
Merit: 6535


Just writing some code


View Profile WWW
July 26, 2017, 10:32:40 PM
 #5

I'm fairly sure that the so-called "priority" system has been (or is due to be) deprecated...
Not only is it deprecated, it has also been entirely removed in Bitcoin Core 0.15.0 which will be released in a month or two.

gmaxwell
Moderator
Legendary
*
expert
Offline Offline

Activity: 4158
Merit: 8382



View Profile WWW
July 26, 2017, 11:22:26 PM
Merited by ABCbits (1)
 #6

Funny thing is that limitfreerelay setting has a non-zero default,
Not as of 0.14.0 it didn't-- and as achow noted all the code for it is gone in the development branch.

Even before it was set to zero though it wasn't very effective, because peers send a fee filter to communicate the minimum feerate they'd accept and increment their minimum acceptance fee when their mempools filled.  
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!