We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
As @boqiu metioned in https://github.com/Conflux-Dev/conflux-infura/pull/69#discussion_r655829246, sdk should provide some common way for client application to check if the return error is some specific error.
epochReceipts, err := cfx.GetEpochReceiptsByPivotBlockHash(pivotHash) if err != nil { errStr := strings.ToLower(err.Error()) // pivot hash assumption failed, must be pivot switched if strings.Contains(errStr, "pivot assumption failed") || strings.Contains(errStr, "block not found") { // handle pivot switch } }
This issue is urgent, and is blocking infura && scan, please take a look and discuss about it.
@Pana @wangdayong228
The text was updated successfully, but these errors were encountered:
No branches or pull requests
As @boqiu metioned in https://github.com/Conflux-Dev/conflux-infura/pull/69#discussion_r655829246, sdk should provide some common way for client application to check if the return error is some specific error.
This issue is urgent, and is blocking infura && scan, please take a look and discuss about it.
@Pana @wangdayong228
The text was updated successfully, but these errors were encountered: