OSDN Git Service
(root)
/
bytom
/
bytom.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1c173d0
)
modify list-pubkeys response order (#1170)
author
oysheng
<33340252+oysheng@users.noreply.github.com>
Tue, 24 Jul 2018 07:24:32 +0000
(15:24 +0800)
committer
Paladz
<yzhu101@uottawa.ca>
Tue, 24 Jul 2018 07:24:32 +0000
(15:24 +0800)
api/query.go
patch
|
blob
|
history
diff --git
a/api/query.go
b/api/query.go
index
79315ae
..
939adbd
100644
(file)
--- a/
api/query.go
+++ b/
api/query.go
@@
-318,10
+318,10
@@
func (a *API) listPubKeys(ctx context.Context, ins struct {
path = append(path, chainjson.HexBytes(p))
}
- pubKeyInfos = append(
[]PubKeyInfo{
{
+ pubKeyInfos = append(
pubKeyInfos, PubKeyInfo
{
Pubkey: hex.EncodeToString(pubkey),
Path: path,
- }
}, pubKeyInfos...
)
+ })
}
if len(pubKeyInfos) == 0 {