Comman-line options

本文档介绍了 Bitcoin Core 版本 v0.9.2.1 的使用方法,包括启动选项、连接配置、钱包管理、调试测试、RPC 服务器设置等。此外还提供了关于区块创建、UI 设置及 SSL 相关选项的说明。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Bitcoin Core version v0.9.2.1-g354c0f3-beta


Usage:

bitcoin-qt [command-line options]


Options:

-? This help message

-alertnotify=<cmd> Execute command when a relevant alert is received or we see a really long fork (%s in cmd is replaced by message)

-blocknotify=<cmd> Execute command when the best block changes (%s in cmd is replaced by block hash)

-checkblocks=<n> How many blocks to check at startup (default: 288, 0 = all)

-checklevel=<n> How thorough the block verification of -checkblocks is (0-4, default: 3)

-conf=<file> Specify configuration file (default: bitcoin.conf)

-datadir=<dir> Specify data directory

-dbcache=<n> Set database cache size in megabytes (4 to 4096, default: 100)

-keypool=<n> Set key pool size to <n> (default: 100)

-loadblock=<file> Imports blocks from external blk000??.dat file on startup

-par=<n> Set the number of script verification threads (-8 to 16, 0 = auto, <0 = leave that many cores free, default: 0)

-pid=<file> Specify pid file (default: bitcoind.pid)

-reindex Rebuild block chain index from current blk000??.dat files on startup

-txindex Maintain a full transaction index (default: 0)


Connection options:

-addnode=<ip> Add a node to connect to and attempt to keep the connection open

-banscore=<n> Threshold for disconnecting misbehaving peers (default: 100)

-bantime=<n> Number of seconds to keep misbehaving peers from reconnecting (default: 86400)

-bind=<addr> Bind to given address and always listen on it. Use [host]:port notation for IPv6

-connect=<ip> Connect only to the specified node(s)

-discover Discover own IP address (default: 1 when listening and no -externalip)

-dns Allow DNS lookups for -addnode, -seednode and -connect (default: 1)

-dnsseed Find peers using DNS lookup (default: 1 unless -connect)

-externalip=<ip> Specify your own public address

-listen Accept connections from outside (default: 1 if no -proxy or -connect)

-maxconnections=<n> Maintain at most <n> connections to peers (default: 125)

-maxreceivebuffer=<n> Maximum per-connection receive buffer, <n>*1000 bytes (default: 5000)

-maxsendbuffer=<n> Maximum per-connection send buffer, <n>*1000 bytes (default: 1000)

-onion=<ip:port> Use separate SOCKS5 proxy to reach peers via Tor hidden services (default: -proxy)

-onlynet=<net> Only connect to nodes in network <net> (IPv4, IPv6 or Tor)

-port=<port> Listen for connections on <port> (default: 8333 or testnet: 18333)

-proxy=<ip:port> Connect through SOCKS proxy

-seednode=<ip> Connect to a node to retrieve peer addresses, and disconnect

-socks=<n> Select SOCKS version for -proxy (4 or 5, default: 5)

-timeout=<n> Specify connection timeout in milliseconds (default: 5000)

-upnp Use UPnP to map the listening port (default: 1 when listening)


Wallet options:

-disablewallet Do not load the wallet and disable wallet RPC calls

-paytxfee=<amt> Fee per kB to add to transactions you send

-rescan Rescan the block chain for missing wallet transactions on startup

-salvagewallet Attempt to recover private keys from a corrupt wallet.dat on startup

-spendzeroconfchange Spend unconfirmed change when sending transactions (default: 1)

-upgradewallet Upgrade wallet to latest format on startup

-wallet=<file> Specify wallet file (within data directory) (default: wallet.dat)

-walletnotify=<cmd> Execute command when a wallet transaction changes (%s in cmd is replaced by TxID)

-zapwallettxes Clear list of wallet transactions (diagnostic tool; implies -rescan)


Debugging/Testing options:

-debug=<category> Output debugging information (default: 0, supplying <category> is optional)

If <category> is not supplied, output all debugging information.

<category> can be: addrman, alert, coindb, db, lock, rand, rpc, selectcoins, mempool, net, qt.

-gen Generate coins (default: 0)

-genproclimit=<n> Set the processor limit for when generation is on (-1 = unlimited, default: -1)

-help-debug Show all debugging options (usage: --help -help-debug)

-logtimestamps Prepend debug output with timestamp (default: 1)

-mintxfee=<amt> Fees smaller than this are considered zero fee (for transaction creation) (default: 0.0001)

-minrelaytxfee=<amt> Fees smaller than this are considered zero fee (for relaying) (default: 0.00001)

-printtoconsole Send trace/debug info to console instead of debug.log file

-shrinkdebugfile Shrink debug.log file on client startup (default: 1 when no -debug)

-testnet Use the test network


Block creation options:

-blockminsize=<n> Set minimum block size in bytes (default: 0)

-blockmaxsize=<n> Set maximum block size in bytes (default: 750000)

-blockprioritysize=<n> Set maximum size of high-priority/low-fee transactions in bytes (default: 50000)


RPC server options:

-server Accept command line and JSON-RPC commands

-rpcuser=<user> Username for JSON-RPC connections

-rpcpassword=<pw> Password for JSON-RPC connections

-rpcport=<port> Listen for JSON-RPC connections on <port> (default: 8332 or testnet: 18332)

-rpcallowip=<ip> Allow JSON-RPC connections from specified IP address

-rpcthreads=<n> Set the number of threads to service RPC calls (default: 4)


RPC SSL options: (see the Bitcoin Wiki for SSL setup instructions)

-rpcssl Use OpenSSL (https) for JSON-RPC connections

-rpcsslcertificatechainfile=<file.cert> Server certificate file (default: server.cert)

-rpcsslprivatekeyfile=<file.pem> Server private key (default: server.pem)

-rpcsslciphers=<ciphers> Acceptable ciphers (default: TLSv1.2+HIGH:TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!3DES:@STRENGTH)


UI options:

-choosedatadir Choose data directory on startup (default: 0)

-lang=<lang> Set language, for example "de_DE" (default: system locale)

-min Start minimized

-rootcertificates=<file> Set SSL root certificates for payment request (default: -system-)

-splash Show splash screen on startup (default: 1)

--------------------------------------------------------------------------- SessionNotCreatedException Traceback (most recent call last) Cell In[14], line 5 2 from selenium.webdriver.common.by import By 3 from time import sleep ----> 5 driver=webdriver.Safari() 6 driver.get('https://movie.douban.com/subject/1291546/') 7 sleep(3) File /opt/anaconda3/lib/python3.12/site-packages/selenium/webdriver/safari/webdriver.py:60, in WebDriver.__init__(self, keep_alive, options, service) 53 executor = SafariRemoteConnection( 54 remote_server_addr=self.service.service_url, 55 keep_alive=keep_alive, 56 ignore_proxy=options._ignore_local_proxy, 57 ) 59 try: ---> 60 super().__init__(command_executor=executor, options=options) 61 except Exception: 62 self.quit() File /opt/anaconda3/lib/python3.12/site-packages/selenium/webdriver/remote/webdriver.py:250, in WebDriver.__init__(self, command_executor, keep_alive, file_detector, options, locator_converter, web_element_cls, client_config) 248 self._authenticator_id = None 249 self.start_client() --> 250 self.start_session(capabilities) 251 self._fedcm = FedCM(self) 253 self._websocket_connection = None File /opt/anaconda3/lib/python3.12/site-packages/selenium/webdriver/remote/webdriver.py:342, in WebDriver.start_session(self, capabilities) 333 """Creates a new session with the desired capabilities. 334 335 Parameters: (...) 338 - A capabilities dict to start the session with. 339 """ 341 caps = _create_caps(capabilities) --> 342 response = self.execute(Command.NEW_SESSION, caps)["value"] 343 self.session_id = response.get("sessionId") 344 self.caps = response.get("capabilities") File /opt/anaconda3/lib/python3.12/site-packages/selenium/webdriver/remote/webdriver.py:429, in WebDriver.execute(self, driver_command, params) 427 response = self.command_executor.execute(driver_comman
最新发布
03-14
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值