mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-17 13:07:54 +02:00
Merge 4a58b6acd2 into merged_master (Bitcoin PR bitcoin/bitcoin#24797)
This commit is contained in:
commit
e97784928b
1 changed files with 4 additions and 0 deletions
|
|
@ -364,6 +364,10 @@ class RESTTest (BitcoinTestFramework):
|
|||
json_obj = self.test_rest_request("/chaininfo")
|
||||
assert_equal(json_obj['bestblockhash'], bb_hash)
|
||||
|
||||
# Compare with normal RPC getblockchaininfo response
|
||||
blockchain_info = self.nodes[0].getblockchaininfo()
|
||||
assert_equal(blockchain_info, json_obj)
|
||||
|
||||
# Test compatibility of deprecated and newer endpoints
|
||||
self.log.info("Test compatibility of deprecated and newer endpoints")
|
||||
assert_equal(self.test_rest_request(f"/headers/{bb_hash}", query_params={"count": 1}), self.test_rest_request(f"/headers/1/{bb_hash}"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue