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:
92c0186
)
fix argument name of keyFileName
author
freewind
<nowindlee@gmail.com>
Tue, 8 May 2018 10:37:20 +0000
(18:37 +0800)
committer
freewind
<nowindlee@gmail.com>
Tue, 8 May 2018 10:37:20 +0000
(18:37 +0800)
blockchain/pseudohsm/key.go
patch
|
blob
|
history
diff --git
a/blockchain/pseudohsm/key.go
b/blockchain/pseudohsm/key.go
index
55405c8
..
54a08b8
100644
(file)
--- a/
blockchain/pseudohsm/key.go
+++ b/
blockchain/pseudohsm/key.go
@@
-95,9
+95,9
@@
func zeroKey(k *XKey) {
// keyFileName implements the naming convention for keyfiles:
// UTC--<created_at UTC ISO8601>-<address hex>
-func keyFileName(key
Alias
string) string {
+func keyFileName(key
Id
string) string {
ts := time.Now().UTC()
- return fmt.Sprintf("UTC--%s--%s", toISO8601(ts), key
Alias
)
+ return fmt.Sprintf("UTC--%s--%s", toISO8601(ts), key
Id
)
}
func toISO8601(t time.Time) string {