diff --git a/js/blockexplorer.js b/js/blockexplorer.js index 178225c..781b927 100644 --- a/js/blockexplorer.js +++ b/js/blockexplorer.js @@ -213,12 +213,12 @@ blockchainExplorer = function(){ function _addTopBlock(data, flag = false) { + if (flag) return "_addTopBlock"; + var old_hash = _liste_blocks['TOP']; if (old_hash == data.hash) return false; - if (flag) return "ajouterTopBlock"; - // Maintenir la liste des blocks _liste_blocks['TOP'] = data.hash; _liste_blocks['BLOCK_'+data.height] = data.hash;