Skip to content

Commit

Permalink
Recognise multisig coldstaking output as stakable (navcoin#826)
Browse files Browse the repository at this point in the history
  • Loading branch information
alex v authored Apr 13, 2021
1 parent 0772f20 commit a85da83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/script/standard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ bool Solver(const CScript& scriptPubKey, txnouttype& typeRet, vector<vector<unsi
}

// Shortcut for cold stake, so we don't need to match a template
if (scriptPubKey.IsColdStaking() && scriptPubKey.size() == 1+1+25+1+25+1)
if (scriptPubKey.IsColdStaking() && scriptPubKey.size() >= 1+1+25+1+25+1)
{
typeRet = TX_COLDSTAKING;
vector<unsigned char> stakingPubKey(scriptPubKey.begin()+5, scriptPubKey.begin()+25);
Expand Down

0 comments on commit a85da83

Please sign in to comment.