Skip to content

Stash new transactions during persist#1606

Closed
Qiao-Jin wants to merge 13 commits intoneo-project:masterfrom
Qiao-Jin:stop_handling_new_transaction_during_persist
Closed

Stash new transactions during persist#1606
Qiao-Jin wants to merge 13 commits intoneo-project:masterfrom
Qiao-Jin:stop_handling_new_transaction_during_persist

Conversation

@Qiao-Jin
Copy link
Contributor

@Qiao-Jin Qiao-Jin commented Apr 23, 2020

Close #1605
This PR needs PR #1507 as precondition.

OnPongMessageReceived((PingPayload)msg.Payload);
break;
case MessageCommand.Transaction:
while (Blockchain.Singleton.isPersisting)
Copy link
Member

@shargon shargon Apr 23, 2020

Choose a reason for hiding this comment

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

This could backfire, if you wait for the incoming tx it could decrease the TPS

Copy link
Contributor Author

Choose a reason for hiding this comment

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

By experiments such modification does enhance TPS though..
I think things might be like this: The amount of verified transactions during persisting is very limited, as persisting also takes a lot of CPU resource. And on the other hand persisting is so long that overall TPS is lowerd.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hi Shargon, I changed the strategy to making remotenode stashing transactions while blockchain persisting block, please have a check:)

@Qiao-Jin Qiao-Jin changed the title Stop handling new transactions during persist Stash new transactions during persist Apr 26, 2020
@Qiao-Jin
Copy link
Contributor Author

Close due to having found better method to restrict remote node verification during persisting

@Qiao-Jin Qiao-Jin closed this May 26, 2020
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.

Restrict thread amount during persist

3 participants