Skip to content

Confirmed transactions showing up in mempool as pending  #624

Closed
@yknl

Description

@yknl

There seems to have been a regression of confirmed transactions showing up as pending in the mempool. For example at the time of this issue opening:

API call to mempool endpoint for address SP7XSVPCEZFNDWVMQ7F2W5TDQDDHBQZ04NSBFZYE:
https://stacks-node-api.stacks.co/extended/v1/tx/mempool?address=SP7XSVPCEZFNDWVMQ7F2W5TDQDDHBQZ04NSBFZYE

returns

{"limit":96,"offset":0,"total":3,"results":[{"tx_id":"0x73b9133f4898627d1db910046077d4bd1ac55240500550b17e4f5714797a5490","tx_status":"pending","tx_type":"contract_call","receipt_time":1623099122,"receipt_time_iso":"2021-06-07T20:52:02.000Z","nonce":28,"fee_rate":"352","sender_address":"SP7XSVPCEZFNDWVMQ7F2W5TDQDDHBQZ04NSBFZYE","sponsored":false,"post_condition_mode":"deny","post_conditions":[],"contract_call":{"contract_id":"SPXVRSEH2BKSXAEJ00F1BY562P45D5ERPSKR4Q33.xverse-pool-v1","function_name":"delegate-stx"}},{"tx_id":"0x5a26c0d2f4d558d15899c1c2b0bd90bf929c025c94a3fc612dab312e89f641c4","tx_status":"pending","tx_type":"contract_call","receipt_time":1623099108,"receipt_time_iso":"2021-06-07T20:51:48.000Z","nonce":27,"fee_rate":"205","sender_address":"SP7XSVPCEZFNDWVMQ7F2W5TDQDDHBQZ04NSBFZYE","sponsored":false,"post_condition_mode":"deny","post_conditions":[],"contract_call":{"contract_id":"SP000000000000000000002Q6VF78.pox","function_name":"allow-contract-caller"}},{"tx_id":"0x6f46f2155945ea56f91f87ca31e1ec57f0075ac5bdbffee26412d02e3cf837e9","tx_status":"pending","tx_type":"token_transfer","receipt_time":1623098759,"receipt_time_iso":"2021-06-07T20:45:59.000Z","nonce":27,"fee_rate":"180","sender_address":"SP2M2ZWRQZ3G0W2574H7CG355EGZDM26YN9T6F2ZA","sponsored":false,"post_condition_mode":"deny","token_transfer":{"recipient_address":"SP7XSVPCEZFNDWVMQ7F2W5TDQDDHBQZ04NSBFZYE","amount":"1000","memo":"0x68656c6c6f0000000000000000000000000000000000000000000000000000000000"}}]}

The last transaction, id 0x6f46f2155945ea56f91f87ca31e1ec57f0075ac5bdbffee26412d02e3cf837e9 shows as pending but it's actually confirmed if you query the tx endpoint.

https://stacks-node-api.stacks.co/extended/v1/tx/0x6f46f2155945ea56f91f87ca31e1ec57f0075ac5bdbffee26412d02e3cf837e9

returns

{"tx_id":"0x6f46f2155945ea56f91f87ca31e1ec57f0075ac5bdbffee26412d02e3cf837e9","tx_type":"token_transfer","nonce":27,"fee_rate":"180","sender_address":"SP2M2ZWRQZ3G0W2574H7CG355EGZDM26YN9T6F2ZA","sponsored":false,"post_condition_mode":"deny","tx_status":"success","block_hash":"0x53ba86e38e7812d778350eec346896e47fdf02a7d306c48d61f1d5b0a91d014a","block_height":17849,"burn_block_time":1623099138,"burn_block_time_iso":"2021-06-07T20:52:18.000Z","canonical":true,"tx_index":4,"tx_result":{"hex":"0x0703","repr":"(ok true)"},"token_transfer":{"recipient_address":"SP7XSVPCEZFNDWVMQ7F2W5TDQDDHBQZ04NSBFZYE","amount":"1000","memo":"0x68656c6c6f0000000000000000000000000000000000000000000000000000000000"},"events":[{"event_index":0,"event_type":"stx_asset","asset":{"asset_event_type":"transfer","sender":"SP2M2ZWRQZ3G0W2574H7CG355EGZDM26YN9T6F2ZA","recipient":"SP7XSVPCEZFNDWVMQ7F2W5TDQDDHBQZ04NSBFZYE","amount":"1000"}}],"event_count":1}

Metadata

Metadata

Assignees

Labels

P4Priority 4 Edge cases, improvements, items to be refactored soonbugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions