Skip to content

Commit

Permalink
use parent folder as root of project and remove thesis specific stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
simonmulser committed Jul 26, 2017
1 parent c3704ab commit baf4b02
Show file tree
Hide file tree
Showing 92 changed files with 113 additions and 4,206 deletions.
102 changes: 100 additions & 2 deletions .gitignore
@@ -1,5 +1,103 @@
/src/bitcoin
/data
/datadirs
.vscode
.idea

# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
env/
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
*.egg-info/
.installed.cfg
*.egg

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*,cover
.hypothesis/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# Jupyter Notebook
.ipynb_checkpoints

# pyenv
.python-version

# celery beat schedule file
celerybeat-schedule

# dotenv
.env

# virtualenv
.venv
venv/
ENV/

# Spyder project settings
.spyderproject

# Rope project settings
.ropeproject

log
logs
forks
datadirs

# Intellij
*.iml
22 changes: 0 additions & 22 deletions README_TASKS.md

This file was deleted.

105 changes: 0 additions & 105 deletions code/.gitignore

This file was deleted.

28 changes: 13 additions & 15 deletions code/config.py
Expand Up @@ -4,10 +4,6 @@
# it does not conflict with https://github.com/bitcoin/bitcoin/blob/master/src/netbase.h
ip_range = "240.0.0.0/4"

out_dir = 'out'
sim_dir = '{}/run-{}/'.format(out_dir, time.time())
aggregated_log_file = sim_dir + 'log'

network_name = 'simcoin-network'
node_image = 'btn/base:v3'
prefix = 'simcoin-'
Expand All @@ -19,17 +15,19 @@
selfish_node_name = selfish_node_prefix + '{}'
selfish_node_proxy_name = selfish_node_name + selfish_node_proxy_postfix

network_config = 'network.csv'
interval_csv = 'intervals.csv'
nodes_config_json = 'nodes_config.json'
aggregated_log = sim_dir + 'aggregated.log'
log_file = 'debug.log'
tmp_log = sim_dir + 'tmp.log'
blocks_csv = sim_dir + 'blocks.csv'
chains_csv = sim_dir + 'chains.csv'
consensus_chain_csv = sim_dir + 'consensus_chain.csv'
nodes_csv = sim_dir + 'nodes.csv'
tx_csv = sim_dir + 'tx.csv'
data_dir = '../data/'
sim_dir = '{}run-{}/'.format(data_dir, time.time())
network_config = data_dir + 'network.csv'
interval_csv = data_dir + 'intervals.csv'
nodes_config_json = data_dir + 'nodes_config.json'
aggregated_log = data_dir + sim_dir + 'aggregated.log'
log_file = data_dir + 'debug.log'
tmp_log = data_dir + sim_dir + 'tmp.log'
blocks_csv = data_dir + sim_dir + 'blocks.csv'
chains_csv = data_dir + sim_dir + 'chains.csv'
consensus_chain_csv = data_dir + sim_dir + 'consensus_chain.csv'
nodes_csv = data_dir + sim_dir + 'nodes.csv'
tx_csv = data_dir + sim_dir + 'tx.csv'

reference_node = 'node-0'

Expand Down
2 changes: 0 additions & 2 deletions code/prepare.py
Expand Up @@ -41,8 +41,6 @@ def run_nodes(nodes):


def prepare_simulation_dir():
if not os.path.exists(config.out_dir):
os.makedirs(config.out_dir)
if not os.path.exists(config.sim_dir):
os.makedirs(config.sim_dir)

Expand Down
Empty file removed data/.stub
Empty file.
Empty file removed paper/.stub
Empty file.
1 change: 0 additions & 1 deletion references/blockchainbib
Submodule blockchainbib deleted from c9e3e2
Binary file removed relatedwork/DESMO-J/Bitcoin_Dishonest.zip
Binary file not shown.
7 changes: 0 additions & 7 deletions relatedwork/DESMO-J/Bitcoin_Dishonest/.classpath

This file was deleted.

17 changes: 0 additions & 17 deletions relatedwork/DESMO-J/Bitcoin_Dishonest/.project

This file was deleted.

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

This file was deleted.

This file was deleted.

0 comments on commit baf4b02

Please sign in to comment.