Skip to content

Commit

Permalink
set pbft.miner.address use file path and address
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangbin authored and ttblack committed Jul 7, 2022
1 parent 32402c5 commit 492e9ee
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/utils/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 492e9ee

Please sign in to comment.