bitcoindevkit/bdk_wallet

Feerate should be returned from Transaction construction

開放

#187 建立於 2022年1月11日

 (9 則留言) (2 個反應) (0 位負責人)Rust (94 個分叉)auto 404
good first issuenew feature

倉庫指標

星標
 (54 顆星)
PR 合併指標
 (平均合併 41天) (30 天內合併 10 個 PR)

描述

When you get TransactionDetails from tx_builder.finish() it has the fee for the overall transaction but does not include the feerate of the resulting transaction. There is no simple way for the caller to replicate this information since the transaction does not have witness data at this point. This is annoying because after constructing the psbt the user should know the feerate before signing it.

This can either be done by returning another value from builder.finish() or by adding a (perhaps optional) field to TransactionDetails.

貢獻者指南