mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-26 05:55:51 +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
|
bool Transaction::checkSign() const
|
||||||
{
|
{
|
||||||
assert(mFromPubKey.isValid());
|
if (!mFromPubKey.isValid())
|
||||||
|
{
|
||||||
|
cLog(lsWARNING) << "Transaction has bad source public key";
|
||||||
|
return false;
|
||||||
|
}
|
||||||
return mTransaction->checkSign(mFromPubKey);
|
return mTransaction->checkSign(mFromPubKey);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user