Andrew Chow
d80348ccb6
Merge bitcoin/bitcoin#27853 : rest: bugfix, fix crash error when calling /deploymentinfo
...
7d452d826a7056411077b870efc3872bb2fa45e4 test: add coverage for `/deploymentinfo` passing a blockhash (brunoerg)
ce887eaf4917c337b21aa2e7811804ce003d36be rest: bugfix, fix crash error when calling `/deploymentinfo` (brunoerg)
Pull request description:
Calling `/deploymentinfo` passing a valid blockhash makes bitcoind to crash. It happens because we're pushing a JSON value of type array when it expects type object. See:
```cpp
jsonRequest.params = UniValue(UniValue::VARR);
```
```cpp
jsonRequest.params.pushKV("blockhash", hash_str);
```
This PR fixes it by changing `pushKV` to `push_back` and adds more test coverage.
ACKs for top commit:
achow101:
ACK 7d452d826a7056411077b870efc3872bb2fa45e4
stickies-v:
ACK 7d452d826a7056411077b870efc3872bb2fa45e4
Tree-SHA512: f01551e556aba2380c3eaed0bc59057304302c202d317d7c1eec5f7ef839851f672aed80819a8719cb1cbbad2aad735d6d44314ac7d6d98bff8217f5a16c312b
2023-06-12 18:34:42 -04:00
..
2023-05-30 11:39:59 -04:00
2023-05-30 17:26:51 +02:00
2023-04-03 14:44:48 +01:00
2023-02-06 13:56:51 -05:00
2023-05-04 20:58:01 +01:00
2023-06-08 16:38:36 -03:00
2023-04-19 10:48:30 +02:00
2023-06-12 12:54:49 -04:00
2023-05-20 12:08:13 +02:00
2023-05-30 16:52:47 +02:00
2023-01-31 18:48:50 +01:00
2022-10-23 15:03:04 +01:00
2023-06-12 12:54:49 -04:00
2023-05-20 12:08:13 +02:00
2022-12-24 23:49:50 +00:00
2023-06-12 12:54:49 -04:00
2023-06-07 03:29:05 -04:00
2023-05-20 12:08:13 +02:00
2023-04-14 10:35:51 -04:00
2023-03-23 19:38:38 +01:00
2023-06-09 14:58:49 -04:00
2023-06-02 16:18:11 +01:00
2023-05-30 17:26:47 +02:00
2023-06-12 16:53:16 +01:00
2023-05-26 13:41:07 -03:00
2023-03-26 20:18:13 +01:00
2023-05-30 17:26:51 +02:00
2023-05-29 13:26:31 +02:00
2023-03-17 17:59:02 -07:00
2023-03-17 17:59:02 -07:00
2023-03-17 18:02:40 -07:00
2022-12-24 23:49:50 +00:00
2023-02-01 11:33:35 +01:00
2023-05-04 20:57:51 +01:00
2023-05-20 12:08:13 +02:00
2023-03-23 12:55:18 +01:00
2022-12-24 23:49:50 +00:00
2022-12-24 23:49:50 +00:00
2022-12-24 23:49:50 +00:00
2023-05-30 17:15:22 +02:00
2023-05-20 12:08:13 +02:00
2023-05-20 12:08:13 +02:00
2023-05-20 12:08:13 +02:00
2023-05-20 12:08:13 +02:00
2023-06-10 11:10:29 -03:00
2023-05-20 12:08:13 +02:00
2023-02-15 14:42:28 -08:00
2023-01-31 19:34:35 +01:00
2022-12-24 23:49:50 +00:00
2022-12-24 23:49:50 +00:00
2023-01-05 09:05:14 +00:00
2023-05-25 19:24:05 +02:00
2023-05-25 19:24:05 +02:00
2023-05-10 10:39:58 +02:00
2023-05-10 10:39:58 +02:00
2023-04-20 06:08:22 -07:00
2023-03-21 13:04:21 +00:00
2022-12-24 23:49:50 +00:00
2022-12-24 23:49:50 +00:00
2023-03-23 19:38:38 +01:00
2023-03-23 19:38:38 +01:00
2023-02-03 18:15:42 +01:00
2023-01-26 10:44:05 +01:00
2023-05-20 12:08:13 +02:00
2023-01-31 11:50:10 +00:00
2023-03-23 12:55:18 +01:00
2023-03-23 12:55:18 +01:00
2023-03-15 16:42:42 +01:00
2023-03-15 16:42:42 +01:00
2022-12-24 23:49:50 +00:00
2022-12-24 23:49:50 +00:00
2023-04-19 10:48:30 +02:00
2023-05-09 18:48:52 +02:00
2023-05-20 12:08:13 +02:00
2023-03-23 12:52:00 +01:00
2023-04-03 14:41:22 +01:00
2022-12-24 23:49:50 +00:00
2023-01-30 15:57:12 +00:00
2022-12-12 21:06:04 +00:00
2022-12-12 21:06:04 +00:00
2023-05-09 18:47:14 +02:00
2023-05-26 13:41:07 -03:00
2022-12-24 23:49:50 +00:00
2023-05-20 12:08:13 +02:00
2023-03-23 12:55:18 +01:00
2023-06-09 17:52:23 -03:00
2023-06-09 17:52:23 -03:00
2023-05-25 06:30:10 +00:00
2023-01-31 19:34:35 +01:00
2023-01-31 11:50:10 +00:00
2023-04-05 11:50:27 +01:00
2023-03-23 12:55:18 +01:00
2023-05-30 17:26:47 +02:00
2023-05-05 06:03:14 -06:00
2023-02-27 13:53:29 +00:00
2023-02-03 22:33:14 +01:00
2022-11-17 14:52:45 +00:00
2023-03-23 19:38:38 +01:00
2023-05-19 10:26:19 -04:00
2023-05-30 11:39:59 -04:00
2023-01-28 15:24:13 +00:00
2023-03-23 19:38:38 +01:00
2023-05-30 11:39:59 -04:00
2022-12-24 23:49:50 +00:00
2023-06-08 11:52:30 +02:00
2023-05-23 13:07:49 -04:00
2022-12-24 23:49:50 +00:00
2023-06-09 14:21:19 -04:00
2023-05-23 13:07:49 -04:00
2023-02-17 13:34:40 -05:00
2023-02-17 13:34:40 -05:00
2023-05-26 13:41:07 -03:00
2023-05-26 13:41:07 -03:00
2022-12-24 23:49:50 +00:00
2022-12-24 23:49:50 +00:00
2023-04-16 23:48:05 +02:00
2022-12-24 23:49:50 +00:00
2022-12-24 23:49:50 +00:00
2022-12-24 23:49:50 +00:00
2022-12-24 23:49:50 +00:00
2023-05-20 12:08:13 +02:00
2023-05-15 10:18:58 +02:00
2023-04-21 14:06:12 -04:00
2023-04-21 14:06:12 -04:00
2023-01-13 09:40:57 +00:00
2023-01-13 09:40:57 +00:00
2023-05-20 17:20:01 +01:00
2023-02-15 14:58:47 +00:00
2023-04-03 14:44:48 +01:00
2023-06-12 10:24:14 -03:00
2023-01-12 13:42:44 +00:00
2022-12-24 23:49:50 +00:00
2022-12-24 23:49:50 +00:00
2023-01-31 11:50:10 +00:00
2023-06-09 17:52:23 -03:00
2023-06-09 17:52:23 -03:00
2023-05-20 12:08:13 +02:00
2023-01-31 11:50:10 +00:00
2023-06-01 10:27:33 -04:00
2023-01-25 09:33:26 +01:00
2023-04-19 10:48:30 +02:00
2022-12-24 23:49:50 +00:00
2023-01-31 11:50:10 +00:00
2023-05-26 13:40:02 -03:00
2023-03-23 12:55:18 +01:00
2023-05-24 08:55:47 -04:00
2023-05-29 13:26:31 +02:00
2023-06-07 03:29:05 -04:00
2023-06-12 16:53:16 +01:00
2023-01-26 10:36:18 +00:00
2023-01-26 10:36:18 +00:00
2023-05-31 15:43:01 +01:00
2022-12-10 14:34:44 -06:00
2023-02-06 13:56:51 -05:00
2023-06-12 13:20:18 +01:00
2023-06-12 13:20:18 +01:00
2023-02-01 11:33:35 +01:00
2023-01-05 09:05:14 +00:00
2023-05-15 10:18:58 +02:00
2023-01-03 19:31:29 -06:00
2022-12-24 23:49:50 +00:00
2022-12-24 23:49:50 +00:00
2023-05-20 12:08:13 +02:00