From daed70c67be43f545f9d04d54df129c9f1ae3106 Mon Sep 17 00:00:00 2001 From: pieroforfora <124444595+pieroforfora@users.noreply.github.com> Date: Sun, 5 Feb 2023 14:33:47 -0400 Subject: [PATCH] fixed atomicswap fixed ExtractAtomicSwapDataPushes to extract the correct RefundBlake2b --- domain/consensus/utils/txscript/standard.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/domain/consensus/utils/txscript/standard.go b/domain/consensus/utils/txscript/standard.go index 0d43b9688..1164bbf2a 100644 --- a/domain/consensus/utils/txscript/standard.go +++ b/domain/consensus/utils/txscript/standard.go @@ -416,7 +416,7 @@ func ExtractAtomicSwapDataPushes(version uint16, scriptPubKey []byte) (*AtomicSw pushes := new(AtomicSwapDataPushes) copy(pushes.SecretHash[:], pops[5].data) copy(pushes.RecipientBlake2b[:], pops[9].data) - copy(pushes.RefundBlake2b[:], pops[16].data) + copy(pushes.RefundBlake2b[:], pops[15].data) if pops[2].data != nil { locktime, err := makeScriptNum(pops[2].data, 5) if err != nil {