CompleteAsyncPayment: validate signatures and transactions (#298)

This commit is contained in:
Louis Singer
2024-09-10 19:21:54 +02:00
committed by GitHub
parent 0fb34cb13d
commit 1387c8da7a
8 changed files with 209 additions and 72 deletions

View File

@@ -185,7 +185,7 @@ func (m *forfeitTxsMap) push(txs []string) {
defer m.lock.Unlock()
for _, tx := range txs {
signed, txid, _ := m.builder.VerifyForfeitTx(tx)
signed, txid, _ := m.builder.VerifyTapscriptPartialSigs(tx)
m.forfeitTxs[txid] = &signedTx{tx, signed}
}
}
@@ -195,7 +195,7 @@ func (m *forfeitTxsMap) sign(txs []string) error {
defer m.lock.Unlock()
for _, tx := range txs {
valid, txid, err := m.builder.VerifyForfeitTx(tx)
valid, txid, err := m.builder.VerifyTapscriptPartialSigs(tx)
if err != nil {
return err
}