Skip to content

Commit e3fb983

Browse files
committed
Minor
1 parent 667ebbc commit e3fb983

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/main/java/it/unipr/EVMLiSA.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,7 @@ public void run() {
615615

616616
executor.shutdown();
617617
try {
618-
if (!executor.awaitTermination(1, TimeUnit.HOURS)) {
618+
if (!executor.awaitTermination(5, TimeUnit.HOURS)) {
619619
executor.shutdownNow();
620620
log.error("Timeout while waiting for tasks to complete");
621621
}

src/main/java/it/unipr/analysis/EVMAbstractState.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2402,9 +2402,11 @@ public StackElement getStorageAt(Number key, String address) {
24022402
BigInteger toHex = Number.toBigInteger(key);
24032403
String hexString = "0x" + toHex.toString(16);
24042404

2405-
Thread.sleep(1000);
2406-
2407-
String getStorageAtRequest = EVMFrontend.etherscanRequest("proxy", "eth_getStorageAt", hexString, address);
2405+
String getStorageAtRequest;
2406+
synchronized (MyCache.getInstance()) {
2407+
Thread.sleep(500);
2408+
getStorageAtRequest = EVMFrontend.etherscanRequest("proxy", "eth_getStorageAt", hexString, address);
2409+
}
24082410

24092411
if (getStorageAtRequest == null || getStorageAtRequest.isEmpty()) {
24102412
System.err.println("ERROR: couldn't download contract's storage.");

0 commit comments

Comments
 (0)