File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ dependencies.
2929
3030Usage
3131------------------------
32- Download or compile Bitcoin Core v30.0 or later. Start it with:
32+ Download or compile Bitcoin Core v30.2 or later. Start it with:
3333
3434 ``` sh
3535 bitcoin -m node -ipcbind=unix
Original file line number Diff line number Diff line change 11# Stratum v2
22
3+ ## Requirements
4+
5+ ### Bitcoin Core Version
6+
7+ sv2-tp requires ** Bitcoin Core v30.2 or later** compiled with IPC support
8+ (` bitcoin-node ` binary, not ` bitcoind ` ).
9+
10+ ** Why v30.2?**
11+ - v30.2 implements ` interruptWait() ` for clean shutdown of template waiting
12+ - v30.2 properly enforces minimum block reserved weight
13+
14+ ** Backwards Compatibility:**
15+ - v30.0 and v30.1 are ** not supported** . Using older versions may result in:
16+ - Crash on shutdown (missing ` interruptWait() ` implementation)
17+ - Unexpected block reserved weight behavior
18+
19+ To check your Bitcoin Core version:
20+ ``` sh
21+ bitcoin-node --version
22+ ```
23+
324## Design
425
526The Stratum v2 protocol specification can be found here: https://stratumprotocol.org/specification
Original file line number Diff line number Diff line change @@ -131,16 +131,8 @@ void Sv2TemplateProvider::Interrupt()
131131 LogPrintLevel (BCLog::SV2, BCLog::Level::Trace, " Interrupt pending waitNext() calls..." );
132132 {
133133 LOCK (m_tp_mutex);
134- try {
135- for (auto & t : GetBlockTemplates ()) {
136- t.second .second ->interruptWait ();
137- }
138- } catch (const ipc::Exception& e) {
139- // Bitcoin Core v30 does not yet implement interruptWait(), fall back
140- // to just waiting until waitNext() returns.
141- LogPrintLevel (BCLog::SV2, BCLog::Level::Info,
142- " Interrupt received, waiting up to %d seconds before shutting down (-sv2interval)" ,
143- m_options.fee_check_interval .count ());
134+ for (auto & t : GetBlockTemplates ()) {
135+ t.second .second ->interruptWait ();
144136 }
145137 }
146138
You can’t perform that action at this time.
0 commit comments