Add support for collaborative redemption of vtxos & Changes to ark wallet (#72)

* Add internal support for collaborative exit

* Update protos and interface layer

* Fixes after proto updates

* Fix printing json & Do not print ark pubkey in config

* Add collaborative redeem command

* Polish

* Add address validation

* Fix building tree without right branch

* Fixes and validation checks

* Fixes

* Fix counting complete queued payments

* Add relays

* Add and compute onchain balance concurrently

* Tiny refactor

* Merge `config connect` into `init` cmd
This commit is contained in:
Pietralberto Mazza
2023-12-29 17:09:50 +01:00
committed by GitHub
parent 022bc67ab8
commit d150c4bbac
24 changed files with 1080 additions and 536 deletions

View File

@@ -34,7 +34,13 @@ func (m *paymentsMap) len() int64 {
m.lock.RLock()
defer m.lock.RUnlock()
return int64(len(m.payments))
count := int64(0)
for _, p := range m.payments {
if len(p.Receivers) > 0 {
count++
}
}
return count
}
func (m *paymentsMap) push(payment domain.Payment) error {