Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
plugin
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
link33
plugin
Commits
01f1d6dc
Commit
01f1d6dc
authored
Dec 05, 2018
by
张振华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
guess
parent
baf4c3b1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
guessdb.go
plugin/dapp/guess/executor/guessdb.go
+3
-3
No files found.
plugin/dapp/guess/executor/guessdb.go
View file @
01f1d6dc
...
...
@@ -26,7 +26,7 @@ const (
DefaultCount
=
int32
(
20
)
//默认一次取多少条记录
MaxBetsOneTime
=
10000
//一次最多下多少注
MaxBetsNumber
=
100000
//一局游戏最多接受多少注
MaxBetsNumber
=
100000
0
//一局游戏最多接受多少注
MaxBetHeight
=
10000000000
//最大区块高度
MinBetBlockNum
=
720
//从创建游戏开始,一局游戏最少的可下注区块数量
...
...
@@ -541,7 +541,7 @@ func (action *Action) GameStopBet(pbBet *pkt.GuessGameStopBet) (*types.Receipt,
return
nil
,
pkt
.
ErrGuessStatus
}
//只有adminAddr可以发起
publish
//只有adminAddr可以发起
stopBet
if
game
.
AdminAddr
!=
action
.
fromaddr
{
logger
.
Error
(
"GameStopBet"
,
"addr"
,
action
.
fromaddr
,
"execaddr"
,
action
.
execaddr
,
"fromAddr is not adminAddr"
,
action
.
fromaddr
,
"adminAddr"
,
game
.
AdminAddr
)
...
...
@@ -731,7 +731,7 @@ func (action *Action) GameAbort(pbend *pkt.GuessGameAbort) (*types.Receipt, erro
logger
.
Error
(
"GameAbort"
,
"addr"
,
action
.
fromaddr
,
"execaddr"
,
action
.
execaddr
,
"game status not allow abort"
,
game
.
Status
)
return
nil
,
err
return
nil
,
pkt
.
ErrGuessStatus
}
preStatus
:=
game
.
Status
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment