Author Topic: Coinbase Maturity Difference between versions of source code  (Read 130 times)

0 Members and 1 Guest are viewing this topic.

Offline Stouse49

  • Newbie
  • *
  • Posts: 8
  • Karma: +0/-0
  • Newcomer
    • View Profile
I found a difference in the coinbase maturity requirement between the different versions of the major code bases:

I discovered this after I compiled the 10.2.2 branch and then eventually came across a block that spent from the coinsbase transaction before 100 confirmations.  The compiled version of the linux binaries [http://www.fastcointalk.org/index.php/board,78.0.html] does not have this issue.

From the fastcoin-8.7.2 branch:
https://github.com/fastcoinproject/fastcoin/blob/fastcoin-8.7.2/src/main.h#L60
Code: [Select]
/** Coinbase transaction outputs can only be spent after this number of new blocks (network rule) */
static const int COINBASE_MATURITY = 60;


From the 10.2.2 Branch:
https://github.com/fastcoinproject/fastcoin/blob/10.2.2/src/main.h#L76
Code: [Select]
/** Coinbase transaction outputs can only be spent after this number of new blocks (network rule) */
static const int COINBASE_MATURITY = 100;



Offline MasterDev

  • Newbie
  • *
  • Posts: 6
  • Karma: +1/-0
    • View Profile
Re: Coinbase Maturity Difference between versions of source code
« Reply #1 on: June 14, 2017, 02:46:00 AM »
I found a difference in the coinbase maturity requirement between the different versions of the major code bases:

I discovered this after I compiled the 10.2.2 branch and then eventually came across a block that spent from the coinsbase transaction before 100 confirmations.  The compiled version of the linux binaries [http://www.fastcointalk.org/index.php/board,78.0.html] does not have this issue.

From the fastcoin-8.7.2 branch:
https://github.com/fastcoinproject/fastcoin/blob/fastcoin-8.7.2/src/main.h#L60
Code: [Select]
/** Coinbase transaction outputs can only be spent after this number of new blocks (network rule) */
static const int COINBASE_MATURITY = 60;


From the 10.2.2 Branch:
https://github.com/fastcoinproject/fastcoin/blob/10.2.2/src/main.h#L76
Code: [Select]
/** Coinbase transaction outputs can only be spent after this number of new blocks (network rule) */
static const int COINBASE_MATURITY = 100;

Hello Stouse49,

Thank you for your post.  Hmmm seems like you have found a needle in a haystack I see...

Do you have any additional info you would like to provide that you feel may better assist you in resolving your issue?

I sense the force is strong with you ;-)

MD


Offline Stouse49

  • Newbie
  • *
  • Posts: 8
  • Karma: +0/-0
  • Newcomer
    • View Profile
Re: Coinbase Maturity Difference between versions of source code
« Reply #2 on: June 15, 2017, 03:21:10 AM »
This is to notify the developers.  In my case I changed the 100 to 60 in my source code then recompiled.

Offline MasterDev

  • Newbie
  • *
  • Posts: 6
  • Karma: +1/-0
    • View Profile
Re: Coinbase Maturity Difference between versions of source code
« Reply #3 on: June 15, 2017, 10:41:14 PM »
This is to notify the developers.  In my case I changed the 100 to 60 in my source code then recompiled.

Your findings and modifications have been duly noted,

Much thanks!

MD