Avoid construcing a RippleAddress just to throw it away.

This commit is contained in:
JoelKatz
2013-05-13 18:28:54 -07:00
parent c9fd800ea4
commit bcf0fc0b3a
6 changed files with 12 additions and 10 deletions

View File

@@ -97,7 +97,7 @@ TER Transactor::checkSig()
{
// Consistency: Check signature
// Verify the transaction's signing public key is the key authorized for signing.
if (mHasAuthKey && mSigningPubKey.getAccountID() == mTxnAccount->getFieldAccount(sfRegularKey).getAccountID())
if (mHasAuthKey && mSigningPubKey.getAccountID() == mTxnAccount->getFieldAccount160(sfRegularKey))
{
// Authorized to continue.
nothing();