OSDN Git Service

extract api from blockchain (#478)
[bytom/bytom.git] / cmd / miner / main.go
index 2f65a10..ecccf3e 100644 (file)
@@ -5,7 +5,7 @@ import (
        "fmt"
        "os"
 
-       "github.com/bytom/api"
+       "github.com/bytom/blockchain"
        "github.com/bytom/consensus/difficulty"
        "github.com/bytom/protocol/bc"
        "github.com/bytom/protocol/bc/types"
@@ -61,7 +61,7 @@ func main() {
                fmt.Println(err)
                os.Exit(1)
        }
-       resp := &api.GetWorkResp{}
+       resp := &blockchain.GetWorkResp{}
        if err = json.Unmarshal(rawData, resp); err != nil {
                fmt.Println(err)
                os.Exit(1)