OSDN Git Service

fix the bug (#372)
[bytom/vapor.git] / 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)
 }