support wasm (#163)

This commit is contained in:
reis
2025-01-02 21:42:04 +09:00
committed by GitHub
parent a7a66add61
commit 63919cf685
13 changed files with 167 additions and 7 deletions

View File

@ -59,11 +59,11 @@ func TestDoWorkShort(t *testing.T) {
Content: "It's just me mining my own business",
PubKey: "a48380f4cfcc1ad5378294fcac36439770f9c878dd880ffa94bb74ea54a6f243",
}
pow, err := DoWork(context.Background(), event, 0)
pow, err := DoWork(context.Background(), event, 2)
if err != nil {
t.Fatal(err)
}
testNonceTag(t, pow, 0)
testNonceTag(t, pow, 2)
}
func TestDoWorkLong(t *testing.T) {