-
tokenberry33
hi
-
tokenberry33
How to add specific reward to block 1
-
tokenberry33
For example on file cryptonote_basic_impl.cpp if(const cryptonote::block = 1) { reward = 10; return true; }
-
tokenberry33
This can happen inside function "get_block_reward"
-
tokenberry33
Is any real hacker here to help on how to reward specific block
-
Mochi103
lol
-
uncle_rae
o_0
-
Mochi103
For your own fork of Monero tokenberry33 ?
-
tokenberry33
For testing reason
-
tokenberry33
I'm playing with testnet
-
tokenberry33
I want to check monero behavior in the future
-
moneromooo
That's exactly where you'd do it, yes.
-
tokenberry33
What do you mean please
-
tokenberry33
Adding height in last part of function get_block_reward failed
-
moneromooo
I was just confirming what you said about doing it in get_block_reward is correct.
-
tokenberry33
I must change this function on blockchain too maybe in tx_pool
-
tokenberry33
Everywhere that this function appear
-
tokenberry33
Monero code must be more modular is too messy
-
tokenberry33
I c here need of changing too much code
-
tokenberry33
Has anyone here a more elegant solution
-
selsta
look at how other forks did it, there is no other solution
-
tokenberry33
I dont have any example of other forks doing this
-
selsta
no other fork has a premine at height 1?
-
selsta
isn't this what all forks do?
-
moneromooo
:D
-
tokenberry33
They do this in genesis block i want for test reason to do in block 1 in block 111111 etc
-
tokenberry33
I want to c what will happen to fees if u change reward on some blocks.....
-
tokenberry33
Test!
-
moneromooo
I think I did this ages ago to test cumulative emission higher than 64 bit. I do not remember having to change anything else than get_block_reward for the actual reward change.
-
moneromooo
IIRC I rigged some high block to emit $LOTS.
-
moneromooo
If you don't want the hassle of adding height as a paramter, you can always do, eg, if emitted_so_far == 17e8, return $LOTS.
-
moneromooo
Replace 17e8 with the actual block 0 reward.
-
moneromooo
And for some high up block, there's a daemon command... prnt_coinbase_sum or so... which tells you the emitted amount. Use that for the next block.
-
tokenberry33
to change emission until block 10 for example
-
tokenberry33
Do u have this code to c
-
tokenberry33
How to change this line without changing code anywhere else
-
tokenberry33
const int emission_speed_factor = EMISSION_SPEED_FACTOR_PER_MINUTE - (target_minutes-1);
-
tokenberry33
"until height 10 EMISSION_SPEED_FACTOR_PER_MINUTE = xxxxx "
-
moneromooo
I would just special case those heights in get_block_reward, and leave the general case alone.
-
tokenberry33
This function get_block_reward need to change on lot of files
-
tokenberry33
Do you have more elegant solution
-
tokenberry33
Do you remember where are your test cumulative emission
-
moneromooo
I don't think I kept that. And it was a couple years ago now.
-
tokenberry33
Not possible to search on your disk with some specific pattern?
-
tokenberry33
Any elegant solution for this get_block_reward
-
tokenberry33
Let's not change anywhere only in cryptonote_basic_impl.cpp file
-
tokenberry33
Moneromooo is possible to change only cryptonote_basic_impl.cpp file and not other because monero code is little messy and maybe touching messy things will bring more mess