Update elerium_ordinals_daemon.py
This commit is contained in:
parent
2501121f80
commit
951547356d
@ -18,18 +18,26 @@ MAX_METADATA_SIZE_BYTES = 50 * 1024 # 50 kilobytes in bytes
|
||||
with open('config.json', 'r') as config_file:
|
||||
config = json.load(config_file)
|
||||
|
||||
|
||||
#DAEMON config:
|
||||
BTCPAY_INSTANCE = config['btcpay']['instance']
|
||||
STORE_ID = config['btcpay']['store_id']
|
||||
API_KEY = config['btcpay']['api_key']
|
||||
DB_PATH = config['database']['path']
|
||||
LOG_FILE = config['database']['logging']
|
||||
BITCOIN_CLI_PATH = config['bitcoin_cli']['path']
|
||||
BITCOIN_CLI_DATADIR = config['bitcoin_cli']['data_dir']
|
||||
BITCOIN_CLI_RPC_PORT = config['bitcoin_cli']['rpc_port']
|
||||
ORD_COOKIE_FILE = config['ord_command']['cookie_file']
|
||||
ORD_TESTNET = config['ord_command']['testnet']
|
||||
|
||||
|
||||
#BITCOIN-CLI config:
|
||||
BITCOIN_CLI_PATH = config['bitcoin_cli']['path']
|
||||
#BITCOIN_CLI_DATADIR = config['bitcoin_cli']['data_dir']
|
||||
BITCOIN_CLI_RPC_PORT = config['bitcoin_cli']['rpc_port']
|
||||
|
||||
#ORD config:
|
||||
#ORD_COOKIE_FILE = config['ord_command']['cookie_file']
|
||||
#ORD_TESTNET = config['ord_command']['testnet']
|
||||
ORD_RPC_USER = config['ord_command']['rpc_user']
|
||||
ORD_RPC_PASS = config['ord_command']['rpc_pass']
|
||||
|
||||
|
||||
# Set up logging
|
||||
logging.basicConfig(filename=LOG_FILE, level=logging.INFO,
|
||||
@ -57,8 +65,8 @@ def get_fee_rate():
|
||||
|
||||
command = [
|
||||
BITCOIN_CLI_PATH,
|
||||
BITCOIN_CLI_DATADIR,
|
||||
BITCOIN_CLI_RPC_PORT,
|
||||
#BITCOIN_CLI_DATADIR,
|
||||
#BITCOIN_CLI_RPC_PORT,
|
||||
"estimatesmartfee",
|
||||
"3", # conf_target for 3 blocks
|
||||
"conservative" # estimate_mode
|
||||
@ -105,6 +113,8 @@ def inscribe(metadata):
|
||||
"ord",
|
||||
#ORD_COOKIE_FILE,
|
||||
#ORD_TESTNET,
|
||||
ORD_RPC_USER,
|
||||
ORD_RPC_PASS,
|
||||
"wallet",
|
||||
"inscribe",
|
||||
"--fee-rate",
|
||||
|
Loading…
x
Reference in New Issue
Block a user