forked from lthn/blockchain
core validation: additional condition validate_ado_ownership()
This commit is contained in:
parent
3d1ac6124e
commit
5f1defc5a1
1 changed files with 1 additions and 0 deletions
|
|
@ -4111,6 +4111,7 @@ bool validate_ado_ownership(asset_op_verification_context& avc)
|
|||
|
||||
if (last_ado.descriptor.owner_eth_pub_key.has_value())
|
||||
{
|
||||
CHECK_AND_ASSERT_MES(last_ado.descriptor.owner == null_pkey, false, "owner_eth_pub_key is set but owner pubkey is nonzero");
|
||||
asset_operation_ownership_proof_eth aoop_eth{};
|
||||
r = get_type_in_variant_container(avc.tx.proofs, aoop_eth);
|
||||
CHECK_AND_ASSERT_MES(r, false, "Ownership validation failed: asset_operation_ownership_proof_eth is missing");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue