Skip to content

test(ltc): stratum session tests wait for the job notify, not a fixed read budget - #2357

Merged
frstrtr merged 1 commit into
masterfrom
test/ltc-split-job-wait
Nov 28, 2026
Merged

frstrtr merged 1 commit into
masterfrom
test/ltc-split-job-wait

Conversation

@frstrtr

@frstrtr frstrtr commented Nov 28, 2026

Copy link
Copy Markdown
Owner

Test only: src/impl/ltc/test/merged_aux_hardening_test.cpp.

  • After mining.subscribe or mining.authorize, the session tests read the socket for a fixed budget (2 x 50 ms receive timeouts after a 0.5 s build poll). Under ASan on a loaded runner the job notify can arrive later, and MergedAuxStratumSession.AJobBuiltBeforeTheLoginKeepsItsSplitThroughTheAuthorize saw an empty job id after subscribe (two consecutive linux-asan runs of dash: opt-out for the v24 provider special txs (types 10-12) and v3 ProTx payloads in embedded templates #2352, 1 of 6932).
  • LineClient::wait_new_job(prev) reads until a mining.notify sets a job id other than prev, up to 10 s. It is used at the four subscribe sites that assert a job and at that test's authorize site.

vm905, ASan+UBSan share_test: MergedAuxStratumSession.* x20 serial and 8 parallel copies x10 under load, all PASSED.

… read budget

After mining.subscribe or mining.authorize the session tests read the
socket for a fixed number of 50 ms receive timeouts; under ASan on a loaded
runner the job notify can arrive later (MergedAuxStratumSession.
AJobBuiltBeforeTheLoginKeepsItsSplitThroughTheAuthorize, last_job empty
after subscribe). LineClient::wait_new_job reads until a mining.notify
sets a job id other than the previous one (up to 10 s); the four
subscribe sites and the authorize site in that test use it.
@frstrtr
frstrtr merged commit fb94d82 into master Nov 28, 2026
51 of 52 checks passed
frstrtr added a commit that referenced this pull request Nov 28, 2026
master brings #2353 (one scrypt per DGB submit: the vardiff gate's digest
reused by mining_submit for byte-equal headers), #2361, #2357, #2352 and
#2363. work_source.cpp keeps both sides; its include block takes both
<atomic> and <cctype>.
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.

1 participant