If one used generate
while running with multiple wallets -wallet=file1.dat wallet=file2.dat
the wallet used for the coinbase script is pretty undefined (or lets say weak defined, it’s probably always the last one).
This PR is a quick fix (should be okay for the internal miner) to ensure we always use the first wallet for generate | setgenerate
.
Ideally, someone works on passing the endpoint (coming soon) down to the signal listener.