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
@@ -1,6 +1,6 @@
|
||||
"""Test doubles for what the services ask of the network (B-76 and after)."""
|
||||
|
||||
from app.electrum.client import ElectrumRpcError
|
||||
from plm_engine.electrum.client import ElectrumRpcError
|
||||
|
||||
|
||||
def rpc_error(message: str, code: int = -26) -> ElectrumRpcError:
|
||||
@@ -72,7 +72,7 @@ class ScriptedNetwork(FakeNetwork):
|
||||
self.rebroadcast_calls: list[str] = []
|
||||
|
||||
async def get_histories(self, scripthash):
|
||||
from app.electrum.quorum import ServerAnswers
|
||||
from plm_engine.electrum.quorum import ServerAnswers
|
||||
|
||||
self.history_calls += 1
|
||||
return ServerAnswers(self.active, self.others, self.others_needed)
|
||||
@@ -81,7 +81,7 @@ class ScriptedNetwork(FakeNetwork):
|
||||
return self.spender
|
||||
|
||||
async def rebroadcast_everywhere(self, raw_tx_hex):
|
||||
from app.electrum.quorum import ServerAnswers
|
||||
from plm_engine.electrum.quorum import ServerAnswers
|
||||
|
||||
self.rebroadcast_calls.append(raw_tx_hex)
|
||||
active, others = self.rebroadcast if self.rebroadcast is not None else (None, (None, None))
|
||||
|
||||
Reference in new issue
Block a user