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
2447cb40
Commit
2447cb40
authored
Nov 21, 2018
by
gitlab
Committed by
vipwzw
Nov 21, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto ci
parent
1128378d
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
5 additions
and
4 deletions
+5
-4
authority.go
plugin/dapp/cert/authority/authority.go
+0
-0
cryptogen.go
plugin/dapp/cert/authority/tools/cryptogen/cryptogen.go
+0
-0
csp.go
...in/dapp/cert/authority/tools/cryptogen/factory/csp/csp.go
+0
-0
const.go
plugin/dapp/cert/types/const.go
+0
-0
errors.go
plugin/dapp/cert/types/errors.go
+0
-0
types.go
plugin/dapp/cert/types/types.go
+0
-0
poker.go
plugin/dapp/pokerbull/executor/poker.go
+0
-0
pokerbulldb.go
plugin/dapp/pokerbull/executor/pokerbulldb.go
+2
-1
rpc.go
plugin/dapp/pokerbull/rpc/rpc.go
+3
-3
const.go
plugin/dapp/pokerbull/types/const.go
+0
-0
No files found.
plugin/dapp/cert/authority/authority.go
View file @
2447cb40
plugin/dapp/cert/authority/tools/cryptogen/cryptogen.go
View file @
2447cb40
plugin/dapp/cert/authority/tools/cryptogen/factory/csp/csp.go
View file @
2447cb40
plugin/dapp/cert/types/const.go
View file @
2447cb40
plugin/dapp/cert/types/errors.go
View file @
2447cb40
plugin/dapp/cert/types/types.go
View file @
2447cb40
plugin/dapp/pokerbull/executor/poker.go
View file @
2447cb40
plugin/dapp/pokerbull/executor/pokerbulldb.go
View file @
2447cb40
...
...
@@ -43,6 +43,7 @@ type Action struct {
localDB
dbm
.
Lister
index
int
}
// NewAction 创建action
func
NewAction
(
pb
*
PokerBull
,
tx
*
types
.
Transaction
,
index
int
)
*
Action
{
hash
:=
tx
.
Hash
()
...
...
@@ -614,7 +615,7 @@ func (action *Action) GameStart(start *pkt.PBGameStart) (*types.Receipt, error)
logs
=
append
(
logs
,
receiptLog
)
kv
=
append
(
kv
,
action
.
saveGame
(
game
)
...
)
return
&
types
.
Receipt
{
Ty
:
types
.
ExecOk
,
KV
:
kv
,
Logs
:
logs
},
nil
return
&
types
.
Receipt
{
Ty
:
types
.
ExecOk
,
KV
:
kv
,
Logs
:
logs
},
nil
}
func
getReadyPlayerNum
(
players
[]
*
pkt
.
PBPlayer
)
int
{
...
...
plugin/dapp/pokerbull/rpc/rpc.go
View file @
2447cb40
...
...
@@ -33,7 +33,7 @@ func (c *channelClient) Start(ctx context.Context, head *pb.PBGameStart) (*types
func
(
c
*
channelClient
)
Continue
(
ctx
context
.
Context
,
head
*
pb
.
PBGameContinue
)
(
*
types
.
UnsignTx
,
error
)
{
val
:=
&
pb
.
PBGameAction
{
Ty
:
pb
.
PBGameActionContinue
,
Value
:
&
pb
.
PBGameAction_Continue
{
Continue
:
head
},
Value
:
&
pb
.
PBGameAction_Continue
{
Continue
:
head
},
}
tx
,
err
:=
types
.
CreateFormatTx
(
pb
.
PokerBullX
,
types
.
Encode
(
val
))
if
err
!=
nil
{
...
...
@@ -46,7 +46,7 @@ func (c *channelClient) Continue(ctx context.Context, head *pb.PBGameContinue) (
func
(
c
*
channelClient
)
Quit
(
ctx
context
.
Context
,
head
*
pb
.
PBGameQuit
)
(
*
types
.
UnsignTx
,
error
)
{
val
:=
&
pb
.
PBGameAction
{
Ty
:
pb
.
PBGameActionQuit
,
Value
:
&
pb
.
PBGameAction_Quit
{
Quit
:
head
},
Value
:
&
pb
.
PBGameAction_Quit
{
Quit
:
head
},
}
tx
,
err
:=
types
.
CreateFormatTx
(
pb
.
PokerBullX
,
types
.
Encode
(
val
))
if
err
!=
nil
{
...
...
@@ -59,7 +59,7 @@ func (c *channelClient) Quit(ctx context.Context, head *pb.PBGameQuit) (*types.U
func
(
c
*
channelClient
)
Show
(
ctx
context
.
Context
,
head
*
pb
.
PBGameQuery
)
(
*
types
.
UnsignTx
,
error
)
{
val
:=
&
pb
.
PBGameAction
{
Ty
:
pb
.
PBGameActionQuery
,
Value
:
&
pb
.
PBGameAction_Query
{
Query
:
head
},
Value
:
&
pb
.
PBGameAction_Query
{
Query
:
head
},
}
tx
,
err
:=
types
.
CreateFormatTx
(
pb
.
PokerBullX
,
types
.
Encode
(
val
))
if
err
!=
nil
{
...
...
plugin/dapp/pokerbull/types/const.go
View file @
2447cb40
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