Unreachable code
authorCryptoManiac <balthazar@yandex.ru>
Sat, 22 Aug 2015 22:25:52 +0000 (01:25 +0300)
committerCryptoManiac <balthazar@yandex.ru>
Sat, 22 Aug 2015 22:25:52 +0000 (01:25 +0300)
Novacoin/ScriptCode.cs

index 04ca7c4..e6ce375 100644 (file)
@@ -1639,9 +1639,6 @@ namespace Novacoin
                                     case instruction.OP_0NOTEQUAL:
                                         bn = bn != 0 ? 1 : 0;
                                         break;
-
-                                    default:
-                                        throw new StackMachineException("invalid instruction");
                                 }
 
                                 popstack(ref stack);
@@ -1714,9 +1711,6 @@ namespace Novacoin
                                     case instruction.OP_MAX:
                                         bn = (bn1 > bn2 ? bn1 : bn2);
                                         break;
-
-                                    default:
-                                        throw new StackMachineException("invalid instruction");
                                 }
 
                                 popstack(ref stack);