From 24dcc080d67156c5393bf609fdaa031dba3ef7b3 Mon Sep 17 00:00:00 2001 From: Abhishek Sinha Date: Thu, 7 Nov 2019 16:13:40 +0530 Subject: [PATCH] modified cash handler page to work with multiple supernodes simultaneously --- supernode/cash_payments_handler.html | 597 ++++++++++++++++----------- supernode/index.html | 392 +++++++++++------- 2 files changed, 597 insertions(+), 392 deletions(-) diff --git a/supernode/cash_payments_handler.html b/supernode/cash_payments_handler.html index 5de0170..aad4039 100644 --- a/supernode/cash_payments_handler.html +++ b/supernode/cash_payments_handler.html @@ -11334,14 +11334,15 @@ - - - diff --git a/supernode/index.html b/supernode/index.html index af9d208..2c92811 100644 --- a/supernode/index.html +++ b/supernode/index.html @@ -12077,7 +12077,7 @@ 026FCC6CFF6EB3A39E54BEB6E13FC2F02C3A93F4767AA80E49E7E876443F95AE5F, #!#externalFiles={"d3js":"58f54395efa8346e8e94d12609770f66b916897e7f4e05f6c98780cffa5c70a3"} #!#cashiers={"032871A74D2DDA9D0DE7135F58B5BD2D7F679D2CCA20EA7909466D1A6912DF4022":"johnDoe@upi", - "janeDoe@upi":"03DB4A12EB543B293DDBB0CE314C46C36D6761294AFBB7264A6D78F710FFD97CF0"} + "03DB4A12EB543B293DDBB0CE314C46C36D6761294AFBB7264A6D78F710FFD97CF0":"janeDoe@upi"} #!#ShamirsMaxShares=8#!#supernodeSeeds={"ranchimall1":{"ip":"127.0.0.1","port":"9111","kbucketId":"oZxHcbSf1JC8t5GjutopWYXs7C6Fe9p7ps"}, "ranchimall2":{"ip":"127.0.0.1","port":"9112","kbucketId":"oTWjPupy3Z7uMdPcu5uXd521HBkcsLuSuM"}, "ranchimall3":{"ip":"127.0.0.1","port":"9113","kbucketId":"odYA6KagmbokSh9GY7yAfeTUZRtZLwecY1"}, @@ -12465,8 +12465,9 @@ ); const promise2 = removeAllinDB("my_supernode_private_key_chunks"); - - return Promise.all([promise1, promise2]) + const promise3 = removeAllinDB("myClosestSupernodes"); + + return Promise.all([promise1, promise2, promise3]) .then(() => true) .catch(e => false); }, @@ -14115,6 +14116,8 @@ localbitcoinplusplus.master_configurations.supernodesPubKeys.length) return; + if(typeof localbitcoinplusplus.myClosestSupernodes==="object") return; + const idbData = await readDB("localbitcoinUser", "00-01"); if (getClosestSuList.length < 1) { @@ -14378,6 +14381,9 @@