From 95840c40b952ac24bf9a03134e9acac9b697931f Mon Sep 17 00:00:00 2001 From: Ole <64090338+OlMi1@users.noreply.github.com> Date: Wed, 15 Mar 2023 15:38:40 +0100 Subject: [PATCH] Update syntax Update readme for syntax of V1.1 --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 2564995..f2d3825 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ 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. @@ -34,6 +34,6 @@ If you do not specify anything and there was a payout in the last 100 rows, your 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`).