tpfuemp / yiimp

Crypto mining pool
4 stars 5 forks source link

Explorer #7

Closed hobbypool closed 5 months ago

hobbypool commented 5 months ago

Noticed an issue when opening explorer page when running neoscrypt-xaya coin ROD (SpaceXpanse), errors out on array to string conversion.

I've managed to work around it by changing code on /web/yaamp/modules/benchmark/index.php in benchmark module.

On index.php in benchmark module, remove line 93 "echo ''.$nethash_sfx.''; "

and add:

if (is_array($coin->network_hash)) { $networkHashData = implode(',', $coin->network_hash); } else { $networkHashData = $coin->network_hash; }

if (is_array($nethash_sfx)) { $nethash_sfxData = implode(',', $nethash_sfx); } else { $nethash_sfxData = $nethash_sfx; }

Might not be perfect, but maybe something to look at.

tpfuemp commented 5 months ago

fixed in 3734f7b9e1ebc6da04aa00d736d39c0b726926ca