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

SHARD-1137: Fix getTxTimestampBinary bucket size #349

Open
wants to merge 8 commits into
base: dev
Choose a base branch
from

Conversation

mgthuramoemyint
Copy link
Contributor

No description provided.

@@ -1811,7 +1811,20 @@ class TransactionConsenus {
nestedCountersInstance.countEvent('consensus', 'get_tx_timestamp found tx timestamp in cacheById')
return tsReceipt
}

if (Math.abs(cycleCounter - CycleChain.newest.counter) > 1 ){
Copy link
Contributor

Choose a reason for hiding this comment

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

can we please add some comments around logic to understand what's happening?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Do you mean in the code or here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Allowing some tx from cycle counter +1 and -1 range.

src/config/server.ts Outdated Show resolved Hide resolved
@jintukumardas
Copy link
Contributor

@mgthuramoemyint Phillip mentioned about adding the rate limit in the ticket: rate limit to no more than x requests per second per node , however, this is not included here. Are we planning to create a separate PR for this?

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.

4 participants