$GLOBALS['total_found'] . ':' .
$GLOBALS['total_restarts'] . ':' .
$GLOBALS['hash_cycles'] . ':' .
- base64_encode($GLOBALS['nonce']) . ':' .
+ base64_encode((float) $GLOBALS['nonce']) . ':' .
$hash . ':' .
$GLOBALS['root_hash'] . ':' .
base64_encode(gzcompress(serialize($GLOBALS['found_hashes'])))
'modula_hash' => $GLOBALS['modula_hash'],
'genesis_hash' => $GLOBALS['genesis_hash'],
'root_hash' => $GLOBALS['root_hash'],
- 'nonce' => $GLOBALS['nonce'],
+ 'nonce' => (float) $GLOBALS['nonce'],
'iter' => $GLOBALS['iteration'],
'hashes_block' => $GLOBALS['hashes_block'],
'hash_cycles' => $GLOBALS['hash_cycles'],
$GLOBALS['total_found'] = $data[3];
$GLOBALS['total_restarts'] = $data[4];
$GLOBALS['hash_cycles'] = intval($data[5]);
- $GLOBALS['nonce'] = base64_decode($data[7]);
+ $GLOBALS['nonce'] = (float) base64_decode($data[6]);
$GLOBALS['root_hash'] = $data[8];
$GLOBALS['found_hashes'] = unserialize(gzuncompress(base64_decode($data[9])));
// Set modula hash
- setModulaHash($data[6]);
+ setModulaHash($data[7]);
} else {
// Create nonce (small)
initNonce();