KomodoPlatform / komodo-defi-framework

This is the official Komodo DeFi Framework repository
https://komodoplatform.com/en/docs/komodo-defi-framework/
103 stars 94 forks source link

error on refund of failed ARRR swaps #2171

Closed cipig closed 3 months ago

cipig commented 3 months ago

this swap failed and so did automatic refund with 64: non-final error

{
   "error_events" : [
      "StartFailed",
      "NegotiateFailed",
      "TakerFeeValidateFailed",
      "MakerPaymentTransactionFailed",
      "MakerPaymentDataSendFailed",
      "MakerPaymentWaitConfirmFailed",
      "TakerPaymentValidateFailed",
      "TakerPaymentWaitConfirmFailed",
      "TakerPaymentSpendFailed",
      "TakerPaymentSpendConfirmFailed",
      "MakerPaymentWaitRefundStarted",
      "MakerPaymentRefundStarted",
      "MakerPaymentRefunded",
      "MakerPaymentRefundFailed",
      "MakerPaymentRefundFinished"
   ],
   "events" : [
      {
         "event" : {
            "data" : {
               "lock_duration" : 31200,
               "maker_amount" : "2.636834932913524231021573904117990471084178749713682399235325450413683066492105411464181725831324749",
               "maker_coin" : "ARRR",
               "maker_coin_htlc_pubkey" : "02a7f01dfa18c89639087bcd8df1bc897882df3488b87607dc39e4236636e49378",
               "maker_coin_start_block" : 2865497,
               "maker_payment_confirmations" : 2,
               "maker_payment_lock" : 1712675651,
               "maker_payment_requires_nota" : true,
               "maker_payment_trade_fee" : {
                  "amount" : "0.00001",
                  "coin" : "ARRR",
                  "paid_from_trading_vol" : false
               },
               "my_persistent_pub" : "030cc432020d0bc06b4058b53bc223ed37d25a0c9b105fd2d10cf20210a5b821bf",
               "p2p_privkey" : [
                  186,
                  218,
                  38,
                  189,
                  168,
                  55,
                  93,
                  111,
                  218,
                  112,
                  166,
                  46,
                  154,
                  104,
                  119,
                  50,
                  238,
                  21,
                  25,
                  185,
                  229,
                  239,
                  250,
                  151,
                  33,
                  217,
                  227,
                  193,
                  243,
                  244,
                  76,
                  155
               ],
               "secret" : "fe1d0c11e0af2e9916c72c12680678d1b5ccb075b951decccb1652cbf05378ed",
               "secret_hash" : "4b56bddc8cf5424b08e6ad7045158d8074b609bb",
               "started_at" : 1712613251,
               "taker" : "053d3e801df98eeba3755fc1d6d1c59f91a2f81903507ee8a540941d8ea80895",
               "taker_amount" : "0.0008133604765579453064727226058807490469020497528975572151822878002275100510049146781151118129134836803",
               "taker_coin" : "BCH",
               "taker_coin_htlc_pubkey" : "030cc432020d0bc06b4058b53bc223ed37d25a0c9b105fd2d10cf20210a5b821bf",
               "taker_coin_start_block" : 840465,
               "taker_payment_confirmations" : 1,
               "taker_payment_requires_nota" : false,
               "taker_payment_spend_trade_fee" : {
                  "amount" : "0.00001",
                  "coin" : "BCH",
                  "paid_from_trading_vol" : true
               },
               "uuid" : "f3ca4e76-4838-477b-ba83-7768f66356dd"
            },
            "type" : "Started"
         },
         "timestamp" : 1712613251363
      },
      {
         "event" : {
            "data" : {
               "maker_coin_htlc_pubkey" : "02b864cffd5d02286d86897881710ec609a265feca4ac01f90b41bf1bd10d32bcd",
               "maker_coin_swap_contract_addr" : null,
               "taker_coin_htlc_pubkey" : "03053d3e801df98eeba3755fc1d6d1c59f91a2f81903507ee8a540941d8ea80895",
               "taker_coin_swap_contract_addr" : null,
               "taker_payment_locktime" : 1712644452,
               "taker_pubkey" : "000000000000000000000000000000000000000000000000000000000000000000"
            },
            "type" : "Negotiated"
         },
         "timestamp" : 1712613267367
      },
      {
         "event" : {
            "data" : null,
            "type" : "MakerPaymentInstructionsReceived"
         },
         "timestamp" : 1712613279706
      },
      {
         "event" : {
            "data" : {
               "tx_hash" : "1597b198f51d4efafe4ab19383e79a322e4d96b523bcefca3700be46d0a708c0",
               "tx_hex" : "01000000013aa8f8e435ccd8d4407a2e9259c357d05fa37b8a58f8b69632c09bf04aaf246a010000006b48304502210099b3252cf472db0ce78119c4e9080cb39eb48fd5c7b88cffb5860ab910a1aa440220172199dd7c3b915feee37efbbbce71a5829b9b35bc504de71ebd5e1f40c6f452412103053d3e801df98eeba3755fc1d6d1c59f91a2f81903507ee8a540941d8ea80895ffffffff02e8030000000000001976a914ca1e04745e8ca0c60d8c5881531d51bec470743f88ac5ba1bf0b000000001976a91495f3a64200b84e009c63f04608aae7c679500e8e88ac94671466"
            },
            "type" : "TakerFeeValidated"
         },
         "timestamp" : 1712613279706
      },
      {
         "event" : {
            "data" : {
               "tx_hash" : "eefc3829dd0d4d58606c0a6790f1ab05d1d008e0696e0d13c34234709e58fd56",
               "tx_hex" : "0400008085202f890002a57db70f0000000017a9148a651fa1ce34aba48e4b8dc33a98120ae06a720d8700000000000000006e6a4c6b6304435b1566b1752102a7f01dfa18c89639087bcd8df1bc897882df3488b87607dc39e4236636e49378ac6782012088a9144b56bddc8cf5424b08e6ad7045158d8074b609bb882102b864cffd5d02286d86897881710ec609a265feca4ac01f90b41bf1bd10d32bcdac68000000008ab92b008d81b70f0000000001c014eae57b5b8dc6c86a3ccdd21e1049cdc1e38aa0845f00a22749871a86983c4b232907131e5a49115c397834f287b3da756a1f6edda048f49b2095b28d3a0386ec8b6a16b541d6413b776ce7b4c4757a5f005a6e4ef8378974e6bc659b7c448f65dfdf5a139710cdea9a5a823450d3774eb66ecb1342fefbea10e7cd595791888a16d4dac82b9295a6a32a9dc81ac41fa6d31f950115fde031e2618d83a187d209b087e91f78c278d800adb91833e697504a10139aa73e039568572e8440ff6936423c5ec3c02ce34bbc89c4e6be2f0323e7baafa0b40b798659bc99ba63b818ec71cb2cf7bc96ce2b28d63736f087e22cd37d6b4d41db0a1d18300cad03f07e5c8126b769141a6c67c5db09cfb12186d90c936bec6eb09856b9d09f60835688e8d1368c0f9ff60259847d9fc480f12779c9d1f82e74d2315b58985762f34d2356c4092f2bf57d87e79258aeeaa91a6e2db592155a3faada58226d1d8dd1d82ba2da8feba71f4bb6c39061f80cb0cdb918f171214c8f7dd39ac814137c680902430c94e8f0942d3b72e854f7b93276cc09540813c76891b90f93c2bb776943467522cbac93654214b9e5f5de88c6947f4ee0386e2efa3129767bd83488e343420a6fe535317846b56a1e3f1b7a26da48bb541dc1886b05f530f166eb7baca02743740b88e8a885f50414d3e3d28ec8499d92906efab96816ddea755aa7096081af5d07572afe1be63f473afaa357ca41753606b1815af0d7f2b91eb15b16d8e390661cc96e77c943c79f285cf7decde9c3d779db0f6095450e4d6d3637d3ee70ad80581026d2ae000a4a7b072d17ce2fa378b5d894de9c76025b83b43882a024a2332622e4721f84ccb6711a84c86032b68232581fec21ee4179790b4bfd942d63a0897ac7547971293a8acacd9410b11f565915cbb729661f1c0aad3bfd54deac8914ef44fe893d00349067a2f9c2e404d9d4c2a1136959a3670ff47bd6c7f4b41b0e53bd205f4e9db8c159fb91255c6a5b492fb249cdb4060be75b8e0a1c5ca83e2613060638b7b405bd46ff7839e126959084f481c62dc45e63c06668ab58e7dc9a291419e45135fe030f8f3dd3361a6edb94813d60a0d601d48a39e24bee215b247a47bf52a100fb22684365d9935f5e0ae03545946c20e21e608da58e4321f1d23bb9a20f87882cada1de8722a4fe0797fc1d1f891f2624a139be5636615a6dede8aaa2d3f6884455976d9805370bd2901ee135c1abda1c82bc10b090364b766a15b57e86727ac351f8bc0a7e1714799db367e5151358e37dd5017955862fd047278e80436676a8745538e2e3ae310139f8bc5503d7fbe9188c926888d684764be760de2c9e0a33504b318157ec1c1f25a7bb028eaaae291ee5358986d9841e7eda722fa1fdd4366a70103f785efa9a5ded2eaee62632da054e5322db53f454873a058a64b3045e43584e3cf2da4b7ab71c0959fe354a104070db728fb07b647218b5a692e18342606d63fd9baaf462eacf4a0e027d5340e1b283a5e1a3f7f9c82cd14d2fc8006ddf2e505c8124a29d65bb93158d7fc2e5719bef0b71cfaae0e15756f09a221af1b93ffbc31518cd7b9951aa45a6ff849c14886a94ff5023095a78a6eeb6d32056c7dcf549f7d9ee8b3960fbcc1f9c0f35303c129ecb9217daf04f882be641569a13a38268469a3d7235d60b3f63e6bae30808600a1deaa6c98c1afe19e3b3611070bd0bcb5b83789e7709172265a90a043b978cd5c3bc5c47826d2c96448cd8e368a8e8e0bb79531af6180addfa99bfbc389f66ec7597f8c7625380b7e62ae82a071f60d8832075aaa3c3b519a7156e2a356574a5a8ba202b0a820a46b9c902909ddd973c2bfd36f0f14927d28eb14ce5d8cf71c479cd243babb57a3a0d394e9ba6b40829cb7400b6cc2931e5e652d25e670b644ecd1087ee714ad442af7415940b2256fb964a3dd9164f959bcd7bc5c2424f1d21e4678c9c9bce4d2f8f4557d4c8c9311245ad43df60012a0a1e66ee0ae8ac618e6d3b9dfc1ec364d51e7af458ef47b71ee76817651b83c8e4a27f548af3d88f1f40d750c55d831fcc79fc28431097c6291ce313eb0b20f7a6f15f9f8c5c1b18e423698a71cc674482bbfe38a283288e59ca8c2c95d39bcd216572787a73fc6f771193687af8b1a7bdb1ff8f0bfa9d336248bd6edf79cbe870411ff9332e93d6fccfa8d09559ea6a07f51569e6b08066b8ebb88fa812ff9533766058fae310fe7443373ef5709a4223a15637432b3fb12e3091d5b60d228601eb0cb2c35fb29aa11833c6bf00ac6a57cd1ce4b0a12ac0202deb4f638a77d59905bb18f5534bc086cb0765d1449614d66b3f47fb57625f3f58598545b376d4839094feecdf2bbd40f89c5550be3f69fdfe4c084f36369da4c6d9134dfc63c81d04deeff3985ebe6cd8dfa767ed9c12c39cdd69dc3d95828a7b9ac2edebce344b9b61872eb71a09563c5f947bf51d5f12d05903b5be0fb4551f34816c1b2b8454eddba2bd80dbaedc941787c07a7335af87293e40d34f253308b88ab603f9394643ac938974d25435dc8e067b17080424c9438ee8b6b93f8ae88fd2495293646df12b4a51be08d33b7559a21b3368c81d47c9c18618abaede78d57f9b1bee1f05039a6c89d8ee5e8ead909619eea1332950151de33b96affc9679f0054265b47b94d40a2794ba5472b0072270b797d5a623c1d031efde8045f69acaa9984b55cb64c981c12e55db0da74c3ca3c21db8974691cdc09d5f18ac446b0f7b45bf07ff78682ee587b4271d7b6887e014d9a675b3dab1cb1285bcf921f69f090c901b17027029670aa993af74b95fa51bb34a0d6f53404c0561e8ce740ef801fec1a1b3307fe2a2d6c94af4b2e11be274eedd9bb68cf85bbb3c7e6ed8cd9a99eac6ef6ba038b20a15170c9d1eb84192fbf8adee4a0aa0f5f877b758b5e25071522e03ffec4e5e9c18f12630b90481e21856e06f486cd7c29d9981678e6667028c035032cee5a8ce1eaa58e1508007368ec787938057cfd66f93bea751a89fea76c83f7753910ca819c84aaa6921a53b6d05ceccf9220523c7409793eb44c405ec7a6041168e5b39572a427809c4ac0bf777177dc89be713338c8f7915c0775448cfc82160078b1739480d2d292e1b3ff6e2c50af0db5e60b0994536fcc75f8007c8526615e2ccaf77fb928d1caa4b8b583f98473fff006db4310abfa67d6ae7c1a1151e630d5a217e54da07860d279f50d4128d74ecc2b9f813c366c9632b90fe757b6c692205cdc2df8dce57fa86d1851adda9db0b02"
            },
            "type" : "MakerPaymentSent"
         },
         "timestamp" : 1712615025780
      },
      {
         "event" : {
            "data" : {
               "error" : "lp_swap:405] Timeout (18811 > 18810)"
            },
            "type" : "TakerPaymentValidateFailed"
         },
         "timestamp" : 1712635623147
      },
      {
         "event" : {
            "data" : {
               "wait_until" : 1712679351
            },
            "type" : "MakerPaymentWaitRefundStarted"
         },
         "timestamp" : 1712635623149
      },
      {
         "event" : {
            "type" : "MakerPaymentRefundStarted"
         },
         "timestamp" : 1712635623150
      },
      {
         "event" : {
            "data" : {
               "error" : "maker_swap:1244] !maker_coin.send_maker_refunds_payment: mm2src/coins/z_coin.rs:1348] z_htlc:192] rpc_clients:2235] TxRecoverable(ZTransaction(Transaction { txid: TxId([97, 25, 32, 87, 202, 28, 227, 180, 34, 173, 148, 109, 220, 76, 255, 253, 38, 135, 193, 116, 127, 110, 213, 11, 163, 155, 188, 140, 247, 166, 59, 53]), data: TransactionData(\n                version = Sapling,\n                vin = [TxIn { prevout: OutPoint { hash: [86, 253, 88, 158, 112, 52, 66, 195, 19, 13, 110, 105, 224, 8, 208, 209, 5, 171, 241, 144, 103, 10, 108, 96, 88, 77, 13, 221, 41, 56, 252, 238], n: 0 }, script_sig: Script([72, 48, 69, 2, 33, 0, 152, 245, 18, 248, 36, 126, 191, 226, 254, 45, 14, 18, 142, 161, 143, 154, 54, 191, 204, 32, 188, 97, 126, 184, 102, 77, 167, 120, 108, 46, 150, 131, 2, 32, 56, 45, 195, 111, 80, 198, 148, 183, 196, 242, 37, 183, 175, 80, 24, 232, 106, 221, 65, 172, 60, 86, 87, 32, 97, 245, 85, 111, 58, 255, 147, 154, 1, 81, 76, 107, 99, 4, 67, 91, 21, 102, 177, 117, 33, 2, 167, 240, 29, 250, 24, 200, 150, 57, 8, 123, 205, 141, 241, 188, 137, 120, 130, 223, 52, 136, 184, 118, 7, 220, 57, 228, 35, 102, 54, 228, 147, 120, 172, 103, 130, 1, 32, 136, 169, 20, 75, 86, 189, 220, 140, 245, 66, 75, 8, 230, 173, 112, 69, 21, 141, 128, 116, 182, 9, 187, 136, 33, 2, 184, 100, 207, 253, 93, 2, 40, 109, 134, 137, 120, 129, 113, 14, 198, 9, 162, 101, 254, 202, 74, 192, 31, 144, 180, 27, 241, 189, 16, 211, 43, 205, 172, 104]), sequence: 4294967294 }],\n                vout = [],\n                lock_time = 1712675651,\n                expiry_height = BlockHeight(2866535),\n                value_balance = Amount(-263682493),\n                shielded_spends = [],\n                shielded_outputs = [OutputDescription(cv = ExtendedPoint { u: 0x02286de78110f7fea0b1aad0f58df11fd2a5591e4bd32bb6941498d59ad1d74f, v: 0x5a0e8d5deab9e2d24cbc3cb289b44c7b59634e8112b266b080c26a7dbac23a00, z: 0x18884de35e955c171a82ba8f4eee064f199d4790976ba46ec163a61d684d61f3, t1: 0x2eef8f79ec0c2a8262f5f0fae2240ff7a779788e81af1cdc1af5be977382a449, t2: 0x4878acb9c1d9d076cf77f155a2ec75431a1ddde4c6cd6eef8a41c52888c40d6d }, cmu = 0x5ef380e0cab82b9e6abec2747bd8868a1abd97035e53c22b2623a4b70334d06b, ephemeral_key = ExtendedPoint { u: 0x370ae6f39fff6111a0f2ff4e5541d0715ce250cd68a3f6041b0d7f91b4af0462, v: 0x066fd609048da2fa0db7d35b7ebe786e4241154535923449fa1eaf9a3254b621, z: 0x1c283b6d8f1fe98c2cdfb1c80e4ad63d96a43090e8e83805c747c529d6a1a013, t1: 0x097049aadcb1a4b1e45640b4860963cecbb771867c0bf2783ac87abedbcb4390, t2: 0x2938977476307f5ba43a662ea0237f6a4c86089e20e719643e99d4b2b0b23a26 })],\n                joinsplits = [],\n                joinsplit_pubkey = None,\n                binding_sig = Some(Signature { rbar: [54, 54, 61, 69, 30, 242, 13, 212, 191, 108, 10, 104, 110, 34, 99, 40, 121, 155, 219, 37, 152, 88, 11, 4, 178, 81, 249, 167, 125, 168, 69, 141], sbar: [242, 159, 29, 74, 32, 90, 215, 246, 210, 211, 148, 191, 165, 98, 159, 3, 105, 22, 18, 181, 112, 225, 40, 222, 68, 18, 240, 195, 34, 6, 151, 13] })) }), \"JsonRpcError { client_info: \\\"coin: ARRR\\\", request: JsonRpcRequest { jsonrpc: \\\"2.0\\\", id: \\\"49219\\\", method: \\\"blockchain.transaction.broadcast\\\", params: [String(\\\"0400008085202f890156fd589e703442c3130d6e69e008d0d105abf190670a6c60584d0ddd2938fcee00000000b748304502210098f512f8247ebfe2fe2d0e128ea18f9a36bfcc20bc617eb8664da7786c2e96830220382dc36f50c694b7c4f225b7af5018e86add41ac3c56572061f5556f3aff939a01514c6b6304435b1566b1752102a7f01dfa18c89639087bcd8df1bc897882df3488b87607dc39e4236636e49378ac6782012088a9144b56bddc8cf5424b08e6ad7045158d8074b609bb882102b864cffd5d02286d86897881710ec609a265feca4ac01f90b41bf1bd10d32bcdac68feffffff00435b156667bd2b00438648f0ffffffff0001038bbf8d43149c6cd122e0f3a7070a1f4e79da22757a582b635774f89fb2355a6bd03403b7a423262bc2535e0397bd1a8a86d87b74c2be6a9e2bb8cae080f35e5bb9f4cb3836e878ceea73b27f955fbf13b5c4240866a1f5db4b62587f1ed89b2bd521686d69285a9cbd47735164a13d58a436492cf5a60144f7482266eef72919d8a2ff118522f5998dd9f5c0f92ceaf90b5cc6d21f6d17cc1aba9a060369d27542317c7c6981ea276db78153adc7500c9aa844f2618af6ebdd835edeeb20efc5affd0d6c1a6c1f70d53a32e7e8ca9e58d089f4aef9cd950e38aa3d49f18f4367a2b48027bcdc4cd4ce7b61c74193a7aa4b82df57c3e787a17f3773207fc0eddfd911698c7b8c31bcb788b4c5e648aacaab6a7d339cfa776d94fbbc325c1c406a69ce30e3d46ce42c41ab29320053dac79877a0e7ad17f026cad97d823896cab6f4d19d2b468f142b7e0e04f27282a2141bdbba656935441b6f31fc8bfb5eca8bf960637c34c32b01e3b98cf82736feb7b2a7900003363ee0988c29e4f5bbb8fe4d100376787981f3263c86f96095d56a478c407486a1499eab3f11702e2c74310eff6126bd3984d75ea8f0b35d1e6df5e0d3e527e72bba14e61f99c9fecab8ed9877a8cf820882c8650432021650acf385c840cd6cfa185811503389e2e74d1eb0acdc8485b24c6b456eb0dc6468aebca6d512eb7da390ee59ed2d9f64550c8fa92cb4c0ee8cc2efe227da4fc87843c9387ea22809fce5828b3310b70a251f9f0c8995c4ee12ec092c8f57e835be02224234de3638d75b8b0eda9a79ecbf2bb327dea8d6b67f250719d76a1857f26a449378d9661d373a38ca47288e1f8644150452c6469747cf8a4c0c6800d5b7d355d42486aa21dfb84b511c50805b17a0de4f26981febb3584291675578e4278b56cbd28ff6dc36667d9adbaa4245bb6a9ab25c5a9437bf3150148d9515380548fdc75b8f570e731a45a4a09b78316c3af124e6533b328361773c4045d024bcb9f9ca71224513193273667094697c9523e60d05eabc3ba14d4bdc15d459b0f980d9e5588bb0349735fb00bc3fbd68b88e0065b770463020691591903b51a8655760a442a84d2c533356a39eff9b419323d93cc31dad0017e98baf9207916f7d76162754d107a921b25be3ad56514ab5cb2bf1ede1fbdd33bf09a3199d9010431a336325de0448e7ff90fbea7216f7fa30f84c18c9b1527330165f39055851dc58bad9c86475d32de4e4d0952af19f63a904ab9f149087cadebfe8a7663a6ea127cbe531871ed9fda61c2b4366dc0e11d6899d899167e402081608348cda3155177925aa7a0036363d451ef20dd4bf6c0a686e226328799bdb2598580b04b251f9a77da8458df29f1d4a205ad7f6d2d394bfa5629f03691612b570e128de4412f0c32206970d\\\")] }, error: Response(electrum2.cipig.net:10008, Object({\\\"code\\\": Number(1), \\\"message\\\": String(\\\"the transaction was rejected by network rules.\\\\n\\\\n64: non-final\\\\n[0400008085202f890156fd589e703442c3130d6e69e008d0d105abf190670a6c60584d0ddd2938fcee00000000b748304502210098f512f8247ebfe2fe2d0e128ea18f9a36bfcc20bc617eb8664da7786c2e96830220382dc36f50c694b7c4f225b7af5018e86add41ac3c56572061f5556f3aff939a01514c6b6304435b1566b1752102a7f01dfa18c89639087bcd8df1bc897882df3488b87607dc39e4236636e49378ac6782012088a9144b56bddc8cf5424b08e6ad7045158d8074b609bb882102b864cffd5d02286d86897881710ec609a265feca4ac01f90b41bf1bd10d32bcdac68feffffff00435b156667bd2b00438648f0ffffffff0001038bbf8d43149c6cd122e0f3a7070a1f4e79da22757a582b635774f89fb2355a6bd03403b7a423262bc2535e0397bd1a8a86d87b74c2be6a9e2bb8cae080f35e5bb9f4cb3836e878ceea73b27f955fbf13b5c4240866a1f5db4b62587f1ed89b2bd521686d69285a9cbd47735164a13d58a436492cf5a60144f7482266eef72919d8a2ff118522f5998dd9f5c0f92ceaf90b5cc6d21f6d17cc1aba9a060369d27542317c7c6981ea276db78153adc7500c9aa844f2618af6ebdd835edeeb20efc5affd0d6c1a6c1f70d53a32e7e8ca9e58d089f4aef9cd950e38aa3d49f18f4367a2b48027bcdc4cd4ce7b61c74193a7aa4b82df57c3e787a17f3773207fc0eddfd911698c7b8c31bcb788b4c5e648aacaab6a7d339cfa776d94fbbc325c1c406a69ce30e3d46ce42c41ab29320053dac79877a0e7ad17f026cad97d823896cab6f4d19d2b468f142b7e0e04f27282a2141bdbba656935441b6f31fc8bfb5eca8bf960637c34c32b01e3b98cf82736feb7b2a7900003363ee0988c29e4f5bbb8fe4d100376787981f3263c86f96095d56a478c407486a1499eab3f11702e2c74310eff6126bd3984d75ea8f0b35d1e6df5e0d3e527e72bba14e61f99c9fecab8ed9877a8cf820882c8650432021650acf385c840cd6cfa185811503389e2e74d1eb0acdc8485b24c6b456eb0dc6468aebca6d512eb7da390ee59ed2d9f64550c8fa92cb4c0ee8cc2efe227da4fc87843c9387ea22809fce5828b3310b70a251f9f0c8995c4ee12ec092c8f57e835be02224234de3638d75b8b0eda9a79ecbf2bb327dea8d6b67f250719d76a1857f26a449378d9661d373a38ca47288e1f8644150452c6469747cf8a4c0c6800d5b7d355d42486aa21dfb84b511c50805b17a0de4f26981febb3584291675578e4278b56cbd28ff6dc36667d9adbaa4245bb6a9ab25c5a9437bf3150148d9515380548fdc75b8f570e731a45a4a09b78316c3af124e6533b328361773c4045d024bcb9f9ca71224513193273667094697c9523e60d05eabc3ba14d4bdc15d459b0f980d9e5588bb0349735fb00bc3fbd68b88e0065b770463020691591903b51a8655760a442a84d2c533356a39eff9b419323d93cc31dad0017e98baf9207916f7d76162754d107a921b25be3ad56514ab5cb2bf1ede1fbdd33bf09a3199d9010431a336325de0448e7ff90fbea7216f7fa30f84c18c9b1527330165f39055851dc58bad9c86475d32de4e4d0952af19f63a904ab9f149087cadebfe8a7663a6ea127cbe531871ed9fda61c2b4366dc0e11d6899d899167e402081608348cda3155177925aa7a0036363d451ef20dd4bf6c0a686e226328799bdb2598580b04b251f9a77da8458df29f1d4a205ad7f6d2d394bfa5629f03691612b570e128de4412f0c32206970d]\\\")})) }\")"
            },
            "type" : "MakerPaymentRefundFailed"
         },
         "timestamp" : 1712675655370
      },
      {
         "event" : {
            "type" : "Finished"
         },
         "timestamp" : 1712675655375
      }
   ],
   "gui" : "mpm",
   "maker_amount" : "2.636834932913524231021573904117990471084178749713682399235325450413683066492105411464181725831324749",
   "maker_coin" : "ARRR",
   "maker_coin_usd_price" : null,
   "mm_version" : "2.0.0-beta_b0fd99e",
   "my_order_uuid" : "96accc8e-1e33-4fe9-a59a-b0a83fd1db44",
   "success_events" : [
      "Started",
      "Negotiated",
      "MakerPaymentInstructionsReceived",
      "TakerFeeValidated",
      "MakerPaymentSent",
      "TakerPaymentReceived",
      "TakerPaymentWaitConfirmStarted",
      "TakerPaymentValidatedAndConfirmed",
      "TakerPaymentSpent",
      "TakerPaymentSpendConfirmStarted",
      "TakerPaymentSpendConfirmed",
      "Finished"
   ],
   "taker_amount" : "0.0008133604765579453064727226058807490469020497528975572151822878002275100510049146781151118129134836803",
   "taker_coin" : "BCH",
   "taker_coin_usd_price" : null,
   "type" : "Maker",
   "uuid" : "f3ca4e76-4838-477b-ba83-7768f66356dd"
}

this is nothing new, see https://github.com/KomodoPlatform/komodo-defi-framework/issues/1703

new problem is that calling recover_funds_of_swap manually later fails too... but not with the expected non-final error, but like this:

curl -s --url "http://127.0.0.1:7783" --data "{\"userpass\":\"$userpass\",\"method\":\"recover_funds_of_swap\",\"params\":{\"uuid\":\"f3ca4e76-4838-477b-ba83-7768f66356dd\"}}" | json_pp

{
   "error" : "rpc:215] dispatcher_legacy:141] lp_swap:1525] saved_swap:114] maker_swap:1518] Error utxo_common:4368] Transaction Transaction { version: 4, n_time: None, overwintered: true, version_group_id: 2301567109, inputs: [], outputs: [TransactionOutput { value: 263683493, script_pubkey: a9148a651fa1ce34aba48e4b8dc33a98120ae06a720d87 }, TransactionOutput { value: 0, script_pubkey: 6a4c6b6304435b1566b1752102a7f01dfa18c89639087bcd8df1bc897882df3488b87607dc39e4236636e49378ac6782012088a9144b56bddc8cf5424b08e6ad7045158d8074b609bb882102b864cffd5d02286d86897881710ec609a265feca4ac01f90b41bf1bd10d32bcdac68 }], lock_time: 0, expiry_height: 2865546, shielded_spends: [ShieldedSpend { cv: c014eae57b5b8dc6c86a3ccdd21e1049cdc1e38aa0845f00a22749871a86983c, anchor: 4b232907131e5a49115c397834f287b3da756a1f6edda048f49b2095b28d3a03, nullifier: 86ec8b6a16b541d6413b776ce7b4c4757a5f005a6e4ef8378974e6bc659b7c44, rk: 8f65dfdf5a139710cdea9a5a823450d3774eb66ecb1342fefbea10e7cd595791, zkproof: 888a16d4dac82b9295a6a32a9dc81ac41fa6d31f950115fde031e2618d83a187d209b087e91f78c278d800adb91833e697504a10139aa73e039568572e8440ff6936423c5ec3c02ce34bbc89c4e6be2f0323e7baafa0b40b798659bc99ba63b818ec71cb2cf7bc96ce2b28d63736f087e22cd37d6b4d41db0a1d18300cad03f07e5c8126b769141a6c67c5db09cfb12186d90c936bec6eb09856b9d09f60835688e8d1368c0f9ff60259847d9fc480f12779c9d1f82e74d2315b58985762f34d, spend_auth_sig: 2356c4092f2bf57d87e79258aeeaa91a6e2db592155a3faada58226d1d8dd1d82ba2da8feba71f4bb6c39061f80cb0cdb918f171214c8f7dd39ac814137c6809 }], shielded_outputs: [ShieldedOutput { cv: 430c94e8f0942d3b72e854f7b93276cc09540813c76891b90f93c2bb77694346, cmu: 7522cbac93654214b9e5f5de88c6947f4ee0386e2efa3129767bd83488e34342, ephemeral_key: 0a6fe535317846b56a1e3f1b7a26da48bb541dc1886b05f530f166eb7baca027, enc_cipher_text: 43740b88e8a885f50414d3e3d28ec8499d92906efab96816ddea755aa7096081af5d07572afe1be63f473afaa357ca41753606b1815af0d7f2b91eb15b16d8e390661cc96e77c943c79f285cf7decde9c3d779db0f6095450e4d6d3637d3ee70ad80581026d2ae000a4a7b072d17ce2fa378b5d894de9c76025b83b43882a024a2332622e4721f84ccb6711a84c86032b68232581fec21ee4179790b4bfd942d63a0897ac7547971293a8acacd9410b11f565915cbb729661f1c0aad3bfd54deac8914ef44fe893d00349067a2f9c2e404d9d4c2a1136959a3670ff47bd6c7f4b41b0e53bd205f4e9db8c159fb91255c6a5b492fb249cdb4060be75b8e0a1c5ca83e2613060638b7b405bd46ff7839e126959084f481c62dc45e63c06668ab58e7dc9a291419e45135fe030f8f3dd3361a6edb94813d60a0d601d48a39e24bee215b247a47bf52a100fb22684365d9935f5e0ae03545946c20e21e608da58e4321f1d23bb9a20f87882cada1de8722a4fe0797fc1d1f891f2624a139be5636615a6dede8aaa2d3f6884455976d9805370bd2901ee135c1abda1c82bc10b090364b766a15b57e86727ac351f8bc0a7e1714799db367e5151358e37dd5017955862fd047278e80436676a8745538e2e3ae310139f8bc5503d7fbe9188c926888d684764be760de2c9e0a33504b318157ec1c1f25a7bb028eaaae291ee5358986d9841e7eda722fa1fdd4366a70103f785efa9a5ded2eaee62632da054e5322db53f454873a058a64b3045e43584e3cf2da4b7ab71c0959fe354a104070db728fb07b647218, out_cipher_text: b5a692e18342606d63fd9baaf462eacf4a0e027d5340e1b283a5e1a3f7f9c82cd14d2fc8006ddf2e505c8124a29d65bb93158d7fc2e5719bef0b71cfaae0e15756f09a221af1b93ffbc31518cd7b9951, zkproof: aa45a6ff849c14886a94ff5023095a78a6eeb6d32056c7dcf549f7d9ee8b3960fbcc1f9c0f35303c129ecb9217daf04f882be641569a13a38268469a3d7235d60b3f63e6bae30808600a1deaa6c98c1afe19e3b3611070bd0bcb5b83789e7709172265a90a043b978cd5c3bc5c47826d2c96448cd8e368a8e8e0bb79531af6180addfa99bfbc389f66ec7597f8c7625380b7e62ae82a071f60d8832075aaa3c3b519a7156e2a356574a5a8ba202b0a820a46b9c902909ddd973c2bfd36f0f149 }, ShieldedOutput { cv: 27d28eb14ce5d8cf71c479cd243babb57a3a0d394e9ba6b40829cb7400b6cc29, cmu: 31e5e652d25e670b644ecd1087ee714ad442af7415940b2256fb964a3dd9164f, ephemeral_key: 959bcd7bc5c2424f1d21e4678c9c9bce4d2f8f4557d4c8c9311245ad43df6001, enc_cipher_text: 2a0a1e66ee0ae8ac618e6d3b9dfc1ec364d51e7af458ef47b71ee76817651b83c8e4a27f548af3d88f1f40d750c55d831fcc79fc28431097c6291ce313eb0b20f7a6f15f9f8c5c1b18e423698a71cc674482bbfe38a283288e59ca8c2c95d39bcd216572787a73fc6f771193687af8b1a7bdb1ff8f0bfa9d336248bd6edf79cbe870411ff9332e93d6fccfa8d09559ea6a07f51569e6b08066b8ebb88fa812ff9533766058fae310fe7443373ef5709a4223a15637432b3fb12e3091d5b60d228601eb0cb2c35fb29aa11833c6bf00ac6a57cd1ce4b0a12ac0202deb4f638a77d59905bb18f5534bc086cb0765d1449614d66b3f47fb57625f3f58598545b376d4839094feecdf2bbd40f89c5550be3f69fdfe4c084f36369da4c6d9134dfc63c81d04deeff3985ebe6cd8dfa767ed9c12c39cdd69dc3d95828a7b9ac2edebce344b9b61872eb71a09563c5f947bf51d5f12d05903b5be0fb4551f34816c1b2b8454eddba2bd80dbaedc941787c07a7335af87293e40d34f253308b88ab603f9394643ac938974d25435dc8e067b17080424c9438ee8b6b93f8ae88fd2495293646df12b4a51be08d33b7559a21b3368c81d47c9c18618abaede78d57f9b1bee1f05039a6c89d8ee5e8ead909619eea1332950151de33b96affc9679f0054265b47b94d40a2794ba5472b0072270b797d5a623c1d031efde8045f69acaa9984b55cb64c981c12e55db0da74c3ca3c21db8974691cdc09d5f18ac446b0f7b45bf07ff78682ee587b4271d7b6887e014d9a675b3dab1cb1285bcf921f69f090c901b170270, out_cipher_text: 29670aa993af74b95fa51bb34a0d6f53404c0561e8ce740ef801fec1a1b3307fe2a2d6c94af4b2e11be274eedd9bb68cf85bbb3c7e6ed8cd9a99eac6ef6ba038b20a15170c9d1eb84192fbf8adee4a0a, zkproof: a0f5f877b758b5e25071522e03ffec4e5e9c18f12630b90481e21856e06f486cd7c29d9981678e6667028c035032cee5a8ce1eaa58e1508007368ec787938057cfd66f93bea751a89fea76c83f7753910ca819c84aaa6921a53b6d05ceccf9220523c7409793eb44c405ec7a6041168e5b39572a427809c4ac0bf777177dc89be713338c8f7915c0775448cfc82160078b1739480d2d292e1b3ff6e2c50af0db5e60b0994536fcc75f8007c8526615e2ccaf77fb928d1caa4b8b583f98473fff }], join_splits: [], value_balance: 263684493, join_split_pubkey: 0000000000000000000000000000000000000000000000000000000000000000, join_split_sig: 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, binding_sig: 6db4310abfa67d6ae7c1a1151e630d5a217e54da07860d279f50d4128d74ecc2b9f813c366c9632b90fe757b6c692205cdc2df8dce57fa86d1851adda9db0b02, zcash: true, posv: false, str_d_zeel: None, tx_hash_algo: DSHA256 } output 0 script_pubkey doesn't match expected a9149c42bd20389ec77bb03321e8b86e252a3d73d12c87 when trying to find maker payment spend"
}

what does output 0 script_pubkey doesn't match expected a9149c42bd20389ec77bb03321e8b86e252a3d73d12c87 when trying to find maker payment spend mean?

mm2 version is latest from dev, https://sdk.devbuilds.komodo.earth/dev/mm2_c5e0e00-linux-x86-64.zip

cipig commented 3 months ago

the same swap shows this on mm2 2.0.0 on recover_funds_of_swap:

{"error":"rpc:215] dispatcher_legacy:141] lp_swap:1402] saved_swap:111] maker_swap:1505] Maker payment was already refunded by ARRR tx a47a3a0239e634354ccbb6cd1134f35752999c07151dfb94db4ac88c4b44ce76"}

so the swap was already refunded, but mm2 2.0.1 doesn't see this and shows the output 0 script_pubkey doesn't match expected a9149c42bd20389ec77bb03321e8b86e252a3d73d12c87 when trying to find maker payment spend error instead

shamardy commented 3 months ago

Fixed in https://github.com/KomodoPlatform/komodo-defi-framework/pull/2184