Bitcoin Forum
January 19, 2017, 11:55:55 PM *
News: Latest stable version of Bitcoin Core: 0.13.2  [Torrent]. (New!)
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: setKeyPool a set and not a list?  (Read 464 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.
1484870155
Hero Member
*
Offline Offline

Posts: 1484870155

View Profile Personal Message (Offline)

Ignore
1484870155
Reply with quote  #2

1484870155
Report to moderator
1484870155
Hero Member
*
Offline Offline

Posts: 1484870155

View Profile Personal Message (Offline)

Ignore
1484870155
Reply with quote  #2

1484870155
Report to moderator
1484870155
Hero Member
*
Offline Offline

Posts: 1484870155

View Profile Personal Message (Offline)

Ignore
1484870155
Reply with quote  #2

1484870155
Report to moderator
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!