From e13957e8164f184cac9d608000488cba16df0db1 Mon Sep 17 00:00:00 2001 From: KonradStaniec Date: Mon, 14 Oct 2024 16:37:17 +0200 Subject: [PATCH] Add additional checks on unbonding transaction (#14) --- go.mod | 2 +- go.sum | 4 ++-- signerapp/signer.go | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/go.mod b/go.mod index 9c0a903..3f65d82 100644 --- a/go.mod +++ b/go.mod @@ -42,7 +42,7 @@ require ( ) require ( - github.com/babylonlabs-io/babylon v0.11.0 + github.com/babylonlabs-io/babylon v0.12.1 github.com/babylonlabs-io/networks/parameters v0.2.2 github.com/btcsuite/btcd/btcutil/psbt v1.1.8 github.com/btcsuite/btcd/chaincfg/chainhash v1.1.0 diff --git a/go.sum b/go.sum index f1e1abc..513c2c9 100644 --- a/go.sum +++ b/go.sum @@ -279,8 +279,8 @@ github.com/aws/aws-sdk-go v1.44.122/go.mod h1:y4AeaBuwd2Lk+GepC1E9v0qOiTws0MIWAX github.com/aws/aws-sdk-go v1.44.312 h1:llrElfzeqG/YOLFFKjg1xNpZCFJ2xraIi3PqSuP+95k= github.com/aws/aws-sdk-go v1.44.312/go.mod h1:aVsgQcEevwlmQ7qHE9I3h+dtQgpqhFB+i8Phjh7fkwI= github.com/aws/aws-sdk-go-v2 v0.18.0/go.mod h1:JWVYvqSMppoMJC0x5wdwiImzgXTI9FuZwxzkQq9wy+g= -github.com/babylonlabs-io/babylon v0.11.0 h1:gRJEkjgy3M9bGSY7VjusA84qn6ca8hXa78ss5Z8D3Cc= -github.com/babylonlabs-io/babylon v0.11.0/go.mod h1:ZOrTde9vs2xoqGTFw4xhupu2CMulnpywiuk0eh4kPOw= +github.com/babylonlabs-io/babylon v0.12.1 h1:Qfmrq3pdDEZGq6DtMXxwiQjx0HD+t+U0cXQzsJfX15U= +github.com/babylonlabs-io/babylon v0.12.1/go.mod h1:ZOrTde9vs2xoqGTFw4xhupu2CMulnpywiuk0eh4kPOw= github.com/babylonlabs-io/networks/parameters v0.2.2 h1:TCu39fZvjX5f6ZZrjhYe54M6wWxglNewuKu56yE+zrc= github.com/babylonlabs-io/networks/parameters v0.2.2/go.mod h1:iEJVOzaLsE33vpP7J4u+CRGfkSIfErUAwRmgCFCBpyI= github.com/benbjohnson/clock v1.1.0/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA= diff --git a/signerapp/signer.go b/signerapp/signer.go index 22a447f..35acc37 100644 --- a/signerapp/signer.go +++ b/signerapp/signer.go @@ -86,7 +86,7 @@ func (s *SignerApp) SignUnbondingTransaction( stakerUnbondingSig *schnorr.Signature, covnentSignerPubKey *btcec.PublicKey, ) (*schnorr.Signature, error) { - if err := btcstaking.IsSimpleTransfer(unbondingTx); err != nil { + if err := btcstaking.CheckPreSignedUnbondingTxSanity(unbondingTx); err != nil { return nil, wrapInvalidSigningRequestError(err) }