Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: vector76 on July 29, 2011, 07:37:56 PM



Title: setKeyPool a set and not a list?
Post by: vector76 on July 29, 2011, 07:37:56 PM
If the key pool is supposed to act as a queue to use the oldest keys first, why is it implemented as a set?

Aren't sets supposed to be unordered?


Title: Re: setKeyPool a set and not a list?
Post by: vector76 on July 29, 2011, 07:48:39 PM
nvm, stl sets are ordered, and they use trees internally, not hash tables.