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
The indexer does not see some transactions #1414
Comments
Could it be because I don't use constructions like that? let order0 = match OrderEntity::load(uid(event.order_0_id.to_be_bytes())) {
Some(order) => order,
None => {
error!("Order not found: {}", uid(event.order_0_id.to_be_bytes()));
panic!("");
}
};
let order1 = match OrderEntity::load(uid(event.order_1_id.to_be_bytes())) {
Some(order) => order,
None => {
error!("Order not found: {}", uid(event.order_1_id.to_be_bytes()));
panic!("");
}
}; |
You can create orders like this: let order = OrderEntity { foo: "bar", id: 1 };
order.save();
info!("ID is {}", order.id); // "ID is 1"
You can also create orders like this: let order = OrderEntity::new("bar");
order.save();
info!("ID is {}", order.id); // "ID is 256745215632"
Finally, you can also create orders like this: let order = OrderEntity::new("bar").get_or_create();
order.save();
info!("ID is {}", order.id); // "ID is 256745215632"
In summary:
|
|
Hi, I'm a little sick today, I'll double-check everything again and reply tomorrow |
@ra0x3 , hi, here is my current lib.rs file, could something not be saved due to an error in the code? |
But I think if that match log with order 69 fulfillment wasn't printed that means it can be something wrong with the network, not with the indexer 🤔
I'll try to redeploy the spark and check if phantom orders will appear again |
So, yesterday I redeployed the contract and after 1day of work we have this list of phantom orders:
|
I will redeploy the contract again, do you have any recommendations on how I can investigate this problem? |
@chlenc Any updates here? :) |
we are now actively working on the development of the new market, and this problem is about the spot market, I think we can close this issue, if the problem repeats on new versions, I will start a new issue. |
The indexer does not see some transactions
Hi guys, I just faced some mystic in the spark spot market, I found some orders in order books that don't want to be matched with another, the id of that order is 69
After that, I made sure this order was active on my indexer service, which means the frontend works well
After that, I tried to ask for a contract about that order by id, and in the state of contract this order is completed
request
response
I checked my indexer's logs and found only the creation on block 4850467 and the first fulfillment logs on block 4851917
After I checked mather logs I noticed the first order match was crushed with the next error
(For some reason, I have all transactions crash with errors there, but the orders themselves are closed 🤷🏻♂️)
and after I have found a few math tries with this error:
after that all mather's match attempts fails with contract's error
OrderIsNotActive
Can you help me to figure out what it can be?
toolchain
Sources
Spot markets contract: https://github.com/compolabs/spark/blob/beta-4/contracts/spot-market/src/main.sw
Indexer: https://github.com/compolabs/spark/blob/beta-4/services/spark-indexer/src/lib.rs
Mathcer ts-sdk version: 0.62
The text was updated successfully, but these errors were encountered: