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
0
Merge Requests
0
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
ligaishun
chain33-pai
Commits
29c7f65e
Commit
29c7f65e
authored
Sep 20, 2019
by
szh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add walletstatus
parent
f9e65631
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
9 deletions
+6
-9
pai.go
service/pai_service/pai.go
+6
-9
No files found.
service/pai_service/pai.go
View file @
29c7f65e
...
...
@@ -23,13 +23,7 @@ type Pai struct {
NetInfo
*
types
.
NodeNetInfo
`json:"net_info"`
}
var
pai_serial
string
func
(
p
*
Pai
)
GetConfig
()
bool
{
if
pai_serial
!=
""
{
logging
.
Debug
(
"pai_serial"
,
pai_serial
)
p
.
Serial
=
pai_serial
}
if
p
.
Serial
!=
""
{
return
true
}
...
...
@@ -74,6 +68,12 @@ func (p *Pai) GetDevstatus() error {
return
err
}
p
.
NetInfo
=
netinfo
walletstatus
,
err
:=
client
.
GetWalletStatus
()
if
err
!=
nil
{
logging
.
Error
(
"GetDevstatus GetWalletStatus err"
,
err
)
return
err
}
p
.
WalletStatus
=
walletstatus
return
nil
}
...
...
@@ -108,9 +108,6 @@ func getPaiConfig(command string ,arg ...string) (config map[string]string,err e
//fmt.Println("KEY:",k, "VAL:", v)
if
_
,
ok
:=
list
[
k
];
!
ok
{
list
[
k
]
=
v
if
k
==
"serial"
{
pai_serial
=
v
}
}
}
}
...
...
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