diff options
author | Anton Luka Šijanec <anton@sijanec.eu> | 2023-06-20 13:06:33 +0200 |
---|---|---|
committer | Anton Luka Šijanec <anton@sijanec.eu> | 2023-06-20 13:06:33 +0200 |
commit | 24ae5810a844e0099910cf70b1a18158f82891e3 (patch) | |
tree | d18cbe1f3e8279fb63fcf08cf4ce12c27bf7ba3a /prog/ž | |
parent | ž initial commit (diff) | |
download | r-24ae5810a844e0099910cf70b1a18158f82891e3.tar r-24ae5810a844e0099910cf70b1a18158f82891e3.tar.gz r-24ae5810a844e0099910cf70b1a18158f82891e3.tar.bz2 r-24ae5810a844e0099910cf70b1a18158f82891e3.tar.lz r-24ae5810a844e0099910cf70b1a18158f82891e3.tar.xz r-24ae5810a844e0099910cf70b1a18158f82891e3.tar.zst r-24ae5810a844e0099910cf70b1a18158f82891e3.zip |
Diffstat (limited to 'prog/ž')
-rw-r--r-- | prog/ž/app.html | 4 | ||||
-rw-r--r-- | prog/ž/gen.html | 2 |
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", |