bitcoindevkit / bitcoindevkit/bdk-cli

Support parameter override

未关闭
#271 4 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
enhancement
主要语言
Rust
星标
141
派生
99
平均合并
6 天 14 分钟
30 天内合并 PR
1

描述

**Describe the enhancement**
The config setup forces users to parse toml files or manually modify them to change things like rpc credentials.
Some users might not need modification of these, but in some setups these change continuously, forcing the user to use other tools to modify these files, adding additional dependencies to the setup.

**Use case**
I'm using bdk-cli mainly for testing. Maybe there is a good reason to not give too much freedom to the user to change parameters of their configuration, but I think at least RPC parameters are certainly prone to change, even more if the node is using cookie authentication.

**Additional context**
I updated the bdk-cli in the `bdk-sp` nix environment, and it broke most of the commands I was using to wrap bdk-cli. Some of the changes are useful, like writing keys into file, but some others are not, like rpc credentials. I'm starting and stopping this node very frequently and the rpc cookie changes each time. I had to add a tool like `dasel` to modify the parameters I need in the file.

贡献指南

打开贡献指南

调研方向

从 bdk-cli 的配置设置以及 issue 中描述的 TOML/RPC 参数处理开始,重点了解 RPC 凭据和 cookie 身份验证的加载方式。跟踪相关的 CLI 入口点,并验证节点重复重启时可以使用已更改的凭据,而无需手动编辑文件,同时保留现有的配置行为。

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

评估

技术栈
rust
领域
cli
Issue 类型
功能
难度
4/5
预计耗时
3-5 天
活跃度
活跃
描述清晰度
基本清楚
新手友好度
52/100

把新 issue 发到你的邮箱

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