summaryrefslogtreecommitdiffstats
path: root/prog
diff options
context:
space:
mode:
Diffstat (limited to 'prog')
-rw-r--r--prog/ž/app.html4
-rw-r--r--prog/ž/gen.html2
2 files changed, 3 insertions, 3 deletions
diff --git a/prog/ž/app.html b/prog/ž/app.html
index f5601e1..544db56 100644
--- a/prog/ž/app.html
+++ b/prog/ž/app.html
@@ -231,8 +231,8 @@ async function sync_transactions () {
for (let i = 0; i < server_transactions.length/tx_len; i++)
if (await try_import_tx(server_transactions.slice(tx_len*i, tx_len*i+tx_len)))
count++;
- window.lsh = a2hex(new Uint8Array(await crypto.subtle.digest("SHA-256", server_transactions.slice(-tx_len))));
- localStorage.setItem("last_sync_hash", lsh);
+ if (server_transactions.length)
+ localStorage.setItem("last_sync_hash", a2hex(new Uint8Array(await crypto.subtle.digest("SHA-256", server_transactions.slice(-tx_len)))));
if (count)
rendertxsbal();
return count;
diff --git a/prog/ž/gen.html b/prog/ž/gen.html
index 47fe749..8a5342a 100644
--- a/prog/ž/gen.html
+++ b/prog/ž/gen.html
@@ -27,7 +27,7 @@ function a2hex (a) {
return r;
}
async function main () {
- while (!pubsec1.innerText.startsWith("02aa") && !pubsec1.innerText.startsWith("03aa")) {
+ while (!pubsec1.innerText.startsWith("0200") && !pubsec1.innerText.startsWith("0300")) {
window.keyobj = await crypto.subtle.generateKey(
{
name: "ECDSA",