backend: prevent too long wallet versions

This commit is contained in:
Tanguy Pruvot 2017-10-08 15:59:16 +02:00
parent 6fb041adbc
commit 7d85e363c4

View file

@ -246,7 +246,7 @@ function BackendCoinsUpdate()
$coin->last_network_found = time(); $coin->last_network_found = time();
} }
$coin->version = $info['version']; $coin->version = substr($info['version'], 0, 32);
$coin->block_height = $info['blocks']; $coin->block_height = $info['blocks'];
if($coin->powend_height > 0 && $coin->block_height > $coin->powend_height) { if($coin->powend_height > 0 && $coin->block_height > $coin->powend_height) {