Skip to content

RequestTransactionDataError better management in JDC#754

Merged
GitGab19 merged 6 commits intostratum-mining:mainfrom
GitGab19:fix-request-tx-data-error
Feb 16, 2024
Merged

RequestTransactionDataError better management in JDC#754
GitGab19 merged 6 commits intostratum-mining:mainfrom
GitGab19:fix-request-tx-data-error

Conversation

@GitGab19
Copy link
Member

Fix #709

@GitGab19 GitGab19 marked this pull request as draft February 14, 2024 19:27
@github-actions
Copy link
Contributor

github-actions bot commented Feb 14, 2024

🐰Bencher

ReportFri, February 16, 2024 at 11:08:28 UTC
ProjectStratum v2 (SRI)
Branchfix-request-tx-data-error
Testbedsv1
BenchmarkEstimated CyclesEstimated Cycles Results
estimated cycles | (Δ%)
InstructionsInstructions Results
instructions | (Δ%)
L1 AccessesL1 Accesses Results
accesses | (Δ%)
L2 AccessesL2 Accesses Results
accesses | (Δ%)
RAM AccessesRAM Accesses Results
accesses | (Δ%)
get_authorize✅ (view plot)8546.000✅ (view plot)3746.000✅ (view plot)5246.000✅ (view plot)9.000✅ (view plot)93.000
get_submit✅ (view plot)95605.000✅ (view plot)59439.000✅ (view plot)85350.000✅ (view plot)56.000✅ (view plot)285.000
get_subscribe✅ (view plot)7999.000✅ (view plot)2841.000✅ (view plot)3969.000✅ (view plot)15.000✅ (view plot)113.000
serialize_authorize✅ (view plot)12269.000✅ (view plot)5317.000✅ (view plot)7409.000✅ (view plot)13.000✅ (view plot)137.000
serialize_deserialize_authorize✅ (view plot)24498.000✅ (view plot)9898.000✅ (view plot)13958.000✅ (view plot)36.000✅ (view plot)296.000
serialize_deserialize_handle_authorize✅ (view plot)30213.000✅ (view plot)12101.000✅ (view plot)17123.000✅ (view plot)56.000✅ (view plot)366.000
serialize_deserialize_handle_submit✅ (view plot)126406.000✅ (view plot)73224.000✅ (view plot)104946.000✅ (view plot)120.000✅ (view plot)596.000
serialize_deserialize_handle_subscribe✅ (view plot)27451.000✅ (view plot)9643.000✅ (view plot)13636.000✅ (view plot)68.000✅ (view plot)385.000
serialize_deserialize_submit✅ (view plot)115027.000✅ (view plot)68001.000✅ (view plot)97552.000✅ (view plot)72.000✅ (view plot)489.000
serialize_deserialize_subscribe✅ (view plot)22832.000✅ (view plot)8195.000✅ (view plot)11542.000✅ (view plot)39.000✅ (view plot)317.000
serialize_submit✅ (view plot)99888.000✅ (view plot)61483.000✅ (view plot)88198.000✅ (view plot)56.000✅ (view plot)326.000
serialize_subscribe✅ (view plot)11294.000✅ (view plot)4188.000✅ (view plot)5829.000✅ (view plot)15.000✅ (view plot)154.000

Bencher - Continuous Benchmarking
View Public Perf Page
Docs | Repo | Chat | Help

@github-actions
Copy link
Contributor

github-actions bot commented Feb 14, 2024

🐰Bencher

ReportFri, February 16, 2024 at 11:08:29 UTC
ProjectStratum v2 (SRI)
Branchfix-request-tx-data-error
Testbedsv2
BenchmarkLatencyLatency Results
nanoseconds (ns) | (Δ%)
client_sv2_handle_message_common✅ (view plot)44.144
client_sv2_handle_message_mining✅ (view plot)64.975
client_sv2_mining_message_submit_standard✅ (view plot)14.657
client_sv2_mining_message_submit_standard_serialize✅ (view plot)266.780
client_sv2_mining_message_submit_standard_serialize_deserialize✅ (view plot)582.020
client_sv2_open_channel✅ (view plot)162.500
client_sv2_open_channel_serialize✅ (view plot)292.580
client_sv2_open_channel_serialize_deserialize✅ (view plot)367.780
client_sv2_setup_connection✅ (view plot)164.790
client_sv2_setup_connection_serialize✅ (view plot)459.970
client_sv2_setup_connection_serialize_deserialize✅ (view plot)996.430

Bencher - Continuous Benchmarking
View Public Perf Page
Docs | Repo | Chat | Help

@github-actions
Copy link
Contributor

github-actions bot commented Feb 14, 2024

🐰Bencher

ReportFri, February 16, 2024 at 11:08:31 UTC
ProjectStratum v2 (SRI)
Branchfix-request-tx-data-error
Testbedsv1
BenchmarkLatencyLatency Results
nanoseconds (ns) | (Δ%)
client-submit-serialize✅ (view plot)6675.500
client-submit-serialize-deserialize✅ (view plot)7583.900
client-submit-serialize-deserialize-handle/client-submit-serialize-deserialize-handle✅ (view plot)8129.600
client-sv1-authorize-serialize-deserialize-handle/client-sv1-authorize-serialize-deserialize-handle✅ (view plot)895.700
client-sv1-authorize-serialize-deserialize/client-sv1-authorize-serialize-deserialize✅ (view plot)711.290
client-sv1-authorize-serialize/client-sv1-authorize-serialize✅ (view plot)247.350
client-sv1-get-authorize/client-sv1-get-authorize✅ (view plot)156.820
client-sv1-get-submit✅ (view plot)6535.000
client-sv1-get-subscribe/client-sv1-get-subscribe✅ (view plot)280.320
client-sv1-subscribe-serialize-deserialize-handle/client-sv1-subscribe-serialize-deserialize-handle✅ (view plot)738.200
client-sv1-subscribe-serialize-deserialize/client-sv1-subscribe-serialize-deserialize✅ (view plot)624.670
client-sv1-subscribe-serialize/client-sv1-subscribe-serialize✅ (view plot)208.280

Bencher - Continuous Benchmarking
View Public Perf Page
Docs | Repo | Chat | Help

@github-actions
Copy link
Contributor

github-actions bot commented Feb 14, 2024

🐰Bencher

ReportFri, February 16, 2024 at 11:08:29 UTC
ProjectStratum v2 (SRI)
Branchfix-request-tx-data-error
Testbedsv2
BenchmarkEstimated CyclesEstimated Cycles Results
estimated cycles | (Δ%)
InstructionsInstructions Results
instructions | (Δ%)
L1 AccessesL1 Accesses Results
accesses | (Δ%)
L2 AccessesL2 Accesses Results
accesses | (Δ%)
RAM AccessesRAM Accesses Results
accesses | (Δ%)
client_sv2_handle_message_common✅ (view plot)2025.000✅ (view plot)469.000✅ (view plot)730.000✅ (view plot)7.000✅ (view plot)36.000
client_sv2_handle_message_mining✅ (view plot)8155.000✅ (view plot)2075.000✅ (view plot)3055.000✅ (view plot)47.000✅ (view plot)139.000
client_sv2_mining_message_submit_standard✅ (view plot)6440.000✅ (view plot)1750.000✅ (view plot)2545.000✅ (view plot)23.000✅ (view plot)108.000
client_sv2_mining_message_submit_standard_serialize✅ (view plot)14703.000✅ (view plot)4694.000✅ (view plot)6748.000✅ (view plot)58.000✅ (view plot)219.000
client_sv2_mining_message_submit_standard_serialize_deserialize✅ (view plot)27378.000✅ (view plot)10537.000✅ (view plot)15328.000✅ (view plot)93.000✅ (view plot)331.000
client_sv2_open_channel✅ (view plot)4523.000✅ (view plot)1461.000✅ (view plot)2153.000✅ (view plot)12.000✅ (view plot)66.000
client_sv2_open_channel_serialize✅ (view plot)14010.000✅ (view plot)5064.000✅ (view plot)7320.000✅ (view plot)43.000✅ (view plot)185.000
client_sv2_open_channel_serialize_deserialize✅ (view plot)22414.000✅ (view plot)7979.000✅ (view plot)11614.000✅ (view plot)74.000✅ (view plot)298.000
client_sv2_setup_connection✅ (view plot)4719.000✅ (view plot)1502.000✅ (view plot)2274.000✅ (view plot)13.000✅ (view plot)68.000
client_sv2_setup_connection_serialize✅ (view plot)16112.000✅ (view plot)5963.000✅ (view plot)8657.000✅ (view plot)49.000✅ (view plot)206.000
client_sv2_setup_connection_serialize_deserialize✅ (view plot)35420.000✅ (view plot)14806.000✅ (view plot)21745.000✅ (view plot)103.000✅ (view plot)376.000

Bencher - Continuous Benchmarking
View Public Perf Page
Docs | Repo | Chat | Help

@GitGab19 GitGab19 marked this pull request as ready for review February 15, 2024 16:52
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since we match string here would be useful to log which is the string that is not parsable. So i suggest to use somthing like Error::NoValidTemplate(error-message)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done here 9693822

Copy link
Collaborator

@Fi3 Fi3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@GitGab19 GitGab19 force-pushed the fix-request-tx-data-error branch from ed82b7c to e364d9f Compare February 16, 2024 11:04
@Sjors
Copy link
Collaborator

Sjors commented Feb 16, 2024

Code looks reasonable to me, but I haven't tested.

@GitGab19 GitGab19 merged commit 94f6219 into stratum-mining:main Feb 16, 2024
@GitGab19 GitGab19 deleted the fix-request-tx-data-error branch July 7, 2025 16:27
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

Successfully merging this pull request may close these issues.

JDC panics after receiving RequestTransactionDataError message

3 participants

Comments