From bc93ae6ceebf25d728dfe50a3fd0aa67c3495790 Mon Sep 17 00:00:00 2001 From: jl777 Date: Wed, 13 Mar 2019 02:38:19 -1100 Subject: [PATCH] Allow claiming less than cashout value --- src/cc/rogue_rpc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cc/rogue_rpc.cpp b/src/cc/rogue_rpc.cpp index aa634e089..af96fd2a2 100644 --- a/src/cc/rogue_rpc.cpp +++ b/src/cc/rogue_rpc.cpp @@ -1597,7 +1597,7 @@ bool rogue_validate(struct CCcontract_info *cp,int32_t height,Eval *eval,const C fprintf(stderr,"%s\n",cashstr); } } else cashout = 10000; - if ( enabled != 0 && tx.vout[2].nValue != cashout ) + if ( enabled != 0 && tx.vout[2].nValue > cashout ) return eval->Invalid("mismatched cashout amount"); } if ( funcid == 'Q' )