You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Regex::new(r".* (max: |allowed for your plan: |is limited to |block range limit \(|exceeds max block range )(?P<max_block_count>\d+).*")
517
-
.expect("Invalid regex");
516
+
Regex::new(r".* (max: |allowed for your plan: |is limited to |block range limit \(|exceeds max block range |maximum allowed is )(?P<max_block_count>\d+).*")
517
+
.expect("Invalid regex");
518
518
let max_block_count = match error {
519
519
BlockchainInterfaceError::QueryFailed(msg) => match regex_result.captures(msg.as_str())
520
520
{
@@ -1539,7 +1539,7 @@ mod tests {
1539
1539
system.run();
1540
1540
let after = SystemTime::now();
1541
1541
let expected_transactions = RetrievedBlockchainTransactions{
let result = BlockchainError::QueryFailed("RPC error: Error { code: ServerError(-32001), message: \"Block range too large: maximum allowed is 20000 blocks\", data: None }".to_string());
2209
+
2210
+
let max_block_count = BlockchainBridge::extract_max_block_count(result);
0 commit comments