mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-02 00:15:50 +00:00
Tune relaying of untrusted proposals & validations:
In deciding whether to relay a proposal or validation, a server would consider whether it was issued by a validator on that server's UNL. While both trusted proposals and validations were always relayed, the code prioritized relaying of untrusted proposals over untrusted validations. While not technically incorrect, validations are generally more "valuable" because they are required during the consensus process, whereas proposals are not, strictly, required. The commit introduces two new configuration options, allowing server operators to fine-tune the relaying behavior: The `[relay_proposals]` option controls the relaying behavior for proposals received by this server. It has two settings: "trusted" and "all" and the default is "trusted". The `[relay_validations]` options controls the relaying behavior for validations received by this server. It has two settings: "trusted" and "all" and the default is "all". This change does not require an amendment as it does not affect transaction processing.
This commit is contained in:
committed by
manojsdoshi
parent
ca664b17d3
commit
268e28a278
@@ -593,6 +593,23 @@
|
||||
#
|
||||
#
|
||||
#
|
||||
#
|
||||
# [relay_proposals]
|
||||
#
|
||||
# Controls the relaying behavior for proposals received by this server that
|
||||
# are issued by validators that are not on the server's UNL.
|
||||
#
|
||||
# Legal values are: "trusted" and "all". The default is "trusted".
|
||||
#
|
||||
#
|
||||
# [relay_validations]
|
||||
#
|
||||
# Controls the relaying behavior for validations received by this server that
|
||||
# are issued by validators that are not on the server's UNL.
|
||||
#
|
||||
# Legal values are: "trusted" and "all". The default is "all".
|
||||
#
|
||||
#
|
||||
# [node_size]
|
||||
#
|
||||
# Tunes the servers based on the expected load and available memory. Legal
|
||||
|
||||
Reference in New Issue
Block a user