Verify book downloads with a SHA256 checksum

This commit is contained in:
AndyGrant committed 2018-06-23 16:14:40 -04:00
1 parent 605ab18b8a
commit e93b65fd25
5 files changed
+72 -28

No files matched your search

+40 -9
View File
@@ -1,24 +1,55 @@
FRAMEWORK_REPO_URL = 'http://github.com/AndyGrant/OpenBench/'
FRAMEWORK_DEFAULTS = {
'config' : {
# Framework source, must be changed for your instance
'framework' : 'http://github.com/AndyGrant/OpenBench/',
# Links for side bar
'source' : 'http://github.com/AndyGrant/EtherealDev/',
'homepage' : 'http://github.com/AndyGrant/Ethereal',
'framework' : 'http://github.com/AndyGrant/OpenBench/',
'engine' : 'Ethereal',
'timecontrol' : '5.0+0.05',
# Configured engines for the framework. To scale NPS for your engine,
# in order to match the time controls used here, do the following.
# Average a few bench runs for the latest version of Ethereal. Now
# take a few bench runs for the latest version of the new engine.
# Scale your NPS to match Ethereal's NPS of 2,500,000
'engines' : {
'Ethereal' : {'nps' : 2500000},
},
# Default engine test options
'protocol' : 'uci',
'threads' : 1,
'hash' : 8,
'threads' : 1,
'protocol' : 'uci',
'timecontrol' : '5.0+0.05',
# SPRT bounds and confidence values
'elolower' : 0.0,
'eloupper' : 5.0,
'alpha' : 0.10,
'beta' : 0.10,
'threads' : 1,
'books' : [
'2moves_v1.pgn',
'8moves_v3.pgn',
],
# Book confgiruation. When addding a book, follow the provided template.
# The SHA is defined by hashlib.sha256(book).hexdigest(). OpenBench.py
# (Client File) has an example to show you how to find a hash digest
'books' : {
'2moves_v1.pgn' : {
'name' : '2moves_v1.pgn',
'sha' : '46aed7f2696618b2b914942032957b7a97a8f343bf54ba83e20a47818f0d42e0',
'source' : FRAMEWORK_REPO_URL + 'raw/master/Books/2moves_v1.pgn',
'default' : True,
},
'8moves_v3.pgn' : {
'name' : '8moves_v3.pgn',
'sha' : '04fcce1488a94f3b7795cef6f74d89016eb278328897c1018e6162c5967273f5',
'source' : FRAMEWORK_REPO_URL + 'raw/master/Books/8moves_v3.pgn',
'default' : False,
}
},
}
}