Bitcoin Forum
December 09, 2016, 09:45:50 AM *
News: To be able to use the next phase of the beta forum software, please ensure that your email address is correct/functional.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: setKeyPool a set and not a list?  (Read 459 times)
vector76
Member
**
Offline Offline

Activity: 70


View Profile
July 29, 2011, 07:37:56 PM
 #1

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?
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
vector76
Member
**
Offline Offline

Activity: 70


View Profile
July 29, 2011, 07:48:39 PM
 #2

nvm, stl sets are ordered, and they use trees internally, not hash tables.
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!