jtgrassie / monero-pool

A Monero mining pool server written in C
BSD 3-Clause "New" or "Revised" License
353 stars 125 forks source link

fixed typecast and --self-select bug. #148

Closed slave-blocker closed 14 hours ago

slave-blocker commented 15 hours ago

1) the file xmr.cpp had a wrong typecast not updated after the fork. txout_to_key passes to txout_to_tagged_key. (thx to jeffro256)

2) In the file pool.c it is assumed that "bstack(bst)" always has the actual "top" when invoking the method "miner_on_block_template". If so, the pool defines for the miners which network height and difficulty is current. This is also present in the static variables pool_stats.network_difficulty and pool_stats.network_height.

jtgrassie commented 14 hours ago

Only point 1 has any validity. Please remove everything other than the one line/word change of jeffro256's if you want merged. Thanks