]> zoso.dev Git - libnemo.git/commitdiff
Remove zero threshold from block used for testing.
authorChris Duncan <chris@zoso.dev>
Thu, 2 Jan 2025 13:48:41 +0000 (05:48 -0800)
committerChris Duncan <chris@zoso.dev>
Thu, 2 Jan 2025 13:48:41 +0000 (05:48 -0800)
src/lib/block.ts

index ac36f398df437182dab502801d4139644cf81513..5b898c01811651e95b7a7b7cb28b6244c2635ff0 100644 (file)
@@ -86,8 +86,7 @@ abstract class Block {
                const data = {
                        "hash": this.previous,
                        "threshold": (this instanceof SendBlock || this instanceof ChangeBlock)
-                               // ? THRESHOLD_SEND
-                               ? 0
+                               ? THRESHOLD_SEND
                                : THRESHOLD_RECEIVE
                }
                const [{ work }] = await Block.#pool.assign([data])