Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Block minner message remove deprecated logic #545

Closed
zmcNotafraid opened this issue Feb 20, 2024 · 2 comments
Closed

Block minner message remove deprecated logic #545

zmcNotafraid opened this issue Feb 20, 2024 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@zmcNotafraid
Copy link
Member

浏览器关于 miner message 的显示最近是有什么改动吗? 数据看起来不太正常
https://explorer.nervos.org/block/0x2a802f870b86b8ca56366c2f8424cb1117ac9796f6638052c1024148c1128c50
这个区块, 通过 rpc
curl -X POST -H 'content-type: application/json' -d '{"id":0,"jsonrpc":"2.0","method":"get_block","params":["0x2a802f870b86b8ca56366c2f8424cb1117ac9796f6638052c1024148c1128c50"]}' https://mainnet.ckbapp.dev/
{"jsonrpc":"2.0","result":{"extension":"0x430f7a8e732faabb4773f1cd0cdaf036adfeb76e5bec6a7d38df290bab1f0fdd","header":{"compact_target":"0x19031d44","dao":"0x8726743dfe86314ea07349f4b5542800cb212f394733360600ad00e62e8e3e07","epoch":"0x15600860023a1","extra_hash":"0xa71cb989abfc0e929ff59656b3cb0f937a1831d8cb6af9a563a86e6b5ecb233d","hash":"0x2a802f870b86b8ca56366c2f8424cb1117ac9796f6638052c1024148c1128c50","nonce":"0xd2a8528e32254f3600000005b7a1004c","number":"0xb6feb4","parent_hash":"0xd82c191fd92fe1151b03f1736f5d40a9815e03b33824489a2e47d9a143907509","proposals_hash":"0x0000000000000000000000000000000000000000000000000000000000000000","timestamp":"0x18d1f9d995c","transactions_root":"0x0e976abdbd1ca4d3664d0737d1d3bb8d943a0971384046072621213da97e24e8","version":"0x0"},"proposals":[],"transactions":[{"cell_deps":[],"hash":"0xc3e6ec314394b060a51a857e4af3d13580829ab26e652d647353e07e4a37cee1","header_deps":[],"inputs":[{"previous_output":{"index":"0xffffffff","tx_hash":"0x0000000000000000000000000000000000000000000000000000000000000000"},"since":"0xb6feb4"}],"outputs":[{"capacity":"0x45b15c1df3","lock":{"args":"0xed99d08d751ae32df7fc6f3048b7cca56c3bfafa","code_hash":"0x9bd7e06f3ecf4be0f2fcd2188b23f1b9fcc88e5d4b65a8637b17723bbda3cce8","hash_type":"type"},"type":null}],"outputs_data":["0x"],"version":"0x0","witnesses":["0x7a0000000c00000055000000490000001000000030000000310000009bd7e06f3ecf4be0f2fcd2188b23f1b9fcc88e5d4b65a8637b17723bbda3cce801140000007164f48d7a5bf2298166f8d81b81ea4e908e16ad210000000000000020302e3131312e3020286161613531353820323032332d30392d313429"]}],"uncles":[]},"id":0}
拿到的 witness message 是0000000020302e3131312e3020286161613531353820323032332d30392d313429
但是浏览器里面显示的是 225c75303030305c75303030305c75303030305c753030303020302e3131312e3020286161613531353820323032332d3039326433313334323922

@zmcNotafraid zmcNotafraid self-assigned this Feb 20, 2024
@zmcNotafraid zmcNotafraid added the enhancement New feature or request label Feb 20, 2024
@zmcNotafraid
Copy link
Member Author

It was caused by this code: https://github.com/nervosnetwork/ckb-explorer/pull/848/files
And why use 28 here the reason was unknown, so we remove this code now.

@zmcNotafraid
Copy link
Member Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Archived in project
Development

No branches or pull requests

1 participant