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
43c395d3
Commit
43c395d3
authored
Nov 07, 2018
by
linj
Committed by
linj
Nov 26, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cur -> current
parent
1d343d9e
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
44 additions
and
44 deletions
+44
-44
exec.go
executor/exec.go
+1
-1
exec_local.go
executor/exec_local.go
+3
-3
unfreeze.proto
proto/unfreeze.proto
+1
-1
unfreeze.pb.go
types/unfreeze.pb.go
+39
-39
No files found.
executor/exec.go
View file @
43c395d3
...
...
@@ -167,7 +167,7 @@ func MergeReceipt(r1 *types.Receipt, r2 *types.Receipt) (*types.Receipt, error)
func
getUnfreezeLog
(
prev
,
cur
*
pty
.
Unfreeze
)
*
types
.
ReceiptLog
{
log
:=
&
types
.
ReceiptLog
{}
log
.
Ty
=
pty
.
TyLogCreateUnfreeze
r
:=
&
pty
.
ReceiptUnfreeze
{
Prev
:
prev
,
Cur
:
cur
}
r
:=
&
pty
.
ReceiptUnfreeze
{
Prev
:
prev
,
Cur
rent
:
cur
}
log
.
Log
=
types
.
Encode
(
r
)
return
log
}
...
...
executor/exec_local.go
View file @
43c395d3
...
...
@@ -40,13 +40,13 @@ func (u *Unfreeze) ExecLocal_Terminate(payload *uf.UnfreezeTerminate, tx *types.
}
func
localKeys
(
res
*
uf
.
ReceiptUnfreeze
,
value
[]
byte
)
(
kvs
[]
*
types
.
KeyValue
)
{
kvs
=
append
(
kvs
,
&
types
.
KeyValue
{
initKey
(
res
.
Cur
.
Initiator
),
value
})
kvs
=
append
(
kvs
,
&
types
.
KeyValue
{
beneficiaryKey
(
res
.
Cur
.
Beneficiary
),
value
})
kvs
=
append
(
kvs
,
&
types
.
KeyValue
{
initKey
(
res
.
Cur
rent
.
Initiator
),
value
})
kvs
=
append
(
kvs
,
&
types
.
KeyValue
{
beneficiaryKey
(
res
.
Cur
rent
.
Beneficiary
),
value
})
return
}
func
(
u
*
Unfreeze
)
saveUnfreezeCreate
(
res
*
uf
.
ReceiptUnfreeze
)
(
kvs
[]
*
types
.
KeyValue
)
{
kvs
=
localKeys
(
res
,
[]
byte
(
res
.
Cur
.
UnfreezeID
))
kvs
=
localKeys
(
res
,
[]
byte
(
res
.
Cur
rent
.
UnfreezeID
))
return
}
...
...
proto/unfreeze.proto
View file @
43c395d3
...
...
@@ -73,7 +73,7 @@ message UnfreezeTerminate {
// receipt
message
ReceiptUnfreeze
{
Unfreeze
prev
=
1
;
Unfreeze
cur
=
2
;
Unfreeze
cur
rent
=
2
;
}
// query
...
...
types/unfreeze.pb.go
View file @
43c395d3
...
...
@@ -653,7 +653,7 @@ func (m *UnfreezeTerminate) GetUnfreezeID() string {
// receipt
type
ReceiptUnfreeze
struct
{
Prev
*
Unfreeze
`protobuf:"bytes,1,opt,name=prev" json:"prev,omitempty"`
Cur
*
Unfreeze
`protobuf:"bytes,2,opt,name=cur" json:"cur
,omitempty"`
Cur
rent
*
Unfreeze
`protobuf:"bytes,2,opt,name=current" json:"current
,omitempty"`
}
func
(
m
*
ReceiptUnfreeze
)
Reset
()
{
*
m
=
ReceiptUnfreeze
{}
}
...
...
@@ -668,9 +668,9 @@ func (m *ReceiptUnfreeze) GetPrev() *Unfreeze {
return
nil
}
func
(
m
*
ReceiptUnfreeze
)
GetCur
()
*
Unfreeze
{
func
(
m
*
ReceiptUnfreeze
)
GetCur
rent
()
*
Unfreeze
{
if
m
!=
nil
{
return
m
.
Cur
return
m
.
Cur
rent
}
return
nil
}
...
...
@@ -732,40 +732,40 @@ func init() {
func
init
()
{
proto
.
RegisterFile
(
"unfreeze.proto"
,
fileDescriptor0
)
}
var
fileDescriptor0
=
[]
byte
{
// 55
6
bytes of a gzipped FileDescriptorProto
0x1f
,
0x8b
,
0x08
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x02
,
0xff
,
0x9c
,
0x54
,
0x5
d
,
0x8f
,
0xd2
,
0x40
,
0x14
,
0xa5
,
0x
94
,
0x02
,
0xbd
,
0x44
,
0x58
,
0x27
,
0xae
,
0x36
,
0xc6
,
0x18
,
0xac
,
0x3e
,
0xf0
,
0x84
,
0x
86
,
0x8d
,
0xd1
,
0xc4
,
0x07
,
0xc3
,
0xae
,
0x1a
,
0x4c
,
0x8c
,
0x1f
,
0x15
,
0x63
,
0x7c
,
0x1c
,
0xca
,
0x
45
,
0x26
,
0x69
,
0x67
,
0x9a
,
0xe9
,
0x94
,
0xdd
,
0xfa
,
0x57
,
0xfc
,
0x3d
,
0x3e
,
0xf9
,
0xa7
,
0x4c
,
0x
a7
,
0xa5
,
0x40
,
0xc9
,
0x4a
,
0x96
,
0xc7
,
0x39
,
0xe7
,
0x9e
,
0x73
,
0xef
,
0xf4
,
0x9e
,
0x0e
,
0x74
,
0x
13
,
0xbe
,
0x90
,
0x88
,
0xbf
,
0x70
,
0x18
,
0x49
,
0xa1
,
0x04
,
0xb1
,
0x54
,
0x1a
,
0x61
,
0xec
,
0xfe
,
0x
36
,
0xa1
,
0xfd
,
0xad
,
0x60
,
0xc8
,
0x43
,
0x80
,
0x75
,
0xd5
,
0xfb
,
0x37
,
0x8e
,
0xd1
,
0x37
,
0x06
,
0x
b6
,
0xb7
,
0x85
,
0x90
,
0x07
,
0x60
,
0xc7
,
0x8a
,
0x4a
,
0x35
,
0x65
,
0x21
,
0x3a
,
0xf5
,
0xbe
,
0x3
1
,
0x3
0
,
0xbd
,
0x0d
,
0x90
,
0xb1
,
0x34
,
0x8e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7
,
0x1f
,
0xea
,
0x4a
,
0xde
,
0x7d
,
0x06
,
0x67
,
0x9f
,
0x
12
,
0x94
,
0xe9
,
0x3f
,
0x5f
,
0x68
,
0x09
,
0x77
,
0x3d
,
0x8c
,
0x82
,
0xf4
,
0x28
,
0x35
,
0x19
,
0x4
2
,
0x
9f
,
0xae
,
0x29
,
0x0b
,
0xe8
,
0x3c
,
0xc0
,
0xc9
,
0xf6
,
0x9f
,
0x5c
,
0x87
,
0xe7
,
0x2d
,
0xfd
,
0x76
,
0x
9f
,
0xff
,
0x0e
,
0x00
,
0x00
,
0xff
,
0xff
,
0xc4
,
0x7b
,
0x83
,
0xa7
,
0xcd
,
0x05
,
0x00
,
0x00
,
}
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