Bitcoin Forum
May 12, 2024, 03:35:08 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Let's Talk About Consensus Dangers in Block Rewards  (Read 294 times)
kauffj (OP)
Newbie
*
Offline Offline

Activity: 1
Merit: 0


View Profile
September 23, 2015, 09:40:53 PM
 #1

It struck me that a fully continuous block reward function leveraging exponential decay would possibly be superior to many other algorithms. Then it struck me that such algorithms may face trouble reaching consensus, due to differing floating point math in different architectures.

Here is an example of the type of formula I am talking about:

http://lbry.io/img/block-formula-proposed.png

Or as text:

F(n) = c * (4000000 - n) ^ e / 4000000

Where F(n) is the block reward, n is the block number, c is a scalar constant, and e is Euler's number.

Would this type of formula risk differing architectures disagreeing on the block reward due to different strategies on floating point math and rounding? Or is there a way to design an algorithm similar to this one that does not face these risks? Or am I being overly crazy and this problem does not exist whatsoever?

Any thoughts or comments would be appreciated. Any references that show other coins using or dismissing this type of algorithm doubly so.
1715484908
Hero Member
*
Offline Offline

Posts: 1715484908

View Profile Personal Message (Offline)

Ignore
1715484908
Reply with quote  #2

1715484908
Report to moderator
1715484908
Hero Member
*
Offline Offline

Posts: 1715484908

View Profile Personal Message (Offline)

Ignore
1715484908
Reply with quote  #2

1715484908
Report to moderator
Bitcoin addresses contain a checksum, so it is very unlikely that mistyping an address will cause you to lose money.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715484908
Hero Member
*
Offline Offline

Posts: 1715484908

View Profile Personal Message (Offline)

Ignore
1715484908
Reply with quote  #2

1715484908
Report to moderator
monsterer
Legendary
*
Offline Offline

Activity: 1008
Merit: 1002


View Profile
September 23, 2015, 09:54:56 PM
 #2

You'd have to use an integer math approximation; reward can only be 1 satoshi minimum anyway, never a fractional amount, so floating precision may not be necessary.
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!