simplify redeem script
This commit is contained in:
parent
c67cc5b673
commit
c5c6dd8721
2 changed files with 2 additions and 3 deletions
|
|
@ -388,9 +388,7 @@ void btc_one_or_weighted_multisig_address::create_redeem_script(const fc::ecc::p
|
|||
script_builder builder;
|
||||
builder << user_key_data.serialize();
|
||||
builder << op::CHECKSIG;
|
||||
builder << op::IF;
|
||||
builder << op::_1;
|
||||
builder << op::ELSE;
|
||||
builder << op::NOTIF;
|
||||
uint32_t total_weight = 0;
|
||||
builder << uint32_t(0);
|
||||
for (auto &p : keys_data) {
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@ enum class op {
|
|||
|
||||
// control
|
||||
IF = 0x63,
|
||||
NOTIF = 0x64,
|
||||
ELSE = 0x67,
|
||||
ENDIF = 0x68,
|
||||
RETURN = 0x6a,
|
||||
|
|
|
|||
Loading…
Reference in a new issue