OSDN Git Service

fix the bug (#372)
authorPaladz <yzhu101@uottawa.ca>
Thu, 1 Aug 2019 03:08:49 +0000 (11:08 +0800)
committerGitHub <noreply@github.com>
Thu, 1 Aug 2019 03:08:49 +0000 (11:08 +0800)
toolbar/federation/synchron/mainchain_keeper.go

index c8aec4a..e07b066 100644 (file)
@@ -141,6 +141,10 @@ func locateSideChainTx(output *types.TxOutput) string {
                return ""
        }
 
+       if insts[0].Op != vm.OP_FAIL {
+               return ""
+       }
+
        return string(insts[1].Data)
 }