From 492e9ee9ffddffc728dc611ab4258d4c58764cd7 Mon Sep 17 00:00:00 2001 From: zhangbin Date: Thu, 7 Jul 2022 20:05:25 +0800 Subject: [PATCH] set pbft.miner.address use file path and address --- cmd/utils/flags.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/utils/flags.go b/cmd/utils/flags.go index b4eb928f8..ea0cd521f 100644 --- a/cmd/utils/flags.go +++ b/cmd/utils/flags.go @@ -1163,6 +1163,9 @@ func MakeMinerCoinbaseAddress(ctx *cli.Context) string { if path == "" { return "" } + if common.IsHexAddress(path) { + return path + } text, err := ioutil.ReadFile(path) if err != nil { Fatalf("Failed to read pbft.miner.address file: %v", err)