From c220e6bcfceef19ec7c0dd1dac43471ecfa8a13e Mon Sep 17 00:00:00 2001 From: JoelKatz Date: Mon, 5 Dec 2011 13:19:36 -0800 Subject: [PATCH] Public key in transaction must match *from* account. --- Transaction.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Transaction.cpp b/Transaction.cpp index 382ff816a..920f5fc7f 100644 --- a/Transaction.cpp +++ b/Transaction.cpp @@ -194,7 +194,7 @@ Transaction::pointer Transaction::transactionFromSQL(const std::string& sql) frID.SetHex(fromID); tID.SetHex(toID); - CKey::pointer pubkey=theApp->getPubKeyCache().locate(tID); + CKey::pointer pubkey=theApp->getPubKeyCache().locate(frID); if(!pubkey) return Transaction::pointer(); TransStatus st(INVALID);