mirror of
https://github.com/Xahau/xahaud.git
synced 2026-07-27 00:50:20 +00:00
fix(consensus): total-order entropy selector inputs
This commit is contained in:
@@ -559,7 +559,11 @@ ConsensusExtensions::selectEntropy(
|
||||
return fallback();
|
||||
|
||||
std::sort(sorted.begin(), sorted.end(), [](auto const& a, auto const& b) {
|
||||
return a.first.slice() < b.first.slice();
|
||||
if (a.first.slice() < b.first.slice())
|
||||
return true;
|
||||
if (b.first.slice() < a.first.slice())
|
||||
return false;
|
||||
return a.second < b.second;
|
||||
});
|
||||
|
||||
Serializer s;
|
||||
@@ -2433,8 +2437,7 @@ ConsensusExtensions::onTrustedPeerProposal(
|
||||
{
|
||||
JLOG(j_.debug()) << "ConsensusExtensions: ignoring unsigned proposal "
|
||||
"sidecars"
|
||||
<< " node=" << nodeId
|
||||
<< " proposeSeq=" << proposeSeq;
|
||||
<< " node=" << nodeId << " proposeSeq=" << proposeSeq;
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user