mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Fix a bug where validations weren't passed to the consensus handler.
Change 'suppress' to 'isNew' to better reflect the meaning of its return value.
This commit is contained in:
@@ -730,12 +730,16 @@ void Peer::recvValidation(newcoin::TMValidation& packet)
|
||||
punishPeer(PP_UNKNOWN_REQUEST);
|
||||
return;
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
Serializer s(packet.validation());
|
||||
SerializerIterator sit(s);
|
||||
SerializedValidation::pointer val = boost::make_shared<SerializedValidation>(boost::ref(sit));
|
||||
if (!val->isValid())
|
||||
uint256 signingHash = val->getSigningHash();
|
||||
if (!theApp->isNew(signingHash))
|
||||
return;
|
||||
if (!val->isValid(signingHash))
|
||||
{
|
||||
punishPeer(PP_UNKNOWN_REQUEST);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user