[feature request]:use electrum server for fee rate estimation

オープン
#33 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
rust
領域
blockchain

調査の方向性

lwk_wollet/src/tx_builder.rs の fee_rate のデフォルト値 100.0 付近から始め、次に peerswap が使用する Electrum/electrs の blockchain.estimatefee リクエストを確認します。推定値がウォレットの送信操作にどのように到達するか、また Confidential Transaction の割引がどのように処理されるかを定義します。レートが指定されていない場合に手数料が固定されなくなれば完了です。

索引モデルが issue の本文から書いたものです。

説明

The fee rate appears to be a fixed value if not specified, such as send rpc.
I would like to request to use the electrum/electrs blockchain.estimatefee for a fee rate estimate.

Also, it would be nice if it could be considered the confidential transaction discounts.
https://github.com/ElementsProject/elements/pull/1317

Steps to reproduce

My understand is that the fee used in the following commands is a fixed value.

lwk_cli wallet send --wallet w1 --recipient tlq1qqwe0a3dp3hce866snkll5vq244n47ph5zy2xr330uc8wkrvc0whwsvw4w67xksmfyxwqdyrykp0tsxzsm24mqm994pfy4f6lg:1000:144c654344aa716d6f3abcc1ca90e5641e4e2a7f633bc09fe3baf64585819a49

Additional Context

As far as I have checked the code, the fee_rate is set to 100.0.
https://github.com/Blockstream/lwk/blob/d5899a83cf21cd7d4a1ee2b3985fcdc4df4248b4/lwk_wollet/src/tx_builder.rs#L79

This is a feature that I thought would be nice to have in the implementation to make lwk available in peerswap.
Now, we call directly on electrs' estimate fee.
https://github.com/ElementsProject/peerswap/pull/288

主要言語
Rust
スター
113
フォーク
64
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Blockstream/lwk のほかの issue

Blockstream/lwk の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。