DILSHAD737 commited on
Commit
8d5f77a
ยท
1 Parent(s): 78614ac

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +18 -3
app.py CHANGED
@@ -122,7 +122,6 @@ def init_worker(known):
122
  _get_mnemonic()
123
 
124
  def process_batch(batch):
125
- print(f"๐Ÿ” process_batch called with {len(batch)} phrases")
126
  hits = []
127
  known = _KNOWN
128
  for phrase in batch:
@@ -132,11 +131,27 @@ def process_batch(batch):
132
  passphrase=BIP39_PASSPHRASE,
133
  account_path=f"m/44'/60'/0'/0/{ADDRESS_INDEX}"
134
  )
135
- addr = acct.address.lower()
136
  priv = acct.key
137
- except Exception:
 
138
  continue
 
139
  normalized = normalize(addr)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
140
  if normalized in known:
141
  hits.append((phrase, priv.hex(), addr))
142
  return hits
 
122
  _get_mnemonic()
123
 
124
  def process_batch(batch):
 
125
  hits = []
126
  known = _KNOWN
127
  for phrase in batch:
 
131
  passphrase=BIP39_PASSPHRASE,
132
  account_path=f"m/44'/60'/0'/0/{ADDRESS_INDEX}"
133
  )
134
+ addr = acct.address
135
  priv = acct.key
136
+ except Exception as e:
137
+ print(f"โŒ Exception: {e}")
138
  continue
139
+
140
  normalized = normalize(addr)
141
+
142
+ # โœ… DEBUG: SIRF PEHLE PHRASE KE LIYE
143
+ if phrase == "lesson cushion crane affair federal decline limb spend reunion chief cart zebra":
144
+ print(f"\n๐Ÿ” DEBUG inside process_batch:")
145
+ print(f" phrase: {phrase}")
146
+ print(f" addr: {addr}")
147
+ print(f" normalized: {normalized}")
148
+ print(f" known size: {len(known):,}")
149
+ print(f" normalized in known: {normalized in known}")
150
+ target = "3f0482fc3e9132c3d3acb5f588e980d7b3a5af07"
151
+ print(f" target: {target}")
152
+ print(f" normalized == target: {normalized == target}")
153
+ print(f" target in known: {target in known}")
154
+
155
  if normalized in known:
156
  hits.append((phrase, priv.hex(), addr))
157
  return hits