From 9b769f928e0d0de394bab47b06a029ded3845d58 Mon Sep 17 00:00:00 2001 From: MEUNIER Thibaud Date: Thu, 11 Nov 2021 18:00:24 +0100 Subject: [PATCH] 20211111 it works ... --- js/blockexplorer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;