20211111 it works ...

This commit is contained in:
2021-11-11 18:00:24 +01:00
parent 336f0e30db
commit 9b769f928e
+2 -2
View File
@@ -213,12 +213,12 @@ blockchainExplorer = function(){
function _addTopBlock(data, flag = false) function _addTopBlock(data, flag = false)
{ {
if (flag) return "_addTopBlock";
var old_hash = _liste_blocks['TOP']; var old_hash = _liste_blocks['TOP'];
if (old_hash == data.hash) return false; if (old_hash == data.hash) return false;
if (flag) return "ajouterTopBlock";
// Maintenir la liste des blocks // Maintenir la liste des blocks
_liste_blocks['TOP'] = data.hash; _liste_blocks['TOP'] = data.hash;
_liste_blocks['BLOCK_'+data.height] = data.hash; _liste_blocks['BLOCK_'+data.height] = data.hash;