Browse Source

bugfix random_num field

0x4a52466c696e74 2 years ago
parent
commit
08a19ef074
3 changed files with 2 additions and 2 deletions
  1. 2 2
      api.go
  2. BIN
      curve-app
  3. BIN
      curve-app.exe

+ 2 - 2
api.go

@@ -4,7 +4,6 @@ import (
 	"context"
 	"fmt"
 	"log"
-	"math/big"
 	"os"
 	"sync"
 	"sync/atomic"
@@ -33,7 +32,8 @@ func messageIncoming(mes *Message) {
 			log.Println("METHOD")
 			randomNum, check := checkBigInt(mes, "random_num")
 			if !check {
-				randomNum = big.NewInt(1000000)
+				//randomNum = big.NewInt(1000000)
+				return
 			}
 			message := mData.String(
 				"message",

BIN
curve-app


BIN
curve-app.exe