Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
Former-commit-id: 9ab47fd365beadb06c96f34efd351620d62278a7 [formerly 724ea098c74b5efca28918a86f77b5afc193ac41]
Former-commit-id: b84dc545b0c7a6ee0532c841f416d72639963b36
  • Loading branch information
hyajam committed Sep 1, 2023
2 parents 1662885 + f2de39e commit c41a56d
Show file tree
Hide file tree
Showing 48 changed files with 822 additions and 13 deletions.
Binary file added .DS_Store
Binary file not shown.
3 changes: 3 additions & 0 deletions data/86-regions/bandwidth_mbps.csv
Git LFS file not shown
3 changes: 3 additions & 0 deletions data/86-regions/bitcoin-mining_dist.csv
Git LFS file not shown
3 changes: 3 additions & 0 deletions data/86-regions/bitcoin-nodes_dist.csv
Git LFS file not shown
3 changes: 3 additions & 0 deletions data/86-regions/country_names.csv
Git LFS file not shown
3 changes: 3 additions & 0 deletions data/86-regions/ehereum-nodes_dist.csv
Git LFS file not shown
3 changes: 3 additions & 0 deletions data/86-regions/latency_ms.csv
Git LFS file not shown
3 changes: 3 additions & 0 deletions data/bitcoin/Bitcoinnodes/node-by-country.csv
Git LFS file not shown
Git LFS file not shown
3 changes: 3 additions & 0 deletions data/ethereum/ethernodes.org_nodes_distribution.csv
Git LFS file not shown
3 changes: 3 additions & 0 deletions data/network-stats/speedtest-bandwidth-data/countries.csv
Git LFS file not shown
3 changes: 3 additions & 0 deletions data/network-stats/speedtest-bandwidth-data/data.csv
Git LFS file not shown
3 changes: 3 additions & 0 deletions data/network-stats/speedtest-bandwidth-data/intersection.csv
Git LFS file not shown
3 changes: 3 additions & 0 deletions data/network-stats/wonderproxy-ping/countries-vertical.csv
Git LFS file not shown
3 changes: 3 additions & 0 deletions data/network-stats/wonderproxy-ping/countries.csv
Git LFS file not shown
3 changes: 3 additions & 0 deletions data/network-stats/wonderproxy-ping/latency_matrix.csv
Git LFS file not shown
Git LFS file not shown
Binary file not shown.

This file was deleted.

3 changes: 3 additions & 0 deletions data/network-stats/wonderproxy-ping/servers-2020-07-19.csv
Git LFS file not shown
13 changes: 8 additions & 5 deletions src/main/java/jabs/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@

import jabs.ledgerdata.bitcoin.BitcoinBlockWithoutTx;
import jabs.log.*;
import jabs.scenario.AbstractScenario;
import jabs.scenario.BitcoinGlobalNetworkScenario;
import jabs.scenario.NormalEthereumNetworkScenario;
import jabs.scenario.PBFTLANScenario;
import jabs.scenario.*;

import java.io.IOException;
import java.nio.file.Paths;
Expand All @@ -20,7 +17,7 @@ public class Main {
*/
public static void main(String[] args) throws IOException {
AbstractScenario scenario;

/*
// Simulate one day in the life of Bitcoin network
// Nakamoto protocol with block every 600 seconds
// Around 8000 nodes with 30 miners
Expand Down Expand Up @@ -53,5 +50,11 @@ public static void main(String[] args) throws IOException {
40, 3600);
scenario.AddNewLogger(new PBFTCSVLogger(Paths.get("output/pbft-simulation-log.csv")));
scenario.run();
*/
// Simulate Snow LAN network of 40 nodes for 1 hour
scenario = new SnowLANScenario("One hour of a Snow lan Network", 1, 40,
3600);
scenario.AddNewLogger(new SnowCSVLogger(Paths.get("output/snow-simulation-log.csv")));
scenario.run();
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package jabs.consensus.algorithm;

import jabs.ledgerdata.Block;
import jabs.ledgerdata.Tx;
import jabs.ledgerdata.Query;

public interface QueryingBasedConsensus <B extends Block<B>, T extends Tx<T>> extends ConsensusAlgorithm<B, T>{
void newIncomingQuery(Query query);
}
Loading

0 comments on commit c41a56d

Please sign in to comment.