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:
9725f31
)
update /get-block-header api in cmd/miner
author
HAOYUatHZ
<haoyu@protonmail.com>
Tue, 5 Jun 2018 01:23:51 +0000
(09:23 +0800)
committer
HAOYUatHZ
<haoyu@protonmail.com>
Tue, 5 Jun 2018 01:23:51 +0000
(09:23 +0800)
cmd/miner/main.go
patch
|
blob
|
history
diff --git
a/cmd/miner/main.go
b/cmd/miner/main.go
index
43b87da
..
d9a2f40
100644
(file)
--- a/
cmd/miner/main.go
+++ b/
cmd/miner/main.go
@@
-51,7
+51,7
@@
func getBlockHeaderByHeight(height uint64) {
Reward uint64 `json:"reward"`
}
- data, _ := util.ClientCall("/get-block-header
-by-height
", Req{BlockHeight: height})
+ data, _ := util.ClientCall("/get-block-header", Req{BlockHeight: height})
rawData, err := json.Marshal(data)
if err != nil {
log.Fatalln(err)