GetSize
implementation for SubmitSolutionJd
is incomplete
#1018
Labels
GetSize
implementation for SubmitSolutionJd
is incomplete
#1018
while working on #1003 I got stuck.
I kept getting
FramingSv2Error(BinarySv2Error(WriteError))
even though mySubmitSolution
message was perfectly defined on the MG test.After a few hours of debugging, I found the root cause:
stratum/protocols/v2/subprotocols/job-declaration/src/submit_solution.rs
Lines 12 to 34 in 7841021
the
GetSize
implementation is not accounting forself.version.get_size()
!that is causing
NoiseEncoder
to allocate a buffer that's smaller than what is actually needed, which eventually triggersFramingSv2Error(BinarySv2Error(WriteError))
during encodingThe text was updated successfully, but these errors were encountered: