Wladimir J. van der Laan
90926db238
Merge #11021 : [rpc] fix getchaintxstats()
...
07704c1 Add some tests for getchaintxstats (Akio Nakamura)
3336676 Fix getchaintxstats() (Akio Nakamura)
Pull request description:
1. calculate nblocks more adaptive.
-> set default nblocks to min (blocks for 1 month, target block's height - 1)
-> before PR: if not specify nblocks-parameter, illegal parameter error will happen when target block height is below nblocks.
2. correct error message.
-> nblocks accepts [1 .. block's height -1] . so add a word "-1".
3. add check 0-divide.
-> if nTimeDiff = 0 then use UniValue(UniValue::VNULL) and returns {... "txrate": null} .
-> before PR: if nTimeDiff = 0 then returns {... "txrate":} and bitcoin-cli cannot handle the response.
Tree-SHA512: e1962ce7bb05a5bc7dec03eb04a8e7578f50fdb68927fcfc0a2232905ef4d679293eee148ebe0866682d209a8c458d21fbe71715e7311adb81f37089aae1ed93
2017-10-02 15:22:41 +02:00
..
2017-09-11 15:51:36 -04:00
2017-08-28 17:57:44 +02:00
2017-09-15 14:07:41 +03:00
2017-09-05 23:15:55 +02:00
2017-08-01 12:40:42 -07:00
2017-09-30 18:07:55 +02:00
2017-09-06 20:14:52 +02:00
2017-10-02 15:04:43 +02:00
2017-10-02 15:22:41 +02:00
2017-10-02 15:10:40 +02:00
2017-06-22 19:18:10 +03:00
2017-09-16 13:06:05 +03:00
2017-10-02 14:46:47 +02:00
2017-08-16 16:33:25 +02:00
2017-09-30 18:07:55 +02:00
2017-08-21 18:25:48 +02:00
2017-07-04 18:05:18 +02:00
2017-06-01 16:42:07 -07:00
2017-08-16 16:33:25 +02:00
2017-08-07 07:36:37 +02:00
2017-09-05 17:32:06 -07:00
2017-06-07 17:21:29 +00:00
2017-08-17 00:42:32 +02:00
2017-09-28 16:24:30 -07:00
2017-09-23 14:45:01 -07:00
2017-09-28 16:02:16 -07:00
2017-09-28 16:02:16 -07:00
2017-09-27 21:53:07 -04:00
2017-09-20 23:29:59 -04:00
2017-08-14 17:02:10 +02:00
2017-07-15 14:28:40 +02:00
2017-08-16 16:33:25 +02:00
2017-06-22 03:48:52 +02:00
2017-08-07 07:36:37 +02:00
2017-09-07 11:17:35 +08:00
2017-09-28 16:24:30 -07:00
2017-09-28 16:24:30 -07:00
2017-09-06 01:18:35 +02:00
2017-07-30 14:04:51 +02:00
2017-08-07 07:36:37 +02:00
2017-08-16 16:33:25 +02:00
2017-09-29 14:50:30 +08:00
2017-08-16 10:24:18 +02:00
2017-09-16 13:06:05 +03:00
2017-07-22 09:11:55 +02:00
2017-07-08 13:33:01 -07:00
2017-08-16 16:33:25 +02:00
2017-08-17 10:42:51 -07:00
2017-07-07 10:45:31 -07:00
2017-07-12 14:03:42 -04:00
2017-09-06 13:07:45 -07:00
2017-08-26 02:56:53 +03:00
2017-09-04 18:06:44 -07:00
2017-08-16 16:33:25 +02:00
2017-06-09 10:25:26 +02:00
2017-05-19 02:01:28 -07:00
2017-07-08 13:33:01 -07:00
2017-09-21 23:40:33 -07:00
2017-08-16 16:33:25 +02:00
2017-06-12 20:37:43 +02:00
2017-08-21 18:25:48 +02:00
2017-08-16 16:33:25 +02:00
2017-09-27 14:38:13 +02:00
2017-07-17 14:56:52 +02:00
2017-08-07 07:36:37 +02:00
2017-09-21 23:40:33 -07:00
2017-06-09 10:25:26 +02:00
2017-09-07 22:04:18 +02:00
2017-08-16 16:33:25 +02:00
2017-09-28 16:02:16 -07:00
2017-06-09 19:25:36 -07:00
2017-07-13 12:49:05 -04:00
2017-06-09 19:25:36 -07:00
2017-09-05 15:02:17 +12:00
2017-09-28 16:02:16 -07:00
2017-06-22 03:48:52 +02:00
2017-07-17 15:12:39 -07:00
2017-07-25 13:46:52 +02:00
2017-09-11 15:51:25 -04:00
2017-09-18 23:40:38 +00:00
2017-09-12 12:30:26 -04:00
2017-09-06 19:32:04 -04:00
2017-09-28 17:05:47 +02:00
2017-09-22 16:05:50 -07:00
2017-08-07 07:36:37 +02:00
2017-08-16 16:33:25 +02:00
2017-09-28 17:05:47 +02:00
2017-09-18 13:47:47 -04:00
2017-08-16 16:33:25 +02:00
2017-08-07 07:36:37 +02:00
2017-08-26 02:56:53 +03:00
2017-06-26 13:40:26 +02:00
2017-08-16 16:33:25 +02:00
2017-08-07 07:36:37 +02:00
2017-08-16 16:33:25 +02:00
2017-08-22 09:38:49 +02:00
2017-06-14 15:22:15 +02:00
2017-09-06 21:44:18 +02:00
2017-08-16 16:33:25 +02:00
2017-08-16 16:33:25 +02:00
2017-08-16 16:33:25 +02:00
2017-08-16 16:33:25 +02:00
2017-09-16 13:06:05 +03:00
2017-09-30 22:43:55 +01:00
2017-08-16 16:33:25 +02:00
2017-08-14 17:02:10 +02:00
2017-08-16 16:33:25 +02:00
2017-08-16 16:33:25 +02:00
2017-09-07 09:21:04 -07:00
2017-09-16 13:06:05 +03:00
2017-09-11 18:07:52 -04:00
2017-09-11 15:51:37 -04:00
2017-08-20 20:04:15 -04:00
2017-09-08 10:36:26 +12:00
2017-09-21 23:40:33 -07:00
2017-08-16 16:33:25 +02:00
2017-08-16 16:09:27 +02:00
2017-08-16 16:09:27 +02:00
2017-08-07 17:10:42 +02:00
2017-09-05 15:05:28 -04:00
2017-09-28 16:24:30 -07:00
2017-08-07 07:36:37 +02:00
2017-05-10 15:49:00 -04:00
2017-09-29 15:07:57 +02:00
2017-09-29 15:07:57 +02:00
2017-08-16 16:33:25 +02:00
2017-07-15 20:04:04 +02:00
2017-06-09 01:45:36 +02:00
2017-08-16 16:33:25 +02:00
2017-08-07 07:36:37 +02:00
2017-08-14 17:02:10 +02:00
2017-07-22 09:55:57 +02:00