Post
Topic
Board Mining (Altcoins)
Re: An (even more) optimized version of cpuminer (pooler's cpuminer, CPU-only)
by
pooler
on 08/12/2022, 09:18:16 UTC
I feel that the cpuminer is not adding fees along with block-reward.

I am looking at coinbase transaction generation, code under section   /* build coinbase transaction */

Code:

      tmp = json_object_get( val, "coinbasevalue" );
      if ( !tmp || !json_is_number( tmp ) )
      {
         applog( LOG_ERR, "JSON invalid coinbasevalue" );
         goto out;
      }
      cbvalue = (int64_t) ( json_is_integer( tmp ) ? json_integer_value( tmp )
                                                   : json_number_value( tmp ) );


I feel it is missing the fees addition, below is the code I was expecting to compute and add fees.

[...]

The coinbasevalue field already includes all available transaction fees.