Browse Source

correction nonce_binary_str

master
MEUNIER Thibaud 6 years ago
parent
commit
1689bd6cd3
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      blockchain/inc/block.php

+ 1
- 1
blockchain/inc/block.php View File

@ -265,7 +265,7 @@ class blockchain
$the_block->nonce_binary_str = decbin($the_block->nonce); $the_block->nonce_binary_str = decbin($the_block->nonce);
if (strlen($the_block->nonce_binary_str) > 32) $the_block->nonce_binray_str = substr($nonce_binray_str,-32,32); if (strlen($the_block->nonce_binary_str) > 32) $the_block->nonce_binray_str = substr($nonce_binray_str,-32,32);
$the_block->topisto_nonce_blockchain_info = $the_block->nonce; $the_block->topisto_nonce_blockchain_info = $the_block->nonce;
$the_block->nonce = bindec($the_block->nonce_binray_str);
$the_block->nonce = bindec($the_block->nonce_binary_str);
if (!isset($the_block->topisto_inputs)) if (!isset($the_block->topisto_inputs))
{ {

Loading…
Cancel
Save