OSDN Git Service

update /get-block-header api in cmd/miner
authorHAOYUatHZ <haoyu@protonmail.com>
Tue, 5 Jun 2018 01:23:51 +0000 (09:23 +0800)
committerHAOYUatHZ <haoyu@protonmail.com>
Tue, 5 Jun 2018 01:23:51 +0000 (09:23 +0800)
cmd/miner/main.go

index 43b87da..d9a2f40 100644 (file)
@@ -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)