From 20f9655c6649a2f7bf135fc13736763a42e7cac7 Mon Sep 17 00:00:00 2001 From: HAOYUatHZ Date: Tue, 5 Jun 2018 09:23:51 +0800 Subject: [PATCH] update /get-block-header api in cmd/miner --- cmd/miner/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/miner/main.go b/cmd/miner/main.go index 43b87da3..d9a2f40b 100644 --- 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) -- 2.11.0