nochowderforyou / clams

Clam Project
MIT License
62 stars 58 forks source link

Add RPC command 'setweightedstakespeech' to have the staking speech selected randomly, according to given weightings. #242

Closed dooglus closed 8 years ago

dooglus commented 8 years ago

I've not tested this while actually staking a block. I suspect it will work. I'll update this once I've tested it.

Make a file like this:

2 this appears in 25% of staked blocks
6 this appears in 75% of staked blocks

Use its full path as the argument to setweightedstakespeech.

Wait for blocks to stake. The '2' and '6' are summed, and the lines then get to be in 2/8 and 6/8 of the blocks respectively.