mirror of
https://git.wownero.com/wownero/wownero-puddle.git
synced 2024-08-15 01:03:20 +00:00
b380382196
compare_share() doesn't implement strict ordering store_share() uses MDB_APPENDDUP to avoid problem with compare_share MDB_APPENDDUP may fail since the following pair of valid shares can't added in specified order: 1. {share1, share2 | (share1.timestamp < share2.timestamp) && (share1.address > share2.address)} 2. {share1, share2 | (share1.timestamp > share2.timestamp) && (share1.address == share2.address)} If there is no plan to avoid usage of MDB_APPENDDUP in store_share() then compare_share() can be modified to use only timestamp field thus avoid MDB_APPENDDUP fail in the first case. |
||
---|---|---|
.. | ||
bstack.c | ||
bstack.h | ||
forkoff.c | ||
forkoff.h | ||
pool.c | ||
pool.h | ||
util.c | ||
util.h | ||
webui-embed.html | ||
webui.c | ||
webui.h | ||
xmr.cpp | ||
xmr.h |