From 194d477adff5e93a0fde678999f440c130934947 Mon Sep 17 00:00:00 2001 From: gladcow Date: Thu, 26 Mar 2020 16:05:00 +0300 Subject: [PATCH] use OP_GREATERTHANOREQUAL instead of OP_GREATERTHAN in custom script to support sons with zero votes --- libraries/plugins/peerplays_sidechain/bitcoin_utils.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libraries/plugins/peerplays_sidechain/bitcoin_utils.cpp b/libraries/plugins/peerplays_sidechain/bitcoin_utils.cpp index 9457ee61..e9b4f6ad 100644 --- a/libraries/plugins/peerplays_sidechain/bitcoin_utils.cpp +++ b/libraries/plugins/peerplays_sidechain/bitcoin_utils.cpp @@ -35,6 +35,7 @@ static const unsigned char OP_SWAP = 0x7c; static const unsigned char OP_EQUAL = 0x87; static const unsigned char OP_ADD = 0x93; static const unsigned char OP_GREATERTHAN = 0xa0; +static const unsigned char OP_GREATERTHANOREQUAL = 0xa2; static const unsigned char OP_HASH160 = 0xa9; static const unsigned char OP_CHECKSIG = 0xac; @@ -371,7 +372,7 @@ bytes generate_redeem_script(std::vector(threshold_weight)); - result.push_back(OP_GREATERTHAN); + result.push_back(OP_GREATERTHANOREQUAL); return result; }