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
a6a5509e
Commit
a6a5509e
authored
Jan 10, 2020
by
linj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
b018bfcc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
8 deletions
+3
-8
localdb_v1.go
plugin/dapp/trade/executor/localdb_v1.go
+3
-8
No files found.
plugin/dapp/trade/executor/localdb_v1.go
View file @
a6a5509e
...
...
@@ -43,7 +43,7 @@ func TradeUpdateLocalDBV2(localDB dbm.DB, total int) error {
return
nil
}
err
=
UpdateLocalDBPart2
(
localDB
,
total
)
err
=
UpdateLocalDBPart2
(
kvdb
,
total
)
if
err
!=
nil
{
return
err
}
...
...
@@ -133,13 +133,8 @@ func delOnePrefixLimit(localDB dbm.DB, prefix string, total int) (allDeleted boo
// UpdateLocalDBPart2 升级order
// order 从 v1 升级到 v2
// 通过tableV1 删除, 通过tableV2 添加, 无需通过每个区块扫描对应的交易
func
UpdateLocalDBPart2
(
localDB
dbm
.
DB
,
total
int
)
error
{
kvdb
:=
dbm
.
NewKVDB
(
localDB
)
err
:=
upgradeOrder
(
kvdb
,
total
)
if
err
!=
nil
{
return
err
}
return
nil
func
UpdateLocalDBPart2
(
kvdb
dbm
.
KVDB
,
total
int
)
error
{
return
upgradeOrder
(
kvdb
,
total
)
}
func
upgradeOrder
(
kvdb
dbm
.
KVDB
,
total
int
)
(
err
error
)
{
...
...
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