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

PolicyAPI in RpcClient out of sync with neo-core #560

Closed
ProDog opened this issue Mar 15, 2021 · 0 comments · Fixed by #561
Closed

PolicyAPI in RpcClient out of sync with neo-core #560

ProDog opened this issue Mar 15, 2021 · 0 comments · Fixed by #561

Comments

@ProDog
Copy link
Contributor

ProDog commented Mar 15, 2021

public async Task<uint> GetMaxTransactionsPerBlockAsync()
{
var result = await TestInvokeAsync(scriptHash, "getMaxTransactionsPerBlock").ConfigureAwait(false);
return (uint)result.Stack.Single().GetInteger();
}
/// <summary>
/// Get Max Block Size
/// </summary>
/// <returns></returns>
public async Task<uint> GetMaxBlockSizeAsync()
{
var result = await TestInvokeAsync(scriptHash, "getMaxBlockSize").ConfigureAwait(false);
return (uint)result.Stack.Single().GetInteger();
}

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 a pull request may close this issue.

1 participant