File tree 3 files changed +11
-1
lines changed
3 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -190,7 +190,7 @@ handleNewValidation(
190
190
191
191
// masterKey is seated only if validator is trusted or listed
192
192
auto const nodeKey = masterKey.value_or (signingKey);
193
- assert (nodeKey != app.getValidationPublicKey ());
193
+ // assert(nodeKey != app.getValidationPublicKey());
194
194
auto const outcome = validations.add (calcNodeID (nodeKey), val);
195
195
196
196
if (outcome == ValStatus::current)
Original file line number Diff line number Diff line change @@ -1887,6 +1887,15 @@ NetworkOPsImp::beginConsensus(uint256 const& networkClosed)
1887
1887
bool
1888
1888
NetworkOPsImp::processTrustedProposal (RCLCxPeerPos peerPos)
1889
1889
{
1890
+ if (auto const localPk = app_.getValidationPublicKey ())
1891
+ {
1892
+ auto const localID = calcNodeID (*localPk);
1893
+ auto const & peerID = peerPos.proposal ().nodeID ();
1894
+ assert (localID != peerID);
1895
+ if (localID == peerID)
1896
+ return false ;
1897
+ }
1898
+
1890
1899
return mConsensus .peerProposal (app_.timeKeeper ().closeTime (), peerPos);
1891
1900
}
1892
1901
Original file line number Diff line number Diff line change 25
25
#include < cstddef>
26
26
#include < functional>
27
27
#include < map>
28
+ #include < optional>
28
29
29
30
namespace ripple {
30
31
You can’t perform that action at this time.
0 commit comments