rewind.js no ejecuta nunca el rewind.
En el script rewind.js
, el cuerpo del if
de la línea 17 nunca se ejecuta:
17 if (eth.blockNumber.totalDifficulty+200<max) {
18 console.log(
19 "Max total difficulty is "
20 + max
21 + ", but mine is just "
22 + eth.blockNumber.totalDifficulty
23 + " (in block "
24 + eth.blockNumber
25 + "). Rolling "
26 + backstep+" blocks back, to block "
27 + web3.toHex(eth.blockNumber-backstep)
28 )
29 // Rollback a bit and see if we weren't stuck just because we were stuck in a side fork.
30 debug.setHead(web3.toHex(eth.blockNumber-backstep))
31 }
eth.blockNumber.totalDifficulty
evalúa a NaN
, por lo que la expresión es siempre falsa.
Entiendo que la expresión correcta, tanto en la línea 17 como en la 22, debería ser eth.getBlock(eth.blockNumber).totalDifficuly
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information