Make these pieces work together.

This commit is contained in:
JoelKatz
2011-11-28 19:33:50 -08:00
parent aee1e9f180
commit 75f1eb80a4
7 changed files with 21 additions and 14 deletions

View File

@@ -48,7 +48,7 @@ bool Transaction::sign(LocalAccount& fromLocalAccount)
{
if( (mAmount==0) || (mSourceLedger==0) || (mAccountTo==0) )
return false;
if(mAccountFrom!=fromLocalAccount.mAddress)
if(mAccountFrom!=fromLocalAccount.mAddress.GetHash160())
return false;
Serializer::pointer signBuf=getRaw(true);
if(!signBuf->makeSignature(mSignature, fromLocalAccount.peekPrivKey()))