Skip to content

Latest develop build incorrectly(?) handles sub qualifiers #1188

@kralverde

Description

@kralverde

Describe the issue

https://rvnt.cryptoscope.io/tx/?txid=39f584821bfaeb6472969f008d219d6886a9ea430ac948858530a2e252f7ba58
A restricted asset is sent to mnzcdtNKpTY7kpuaW7Th88HPnzxes3BLEd. This h160 is not qualified for the associated tag, but is qualified by the sub qualifier.

>>> address_to_h160('mnzcdtNKpTY7kpuaW7Th88HPnzxes3BLEd')
"52041e2126f9afb70f082caf28cbc0ea4568c682"
>>> send_custom_script('blockchain.asset.validator_string', '$RENEWABLOX')
{
    "height": 1124545,
    "qualifying_tx_pos": 3,
    "restricted_tx_pos": 4,
    "string": "KYCTEST",
    "tx_hash": "a2791de8bfca034f9801ac3a6411d6a8302d9e08a8064abe8e83c2a206e317cc"
}
>>> send_custom_script('blockchain.asset.all_tags', '52041e2126f9afb70f082caf28cbc0ea4568c682')
{
    "#KYCTEST": {
        "flag": false,
        "height": 1124625,
        "tx_hash": "ccebd395b263817f2f1ccf6e9a76a287332b1a5ed98d7fcd29ca1970739b3540",
        "tx_pos": 2
    },
    "#KYCTEST/#RNBX1_TEST": {
        "flag": true,
        "height": 1124809,
        "tx_hash": "744ae2f262efdab76d2398430cd9fe5213ee06e1925d709435d684e2e5afed23",
        "tx_pos": 2
    }
}

On nodes running 4.7.0-test3, this is valid. On nodes running the latest develop build (7f27d35), this fails (it works occasionally after some time for some reason). The error is: ERROR: ContextualCheckVerifierString: The address mnzcdtNKpTY7kpuaW7Th88HPnzxes3BLEd failed to verify against: KYCTEST. Is null 1.

As I understand, h160's tagged with a sub qualifier are treated as though they were tagged with the parent qualifier, correct?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions