btccom / btcpool-ABANDONED

backend of pool.btc.com
https://pool.btc.com
MIT License
643 stars 408 forks source link

May it return if key already exist in workMap ? #478

Open EthanHee opened 3 years ago

EthanHee commented 3 years ago

https://github.com/btccom/btcpool/blob/0127a750b3b26a515e66261cbd9ad7f95c54de01/src/eth/JobMakerEth.cc#L40

Shoud it return here?

the insert operation after that


 workMap_.insert(std::make_pair(key, work));

``
is  invalid.