How to allocate hash power to an instance of bitcoind?

1

I'm not sure if those questions were asked this way before but ...:

Is it possible to allocate CPU resources/hash power to an instance of bitcoind run on regtest?If yes, how?
Assuming I'm going to run 100 nodes on regtest, how can I run one node with 20% of total hashing power?

Is CPU allocation hardcoded? If yes, where in the code?

If not possible by Bitcoin source code, is there a way to allocate CPU to a daemon, in general?

By the way: I'm using Bitcoin Core 0.10.0.

Aliakbar Ahmadi

Posted 2015-06-18T13:29:12.423

Reputation: 1 335

Regtest doesn't really have hashpower - each node mints a block only when you tell it to. You could replicate the same thing by having a cronjob that triggers the creation of a block every so ofter.Nick ODell 2015-06-18T15:06:16.027

@NickODell: Ok i see..or in case of selfish mining simulation and for mimicking hashpower distribution I could use a pool of 20 selfish miners out of 100 nodes for 20%, right?Aliakbar Ahmadi 2015-06-18T15:13:05.800

@AliakbarAhmadi you can allocate CPU to a particular process if you're using linux/OS X with setting the priority of the process, called niceness.

morsecoder 2015-06-18T15:32:19.980

No answers