mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-02 08:55:53 +00:00
.
This commit is contained in:
@@ -4,13 +4,15 @@
|
|||||||
|
|
||||||
#define RIPPLE_PATHS_MAX 3
|
#define RIPPLE_PATHS_MAX 3
|
||||||
|
|
||||||
// TODO: only have the higher fee if the account doesn't in fact exist
|
// only have the higher fee if the account doesn't in fact exist
|
||||||
void PaymentTransactor::calculateFee()
|
void PaymentTransactor::calculateFee()
|
||||||
{
|
{
|
||||||
if (mTxn.getFlags() & tfCreateAccount)
|
if (mTxn.getFlags() & tfCreateAccount)
|
||||||
{
|
{
|
||||||
|
const uint160 uDstAccountID = mTxn.getFieldAccount160(sfDestination);
|
||||||
mFeeDue = theConfig.FEE_ACCOUNT_CREATE;
|
SLE::pointer sleDst = mEngine->entryCache(ltACCOUNT_ROOT, Ledger::getAccountRootIndex(uDstAccountID));
|
||||||
|
if(!sleDst) mFeeDue = theConfig.FEE_ACCOUNT_CREATE;
|
||||||
|
else Transactor::calculateFee();
|
||||||
}else Transactor::calculateFee();
|
}else Transactor::calculateFee();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -15,13 +15,14 @@ var serverDelay = 1500;
|
|||||||
|
|
||||||
buster.testRunner.timeout = 5000;
|
buster.testRunner.timeout = 5000;
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
buster.testCase("Simple", {
|
buster.testCase("Fee Changes", {
|
||||||
'setUp' : testutils.build_setup({no_server: true}), //
|
'setUp' : testutils.build_setup({no_server: true}), //
|
||||||
'tearDown' : testutils.build_teardown(),
|
'tearDown' : testutils.build_teardown(),
|
||||||
|
|
||||||
"simple." :
|
"varying the fee for Payment" :
|
||||||
function (done) { buster.assert(1);
|
function (done) {
|
||||||
|
|
||||||
this.remote.transaction()
|
this.remote.transaction()
|
||||||
.payment('root', 'alice', "10000")
|
.payment('root', 'alice', "10000")
|
||||||
@@ -36,8 +37,8 @@ buster.testCase("Simple", {
|
|||||||
}).submit();
|
}).submit();
|
||||||
|
|
||||||
}
|
}
|
||||||
}); */
|
});
|
||||||
|
*/
|
||||||
buster.testCase("Sending", {
|
buster.testCase("Sending", {
|
||||||
'setUp' : testutils.build_setup(),
|
'setUp' : testutils.build_setup(),
|
||||||
'tearDown' : testutils.build_teardown(),
|
'tearDown' : testutils.build_teardown(),
|
||||||
|
|||||||
Reference in New Issue
Block a user