Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
chain33-pai
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
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
szh
chain33-pai
Commits
f9d0f991
Commit
f9d0f991
authored
Apr 02, 2020
by
szh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
unlock 放cronjob方法
parent
7011b73d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
main.go
main.go
+0
-7
process.go
pkg/app/process.go
+7
-0
No files found.
main.go
View file @
f9d0f991
...
@@ -61,13 +61,6 @@ func main() {
...
@@ -61,13 +61,6 @@ func main() {
}
}
tlog
.
Info
(
"[info] start http server listening "
,
"port"
,
endPoint
)
tlog
.
Info
(
"[info] start http server listening "
,
"port"
,
endPoint
)
go
func
(){
time
.
Sleep
(
time
.
Second
*
10
)
err
:=
app
.
Unlock
()
if
err
==
nil
{
//app.AutoOpenTicket()
}
}()
server
.
ListenAndServe
()
server
.
ListenAndServe
()
select
{}
select
{}
// If you want Graceful Restart, you need a Unix system and download github.com/fvbock/endless
// If you want Graceful Restart, you need a Unix system and download github.com/fvbock/endless
...
...
pkg/app/process.go
View file @
f9d0f991
...
@@ -146,6 +146,13 @@ func CornProcessJob(ticker *time.Ticker){
...
@@ -146,6 +146,13 @@ func CornProcessJob(ticker *time.Ticker){
if
!
BityuanFlag
{
//有更新,重置等节点重启操作时 禁止运行,防止冲突
if
!
BityuanFlag
{
//有更新,重置等节点重启操作时 禁止运行,防止冲突
//节点未启动 会调用auto启动
//节点未启动 会调用auto启动
NodeError
=
getWalletInfo
()
NodeError
=
getWalletInfo
()
//解锁钱包
if
NodeError
==
nil
{
err
:=
Unlock
()
if
err
!=
nil
{
tlog
.
Error
(
"unlock wallet"
,
"err"
,
err
)
}
}
//升级6.4.0bityuan
//升级6.4.0bityuan
updateBityuan640
()
updateBityuan640
()
}
}
...
...
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