diff --git a/bots/bot-sniper-3-blocks.yaml b/bots/bot-sniper-3-blocks.yaml index dafc424..0774e6b 100644 --- a/bots/bot-sniper-3-blocks.yaml +++ b/bots/bot-sniper-3-blocks.yaml @@ -2,7 +2,7 @@ # Carefully review and adjust values to match your trading strategy and risk tolerance. # Bot identification and connection settings -name: "bot-sniper-2" +name: "bot-sniper-3" env_file: ".env" rpc_endpoint: "${SOLANA_NODE_RPC_ENDPOINT}" wss_endpoint: "${SOLANA_NODE_WSS_ENDPOINT}" diff --git a/src/bot_runner.py b/src/bot_runner.py index 95212bc..e6aad25 100644 --- a/src/bot_runner.py +++ b/src/bot_runner.py @@ -101,6 +101,9 @@ async def start_bot(config_path: str): await trader.start() +def run_bot_process(config_path): + asyncio.run(start_bot(config_path)) + def run_all_bots(): """ Run all bots defined in YAML files in the 'bots' directory. @@ -136,7 +139,8 @@ def run_all_bots(): if cfg.get("separate_process", False): logging.info(f"Starting bot '{bot_name}' in separate process") p = multiprocessing.Process( - target=lambda path=str(file): asyncio.run(start_bot(path)), + target=run_bot_process, + args=(str(file),), name=f"bot-{bot_name}" ) p.start() diff --git a/src/geyser/generated/geyser_pb2.py b/src/geyser/generated/geyser_pb2.py index 222873f..8b83a4e 100644 --- a/src/geyser/generated/geyser_pb2.py +++ b/src/geyser/generated/geyser_pb2.py @@ -1,7 +1,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: geyser.proto -# Protobuf Python Version: 5.29.0 +# Protobuf Python Version: 6.31.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -11,9 +11,9 @@ from google.protobuf.internal import builder as _builder _runtime_version.ValidateProtobufRuntimeVersion( _runtime_version.Domain.PUBLIC, - 5, - 29, - 0, + 6, + 31, + 1, '', 'geyser.proto' ) diff --git a/src/geyser/generated/solana_storage_pb2.py b/src/geyser/generated/solana_storage_pb2.py index 7458363..17c5af9 100644 --- a/src/geyser/generated/solana_storage_pb2.py +++ b/src/geyser/generated/solana_storage_pb2.py @@ -2,7 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # NO CHECKED-IN PROTOBUF GENCODE # source: solana-storage.proto -# Protobuf Python Version: 5.29.0 +# Protobuf Python Version: 6.31.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool @@ -11,9 +11,9 @@ from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder _runtime_version.ValidateProtobufRuntimeVersion( _runtime_version.Domain.PUBLIC, - 5, - 29, - 0, + 6, + 31, + 1, '', 'solana-storage.proto' )