-
Notifications
You must be signed in to change notification settings - Fork 792
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
Provide network_receive_minimum in RPC/WS active_difficulty #2903
Provide network_receive_minimum in RPC/WS active_difficulty #2903
Conversation
The recommended workflow is using `network_minimum` for any block, specializing with `network_receive_minimum` for receive blocks, and updating with `network_current` to get priority. On mainnet I get the following response: ```json { "multiplier": "1", "network_current": "fffffff800000000", "network_minimum": "fffffff800000000", "network_receive_minimum": "fffffe0000000000" } ```
How about a |
@PlasmaPower thanks for the suggestion and for the original suggestion of adding this to the RPC (was already in the works, just waiting for epoch 2 to finish 👍). The node applies a function to normalize the prioritization with respect to the block type and even the epoch, so that a receive block doesn't have 10x the priority of a send block with less work generated. Essentially this means |
71c0b50
@PlasmaPower thanks for clarifying via DM, indeed it is possible to take advantage of the normalization to still provide less work for receive blocks and obtain the same priority. Added |
Example response: ```json { "multiplier": "1.5", "network_current": "fffffffaaaaaaaab", "network_minimum": "fffffff800000000", "network_receive_current": "fffffff07c1f07c2", "network_receive_minimum": "fffffe0000000000" } ```
On mainnet I get the following response:
The multiplier between
network_receive_minimum
andnetwork_receive_current
is 33, plugging that into our normalization expression(33 + (64 - 1)) / 64
yields 1.5 as expected.