[covenantless] Fix coin selection to build round tx (#336)

* rework createPoolTx

* change address getter

* rename BuildPoolTx --> BuildRoundTx
This commit is contained in:
Louis Singer
2024-09-27 16:09:37 +02:00
committed by GitHub
parent 3271776954
commit ab6ae36eb5
7 changed files with 74 additions and 186 deletions

View File

@@ -796,7 +796,7 @@ func (s *covenantlessService) startFinalization() {
cosigners = append(cosigners, ephemeralKey.PubKey())
unsignedRoundTx, tree, connectorAddress, err := s.builder.BuildPoolTx(s.pubkey, payments, boardingInputs, sweptRounds, cosigners...)
unsignedRoundTx, tree, connectorAddress, err := s.builder.BuildRoundTx(s.pubkey, payments, boardingInputs, sweptRounds, cosigners...)
if err != nil {
round.Fail(fmt.Errorf("failed to create pool tx: %s", err))
log.WithError(err).Warn("failed to create pool tx")