comit-network / xmr-btc-swap

Bitcoin–Monero Cross-chain Atomic Swap
GNU General Public License v3.0
652 stars 82 forks source link

Monero lock transaction rejected by daemon #534

Open da-kami opened 3 years ago

da-kami commented 3 years ago

Scenario:

wallet RPC log:

2021-05-24 08:55:47.842 E daemon_send_resp.status != CORE_RPC_STATUS_OK. THROW EXCEPTION: error::tx_rejected

ASB log:

2021-05-24 18:30:35 DEBUG Subscribed to updates for ticker
2021-05-24 18:30:39 DEBUG Transaction txid=cd85793f86818c6fe56c270d23d193920b735e59d97ba1bd8a58687f9b094425 status=unseen
2021-05-24 18:30:39 DEBUG Transaction txid=0e7d495df5c59fd5ed4e5f63ced867ecba03de58dcc8d4823e0edacb19fee017 status=unseen
2021-05-24 18:33:03 DEBUG New connection established peer=12D3KooWB6TRYirguzLdzEyx9piAFN6gvSX4GyekbfM7M5EfhPiU address=/ip4/127.0.0.1/tcp/50986
2021-05-24 18:33:46 DEBUG Min relay fee: 0.00001000 BTC
2021-05-24 18:33:46 DEBUG Estimated fee for weight: 548 for fee_rate: 1 is in total: 137.0
2021-05-24 18:33:46  WARN Estimated fee of 137.0 is smaller than the min relay fee, defaulting to min relay fee 1000
2021-05-24 18:33:46 DEBUG Min relay fee: 0.00001000 BTC
2021-05-24 18:33:46 DEBUG Estimated fee for weight: 548 for fee_rate: 1 is in total: 137.0
2021-05-24 18:33:46  WARN Estimated fee of 137.0 is smaller than the min relay fee, defaulting to min relay fee 1000
2021-05-24 18:33:48 DEBUG Spot price response sent peer=12D3KooWB6TRYirguzLdzEyx9piAFN6gvSX4GyekbfM7M5EfhPiU
2021-05-24 18:33:51  INFO swap{id=9e837c22-47cd-48c7-8843-8970630de618}: Advancing state state=started rate=0.00651800 BTC
2021-05-24 18:33:51  INFO swap{id=9e837c22-47cd-48c7-8843-8970630de618}: Waiting for Bitcoin transaction finality txid=e360a1243739c22a6739fdba00c4429ff9c9f6692a72886c3a0842822516a5c8 required_confirmation=2
2021-05-24 18:33:56 DEBUG Transaction txid=e360a1243739c22a6739fdba00c4429ff9c9f6692a72886c3a0842822516a5c8 status=unseen
2021-05-24 18:34:32 DEBUG Transaction txid=e360a1243739c22a6739fdba00c4429ff9c9f6692a72886c3a0842822516a5c8 status=in mempool
2021-05-24 18:36:35 DEBUG Got notification for new block block_height=1976464
2021-05-24 18:36:35 DEBUG Transaction txid=e360a1243739c22a6739fdba00c4429ff9c9f6692a72886c3a0842822516a5c8 status=confirmed with 1 blocks
2021-05-24 18:36:35  INFO swap{id=9e837c22-47cd-48c7-8843-8970630de618}: Waiting for Bitcoin transaction finality txid=e360a1243739c22a6739fdba00c4429ff9c9f6692a72886c3a0842822516a5c8 seen_confirmations=1 needed_confirmations=2
2021-05-24 18:55:31 DEBUG Got notification for new block block_height=1976465
2021-05-24 18:55:31 DEBUG Transaction txid=e360a1243739c22a6739fdba00c4429ff9c9f6692a72886c3a0842822516a5c8 status=confirmed with 2 blocks
2021-05-24 18:55:31  INFO swap{id=9e837c22-47cd-48c7-8843-8970630de618}: Waiting for Bitcoin transaction finality txid=e360a1243739c22a6739fdba00c4429ff9c9f6692a72886c3a0842822516a5c8 seen_confirmations=2 needed_confirmations=2
2021-05-24 18:55:31  INFO swap{id=9e837c22-47cd-48c7-8843-8970630de618}: Advancing state state=btc is locked rate=0.00654200 BTC
2021-05-24 18:55:47 ERROR swap{id=9e837c22-47cd-48c7-8843-8970630de618}: error=JSON-RPC request failed with code -4: transaction was rejected by daemon
2021-05-24 18:55:47 ERROR Swap failed. Error JSON-RPC request failed with code -4: transaction was rejected by daemon: JSON-RPC request failed with code -4: transaction was rejected by daemon swap_id=9e837c22-47cd-48c7-8843-8970630de618
2021-05-24 18:55:47 DEBUG A swap stopped without sending a transfer proof. Error request channel closed
2021-05-24 18:56:32 DEBUG Got notification for new block block_height=1976466
2021-05-24 18:56:32 DEBUG Transaction txid=e360a1243739c22a6739fdba00c4429ff9c9f6692a72886c3a0842822516a5c8 status=confirmed with 3 blocks
2021-05-24 18:58:35 DEBUG Got notification for new block block_height=1976467
2021-05-24 18:58:36 DEBUG Transaction txid=e360a1243739c22a6739fdba00c4429ff9c9f6692a72886c3a0842822516a5c8 status=confirmed with 4 blocks
da-kami commented 3 years ago

Only idea so far: Might be a nonce issue because the ASB wallet is used on the raspberry and locally.