]> git.codecow.com Git - libnemo.git/commitdiff
Use zero public key instead of importing an entire account.
authorChris Duncan <chris@zoso.dev>
Thu, 7 Aug 2025 16:50:31 +0000 (09:50 -0700)
committerChris Duncan <chris@zoso.dev>
Thu, 7 Aug 2025 16:50:31 +0000 (09:50 -0700)
src/lib/block.ts

index b2b67413b0c63b5286ac5d55a693479d4cab74e9..45de7a317e3a351e17c646f73eb20c927b454583 100644 (file)
@@ -4,7 +4,7 @@
 import { NanoPow } from 'nano-pow'
 import { Account } from './account'
 import { Blake2b } from './blake2b'
-import { BURN_ADDRESS, PREAMBLE, DIFFICULTY_RECEIVE, DIFFICULTY_SEND } from './constants'
+import { BURN_PUBLIC_KEY, PREAMBLE, DIFFICULTY_RECEIVE, DIFFICULTY_SEND, UNITS } from './constants'
 import { bytes, dec, hex } from './convert'
 import { NanoNaCl } from './nano-nacl'
 import { Rpc } from './rpc'
@@ -176,7 +176,8 @@ export class Block {
                }
                try {
                        this.subtype = 'change'
-                       this.link = hex.toBytes(Account.import(BURN_ADDRESS).publicKey)
+                       this.link = hex.toBytes(BURN_PUBLIC_KEY)
+
                        return this
                } catch (err) {
                        this.subtype = undefined