function CountXRPDifference(affected_nodes, address) { // Helper to find an account in an AffectedNodes array and see how much // its balance changed, if at all. Fortunately, each account appears at most // once in the AffectedNodes array, so we can return as soon as we find it. // Note: this reports the net balance change. If the address is the sender, // the transaction cost is deducted and combined with XRP sent/received for (let i=0; i