mirror of
https://github.com/MeexReay/sRAC.git
synced 2025-05-07 13:48:03 +03:00
fix dumb no accounts timeout exploit
This commit is contained in:
parent
8ee5e017a4
commit
999c5e4de5
@ -79,7 +79,7 @@ impl Context {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn get_account_by_addr(&self, addr: &str) -> Option<Account> {
|
fn get_account_by_addr(&self, addr: &str) -> Option<Account> {
|
||||||
for acc in self.accounts.read().unwrap().iter() {
|
for acc in self.accounts.read().unwrap().iter().rev() {
|
||||||
if acc.addr() == addr {
|
if acc.addr() == addr {
|
||||||
return Some(acc.clone())
|
return Some(acc.clone())
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user