mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-18 13:17:55 +02:00
Chainparams: Introduce -con_has_parent_chain option
This commit is contained in:
parent
e991626ad6
commit
38dc2e71b6
5 changed files with 14 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue