btc中如何使用bitcoind搭建节点
发表于:2024-10-19 作者:千家信息网编辑
千家信息网最后更新 2024年10月19日,今天就跟大家聊聊有关btc中如何使用bitcoind搭建节点,可能很多人都不太了解,为了让大家更加了解,小编给大家总结了以下内容,希望大家根据这篇文章可以有所收获。docker-compose.yam
千家信息网最后更新 2024年10月19日btc中如何使用bitcoind搭建节点
今天就跟大家聊聊有关btc中如何使用bitcoind搭建节点,可能很多人都不太了解,为了让大家更加了解,小编给大家总结了以下内容,希望大家根据这篇文章可以有所收获。
docker-compose.yaml
# ./volume/data/bitcoin.conf settings accountversion: "3"services: btc-service: image: ruimarinho/bitcoin-core:0.18-alpine volumes: - "./volume/data/:/home/bitcoin/.bitcoin" ports: - "8332:8332" restart: always logging: driver: "json-file" options: max-size: "50m"
注意:
容器内使用的用户是
bitcoin
,但是exec进入使用的root用户。在root中执行bitcoin-cli
命令需要把配置文件复制到/root/.bitcoin中cp /home/bitcoin/.bitcoin/bitcoin.conf /root/.bitcoin/
bitcoin.conf
# daemon=1dbcache=10240txindex=1server=1rest=1rpcbind=0.0.0.0:8332rpcallowip=0.0.0.0/0deprecatedrpc=accountsrpcuser=username001rpcpassword=123456789
/home/bitcoin # bitcoin-cli getblockchaininfo{ "chain": "main", "blocks": 442140, "headers": 598229, "bestblockhash": "000000000000000001a168f6bbcc9b1d3b50eb9e6861a4f6f6a16a7197056ba3", "difficulty": 286765766820.5504, "mediantime": 1481002553, "verificationprogress": 0.3860586550594515, "initialblockdownload": true, "chainwork": "00000000000000000000000000000000000000000031cbb33129fe710693dc9c", "size_on_disk": 106776418501, "pruned": false, "softforks": [ { "id": "bip34", "version": 2, "reject": { "status": true } }, { "id": "bip66", "version": 3, "reject": { "status": true } }, { "id": "bip65", "version": 4, "reject": { "status": true } } ], "bip9_softforks": { "csv": { "status": "active", "startTime": 1462060800, "timeout": 1493596800, "since": 419328 }, "segwit": { "status": "started", "bit": 1, "startTime": 1479168000, "timeout": 1510704000, "since": 439488, "statistics": { "period": 2016, "threshold": 1916, "elapsed": 637, "count": 156, "possible": false } } }, "warnings": ""}
initialblockdownload: 这个字段为true,说明正在同步区块
verificationprogress:同步进度[0..1]
远程访问
curl -s -X POST --user username001:123456789 -H 'content-type: text/plain;' http://127.0.0.1:8332/ --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getmininginfo", "params": [] }'
看完上述内容,你们对btc中如何使用bitcoind搭建节点有进一步的了解吗?如果还想了解更多知识或者相关内容,请关注行业资讯频道,感谢大家的支持。
内容
节点
用户
同步
区块
命令
字段
容器
文件
更多
正在
知识
篇文章
行业
资讯
资讯频道
进度
频道
进一
支持
数据库的安全要保护哪些东西
数据库安全各自的含义是什么
生产安全数据库录入
数据库的安全性及管理
数据库安全策略包含哪些
海淀数据库安全审计系统
建立农村房屋安全信息数据库
易用的数据库客户端支持安全管理
连接数据库失败ssl安全错误
数据库的锁怎样保障安全
怎么用腾讯云服务器实现ss
用友t3安装数据库总卡
无限世界生存服务器
构建网络安全宣传语
科技互联网图片
厦门定制软件开发公司哪家好
南天软件开发能力
网络安全事件的处置情况
我的世界单机版如何进入服务器
关于网络安全的隐私问题
15岁能学软件开发吗
服务器是什么自己可以弄一个吗
vet超级医务质控数据库
服务器为什么有一个接口不亮
福州中挚网络技术有限公司
威海捅迟网络技术有限公司
计算机网络安全的研究与探讨
电脑为什么找不到服务器ip地址
数据库的构建采用什么
算力网络技术内涵
网络安全区域链前十名股票
北京语音网络技术优势
电脑简单web服务器软件
济宁软件开发培训学校
软件开发者路线图第六章
四川省网络安全生态圈
甲骨文香港区服务器
php一次插入数据库
我的世界侠盗服务器
数据库安全性实验体会