Require path nodes for offers to specify a currency or issuer change.

This commit is contained in:
Arthur Britto
2013-03-30 13:46:34 -07:00
parent c67366ea25
commit 97d73de168

View File

@@ -160,6 +160,12 @@ TER PathState::pushNode(
terResult = temBAD_PATH;
}
else if (!bAccount && !bCurrency && !bIssuer)
{
cLog(lsDEBUG) << "pushNode: offer must specify at least currency or issuer.";
terResult = temBAD_PATH;
}
else if (bAccount)
{
// Account link