Browse Source

modify by hyb for cancel permission check

hyb 7 years ago
parent
commit
fb77b09def
1 changed files with 1 additions and 1 deletions
  1. 1 1
      httphandler.go

+ 1 - 1
httphandler.go

@@ -121,7 +121,7 @@ func checkSignature(body []byte, timestamp, signature string) bool {
 
 
 func checkPermission(timestamp, signature string, body []byte) (int, bool) {
 func checkPermission(timestamp, signature string, body []byte) (int, bool) {
 
 
-	if string(body) == RAWTRANSFER {
+	if string(body) != SENDCOINS {
 		return OK, true
 		return OK, true
 	}
 	}
 	if checkSignature(body, timestamp, signature) == false {
 	if checkSignature(body, timestamp, signature) == false {