B1: plm_engine takes the modules without a database (ADR-59)
HD derivation (pure part), PSBT builder, Electrum client/merkle/quorum/scripthash, network profile, addresses and header checks move to plm_engine; the old stack imports them from there. A test forbids framework imports in the package. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
c9784efa07
commit
3ee60a23da
87 files changed
+290
-260
No files matched your search
@@ -362,7 +362,7 @@ async def test_a_failed_row_is_watched_for_fourteen_days_and_no_longer(session_f
|
||||
|
||||
async def test_a_refused_withdrawal_starts_its_watch_too(session_factory):
|
||||
"""DAT-36: `_release_failed_withdrawal` stamps failed_at like `_abandon`."""
|
||||
from app.electrum.client import ElectrumRpcError
|
||||
from plm_engine.electrum.client import ElectrumRpcError
|
||||
from app.withdrawals.service import WithdrawalError, request_withdrawal
|
||||
from tests.unit.fake_network import FakeNetwork
|
||||
from app.wallet.hd import derive_user_address
|
||||
@@ -416,7 +416,7 @@ class _Server:
|
||||
return self._txs[txid]
|
||||
|
||||
async def broadcast(self, raw):
|
||||
from app.electrum.client import ElectrumError, ElectrumRpcError
|
||||
from plm_engine.electrum.client import ElectrumError, ElectrumRpcError
|
||||
|
||||
self.broadcasted.append(raw)
|
||||
if self._broadcast is None:
|
||||
@@ -430,7 +430,7 @@ class _Server:
|
||||
|
||||
|
||||
def _make_listener(session_factory, active: _Server | None, others: dict[str, _Server]):
|
||||
from app.electrum.client import ElectrumEndpoint
|
||||
from plm_engine.electrum.client import ElectrumEndpoint
|
||||
from app.electrum.listener import ElectrumListener
|
||||
|
||||
endpoints = [ElectrumEndpoint("active.example", 50002, True)] + [ElectrumEndpoint(h, 50002, True) for h in others]
|
||||
|
||||
Reference in new issue
Block a user