-
Notifications
You must be signed in to change notification settings - Fork 118
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Transaction event count differs to length of list of returned events #1983
Comments
This appears to be caused by a quirk/bug in how pox events are indexed. The pox events are sent as regular The result is that each pox event takes up two event index slots. stacks-blockchain-api/src/event-stream/event-server.ts Lines 719 to 736 in 3f5408f
So luckily there aren't any events actually missing from that endpoint. There are only a total of 12 events for that tx, even though there appears to be more because of the index duplication bug. It's relatively easy to fix this for new blocks that come in, but difficult to implement a fix to de-duplicate/re-index past events. |
## [7.12.0](v7.11.1...v7.12.0) (2024-07-08) ### Features * tx list contract id/name filter options ([#2018](#2018)) ([9c2fd78](9c2fd78)) * tx list nonce filter option ([#2023](#2023)) ([88fc5ce](88fc5ce)) * tx list timestamp filter options ([#2015](#2015)) ([e7c224b](e7c224b)) * tx ordering options ([#2005](#2005)) ([ae78773](ae78773)) * tx to/from address options ([#2012](#2012)) ([542973c](542973c)) * update api toolkit ([71da884](71da884)) ### Bug Fixes * pox events should use same index as associated contract log event ([#1994](#1994)) ([b1d6be9](b1d6be9)), closes [#1983](#1983)
Describe the bug
The api returns a higher number of events than it actually can deliver
To Reproduce
Steps to reproduce the behavior:
Expected behavior
All events with index 0 to 23 can be retrieved.
The text was updated successfully, but these errors were encountered: