From f5f29cb620b7d0c5b20a5842a932c049eebafda2 Mon Sep 17 00:00:00 2001 From: sairajzero Date: Thu, 15 Oct 2020 01:33:19 +0530 Subject: [PATCH] bug fix - Changed SNStorageID - fixed bug: supernodes not read from blockchain - generalData incorrectly stored --- standard_Operations.html | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/standard_Operations.html b/standard_Operations.html index 1fb9791..2bb88f9 100644 --- a/standard_Operations.html +++ b/standard_Operations.html @@ -22,7 +22,7 @@ fee: 0.0005, //Required for Supernode operations - SNStorageID: "FR876VRTna3DremwQKZ421xPGMTREzctRB", + SNStorageID: "FNaN9McoBAEFUjkRmNQRYLmBF8SpS7Tgfk", supernodes: {}, //each supnernode must be stored as floID : {uri:,pubKey:} //for cloud apps @@ -8305,6 +8305,7 @@ Bitcoin.Util = { message = floCrypto.encryptData(JSON.stringify(message), encryptionKey) } this.sendApplicationData(message, type, options).then(result => { + options.comment = null; var fk = this.util.filterKey(type, options) this.util.storeGeneral(fk, result) resolve(result) @@ -8671,9 +8672,9 @@ Bitcoin.Util = { for (sn in content.removeNodes) compactIDB.removeData("supernodes", sn, "floDapps"); - for (sn in content.addNodes) + for (sn in content.newNodes) compactIDB.writeData("supernodes", content - .addNodes[sn], sn, "floDapps"); + .newNodes[sn], sn, "floDapps"); } compactIDB.writeData("lastTx", result.totalTxs, floGlobals.SNStorageID, "floDapps");