[Client] Add vtxo expiration details to balance & Fix coin selection

* add expiry details in balance command

* coin selection: sort vtxos by olderFirst

* rename type

* balance: add next expiration

* add next expiration in offchain_balance json

* print duration in nextExpiration

* fix dust coin selection

* refactor sort
This commit is contained in:
Louis Singer
2024-02-20 17:10:18 +01:00
committed by GitHub
parent 10c19dd7d9
commit b8e0914ba9
10 changed files with 378 additions and 140 deletions

View File

@@ -81,10 +81,7 @@ func signPset(
return err
}
_, liquidNet, err := getNetwork()
if err != nil {
return err
}
_, liquidNet := getNetwork()
prevoutsScripts := make([][]byte, 0)
prevoutsValues := make([][]byte, 0)