taproot-assets: transaction rejected: output already spent
I’m running tapd
v0.2.0-alpha on polar and get this error in one instance:
2023-05-31 16:05:31.003 [INF] RPCS: Starting RPC Server
2023-05-31 16:05:31.002 [INF] FRTR: Attempting to resume delivery for anchor_txid=22cf1da4f9ace79187227298c490a0b497ed21a2cabebfcedac40b8b5a61b28d
2023-05-31 16:05:31.002 [INF] FRTR: Attempting to resume delivery for anchor_txid=b990385ec0db9375f5fce1ae33052ef414aa1a5429b9becf68d2301a52f49011
2023-05-31 16:05:31.004 [INF] RPCS: RPC server listening on 0.0.0.0:10029
2023-05-31 16:05:31.005 [INF] GRDN: Resuming 0 pending inbound asset events
2023-05-31 16:05:31.006 [INF] GRDN: Loading wallet transactions starting at block height 0
2023-05-31 16:05:31.005 [INF] FRTR: ChainPorter executing state: SendStateBroadcast
2023-05-31 16:05:31.005 [INF] FRTR: ChainPorter executing state: SendStateBroadcast
2023-05-31 16:05:31.006 [INF] CONF: Starting HTTPS REST proxy listener at 0.0.0.0:8089
2023-05-31 16:05:31.008 [INF] RPCS: gRPC proxy started at 0.0.0.0:8089
2023-05-31 16:05:31.009 [INF] SRVR: Taproot Asset Daemon fully active!
2023-05-31 16:05:31.008 [INF] FRTR: Broadcasting new transfer tx, txid=22cf1da4f9ace79187227298c490a0b497ed21a2cabebfcedac40b8b5a61b28d
2023-05-31 16:05:31.008 [INF] GRDN: Checking 5 wallet transactions for inbound assets, this might take a while
2023-05-31 16:05:31.011 [DBG] GRDN: Inspecting tx b990385ec0db9375f5fce1ae33052ef414aa1a5429b9becf68d2301a52f49011 for Taproot Asset address outputs
2023-05-31 16:05:31.009 [INF] FRTR: Broadcasting new transfer tx, txid=b990385ec0db9375f5fce1ae33052ef414aa1a5429b9becf68d2301a52f49011
2023-05-31 16:05:31.013 [DBG] GRDN: Inspecting tx 32073b13a152958b69489f7ea2c9d53a848573ad4c8279c18d6732c5d6fc9926 for Taproot Asset address outputs
2023-05-31 16:05:31.014 [DBG] GRDN: Inspecting tx 6d9becf17713051b5bc6fb0c98931de9786ff3a76e7bf3e6f30a881990065a3f for Taproot Asset address outputs
2023-05-31 16:05:31.015 [DBG] GRDN: Inspecting tx 10f5741e1623d7915538551c083748c66af177a58c0cd72915e3faf967d7d25b for Taproot Asset address outputs
2023-05-31 16:05:31.015 [INF] GRDN: Starting main custodian event loop
2023-05-31 16:05:31.016 [DBG] GRDN: Inspecting tx 22cf1da4f9ace79187227298c490a0b497ed21a2cabebfcedac40b8b5a61b28d for Taproot Asset address outputs
2023-05-31 16:05:31.048 [ERR] FRTR: Error evaluating state (SendStateBroadcast): rpc error: code = Unknown desc = transaction rejected: output already spent
2023-05-31 16:05:31.048 [ERR] SRVR: Shutting down because error in main method: received critical error from subsystem: rpc error: code = Unknown desc = transaction rejected: output already spent
2023-05-31 16:05:31.049 [INF] RPCS: Stopping RPC Server
2023-05-31 16:05:31.050 [INF] SRVR: Shutdown complete
2023-05-31 16:05:31.048 [WRN] FRTR: Unable to advance state machine: rpc error: code = Unknown desc = transaction rejected: output already spent
2023-05-31 16:05:31.050 [WRN] FRTR: No response channel for resumed parcel, not delivering notification
received critical error from subsystem: rpc error: code = Unknown desc = transaction rejected: output already spent
I tried re-using a taproot asset address if that’s a hint of what might have caused this.
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 17 (10 by maintainers)
In addressing this issue we merged this fix: https://github.com/lightninglabs/taproot-assets/pull/358
And also added this integration test: https://github.com/lightninglabs/taproot-assets/pull/365
We think that this issue should be solved, so I’ll close this issue.
( @dstadulis ) I’ve created this itest to show that the send procedure reserves (duration?) UTXOs even whilst the send process is pending: https://github.com/lightninglabs/taproot-assets/pull/355