bug fix
- Changed SNStorageID - fixed bug: supernodes not read from blockchain - generalData incorrectly stored
This commit is contained in:
parent
a8218630ea
commit
f5f29cb620
@ -22,7 +22,7 @@
|
|||||||
fee: 0.0005,
|
fee: 0.0005,
|
||||||
|
|
||||||
//Required for Supernode operations
|
//Required for Supernode operations
|
||||||
SNStorageID: "FR876VRTna3DremwQKZ421xPGMTREzctRB",
|
SNStorageID: "FNaN9McoBAEFUjkRmNQRYLmBF8SpS7Tgfk",
|
||||||
supernodes: {}, //each supnernode must be stored as floID : {uri:<uri>,pubKey:<publicKey>}
|
supernodes: {}, //each supnernode must be stored as floID : {uri:<uri>,pubKey:<publicKey>}
|
||||||
|
|
||||||
//for cloud apps
|
//for cloud apps
|
||||||
@ -8305,6 +8305,7 @@ Bitcoin.Util = {
|
|||||||
message = floCrypto.encryptData(JSON.stringify(message), encryptionKey)
|
message = floCrypto.encryptData(JSON.stringify(message), encryptionKey)
|
||||||
}
|
}
|
||||||
this.sendApplicationData(message, type, options).then(result => {
|
this.sendApplicationData(message, type, options).then(result => {
|
||||||
|
options.comment = null;
|
||||||
var fk = this.util.filterKey(type, options)
|
var fk = this.util.filterKey(type, options)
|
||||||
this.util.storeGeneral(fk, result)
|
this.util.storeGeneral(fk, result)
|
||||||
resolve(result)
|
resolve(result)
|
||||||
@ -8671,9 +8672,9 @@ Bitcoin.Util = {
|
|||||||
for (sn in content.removeNodes)
|
for (sn in content.removeNodes)
|
||||||
compactIDB.removeData("supernodes", sn,
|
compactIDB.removeData("supernodes", sn,
|
||||||
"floDapps");
|
"floDapps");
|
||||||
for (sn in content.addNodes)
|
for (sn in content.newNodes)
|
||||||
compactIDB.writeData("supernodes", content
|
compactIDB.writeData("supernodes", content
|
||||||
.addNodes[sn], sn, "floDapps");
|
.newNodes[sn], sn, "floDapps");
|
||||||
}
|
}
|
||||||
compactIDB.writeData("lastTx", result.totalTxs,
|
compactIDB.writeData("lastTx", result.totalTxs,
|
||||||
floGlobals.SNStorageID, "floDapps");
|
floGlobals.SNStorageID, "floDapps");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user