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

Improve Transaction Broadcasting for JSONRPC #9

Merged
merged 1 commit into from
Nov 4, 2021
Merged

Improve Transaction Broadcasting for JSONRPC #9

merged 1 commit into from
Nov 4, 2021

Conversation

majordutch
Copy link

Currently, when broadcasting a transaction via the JSONRPC, the transaction is sent to all in-cycle verifiers. In Discord, NyzoSy pointed out that as the cycle grows, this may become inefficient.

In order to improve this, we will use ClientTransactionUtil.sendTransactionToLikelyBlockVerifiers (ref) when broadcasting transactions via the JSONRPC.

The change will broadcast the transaction to:

  • the expected verifier + 1
  • the expected verifier
  • the previous verifier

Please test! I do not currently have any accessible Nyzo to ensure it works as expected.

I am open to making changes and improvements. Thanks!

@EggPool
Copy link

EggPool commented Oct 11, 2021

Looks pretty good!

Waiting for potential feedback from the discord, then will merge.

Thanks!!!

@EggPool EggPool merged commit b6d4e8d into Open-Nyzo:JSONRPC Nov 4, 2021
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.

None yet

2 participants