Chainparams: Introduce -con_has_parent_chain option

This commit is contained in:
Jorge Timón 2018-07-18 01:13:45 +02:00
parent e991626ad6
commit 38dc2e71b6
No known key found for this signature in database
GPG key ID: 8866C18EA1C944A2
5 changed files with 14 additions and 2 deletions

View file

@ -2442,6 +2442,11 @@ static bool CheckPeginTx(const std::vector<unsigned char>& tx_data, T& pegtx, co
bool IsValidPeginWitness(const CScriptWitness& pegin_witness, const COutPoint& prevout, bool check_depth) {
// 0) Return false if !consensus.has_parent_chain
if (!Params().GetConsensus().has_parent_chain) {
return false;
}
// Format on stack is as follows:
// 1) value - the value of the pegin output
// 2) asset type - the asset type being pegged in