holaplex / indexer

Index Solana data using a Geyser plugin (downstream service cluster)
https://holaplex.com
GNU Affero General Public License v3.0
167 stars 39 forks source link

Purchase_id for offers and listings not updated sometimes #737

Closed imabdulbasit closed 2 years ago

kespinola commented 2 years ago

Either the offer or the listing is going to be created in the same transaction as the execute_sale. In the case of buy now the offer will be created in the instruction before buy now and for accept offer the listing.

imabdulbasit commented 2 years ago

yeah which is why its hard to solve because of the order in which indexer gets it. I am thinking about we should check the purchases table before indexing offer. This would solve the problem when offer is received after purchase instruction. Same goes for listing