How many addresses does bitcoind use for Bitcoin generation?

2

When bitcoind is generating Bitcoins, does it change the addresses that are used for receiving the block reward? That is, if I mine two blocks with the same bitcoind wallet.dat, will the same address be credited with both of the rewards?

ThePiachu

Posted 2012-01-23T14:14:10.793

Reputation: 41 594

Answers

1

If you generate a new block with "getwork" then bitcoind will always use a new address each time.

If you generate a new block with "getmemorypool", then you decide. You can do whatever you want because you are creating the block data yourself. "getmemorypool" is new with bitcoind 0.5.

Dr.Haribo

Posted 2012-01-23T14:14:10.793

Reputation: 7 823

1

Each block reward will be credited to a different address. No more than one address per block is used in the generation process.

theymos

Posted 2012-01-23T14:14:10.793

Reputation: 8 228

Hmm, is there any way to suppress this behaviour and use one and the same address every time?ThePiachu 2012-01-23T18:45:19.953

You'd need to change the code, though I think it'd be a pretty easy change to make.theymos 2012-01-23T19:45:56.287