Fix create on send.

This commit is contained in:
Arthur Britto
2012-06-09 15:23:44 -07:00
parent 9bd1481d77
commit 34b0a88b86

View File

@@ -1261,9 +1261,9 @@ Json::Value RPCServer::doSend(Json::Value& params)
}
else
{
AccountState::pointer asDst = mNetOps->getAccountState(uLedger, naSrcAccountID);
AccountState::pointer asDst = mNetOps->getAccountState(uLedger, naDstAccountID);
bool bCreate = !asDst;
STAmount saFee = bCreate ? theConfig.FEE_DEFAULT : theConfig.FEE_ACCOUNT_CREATE;
STAmount saFee = bCreate ? theConfig.FEE_ACCOUNT_CREATE : theConfig.FEE_DEFAULT;
NewcoinAddress naMasterGenerator;
NewcoinAddress naAccountPublic;