Skip to content
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

Separate call to mark prompts as processed #40

Merged
merged 3 commits into from
Mar 27, 2024
Merged

Conversation

KasparPeterson
Copy link
Contributor

No description provided.

IChatGpt(callbackAddresses[promptId]).onOracleLlmResponse(
promptCallBackId,
response,
errorMessage
);
}

function markPromptAsProcessed(uint promptId) public onlyWhitelisted {
isPromptProcessed[promptId] = true;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the previous function addResponse the IChatGpt(callbackAddresses[promptId]).onOracleLlmResponse() can fail and the oracle retries this on restart. This is a suggestion from @kgrofelnik to have a separate tx to mark it as done

@KasparPeterson KasparPeterson merged commit 701cd3b into main Mar 27, 2024
1 check passed
@KasparPeterson KasparPeterson deleted the handling-failed-txs branch March 27, 2024 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants