mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-25 21:45:52 +00:00
Handle transactions with bad source public keys.
This commit is contained in:
@@ -116,7 +116,11 @@ bool Transaction::sign(const RippleAddress& naAccountPrivate)
|
||||
|
||||
bool Transaction::checkSign() const
|
||||
{
|
||||
assert(mFromPubKey.isValid());
|
||||
if (!mFromPubKey.isValid())
|
||||
{
|
||||
cLog(lsWARNING) << "Transaction has bad source public key";
|
||||
return false;
|
||||
}
|
||||
return mTransaction->checkSign(mFromPubKey);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user