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:
180c89d
)
fix return the error (#1246)
author
Derek
<shanhu5739@gmail.com>
Mon, 13 Aug 2018 03:06:49 +0000
(11:06 +0800)
committer
Paladz
<yzhu101@uottawa.ca>
Mon, 13 Aug 2018 03:06:49 +0000
(11:06 +0800)
* fix the coinbase generate bug (#1136)
* fix return the error
blockchain/pseudohsm/image.go
patch
|
blob
|
history
diff --git
a/blockchain/pseudohsm/image.go
b/blockchain/pseudohsm/image.go
index
f4b0679
..
7a13a72
100644
(file)
--- a/
blockchain/pseudohsm/image.go
+++ b/
blockchain/pseudohsm/image.go
@@
-50,7
+50,7
@@
func (h *HSM) Restore(image *KeyImage) error {
_, fileName := filepath.Split(xKey.ID)
file := h.keyStore.JoinPath(keyFileName(fileName))
if err := writeKeyFile(file, rawKey); err != nil {
- return
nil
+ return
err
}
}
h.cache.maybeReload()