mirror of
https://github.com/aljazceru/ark.git
synced 2025-12-18 12:44:19 +01:00
Dynamic min-relay-fee and dust amount (#280)
* [btc-embedded] add chainfee.Estimator and extraAPI interfaces * dynamic fee amount * dynamic dust amount * [client] fix linter errors * [domain] fix unit tests * [server] return dust amount in GetInfo RPC * [sdk] fix lnd dependencie * go work sync * fix witness stack size forfeit tx size estimator * remove hardcoded fee values in covenant txbuilder * lower liquid feerate * fix after reviews * go work sync
This commit is contained in:
@@ -18,8 +18,6 @@ import (
|
||||
"github.com/vulpemventures/go-elements/psetv2"
|
||||
)
|
||||
|
||||
const dust = 450
|
||||
|
||||
type covenantLiquidCLI struct{}
|
||||
|
||||
func (c *covenantLiquidCLI) SendAsync(ctx *cli.Context) error {
|
||||
@@ -97,6 +95,11 @@ func sendOnchain(ctx *cli.Context, receivers []receiver) (string, error) {
|
||||
return "", err
|
||||
}
|
||||
|
||||
dust, err := utils.GetDust(ctx)
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
|
||||
liquidNet := toElementsNetwork(net)
|
||||
|
||||
targetAmount := uint64(0)
|
||||
|
||||
Reference in New Issue
Block a user