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+).*")
511
-
.expect("Invalid regex");
510
+
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+).*")
511
+
.expect("Invalid regex");
512
512
let max_block_count = match error {
513
513
BlockchainError::QueryFailed(msg) => match regex_result.captures(msg.as_str()){
514
514
Some(captures) => match captures.name("max_block_count"){
@@ -1541,7 +1541,7 @@ mod tests {
1541
1541
system.run();
1542
1542
let after = SystemTime::now();
1543
1543
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());
2207
+
2208
+
let max_block_count = BlockchainBridge::extract_max_block_count(result);
0 commit comments