Skip to content

Commit

Permalink
Removed totalDifficulty from Blockschema (#570)
Browse files Browse the repository at this point in the history
removed total difficulty
  • Loading branch information
Giulio2002 authored Sep 4, 2024
1 parent 8d0e757 commit 9e16d5e
Show file tree
Hide file tree
Showing 10 changed files with 6 additions and 33 deletions.
16 changes: 0 additions & 16 deletions graphql.json
Original file line number Diff line number Diff line change
Expand Up @@ -473,22 +473,6 @@
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "totalDifficulty",
"description": "TotalDifficulty is the sum of all difficulty values up to and including\nthis block.",
"args": [],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "BigInt",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "ommerCount",
"description": "OmmerCount is the number of ommers (AKA uncles) associated with this\nblock. If ommers are unavailable, this field will be null.",
Expand Down
6 changes: 0 additions & 6 deletions schema.graphqls
Original file line number Diff line number Diff line change
Expand Up @@ -122,12 +122,6 @@ type Block {
"""Difficulty is a measure of the difficulty of mining this block."""
difficulty: BigInt!

"""
TotalDifficulty is the sum of all difficulty values up to and including
this block.
"""
totalDifficulty: BigInt!

"""
OmmerCount is the number of ommers (AKA uncles) associated with this
block. If ommers are unavailable, this field will be null.
Expand Down
2 changes: 0 additions & 2 deletions src/debug/getters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@
receiptsRoot: '0xccd2d33763dc0ac3fe02d4ecbbcd7d2bdc6f57db635ba31007184679303721d7'
miner: '0x0000000000000000000000000000000000000000'
difficulty: '0x1'
totalDifficulty: '0x1'
extraData: '0x00000000000000000000000000000000000000000000000000000000000000008c6a091f07e4ba3930f2f5fabbfc5b1c70986319096760ba200a6abc0d30e33c2d501702d1b58d7f75807bdbf981044557628611319121170b96466ec06bb3fd01'
size: '0x3a0'
gasLimit: '0xffffffffffff'
Expand Down Expand Up @@ -145,7 +144,6 @@
receiptsRoot: '0x2b5c77f6e7764d2468178fab7253346b9b8bb6a34b63946f6bdc2f5ad398bfc3'
miner: '0x0000000000000000000000000000000000000000'
difficulty: '0x2'
totalDifficulty: '0x2'
extraData: '0x00000000000000000000000000000000000000000000000000000000000000004d04551bdd9ae08af1fd661e49d4ab662c98c532c7ec0e4656a27e4de7d330af578ab1e4f5e49e085ff1d78673c7388ed9ccf017fbe89e53066bfa4018142c0701'
size: '0x3a0'
gasLimit: '0xffffffffffff'
Expand Down
3 changes: 0 additions & 3 deletions src/schemas/block.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,6 @@ Block:
nonce:
title: Nonce
$ref: '#/components/schemas/bytes8'
totalDifficulty:
title: Total difficulty
$ref: '#/components/schemas/uint'
baseFeePerGas:
title: Base fee per gas
$ref: '#/components/schemas/uint'
Expand Down
2 changes: 1 addition & 1 deletion tests/eth_getBlockByHash/get-block-by-hash.io
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// gets block 1
>> {"jsonrpc":"2.0","id":1,"method":"eth_getBlockByHash","params":["0xac5c61edb087a51279674fe01d5c1f65eac3fd8597f9bea215058e745df8088e",true]}
<< {"jsonrpc":"2.0","id":1,"result":{"baseFeePerGas":"0x342770c0","blobGasUsed":"0x0","difficulty":"0x0","excessBlobGas":"0x0","extraData":"0x","gasLimit":"0x23f3e20","gasUsed":"0x4ee5f","hash":"0xac5c61edb087a51279674fe01d5c1f65eac3fd8597f9bea215058e745df8088e","logsBloom":"0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","miner":"0x0000000000000000000000000000000000000000","mixHash":"0x0000000000000000000000000000000000000000000000000000000000000000","nonce":"0x0000000000000000","number":"0x1","parentBeaconBlockRoot":"0x83472eda6eb475906aeeb7f09e757ba9f6663b9f6a5bf8611d6306f677f67ebd","parentHash":"0x414c637788e37e9f65ed2c6ee962d32aeea39722ad50ee764e712fabebd69118","receiptsRoot":"0x061f3f6edb0780e654014c901221182d4818a7bcdc83d2bee4346808ba112d6d","sha3Uncles":"0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347","size":"0x514","stateRoot":"0x1d8e1da7d359fcd42fc571a957cc1f8991cc0b363c1221a2b3a3f84172cdbaaf","timestamp":"0xa","totalDifficulty":"0x20000","transactions":[{"blockHash":"0xac5c61edb087a51279674fe01d5c1f65eac3fd8597f9bea215058e745df8088e","blockNumber":"0x1","from":"0x7435ed30a8b4aeb0877cef0c6e8cffe834eb865f","gas":"0x131ec","gasPrice":"0x342770c1","hash":"0xbdb37c763e721bf1a0e94e0bc72db704110b2ccc6720713708744422a2cc95d6","input":"0x600d380380600d6000396000f360004381526020014681526020014181526020014881526020014481526020013281526020013481526020016000f3","nonce":"0x0","to":null,"transactionIndex":"0x0","value":"0x0","type":"0x0","chainId":"0xc72dd9d5e883e","v":"0x18e5bb3abd10a0","r":"0xdf95c12446d276292221a19cca4f3e678f113a412bf3845bd85dc5bb5bd87def","s":"0x523b1712e2f5a7b421f5740d32f51fd33a525026a21fd89770a55480ad28732"},{"blockHash":"0xac5c61edb087a51279674fe01d5c1f65eac3fd8597f9bea215058e745df8088e","blockNumber":"0x1","from":"0x7435ed30a8b4aeb0877cef0c6e8cffe834eb865f","gas":"0x15036","gasPrice":"0x342770c1","hash":"0x9f89ad067ded5c5ba1b582f430010bb755c0b98a1d8cc8ae7d4faed9d63ec6be","input":"0x600d380380600d6000396000f3366002146022577177726f6e672d63616c6c6461746173697a656000526012600efd5b60003560f01c61ff01146047576d77726f6e672d63616c6c64617461600052600e6012fd5b61ffee6000526002601ef3","nonce":"0x1","to":null,"transactionIndex":"0x1","value":"0x0","type":"0x0","chainId":"0xc72dd9d5e883e","v":"0x18e5bb3abd10a0","r":"0x1a51471246dada5e38db19abda77b1e87eb740585b1869c524d9d3fad02a1f51","s":"0x50b40c0a0788d8769d5978a7be7467f5fba4cf785a498bde8264ae4e9b5d06a5"},{"blockHash":"0xac5c61edb087a51279674fe01d5c1f65eac3fd8597f9bea215058e745df8088e","blockNumber":"0x1","from":"0x7435ed30a8b4aeb0877cef0c6e8cffe834eb865f","gas":"0x17e4e","gasPrice":"0x342770c1","hash":"0x0bc1f055c79d640cb2b9d12708e3f55d82766596349e24bb3715dd996924a2d2","input":"0x600d380380600d6000396000f360003515156036577f4e487b7100000000000000000000000000000000000000000000000000000000600052600160045260246000fd5b7f08c379a0000000000000000000000000000000000000000000000000000000006000526020600452600a6024527f75736572206572726f7200000000000000000000000000000000000000000000604452604e6000fd","nonce":"0x2","to":null,"transactionIndex":"0x2","value":"0x0","type":"0x0","chainId":"0xc72dd9d5e883e","v":"0x18e5bb3abd109f","r":"0x8d66915ead62020f39d2a369b4fcc72f9cba2080aba35e26831df3ea59c995f0","s":"0x3e790e94433eb0822ed9854aff51406e67c9b090cc5ce3002204737e8857f95b"},{"blockHash":"0xac5c61edb087a51279674fe01d5c1f65eac3fd8597f9bea215058e745df8088e","blockNumber":"0x1","from":"0x7435ed30a8b4aeb0877cef0c6e8cffe834eb865f","gas":"0x1bc1c","gasPrice":"0x342770c1","hash":"0x97cb777e677baaddaf9d5c1c2f2d8efe8db65f7cc29a8baf78a427f92504bc47","input":"0x43600052600060205260405b604060002060208051600101905281526020016101408110600b57506101006040f3","nonce":"0x3","to":null,"transactionIndex":"0x3","value":"0x0","type":"0x0","chainId":"0xc72dd9d5e883e","v":"0x18e5bb3abd10a0","r":"0xcdf976a093022e24e498e02cd505a09307321d11f6f3f8b9e5456153b912631a","s":"0x3aecc24af018c1188130f7032aacca3f5cde8958937d2bcdf2b037e917cd70a5"}],"transactionsRoot":"0x34a71287a6d86acb93b854cef7007ae18bc484597cc05773e7d5a9f6ed21d9c5","uncles":[],"withdrawals":[],"withdrawalsRoot":"0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421"}}
<< {"jsonrpc":"2.0","id":1,"result":{"baseFeePerGas":"0x342770c0","blobGasUsed":"0x0","difficulty":"0x0","excessBlobGas":"0x0","extraData":"0x","gasLimit":"0x23f3e20","gasUsed":"0x4ee5f","hash":"0xac5c61edb087a51279674fe01d5c1f65eac3fd8597f9bea215058e745df8088e","logsBloom":"0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000","miner":"0x0000000000000000000000000000000000000000","mixHash":"0x0000000000000000000000000000000000000000000000000000000000000000","nonce":"0x0000000000000000","number":"0x1","parentBeaconBlockRoot":"0x83472eda6eb475906aeeb7f09e757ba9f6663b9f6a5bf8611d6306f677f67ebd","parentHash":"0x414c637788e37e9f65ed2c6ee962d32aeea39722ad50ee764e712fabebd69118","receiptsRoot":"0x061f3f6edb0780e654014c901221182d4818a7bcdc83d2bee4346808ba112d6d","sha3Uncles":"0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347","size":"0x514","stateRoot":"0x1d8e1da7d359fcd42fc571a957cc1f8991cc0b363c1221a2b3a3f84172cdbaaf","timestamp":"0xa","transactions":[{"blockHash":"0xac5c61edb087a51279674fe01d5c1f65eac3fd8597f9bea215058e745df8088e","blockNumber":"0x1","from":"0x7435ed30a8b4aeb0877cef0c6e8cffe834eb865f","gas":"0x131ec","gasPrice":"0x342770c1","hash":"0xbdb37c763e721bf1a0e94e0bc72db704110b2ccc6720713708744422a2cc95d6","input":"0x600d380380600d6000396000f360004381526020014681526020014181526020014881526020014481526020013281526020013481526020016000f3","nonce":"0x0","to":null,"transactionIndex":"0x0","value":"0x0","type":"0x0","chainId":"0xc72dd9d5e883e","v":"0x18e5bb3abd10a0","r":"0xdf95c12446d276292221a19cca4f3e678f113a412bf3845bd85dc5bb5bd87def","s":"0x523b1712e2f5a7b421f5740d32f51fd33a525026a21fd89770a55480ad28732"},{"blockHash":"0xac5c61edb087a51279674fe01d5c1f65eac3fd8597f9bea215058e745df8088e","blockNumber":"0x1","from":"0x7435ed30a8b4aeb0877cef0c6e8cffe834eb865f","gas":"0x15036","gasPrice":"0x342770c1","hash":"0x9f89ad067ded5c5ba1b582f430010bb755c0b98a1d8cc8ae7d4faed9d63ec6be","input":"0x600d380380600d6000396000f3366002146022577177726f6e672d63616c6c6461746173697a656000526012600efd5b60003560f01c61ff01146047576d77726f6e672d63616c6c64617461600052600e6012fd5b61ffee6000526002601ef3","nonce":"0x1","to":null,"transactionIndex":"0x1","value":"0x0","type":"0x0","chainId":"0xc72dd9d5e883e","v":"0x18e5bb3abd10a0","r":"0x1a51471246dada5e38db19abda77b1e87eb740585b1869c524d9d3fad02a1f51","s":"0x50b40c0a0788d8769d5978a7be7467f5fba4cf785a498bde8264ae4e9b5d06a5"},{"blockHash":"0xac5c61edb087a51279674fe01d5c1f65eac3fd8597f9bea215058e745df8088e","blockNumber":"0x1","from":"0x7435ed30a8b4aeb0877cef0c6e8cffe834eb865f","gas":"0x17e4e","gasPrice":"0x342770c1","hash":"0x0bc1f055c79d640cb2b9d12708e3f55d82766596349e24bb3715dd996924a2d2","input":"0x600d380380600d6000396000f360003515156036577f4e487b7100000000000000000000000000000000000000000000000000000000600052600160045260246000fd5b7f08c379a0000000000000000000000000000000000000000000000000000000006000526020600452600a6024527f75736572206572726f7200000000000000000000000000000000000000000000604452604e6000fd","nonce":"0x2","to":null,"transactionIndex":"0x2","value":"0x0","type":"0x0","chainId":"0xc72dd9d5e883e","v":"0x18e5bb3abd109f","r":"0x8d66915ead62020f39d2a369b4fcc72f9cba2080aba35e26831df3ea59c995f0","s":"0x3e790e94433eb0822ed9854aff51406e67c9b090cc5ce3002204737e8857f95b"},{"blockHash":"0xac5c61edb087a51279674fe01d5c1f65eac3fd8597f9bea215058e745df8088e","blockNumber":"0x1","from":"0x7435ed30a8b4aeb0877cef0c6e8cffe834eb865f","gas":"0x1bc1c","gasPrice":"0x342770c1","hash":"0x97cb777e677baaddaf9d5c1c2f2d8efe8db65f7cc29a8baf78a427f92504bc47","input":"0x43600052600060205260405b604060002060208051600101905281526020016101408110600b57506101006040f3","nonce":"0x3","to":null,"transactionIndex":"0x3","value":"0x0","type":"0x0","chainId":"0xc72dd9d5e883e","v":"0x18e5bb3abd10a0","r":"0xcdf976a093022e24e498e02cd505a09307321d11f6f3f8b9e5456153b912631a","s":"0x3aecc24af018c1188130f7032aacca3f5cde8958937d2bcdf2b037e917cd70a5"}],"transactionsRoot":"0x34a71287a6d86acb93b854cef7007ae18bc484597cc05773e7d5a9f6ed21d9c5","uncles":[],"withdrawals":[],"withdrawalsRoot":"0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421"}}
Loading

0 comments on commit 9e16d5e

Please sign in to comment.