I try to spend a P2SH transaction (in regtest) with a timelockscript of 200 blocks. I got the following error:
mandatory-script-verify-flag-failed (Script failed an OP_EQUALVERIFY operation) (code 16)
Unfortunately I can't find the error, as the script and the sequence seems to be fine.
decodescript 02c800b27576a921023fb59ee7e5722a9c559d366f6ca114c73361108c04e27a18060cef7a727d58a988ac
{
"asm": "200 OP_CHECKSEQUENCEVERIFY OP_DROP OP_DUP OP_HASH160 023fb59ee7e5722a9c559d366f6ca114c73361108c04e27a18060cef7a727d58a9 OP_EQUALVERIFY OP_CHECKSIG",
"type": "nonstandard",
"p2sh": "2NF4BoboM58w8JJgdvbe7i6J3R8Kb3Gugqi",
"segwit": {
"asm": "0 da6ffdda71c413d3b26344158aac0f086bf5d979df2b81f9551da5ef62ee71b0",
"hex": "0020da6ffdda71c413d3b26344158aac0f086bf5d979df2b81f9551da5ef62ee71b0",
"reqSigs": 1,
"type": "witness_v0_scripthash",
"addresses": [
"bcrt1qmfhlmkn3csfa8vnrgs2c4tq0pp4ltktemu4cr724rkj77chwwxcq84ftzy"
],
"p2sh-segwit": "2MvKhZeGAV5KpkQXYnB4BydLMwMZGw6N8Ap"
}
}
decoderawtransaction 02000000013db72755b71d95be7f6785448b5387b6273ca26fd5e42204390899154b111a5300000000754830450221009b813cf658ec2c30e68fd23c369c348fd5f915f77b49581a945aa2f2f2d3c8aa022058f6a7eb78b2132d24cc260699fdc158fda6f3a0d10bc3c52bacccc03bb6b8cb012b02c800b27576a921023fb59ee7e5722a9c559d366f6ca114c73361108c04e27a18060cef7a727d58a988acc800007f0100127a00000000001976a914fd337ad3bf81e086d96a68e1f8d6a0a510f8c24a88ac00000000
{
"txid": "7f0262e1448896a4091bf9d1c55e346766b2aa8c19895bccaf2194b610f02525",
"hash": "7f0262e1448896a4091bf9d1c55e346766b2aa8c19895bccaf2194b610f02525",
"version": 2,
"size": 202,
"vsize": 202,
"weight": 808,
"locktime": 0,
"vin": [
{
"txid": "531a114b159908390422e4d56fa23c27b687538b4485677fbe951db75527b73d",
"vout": 0,
"scriptSig": {
"asm": "30450221009b813cf658ec2c30e68fd23c369c348fd5f915f77b49581a945aa2f2f2d3c8aa022058f6a7eb78b2132d24cc260699fdc158fda6f3a0d10bc3c52bacccc03bb6b8cb[ALL] 02c800b27576a921023fb59ee7e5722a9c559d366f6ca114c73361108c04e27a18060cef7a727d58a988ac",
"hex": "4830450221009b813cf658ec2c30e68fd23c369c348fd5f915f77b49581a945aa2f2f2d3c8aa022058f6a7eb78b2132d24cc260699fdc158fda6f3a0d10bc3c52bacccc03bb6b8cb012b02c800b27576a921023fb59ee7e5722a9c559d366f6ca114c73361108c04e27a18060cef7a727d58a988ac"
},
"sequence": 2130706632
}
],
"vout": [
{
"value": 0.08000000,
"n": 0,
"scriptPubKey": {
"asm": "OP_DUP OP_HASH160 fd337ad3bf81e086d96a68e1f8d6a0a510f8c24a OP_EQUALVERIFY OP_CHECKSIG",
"hex": "76a914fd337ad3bf81e086d96a68e1f8d6a0a510f8c24a88ac",
"reqSigs": 1,
"type": "pubkeyhash",
"addresses": [
"n4bkvTyU1dVdzsrhWBqBw8fEMbHjJvtmJR"
]
}
}
]
}