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

For RandomX, the same extra filed is presented in the difficulty calculation multiple times #60

Open
hansieodendaal opened this issue Sep 20, 2024 · 0 comments

Comments

@hansieodendaal
Copy link
Contributor

hansieodendaal commented Sep 20, 2024

I do not know if this is an issue, but it seems off.

[2024-09-20 10:19:10.105773100 [c::pow::monero_rx] DEBUG Extra field: ExtraField([MergeMining(0, 0xd7ce0b664bbc8f3859168ee2bd1d30f98d724acd0f5f2bc674c5c287308bc099), TxPublicKey(06ac1f204f9a3aebb4363a9290cbd1cfb43de3f6ef6392e6b5e300b805d7e723), Nonce([116, 231, 104, 239, 78, 46, 249, 156])])
[2024-09-20 10:19:11.583071300 [c::pow::monero_rx] DEBUG Extra field: ExtraField([MergeMining(0, 0xd7ce0b664bbc8f3859168ee2bd1d30f98d724acd0f5f2bc674c5c287308bc099), TxPublicKey(06ac1f204f9a3aebb4363a9290cbd1cfb43de3f6ef6392e6b5e300b805d7e723), Nonce([116, 231, 104, 239, 78, 46, 249, 156])])
[2024-09-20 10:19:13.095370100 [c::pow::monero_rx] DEBUG Extra field: ExtraField([MergeMining(0, 0xd7ce0b664bbc8f3859168ee2bd1d30f98d724acd0f5f2bc674c5c287308bc099), TxPublicKey(06ac1f204f9a3aebb4363a9290cbd1cfb43de3f6ef6392e6b5e300b805d7e723), Nonce([116, 231, 104, 239, 78, 46, 249, 156])])
[2024-09-20 10:19:14.686410300 [c::pow::monero_rx] DEBUG Extra field: ExtraField([MergeMining(0, 0xd7ce0b664bbc8f3859168ee2bd1d30f98d724acd0f5f2bc674c5c287308bc099), TxPublicKey(06ac1f204f9a3aebb4363a9290cbd1cfb43de3f6ef6392e6b5e300b805d7e723), Nonce([116, 231, 104, 239, 78, 46, 249, 156])])
[2024-09-20 10:19:16.247066700 [c::pow::monero_rx] DEBUG Extra field: ExtraField([MergeMining(0, 0xd7ce0b664bbc8f3859168ee2bd1d30f98d724acd0f5f2bc674c5c287308bc099), TxPublicKey(06ac1f204f9a3aebb4363a9290cbd1cfb43de3f6ef6392e6b5e300b805d7e723), Nonce([116, 231, 104, 239, 78, 46, 249, 156])])
[2024-09-20 10:19:17.740897200 [c::pow::monero_rx] DEBUG Extra field: ExtraField([MergeMining(0, 0xd7ce0b664bbc8f3859168ee2bd1d30f98d724acd0f5f2bc674c5c287308bc099), TxPublicKey(06ac1f204f9a3aebb4363a9290cbd1cfb43de3f6ef6392e6b5e300b805d7e723), Nonce([116, 231, 104, 239, 78, 46, 249, 156])])
[2024-09-20 10:19:20.292068000 [c::pow::monero_rx] DEBUG Extra field: ExtraField([MergeMining(0, 0xd7ce0b664bbc8f3859168ee2bd1d30f98d724acd0f5f2bc674c5c287308bc099), TxPublicKey(06ac1f204f9a3aebb4363a9290cbd1cfb43de3f6ef6392e6b5e300b805d7e723), Nonce([116, 231, 104, 239, 78, 46, 249, 156])])
[2024-09-20 10:19:21.173753700 [c::pow::monero_rx] DEBUG Extra field: ExtraField([MergeMining(0, 0xd7ce0b664bbc8f3859168ee2bd1d30f98d724acd0f5f2bc674c5c287308bc099), TxPublicKey(06ac1f204f9a3aebb4363a9290cbd1cfb43de3f6ef6392e6b5e300b805d7e723), Nonce([116, 231, 104, 239, 78, 46, 249, 156])])
[2024-09-20 10:19:23.337429800 [c::pow::monero_rx] DEBUG Extra field: ExtraField([MergeMining(0, 0xd7ce0b664bbc8f3859168ee2bd1d30f98d724acd0f5f2bc674c5c287308bc099), TxPublicKey(06ac1f204f9a3aebb4363a9290cbd1cfb43de3f6ef6392e6b5e300b805d7e723), Nonce([116, 231, 104, 239, 78, 46, 249, 156])])
[2024-09-20 10:19:24.223938200 [c::pow::monero_rx] DEBUG Extra field: ExtraField([MergeMining(0, 0xd7ce0b664bbc8f3859168ee2bd1d30f98d724acd0f5f2bc674c5c287308bc099), TxPublicKey(06ac1f204f9a3aebb4363a9290cbd1cfb43de3f6ef6392e6b5e300b805d7e723), Nonce([116, 231, 104, 239, 78, 46, 249, 156])])
[2024-09-20 10:19:27.572715100 [c::pow::monero_rx] DEBUG Extra field: ExtraField([MergeMining(0, 0xd7ce0b664bbc8f3859168ee2bd1d30f98d724acd0f5f2bc674c5c287308bc099), TxPublicKey(06ac1f204f9a3aebb4363a9290cbd1cfb43de3f6ef6392e6b5e300b805d7e723), Nonce([116, 231, 104, 239, 78, 46, 249, 156])])
[2024-09-20 10:19:28.493072700 [c::pow::monero_rx] DEBUG Extra field: ExtraField([MergeMining(0, 0xd7ce0b664bbc8f3859168ee2bd1d30f98d724acd0f5f2bc674c5c287308bc099), TxPublicKey(06ac1f204f9a3aebb4363a9290cbd1cfb43de3f6ef6392e6b5e300b805d7e723), Nonce([116, 231, 104, 239, 78, 46, 249, 156])])
[2024-09-20 10:19:29.773668700 [c::pow::monero_rx] DEBUG Extra field: ExtraField([MergeMining(0, 0xd7ce0b664bbc8f3859168ee2bd1d30f98d724acd0f5f2bc674c5c287308bc099), TxPublicKey(06ac1f204f9a3aebb4363a9290cbd1cfb43de3f6ef6392e6b5e300b805d7e723), Nonce([116, 231, 104, 239, 78, 46, 249, 156])])
[2024-09-20 10:19:30.451065900 [c::pow::monero_rx] DEBUG Extra field: ExtraField([MergeMining(0, 0xd7ce0b664bbc8f3859168ee2bd1d30f98d724acd0f5f2bc674c5c287308bc099), TxPublicKey(06ac1f204f9a3aebb4363a9290cbd1cfb43de3f6ef6392e6b5e300b805d7e723), Nonce([116, 231, 104, 239, 78, 46, 249, 156])])
[2024-09-20 10:19:32.025380500 [c::pow::monero_rx] DEBUG Extra field: ExtraField([MergeMining(0, 0xd7ce0b664bbc8f3859168ee2bd1d30f98d724acd0f5f2bc674c5c287308bc099), TxPublicKey(06ac1f204f9a3aebb4363a9290cbd1cfb43de3f6ef6392e6b5e300b805d7e723), Nonce([116, 231, 104, 239, 78, 46, 249, 156])])
[2024-09-20 10:19:33.536758600 [c::pow::monero_rx] DEBUG Extra field: ExtraField([MergeMining(0, 0xd7ce0b664bbc8f3859168ee2bd1d30f98d724acd0f5f2bc674c5c287308bc099), TxPublicKey(06ac1f204f9a3aebb4363a9290cbd1cfb43de3f6ef6392e6b5e300b805d7e723), Nonce([116, 231, 104, 239, 78, 46, 249, 156])])

all the way to

[2024-09-20 11:26:25.712405900 [c::pow::monero_rx] DEBUG Extra field: ExtraField([MergeMining(0, 0xd7ce0b664bbc8f3859168ee2bd1d30f98d724acd0f5f2bc674c5c287308bc099), TxPublicKey(06ac1f204f9a3aebb4363a9290cbd1cfb43de3f6ef6392e6b5e300b805d7e723), Nonce([116, 231, 104, 239, 78, 46, 249, 156])])
[2024-09-20 11:26:52.595521400 [c::pow::monero_rx] DEBUG Extra field: ExtraField([MergeMining(0, 0xd7ce0b664bbc8f3859168ee2bd1d30f98d724acd0f5f2bc674c5c287308bc099), TxPublicKey(06ac1f204f9a3aebb4363a9290cbd1cfb43de3f6ef6392e6b5e300b805d7e723), Nonce([116, 231, 104, 239, 78, 46, 249, 156])])
[2024-09-20 11:26:52.866870200 [c::pow::monero_rx] DEBUG Extra field: ExtraField([MergeMining(0, 0xd7ce0b664bbc8f3859168ee2bd1d30f98d724acd0f5f2bc674c5c287308bc099), TxPublicKey(06ac1f204f9a3aebb4363a9290cbd1cfb43de3f6ef6392e6b5e300b805d7e723), Nonce([116, 231, 104, 239, 78, 46, 249, 156])])
[2024-09-20 11:26:52.925926000 [c::pow::monero_rx] DEBUG Extra field: ExtraField([MergeMining(0, 0xd7ce0b664bbc8f3859168ee2bd1d30f98d724acd0f5f2bc674c5c287308bc099), TxPublicKey(06ac1f204f9a3aebb4363a9290cbd1cfb43de3f6ef6392e6b5e300b805d7e723), Nonce([116, 231, 104, 239, 78, 46, 249, 156])])
[2024-09-20 11:26:52.944927700 [c::pow::monero_rx] DEBUG Extra field: ExtraField([MergeMining(0, 0xd7ce0b664bbc8f3859168ee2bd1d30f98d724acd0f5f2bc674c5c287308bc099), TxPublicKey(06ac1f204f9a3aebb4363a9290cbd1cfb43de3f6ef6392e6b5e300b805d7e723), Nonce([116, 231, 104, 239, 78, 46, 249, 156])])
[2024-09-20 11:26:52.962504700 [c::pow::monero_rx] DEBUG Extra field: ExtraField([MergeMining(0, 0xd7ce0b664bbc8f3859168ee2bd1d30f98d724acd0f5f2bc674c5c287308bc099), TxPublicKey(06ac1f204f9a3aebb4363a9290cbd1cfb43de3f6ef6392e6b5e300b805d7e723), Nonce([116, 231, 104, 239, 78, 46, 249, 156])])
[2024-09-20 11:26:52.980352400 [c::pow::monero_rx] DEBUG Extra field: ExtraField([MergeMining(0, 0xd7ce0b664bbc8f3859168ee2bd1d30f98d724acd0f5f2bc674c5c287308bc099), TxPublicKey(06ac1f204f9a3aebb4363a9290cbd1cfb43de3f6ef6392e6b5e300b805d7e723), Nonce([116, 231, 104, 239, 78, 46, 249, 156])])
[2024-09-20 11:26:52.997369200 [c::pow::monero_rx] DEBUG Extra field: ExtraField([MergeMining(0, 0xd7ce0b664bbc8f3859168ee2bd1d30f98d724acd0f5f2bc674c5c287308bc099), TxPublicKey(06ac1f204f9a3aebb4363a9290cbd1cfb43de3f6ef6392e6b5e300b805d7e723), Nonce([116, 231, 104, 239, 78, 46, 249, 156])])
[2024-09-20 11:26:53.015905400 [c::pow::monero_rx] DEBUG Extra field: ExtraField([MergeMining(0, 0xd7ce0b664bbc8f3859168ee2bd1d30f98d724acd0f5f2bc674c5c287308bc099), TxPublicKey(06ac1f204f9a3aebb4363a9290cbd1cfb43de3f6ef6392e6b5e300b805d7e723), Nonce([116, 231, 104, 239, 78, 46, 249, 156])])
[2024-09-20 11:26:53.037034000 [c::pow::monero_rx] DEBUG Extra field: ExtraField([MergeMining(0, 0xd7ce0b664bbc8f3859168ee2bd1d30f98d724acd0f5f2bc674c5c287308bc099), TxPublicKey(06ac1f204f9a3aebb4363a9290cbd1cfb43de3f6ef6392e6b5e300b805d7e723), Nonce([116, 231, 104, 239, 78, 46, 249, 156])])
[2024-09-20 11:26:53.057397300 [c::pow::monero_rx] DEBUG Extra field: ExtraField([MergeMining(0, 0xd7ce0b664bbc8f3859168ee2bd1d30f98d724acd0f5f2bc674c5c287308bc099), TxPublicKey(06ac1f204f9a3aebb4363a9290cbd1cfb43de3f6ef6392e6b5e300b805d7e723), Nonce([116, 231, 104, 239, 78, 46, 249, 156])])
[2024-09-20 11:26:53.078279600 [c::pow::monero_rx] DEBUG Extra field: ExtraField([MergeMining(0, 0xd7ce0b664bbc8f3859168ee2bd1d30f98d724acd0f5f2bc674c5c287308bc099), TxPublicKey(06ac1f204f9a3aebb4363a9290cbd1cfb43de3f6ef6392e6b5e300b805d7e723), Nonce([116, 231, 104, 239, 78, 46, 249, 156])])
[2024-09-20 11:26:53.097386000 [c::pow::monero_rx] DEBUG Extra field: ExtraField([MergeMining(0, 0xd7ce0b664bbc8f3859168ee2bd1d30f98d724acd0f5f2bc674c5c287308bc099), TxPublicKey(06ac1f204f9a3aebb4363a9290cbd1cfb43de3f6ef6392e6b5e300b805d7e723), Nonce([116, 231, 104, 239, 78, 46, 249, 156])])
[2024-09-20 11:26:53.114052100 [c::pow::monero_rx] DEBUG Extra field: ExtraField([MergeMining(0, 0xd7ce0b664bbc8f3859168ee2bd1d30f98d724acd0f5f2bc674c5c287308bc099), TxPublicKey(06ac1f204f9a3aebb4363a9290cbd1cfb43de3f6ef6392e6b5e300b805d7e723), Nonce([116, 231, 104, 239, 78, 46, 249, 156])])
[2024-09-20 11:26:53.132459500 [c::pow::monero_rx] DEBUG Extra field: ExtraField([MergeMining(0, 0xd7ce0b664bbc8f3859168ee2bd1d30f98d724acd0f5f2bc674c5c287308bc099), TxPublicKey(06ac1f204f9a3aebb4363a9290cbd1cfb43de3f6ef6392e6b5e300b805d7e723), Nonce([116, 231, 104, 239, 78, 46, 249, 156])])
[2024-09-20 11:26:53.149518700 [c::pow::monero_rx] DEBUG Extra field: ExtraField([MergeMining(0, 0xd7ce0b664bbc8f3859168ee2bd1d30f98d724acd0f5f2bc674c5c287308bc099), TxPublicKey(06ac1f204f9a3aebb4363a9290cbd1cfb43de3f6ef6392e6b5e300b805d7e723), Nonce([116, 231, 104, 239, 78, 46, 249, 156])])
[2024-09-20 11:26:53.169660600 [c::pow::monero_rx] DEBUG Extra field: ExtraField([MergeMining(0, 0xd7ce0b664bbc8f3859168ee2bd1d30f98d724acd0f5f2bc674c5c287308bc099), TxPublicKey(06ac1f204f9a3aebb4363a9290cbd1cfb43de3f6ef6392e6b5e300b805d7e723), Nonce([116, 231, 104, 239, 78, 46, 249, 156])])
[2024-09-20 11:26:53.208324900 [c::pow::monero_rx] DEBUG Extra field: ExtraField([MergeMining(0, 0xd7ce0b664bbc8f3859168ee2bd1d30f98d724acd0f5f2bc674c5c287308bc099), TxPublicKey(06ac1f204f9a3aebb4363a9290cbd1cfb43de3f6ef6392e6b5e300b805d7e723), Nonce([116, 231, 104, 239, 78, 46, 249, 156])])

Called by randomx_difficulty( in

        let request_block_difficulty = match origin_block_header.pow.pow_algo {
            PowAlgorithm::Sha3x => {
                sha3x_difficulty(origin_block_header).map_err(|error| Status::internal(error.to_string()))?
            },
            PowAlgorithm::RandomX => randomx_difficulty(
                origin_block_header,
                self.block_validation_params.random_x_factory(),
                self.block_validation_params.genesis_block_hash(),
                self.block_validation_params.consensus_manager(),
            )
            .map_err(|error| Status::internal(error.to_string()))?,
        };
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant