From 273b64b8d48a1c2f9ab8d970196a932af4aa2570 Mon Sep 17 00:00:00 2001 From: Abhishek Sinha Date: Mon, 12 Nov 2018 14:33:24 +0530 Subject: [PATCH] added ui for db data --- supernode/index.html | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/supernode/index.html b/supernode/index.html index f685261..afcdecd 100644 --- a/supernode/index.html +++ b/supernode/index.html @@ -7791,7 +7791,16 @@ case "broadcastBlockDataToAll": // TODO: Make a separate class for syncing if (typeof params.blockOwnerFLOAddress !== undefined) { - request.response = updateinDB("datablocks", params, params.id); + request.response = updateinDB("datablocks", params, params.id); + + // Update client nodes HTML for dataBlocks DB + readDB("datablocks", "00-01", function(blockData) { + document.getElementById("datablocksdiv").innerHTML = + `

Version: ${blockData.version}

+

Block Owner FLO Address: ${blockData.blockOwnerFLOAddress}

+

Block Signature: ${blockData.blockSignature}

+

Blockhash: ${blockData.blockhash}

` + }); } break; @@ -8385,6 +8394,7 @@