use dynamic fees on mainnet as well in addition to testnet

pull/19/head
moneroexamples 7 years ago
parent ab69d9ad60
commit 129d217be2

@ -1,6 +1,6 @@
var config = {
apiUrl: "http://127.0.0.1:1984/",
testnet: true,
testnet: false,
coinUnitPlaces: 12,
txMinConfirms: 10, // corresponds to CRYPTONOTE_DEFAULT_TX_SPENDABLE_AGE in Monero
txCoinbaseMinConfirms: 60, // corresponds to CRYPTONOTE_MINED_MONEY_UNLOCK_WINDOW in Monero

@ -579,19 +579,18 @@ YourMoneroRequests::get_unspent_outs(const shared_ptr< Session > session, const
j_response["amount"] = total_outputs_amount;
// need proper per_kb_fee estimate for testnet as
// need proper per_kb_fee estimate as
// it is already using dynanamic fees. frontend
// uses old fixed fees.
if (CurrentBlockchainStatus::testnet)
{
uint64_t fee_estimated {DYNAMIC_FEE_PER_KB_BASE_FEE};
if (CurrentBlockchainStatus::get_dynamic_per_kb_fee_estimate(fee_estimated))
{
j_response["per_kb_fee"] = fee_estimated;
}
uint64_t fee_estimated {DYNAMIC_FEE_PER_KB_BASE_FEE};
if (CurrentBlockchainStatus::get_dynamic_per_kb_fee_estimate(fee_estimated))
{
j_response["per_kb_fee"] = fee_estimated;
}
} // if (login_and_start_search_thread(xmr_address, view_key, acc, j_response))
else
{

Loading…
Cancel
Save