void FeeVoteImpl::doValidation (Ledger::ref lastClosedLedger, STObject& baseValidation) { if (lastClosedLedger->getBaseFee () != target_.reference_fee) { if (journal_.info) journal_.info << "Voting for base fee of " << target_.reference_fee; baseValidation.setFieldU64 (sfBaseFee, target_.reference_fee); } if (lastClosedLedger->getReserve (0) != target_.account_reserve) { if (journal_.info) journal_.info << "Voting for base resrve of " << target_.account_reserve; baseValidation.setFieldU32(sfReserveBase, target_.account_reserve); } if (lastClosedLedger->getReserveInc () != target_.owner_reserve) { if (journal_.info) journal_.info << "Voting for reserve increment of " << target_.owner_reserve; baseValidation.setFieldU32 (sfReserveIncrement, target_.owner_reserve); } }
void FeeVoteImpl::doValidation( std::shared_ptr<ReadView const> const& lastClosedLedger, STObject& baseValidation) { if (lastClosedLedger->fees().base != target_.reference_fee) { if (journal_.info) journal_.info << "Voting for base fee of " << target_.reference_fee; baseValidation.setFieldU64 (sfBaseFee, target_.reference_fee); } if (lastClosedLedger->fees().accountReserve(0) != target_.account_reserve) { if (journal_.info) journal_.info << "Voting for base resrve of " << target_.account_reserve; baseValidation.setFieldU32(sfReserveBase, target_.account_reserve); } if (lastClosedLedger->fees().increment != target_.owner_reserve) { if (journal_.info) journal_.info << "Voting for reserve increment of " << target_.owner_reserve; baseValidation.setFieldU32 (sfReserveIncrement, target_.owner_reserve); } }