hexresearch / hschain

Other
4 stars 0 forks source link

Add better logging to PoW #652

Closed Shimuuar closed 4 years ago

Shimuuar commented 4 years ago
$ jq -C < logs/node-2.log 'select(.msg=="New head")|{at,msg,data}'
...
{
  "at": "2020-07-28T16:05:03.931059783Z",
  "msg": "New head",
  "data": {
    "bid": "BoUMYNSqWJsvnPN1HbsDWzi4fCpCAdkZiTw4DCuuiUo6",
    "h": 26
  }
}
{
  "at": "2020-07-28T16:05:03.931059783Z",
  "msg": "New head",
  "data": {
    "bid": "HBYjNvZeTw2F5Y8DYtbrEcsC9G7rxz5qp6nnSEBic7qy",
    "h": 27
  }
...