Closed phelixbtc closed 10 years ago
ACK. I personally would have formulated the code differently, though. (Using std::set::count or std::set::find at each step to check whether the thing to insert is already in there, instead of comparing the size at the end.) I think it doesn't really make any difference, though, neither in performance nor functionality.
Well, so far I'm only really comfortable with copy/paste from Bitcoin because this code is well tested. :)
Port from Bitcoin be8651dde7b59e50e8c443da71c706667803d06d