mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Require path nodes for offers to specify a currency or issuer change.
This commit is contained in:
@@ -160,6 +160,12 @@ TER PathState::pushNode(
|
|||||||
|
|
||||||
terResult = temBAD_PATH;
|
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)
|
else if (bAccount)
|
||||||
{
|
{
|
||||||
// Account link
|
// Account link
|
||||||
|
|||||||
Reference in New Issue
Block a user