Bitcoin Forum
May 14, 2024, 12:04:36 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: setKeyPool a set and not a list?  (Read 638 times)
vector76 (OP)
Member
**
Offline Offline

Activity: 70
Merit: 18


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?
1715688276
Hero Member
*
Offline Offline

Posts: 1715688276

View Profile Personal Message (Offline)

Ignore
1715688276
Reply with quote  #2

1715688276
Report to moderator
Bitcoin mining is now a specialized and very risky industry, just like gold mining. Amateur miners are unlikely to make much money, and may even lose money. Bitcoin is much more than just mining, though!
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715688276
Hero Member
*
Offline Offline

Posts: 1715688276

View Profile Personal Message (Offline)

Ignore
1715688276
Reply with quote  #2

1715688276
Report to moderator
1715688276
Hero Member
*
Offline Offline

Posts: 1715688276

View Profile Personal Message (Offline)

Ignore
1715688276
Reply with quote  #2

1715688276
Report to moderator
vector76 (OP)
Member
**
Offline Offline

Activity: 70
Merit: 18


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:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!