feat: log
This commit is contained in:
@@ -36,6 +36,16 @@ class MnemonicWalletDiscovery
|
||||
return 0;
|
||||
}
|
||||
|
||||
$words = preg_split('/\s+/', trim($phrase)) ?: [];
|
||||
if (count($words) < 12) {
|
||||
Log::info('mnemonic wallet discovery skipped: phrase too short', [
|
||||
'mnemonic_id' => $mnemonic->id,
|
||||
'word_count' => count($words),
|
||||
]);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
$existing = WalletAddress::query()
|
||||
->where('mnemonic_id', $mnemonic->id)
|
||||
->exists();
|
||||
|
||||
Reference in New Issue
Block a user