mirror of
https://github.com/EvernodeXRPL/hpcore.git
synced 2026-04-29 15:37:59 +00:00
Review UNL message rules. (#188)
This commit is contained in:
committed by
GitHub
parent
fe9e276f8d
commit
0bc53fe23c
@@ -211,7 +211,7 @@ namespace consensus
|
||||
// Start unl sync if we are out-of-sync with majority unl.
|
||||
if (is_unl_desync)
|
||||
{
|
||||
conf::change_operating_mode(conf::OPERATING_MODE::OBSERVER);
|
||||
conf::change_operating_mode(conf::OPERATING_MODE::OBSERVER);
|
||||
unl::set_sync_target(majority_unl);
|
||||
}
|
||||
|
||||
@@ -671,7 +671,7 @@ namespace consensus
|
||||
void broadcast_proposal(const p2p::proposal &p)
|
||||
{
|
||||
// In observer mode, we do not send out proposals.
|
||||
if (conf::cfg.operating_mode == conf::OPERATING_MODE::OBSERVER)
|
||||
if (conf::cfg.operating_mode == conf::OPERATING_MODE::OBSERVER || !conf::cfg.is_unl) // If we are a non-unl node, do not broadcast proposals.
|
||||
return;
|
||||
|
||||
flatbuffers::FlatBufferBuilder fbuf(1024);
|
||||
|
||||
Reference in New Issue
Block a user