Skip to content

Commit

Permalink
test v4
Browse files Browse the repository at this point in the history
  • Loading branch information
turingczz committed Aug 18, 2022
1 parent ad369ae commit 95e37ac
Show file tree
Hide file tree
Showing 66 changed files with 10,963 additions and 172,179 deletions.
7 changes: 1 addition & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,7 @@ TEST_RD_PORT ?= 6379
TEST_RD_URL="redis://$(TEST_RD_USER):@$(TEST_RD_HOSTNAME):$(TEST_RD_PORT)/$(TEST_RD_NAME)"
DOCKER_TEST_RD_URL="redis://$(TEST_RD_HOSTNAME):$(TEST_RD_PORT)"

PG_FIX_CANDIDATES=./protos/node/node.pb.go \
./protos/status/status.pb.go \
./protos/escrow/escrow.pb.go \
./protos/guard/guard.pb.go \
./protos/online/online.pb.go \
./protos/score/score.pb.go \
PG_FIX_CANDIDATES=./protos/score/score.pb.go \

install: brew trongogo

Expand Down
30 changes: 15 additions & 15 deletions config/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package config
import (
"strconv"

"github.com/bittorrent/go-btfs-common/protos/guard"
//"github.com/bittorrent/go-btfs-common/protos/guard"
"github.com/tron-us/go-common/v2/env"
"github.com/tron-us/go-common/v2/log"

Expand All @@ -27,17 +27,17 @@ func init() {
}
}

func GetMinimumQuestionsCountPerShard(status *guard.FileStoreStatus) (val int) {
//Below comment codes were reserved here
//if status == nil || status.FileStoreMeta.CheckFrequency == 0 {
// //if it is 0 or status is nil, means using default frequency
// return ConstMinQuestionsCountPerChallenge * 52
//}
//
//return int(status.FileStoreMeta.CheckFrequency) * ConstMinQuestionsCountPerChallenge
return ConstMinQuestionsCountPerShard
}

func GetRenewContingencyPercentage() (percent int) {
return 10
}
//func GetMinimumQuestionsCountPerShard(status *guard.FileStoreStatus) (val int) {
// //Below comment codes were reserved here
// //if status == nil || status.FileStoreMeta.CheckFrequency == 0 {
// // //if it is 0 or status is nil, means using default frequency
// // return ConstMinQuestionsCountPerChallenge * 52
// //}
// //
// //return int(status.FileStoreMeta.CheckFrequency) * ConstMinQuestionsCountPerChallenge
// return ConstMinQuestionsCountPerShard
//}
//
//func GetRenewContingencyPercentage() (percent int) {
// return 10
//}
117 changes: 0 additions & 117 deletions crypto/crypto_test.go

This file was deleted.

1 change: 0 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ require (
github.com/tron-us/go-common/v2 v2.3.0
github.com/tron-us/protobuf v1.3.4
go.uber.org/zap v1.16.0
google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013
google.golang.org/grpc v1.34.0
)

Expand Down
Loading

0 comments on commit 95e37ac

Please sign in to comment.