• Martin Holst Swende's avatar
    consensus/clique: add clique_status API method (#20103) · 3f4a875b
    Martin Holst Swende authored
    This PR introduces clique_status which gives info about the health of
    the clique network.
    
    It's currently a bit PITA to find out how a clique network is
    performing, and it can easily happen that sealers drop off -- and
    everything is 'fine' until one more signer drops off, and the network
    suddenly halts.
    
    The new method provides the following stats:
    
    - Which signers are currently active, and have signed blocks in the last
      N (set to 64) blocks?
    - How many blocks has each signer signed?
    - What is the difficulty in the last N blocks, compared to the
      theoretical maximum?
    3f4a875b
Name
Last commit
Last update
..
api.go Loading commit data...
clique.go Loading commit data...
clique_test.go Loading commit data...
snapshot.go Loading commit data...
snapshot_test.go Loading commit data...