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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user