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

Add tx count check on prepare request #516

Closed
wants to merge 2 commits into from

Conversation

ZhangTao1596
Copy link
Collaborator

I think we should check this limit.

@erikzhang
Copy link
Member

Wait for neo-project/neo#2300

@superboyiii superboyiii mentioned this pull request Feb 11, 2021
27 tasks
@@ -417,6 +417,11 @@ private void OnPrepareRequestReceived(ExtensiblePayload payload, PrepareRequest
Log($"Timestamp incorrect: {message.Timestamp}", LogLevel.Warning);
return;
}
if (message.TransactionHashes.Length > NativeContract.Policy.GetMaxTransactionsPerBlock(context.Snapshot))
Copy link
Member

Choose a reason for hiding this comment

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

ProtocolSettings.Default.MaxTransactionsPerBlock it may be now

@erikzhang
Copy link
Member

It's done in #517

@erikzhang erikzhang closed this Feb 17, 2021
@ZhangTao1596 ZhangTao1596 deleted the fix-tx-count branch February 19, 2021 02:38
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.

3 participants