Merge pull request #1 from pieroforfora/patch-1

fixed atomicswap
This commit is contained in:
Ori Newman 2023-02-08 20:12:51 +02:00 committed by GitHub
commit 3c2fd72c4b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -416,7 +416,7 @@ func ExtractAtomicSwapDataPushes(version uint16, scriptPubKey []byte) (*AtomicSw
pushes := new(AtomicSwapDataPushes) pushes := new(AtomicSwapDataPushes)
copy(pushes.SecretHash[:], pops[5].data) copy(pushes.SecretHash[:], pops[5].data)
copy(pushes.RecipientBlake2b[:], pops[9].data) copy(pushes.RecipientBlake2b[:], pops[9].data)
copy(pushes.RefundBlake2b[:], pops[16].data) copy(pushes.RefundBlake2b[:], pops[15].data)
if pops[2].data != nil { if pops[2].data != nil {
locktime, err := makeScriptNum(pops[2].data, 5) locktime, err := makeScriptNum(pops[2].data, 5)
if err != nil { if err != nil {