From c5c5e0dbe8802b6e8dbb7307af98a209cbbdea87 Mon Sep 17 00:00:00 2001
From: Felix Lange <fjl@twurst.com>
Date: Mon, 18 Nov 2019 18:14:59 +0100
Subject: [PATCH] consensus/clique: fix struct tags for status API (#20316)

Also unexport the status struct.
---
 consensus/clique/api.go | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/consensus/clique/api.go b/consensus/clique/api.go
index fdb7b7a07..4739a403a 100644
--- a/consensus/clique/api.go
+++ b/consensus/clique/api.go
@@ -120,9 +120,9 @@ func (api *API) Discard(address common.Address) {
 	delete(api.clique.proposals, address)
 }
 
-type Status struct {
+type status struct {
 	InturnPercent float64                `json:"inturnPercent"`
-	SigningStatus map[common.Address]int `json:"sealerActivity""`
+	SigningStatus map[common.Address]int `json:"sealerActivity"`
 	NumBlocks     uint64                 `json:"numBlocks"`
 }
 
@@ -130,7 +130,7 @@ type Status struct {
 // - the number of active signers,
 // - the number of signers,
 // - the percentage of in-turn blocks
-func (api *API) Status() (*Status, error) {
+func (api *API) Status() (*status, error) {
 	var (
 		numBlocks = uint64(64)
 		header    = api.chain.CurrentHeader()
@@ -169,7 +169,7 @@ func (api *API) Status() (*Status, error) {
 		}
 		signStatus[sealer]++
 	}
-	return &Status{
+	return &status{
 		InturnPercent: float64((100 * optimals)) / float64(numBlocks),
 		SigningStatus: signStatus,
 		NumBlocks:     numBlocks,
-- 
GitLab