Skip to content

Commit

Permalink
integration: add tests for debug_getRawBlock and debug_getRawHeader (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
lupin012 authored Dec 23, 2024
1 parent f57e044 commit 0f15ff6
Show file tree
Hide file tree
Showing 12 changed files with 214 additions and 0 deletions.
18 changes: 18 additions & 0 deletions integration/mainnet/debug_getRawBlock/test_01.json

Large diffs are not rendered by default.

18 changes: 18 additions & 0 deletions integration/mainnet/debug_getRawBlock/test_02.json

Large diffs are not rendered by default.

18 changes: 18 additions & 0 deletions integration/mainnet/debug_getRawBlock/test_03.json

Large diffs are not rendered by default.

17 changes: 17 additions & 0 deletions integration/mainnet/debug_getRawBlock/test_04.json

Large diffs are not rendered by default.

18 changes: 18 additions & 0 deletions integration/mainnet/debug_getRawBlock/test_05.json

Large diffs are not rendered by default.

20 changes: 20 additions & 0 deletions integration/mainnet/debug_getRawBlock/test_06.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[
{
"request": {
"id": 1,
"jsonrpc": "2.0",
"method": "debug_getRawBlock",
"params": [
"0xFFFFFF0"
]
},
"response": {
"id": 1,
"jsonrpc": "2.0",
"error": {
"code": -32000,
"message": "block not found"
}
}
}
]
17 changes: 17 additions & 0 deletions integration/mainnet/debug_getRawHeader/test_01.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[
{
"request": {
"id": 1,
"jsonrpc": "2.0",
"method": "debug_getRawHeader",
"params": [
"0x472579"
]
},
"response": {
"id": 1,
"jsonrpc": "2.0",
"result": "0xf9020ea02eb39d583efb0e701126f4cb989146f34f8952084bbe1c8f3c6dca6941239c86a0c660176088e2d1e838d6e3fb94739ea61ea0d24a960b5f8b83f1fa31be8eb79894ea674fdde714fd979de3edf0f56aa9716b898ec8a0f5e61ba094cb38b1ddd2f6a2ad932524fe7a63516ada1cc94c0526e4333b15a8a0568bd5f223262bc09d99ae1f26a49ce50e865011226771b218f313dc9126bfbca0bcef8bd707455880f986c279902ab5ccde27a0813f4e42307fbfa42bdeab01c8b90100000212000040404002010804040000020000000800550800001224003420012a0008010010000000001000000000000206000000800000940003800020080000004010c008002401009060082000040000000001008000004081400218000000840001200240000005000040200018000002020009140100060001590000004024008200002440008802200000001050000010c0008000340000008020008100000804000008000800000040f0008000020004013040800008804000000000000000800200040000482c000100900084041040058a080a0420000000200020010002000400104000000100009000882059000b900011420800000000040000818705a8d9986a899e83472579836834db8340f2e3845a22b2c78d65746865726d696e652d657539a0e3f9f12a5ef6b408fbc63ba18150c4ec1f369263d6d013095dd24389010efd1088ffe50fe00154f5f7"
}
}
]
17 changes: 17 additions & 0 deletions integration/mainnet/debug_getRawHeader/test_02.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[
{
"request": {
"id": 1,
"jsonrpc": "2.0",
"method": "debug_getRawHeader",
"params": [
"0x1312D00"
]
},
"response": {
"id": 1,
"jsonrpc": "2.0",
"result": "0xf90258a0b390d63aac03bbef75de888d16bd56b91c9291c2a7e38d36ac24731351522bd1a01dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d493479495222290dd7278aa3ddd389cc1e1d165cc4bafe5a068421c2c599dc31396a09772a073fb421c4bd25ef1462914ef13e5dfa2d31c23a0f0280ae7fd02f2b9684be8d740830710cd62e4869c891c3a0ead32ea757e70a3a0b39f9f7a13a342751bd2c575eca303e224393d4e11d715866b114b7e824da608b9010094a9480614840b245a1a2148e2100e2070472151b44c3020280930809a20c011609520bc10080074a61c782411e34713ee19c560ca02208f4770080013bc5d302d84743dd0008c5d089d5b1c95940de80809888ba7ed68512d426c048934c8cc0a08dd440b461265001ee50909a26d0213000a7411242c72a648c87e104c0097a0aaba477628508533c5924867341dd11305aa372350b019244034dc849419968b00fd2dda39ecff042639c43923f0d48495d2a40468524bce13a86444c82071ca9c431208870b33f5320f680f3991c2349e2433c80440b0832016820e1070a4405aadcc40050a5006c24504f0098c4391e0f04047c824d1d88ca8021d240510808401312d008401c9c38083a9371c84665ba27f8f6265617665726275696c642e6f7267a085175443c2889afcb52288e0fa8804b671e582f9fd416071a70642d90c7dc0db88000000000000000085012643ff14a0f0747de0368fb967ede9b81320a5b01a4d85b3d427e8bc8e96ff371478d80e768302000080a0ec0befcffe8b2792fc5e7b67dac85ee3bbb09bc56b0ea5d9a698ec3b402d296f"
}
}
]
17 changes: 17 additions & 0 deletions integration/mainnet/debug_getRawHeader/test_03.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[
{
"request": {
"id": 1,
"jsonrpc": "2.0",
"method": "debug_getRawHeader",
"params": [
"0x1212D00"
]
},
"response": {
"id": 1,
"jsonrpc": "2.0",
"result": "0xf9023ba0a5c22fe832a8af795df6cc9f0d9591c1b3a8b960b986772b8e63e9011feee2fba01dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d4934794b5a8acc554fc3203deed23cfd8f5ad1e3caf280fa073ea497edd956a0d9caa83e051103b4b9dbd03b048bfb97357cedadf7af9b497a0d48618dbb186ab75582d23ddc226bcde20c0b5dbe0da61d993ecc3a6a478218ca0ca2fca49d1140470164e8bc040edad8af45a3af05796fce0bb197f2856e051e7b9010038634811750812232bac19c192249221300246120c654322621d3009606266351007cca1e0240ca02612bc3f601177760f83a0048c207ca022883171012c6d070c408498600148e97c60532e80a1c0e8d8d441b3176c98e021941907b1240a053a965080272a4f6a106c5d6581060d44fb184c8401a466c6b65c085a801a000c5761c44f186508f02a4538dc13082004a1438511eb6544b8c9152142341e09f8ae6c9f574958ee52029850c4199f07cb8761dd242a0a82ff6d60260740064636d0321036ea020dc2f3848110c0691aae04c00806c6f801182624047a0694e642115aa058008320c70e8501063a348000e53a98051b8880f500099b08f9341649808401212d008401c9c38083aa50b0846599e41b98546974616e2028746974616e6275696c6465722e78797a29a0fc4df94c9ff6d48708b3bf5221a8c0125f2698a67d579e208803899303c34133880000000000000000850579b3251ea0c6b6e13ae4bac248d9985ef5ea9a6a6de7819befa6c2e9890f0fdc73c6501821"
}
}
]
17 changes: 17 additions & 0 deletions integration/mainnet/debug_getRawHeader/test_04.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[
{
"request": {
"id": 1,
"jsonrpc": "2.0",
"method": "debug_getRawHeader",
"params": [
"0x1212EF0"
]
},
"response": {
"id": 1,
"jsonrpc": "2.0",
"result": "0xf90233a0819b6c671eaa0440d88b4b43d65201b97ca694c25bd42f049e222392fa7dec0ea01dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d493479495222290dd7278aa3ddd389cc1e1d165cc4bafe5a084eec92f7fc0a4130c12523049e3324e83fccc200a0e0363f3481775efe53862a06ba2f058884089c92d9226b862171c896b03d93b60ac3b37c18a2a3f32bc9cfea0ea7c165ec7c94a631b7dbad1c0317f701c5bbc8d1b2c533288f6dcc90cd093e6b9010014eb4771edc653951237ab2085a22b2b716a37a49c03c27e3ac18513762f7de6ec1d55c984928ca826145a256e79dd82dfd384089b06be215be5e51b1c6eba0ec162d41e5450592d9b126beb5bf90c7c14750e9f09643d14f2571c1eb136309030481d1012271f67644558814e766cf32ef120b60c78fc29d00e22de088fcb4a26a50778720903ea2244b54dc12b110660c39c89b904a0edc92c4076abba98f3d3a26527b228a386173373f03d13bc9e54e965f4430501e254f104a4e68cc1c00b3664a280279945037290f55668fada11681586670ab1d516dd320a1ee1ef56307b24f8c39d03bc728e968a553d5493ac3ad55a53e5d0788f053aabb831d583808401212ef08401c9c38084012f9b3a846599fbeb8f6265617665726275696c642e6f7267a05dc14ab2152530bdf75e8b3aa69ade3c4a4ee66ee2025dbe66b067a0a2e770d58800000000000000008502c184c25fa0d90357da260d0a28eb3614f2cdcee57f22204d4f1f15f5e2fa10713f50242e4c"
}
}
]
17 changes: 17 additions & 0 deletions integration/mainnet/debug_getRawHeader/test_05.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[
{
"request": {
"id": 1,
"jsonrpc": "2.0",
"method": "debug_getRawHeader",
"params": [
"0x1322EF0"
]
},
"response": {
"id": 1,
"jsonrpc": "2.0",
"result": "0xf90265a016577011a8f532da89b23fd82d7dc7219874875c24fdf4aa598527588331b855a01dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d4934794388c818ca8b9251b393131c08a736a67ccb19297a0beecec7b85e73f381148a836ca36913dfadad34df634fb78cf53ddf304d9d475a0473983b4b1539c180a52a21ffca22e342cb445008e04771c0bad90ada68cdf60a0bcd11be1b75237b5be79a6c6cd9350de62813caa4f83a2c5837213de5df8f698b9010000298000000049069800100080100480100000080200020004414000002a000b025001c040a80010040815002004410002218240884a280008000000102a40044010000820400028ac026808508000300000000000cc4801280004000024648072420000020a40300004a00000004850014081019000040002000010120d0000852202c08002000000480000402622a0881046014128004a082002c21e30901002850100004420208a84608038223384cc081200040948000000010600000002201024020048200028000200ca01810080010a020400201227002003000020000030201005000800018000000000400402101000000122900088008020101640808401322ef08401c9c380832d1db3846667ca6f99d883010e00846765746888676f312e32322e32856c696e7578a014dbf2b884ada810213eee0a700d74786051613c05d676a42e9757a2cbfe523c880000000000000000850185de7952a08644b0d4a141b8636345e9d7965d5a13fa347948168c99a6329f06c99021ffa6830c0000838e0000a095b1d23d6a233d26fde97a2707693748a6c51bb8c5e90e7c11f902a8848be84c"
}
}
]
20 changes: 20 additions & 0 deletions integration/mainnet/debug_getRawHeader/test_06.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[
{
"request": {
"id": 1,
"jsonrpc": "2.0",
"method": "debug_getRawHeader",
"params": [
"0xFFFFEF0"
]
},
"response": {
"id": 1,
"jsonrpc": "2.0",
"error": {
"code": -32000,
"message": "header not found"
}
}
}
]

0 comments on commit 0f15ff6

Please sign in to comment.