Skip to content

Commit

Permalink
Update syntax
Browse files Browse the repository at this point in the history
Update readme for syntax of V1.1
  • Loading branch information
OlMi1 authored Mar 15, 2023
1 parent 1f52f17 commit 95840c4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ data = foo.read()
If you do not specify anything and there was a payout in the last 100 rows, your data may look like this:

```json
{"payout": {"amount": "0.00123456789", "timestamp": 1676707788}, "time": 0.016999244689941406}
{"payout": {"amount": "0.00123456789", "timestamp": 1676707788, "block":123456}, "exectime": 0.016999244689941406}
```

`time` refers to execution time. `{}` will be returned if there was no payout. Note that only the most recent (=lowest in file) payout will be shown.

If you choose to set `returnLines` to `True`, you will get something similar to this:

```json
{"payout": {}, "time": 0.008997917175292969, "lines": [{"type": "NOTICE", "timestamp": 1676731203, "module": "StratumServer", "payout": {"payout": false}, "content": "SHARE FOUND: mainchain height 2824691, sidechain height 3890718, diff 117341323, client xy user xy, effort 40.795%"}, {}]}
{"payout": {}, "exectime": 0.008997917175292969, "lines": [{"type": "NOTICE", "timestamp": 1676731203, "module": "StratumServer", "payout": {"payout": false}, "content": "SHARE FOUND: mainchain height 2824691, sidechain height 3890718, diff 117341323, client xy user xy, effort 40.795%"}, {}]}
```
Type stands for the message type, for instance NOTICE or WARN. Timestamp is the timestamp the message was logged, exact to the second. Module refers to whatever is the first word (ex. P2Pool, StratumServer). payout indicates whether the line contains a payout, and if yes, will show data about it (`{"amount": "0.00123456789", "timestamp": 1676707788}`).
Type stands for the message type, for instance NOTICE or WARN. Timestamp is the timestamp the message was logged, exact to the second. Module refers to whatever is the first word (ex. P2Pool, StratumServer). payout indicates whether the line contains a payout, and if yes, will show data about it (`{"amount": "0.00123456789", "timestamp": 1676707788}, "block": 123456`).

0 comments on commit 95840c4

Please sign in to comment.