Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Make setting up a regtest network easier

未关闭
#1,253 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
35/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
停滞
技术栈
cpp

调研方向

首先复现 Elements 中等价于 bitcoind -regtest 的行为,并记录 -regtest-chain=elementsregtest-server=1 以及默认 coin 设置的行为。阅读这些选项和 rescanblockchain RPC 的启动处理逻辑。当 regtest 设置简单明了、RPC 端口可见,并且默认 chain 能够提供可用的 coin 而无需使用所述变通方法时,即表示完成。

由索引模型根据 Issue 内容生成。

描述

Some things I have ran into many times in the past that are just really annoying for developer experience:

  • -regtest gives you bitcoin regtest. Should really make that equivalent to -chain=elementsregtest.
  • -server=1 doesn't print what RPC port is being listened to. This might be a bitcoind issue too, but anyone can google the default regtest RPC port for Bitcoin, I always spend 3 minutes trying to figure out what the one for elementsregtest is and eventually giving up and using -rpcport=8888..
  • There are no coins in the default chain. I know this might be a feature, but if no parent chain info is given, maybe there should be money. I tried adding -initialfreecoins=2100000000000000 -anyonecanspendaremine=1 also without success. So I'm now at figuring out how to add money. It seems like the rescanblockchain rpc is needed now.

All this which in Bitcoin is just bitcoind -regtest is a real pain for Elements..

主要语言
C++
星标
1.2k
派生
418
平均合并
1 天 12 小时
30 天内合并 PR
13

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

ElementsProject/elements 的其他 Issue

查看 ElementsProject/elements 的全部 Issue

相似的 Issue

更多 C++ Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。