don't generate deterministic address by default

This commit is contained in:
2026-03-18 11:36:27 +03:00
parent 7761772dda
commit ccac2e970a
2 changed files with 2 additions and 2 deletions

View File

@@ -55,7 +55,7 @@ Container images are configured using parameters passed at runtime.
|-e BITMESSAGE_API_USER|XML-RPC API user. Default: `bitmessage_api_user`| |-e BITMESSAGE_API_USER|XML-RPC API user. Default: `bitmessage_api_user`|
|-e BITMESSAGE_API_PASSWORD|XML-RPC API password. Default: `bitmessage_api_password`| |-e BITMESSAGE_API_PASSWORD|XML-RPC API password. Default: `bitmessage_api_password`|
|-e BITMESSAGE_SEED_PHRASE|Create Deterministic Addresses password. Default: created randomly. | |-e BITMESSAGE_SEED_PHRASE|Create Deterministic Addresses password. Default: created randomly. |
|-e BITMESSAGE_SEED_ADDRESSES|Number of Deterministic Addresses to generate. Default: `1`| |-e BITMESSAGE_SEED_ADDRESSES|Number of Deterministic Addresses to generate. Default: `0`|
|-e BITMESSAGE_TTL|The expiration of newly send messages, in seconds. Default: `172800`| |-e BITMESSAGE_TTL|The expiration of newly send messages, in seconds. Default: `172800`|
|-e BITMESSAGE_STOPRESENDINGAFTERXDAYS|Stop resending unreceived message after X days. Default: `60`| |-e BITMESSAGE_STOPRESENDINGAFTERXDAYS|Stop resending unreceived message after X days. Default: `60`|
|-e BITMESSAGE_APIVARIANT|provides xml or json-RPC API. Default: `legacy`| |-e BITMESSAGE_APIVARIANT|provides xml or json-RPC API. Default: `legacy`|

View File

@@ -6,7 +6,7 @@ import xmlrpclib
api_user=os.getenv('BITMESSAGE_API_USER', 'bitmessage_api_user') ; api_user=os.getenv('BITMESSAGE_API_USER', 'bitmessage_api_user') ;
api_password=os.getenv('BITMESSAGE_API_PASSWORD', 'bitmessage_api_password') ; api_password=os.getenv('BITMESSAGE_API_PASSWORD', 'bitmessage_api_password') ;
api_port=os.getenv('BITMESSAGE_API_PORT', '8442') ; api_port=os.getenv('BITMESSAGE_API_PORT', '8442') ;
addr_num=os.getenv('BITMESSAGE_SEED_ADDRESSES', '1') ; addr_num=os.getenv('BITMESSAGE_SEED_ADDRESSES', '0') ;
addr_seed=os.getenv('BITMESSAGE_SEED_PHRASE') ; addr_seed=os.getenv('BITMESSAGE_SEED_PHRASE') ;
api_link="http://{}:{}@127.0.0.1:{}/".format(api_user, api_password, api_port) api_link="http://{}:{}@127.0.0.1:{}/".format(api_user, api_password, api_port)