From 8b943d4a08a9cea450d11bf58e2e09d4151dbbd8 Mon Sep 17 00:00:00 2001 From: Arzumify Date: Sun, 21 Jul 2024 10:04:07 +0100 Subject: [PATCH] Made extra modify-able --- main.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 4ba89f5..f03e4d6 100644 --- a/main.go +++ b/main.go @@ -8,8 +8,9 @@ import ( func main() { fmt.Println("HashCash online! (no, curious console-dweller, this isn't a cryptocurrency miner)") - fmt.Println("Beginning proof of work (this may take a while)...") - pow := hashcash.New(20, 16, "I love burgernotes!") + extra := js.Global().Get("resourceExtra").String() + fmt.Println("Beginning proof of work on " + extra + "(this may take a while)...") + pow := hashcash.New(20, 16, extra) stamp, err := pow.Mint("signup") if err != nil { js.Global().Set("returnVar", js.ValueOf(err.Error()))