mirror of
https://github.com/aljazceru/python-teos.git
synced 2025-12-17 06:04:21 +01:00
teos - BLOCK_CACHE_SIZE -> LOCATOR_CACHE_SIZE
This commit is contained in:
@@ -21,7 +21,7 @@ DEFAULT_CONF = {
|
|||||||
"DEFAULT_SUBSCRIPTION_DURATION": {"value": 4320, "type": int},
|
"DEFAULT_SUBSCRIPTION_DURATION": {"value": 4320, "type": int},
|
||||||
"EXPIRY_DELTA": {"value": 6, "type": int},
|
"EXPIRY_DELTA": {"value": 6, "type": int},
|
||||||
"MIN_TO_SELF_DELAY": {"value": 20, "type": int},
|
"MIN_TO_SELF_DELAY": {"value": 20, "type": int},
|
||||||
"BLOCK_CACHE_SIZE": {"value": 6, "type": int},
|
"LOCATOR_CACHE_SIZE": {"value": 6, "type": int},
|
||||||
"LOG_FILE": {"value": "teos.log", "type": str, "path": True},
|
"LOG_FILE": {"value": "teos.log", "type": str, "path": True},
|
||||||
"TEOS_SECRET_KEY": {"value": "teos_sk.der", "type": str, "path": True},
|
"TEOS_SECRET_KEY": {"value": "teos_sk.der", "type": str, "path": True},
|
||||||
"APPOINTMENTS_DB_PATH": {"value": "appointments", "type": str, "path": True},
|
"APPOINTMENTS_DB_PATH": {"value": "appointments", "type": str, "path": True},
|
||||||
|
|||||||
@@ -90,7 +90,7 @@ def main(command_line_conf):
|
|||||||
responder,
|
responder,
|
||||||
secret_key_der,
|
secret_key_der,
|
||||||
config.get("MAX_APPOINTMENTS"),
|
config.get("MAX_APPOINTMENTS"),
|
||||||
config.get("BLOCK_CACHE_SIZE"),
|
config.get("LOCATOR_CACHE_SIZE"),
|
||||||
)
|
)
|
||||||
|
|
||||||
# Create the chain monitor and start monitoring the chain
|
# Create the chain monitor and start monitoring the chain
|
||||||
|
|||||||
@@ -75,7 +75,7 @@ def api(db_manager, carrier, block_processor, gatekeeper, run_bitcoind):
|
|||||||
responder,
|
responder,
|
||||||
sk.to_der(),
|
sk.to_der(),
|
||||||
MAX_APPOINTMENTS,
|
MAX_APPOINTMENTS,
|
||||||
config.get("BLOCK_CACHE_SIZE"),
|
config.get("LOCATOR_CACHE_SIZE"),
|
||||||
)
|
)
|
||||||
inspector = Inspector(block_processor, config.get("MIN_TO_SELF_DELAY"))
|
inspector = Inspector(block_processor, config.get("MIN_TO_SELF_DELAY"))
|
||||||
api = API(config.get("API_HOST"), config.get("API_PORT"), inspector, watcher)
|
api = API(config.get("API_HOST"), config.get("API_PORT"), inspector, watcher)
|
||||||
|
|||||||
@@ -102,7 +102,7 @@ def test_update_states_empty_list(db_manager, gatekeeper, carrier, block_process
|
|||||||
responder=Responder(db_manager, gatekeeper, carrier, block_processor),
|
responder=Responder(db_manager, gatekeeper, carrier, block_processor),
|
||||||
sk_der=generate_keypair()[0].to_der(),
|
sk_der=generate_keypair()[0].to_der(),
|
||||||
max_appointments=config.get("MAX_APPOINTMENTS"),
|
max_appointments=config.get("MAX_APPOINTMENTS"),
|
||||||
blocks_in_cache=config.get("BLOCK_CACHE_SIZE"),
|
blocks_in_cache=config.get("LOCATOR_CACHE_SIZE"),
|
||||||
)
|
)
|
||||||
|
|
||||||
missed_blocks_watcher = []
|
missed_blocks_watcher = []
|
||||||
@@ -124,7 +124,7 @@ def test_update_states_responder_misses_more(run_bitcoind, db_manager, gatekeepe
|
|||||||
responder=Responder(db_manager, gatekeeper, carrier, block_processor),
|
responder=Responder(db_manager, gatekeeper, carrier, block_processor),
|
||||||
sk_der=generate_keypair()[0].to_der(),
|
sk_der=generate_keypair()[0].to_der(),
|
||||||
max_appointments=config.get("MAX_APPOINTMENTS"),
|
max_appointments=config.get("MAX_APPOINTMENTS"),
|
||||||
blocks_in_cache=config.get("BLOCK_CACHE_SIZE"),
|
blocks_in_cache=config.get("LOCATOR_CACHE_SIZE"),
|
||||||
)
|
)
|
||||||
|
|
||||||
blocks = []
|
blocks = []
|
||||||
@@ -150,7 +150,7 @@ def test_update_states_watcher_misses_more(db_manager, gatekeeper, carrier, bloc
|
|||||||
responder=Responder(db_manager, gatekeeper, carrier, block_processor),
|
responder=Responder(db_manager, gatekeeper, carrier, block_processor),
|
||||||
sk_der=generate_keypair()[0].to_der(),
|
sk_der=generate_keypair()[0].to_der(),
|
||||||
max_appointments=config.get("MAX_APPOINTMENTS"),
|
max_appointments=config.get("MAX_APPOINTMENTS"),
|
||||||
blocks_in_cache=config.get("BLOCK_CACHE_SIZE"),
|
blocks_in_cache=config.get("LOCATOR_CACHE_SIZE"),
|
||||||
)
|
)
|
||||||
|
|
||||||
blocks = []
|
blocks = []
|
||||||
|
|||||||
Reference in New Issue
Block a user