Mark two FIXMEs in code that handles fees wrongly. Work on doing fees correctly.

This commit is contained in:
JoelKatz
2012-12-17 18:09:47 -08:00
parent 2997bde362
commit 038adf2a34
8 changed files with 56 additions and 13 deletions

View File

@@ -129,7 +129,7 @@ TER Interpreter::interpret(Contract* contract,const SerializedTransaction& txn,s
return(temMALFORMED); // TODO: is this actually what we want to do?
}
mTotalFee += mFunctionTable[ fun ]->getFee();
mTotalFee += mFunctionTable[ fun ]->getFee(); // FIXME: You can't use fees this way, there's no consensus
if(mTotalFee>txn.getTransactionFee().getNValue())
{
// TODO: log