OSDN Git Service
(root)
/
bytom
/
vapor.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b5b6c1
)
fix bug
author
Chengcheng Zhang
<943420582@qq.com>
Wed, 10 Jul 2019 02:02:16 +0000
(10:02 +0800)
committer
Chengcheng Zhang
<943420582@qq.com>
Wed, 10 Jul 2019 02:02:16 +0000
(10:02 +0800)
account/accounts.go
patch
|
blob
|
history
diff --git
a/account/accounts.go
b/account/accounts.go
index
90e6b32
..
36540b9
100644
(file)
--- a/
account/accounts.go
+++ b/
account/accounts.go
@@
-380,7
+380,9
@@
func (m *Manager) GetCoinbaseControlProgram() ([]byte, error) {
// GetCoinbaseCtrlProgram will return the coinbase CtrlProgram
func (m *Manager) GetCoinbaseCtrlProgram() (*CtrlProgram, error) {
- if _, err := m.store.GetMiningAddress(); err != nil {
+ if cp, err := m.store.GetMiningAddress(); cp != nil {
+ return cp, nil
+ } else if err != ErrFindMiningAddress {
return nil, err
}