Refactor FeeVote into IFeeVote abstract interface

This commit is contained in:
Vinnie Falco
2013-05-31 07:13:21 -07:00
parent a38795b3c5
commit fd6172273c
12 changed files with 249 additions and 117 deletions

View File

@@ -52,7 +52,7 @@ Application::Application() :
mTempNodeCache("NodeCache", 16384, 90), mHashedObjectStore(16384, 300), mSLECache("LedgerEntryCache", 4096, 120),
mSNTPClient(mAuxService), mJobQueue(mIOService), mFeeTrack(),
mFeeVote(10, 50 * SYSTEM_CURRENCY_PARTS, 12.5 * SYSTEM_CURRENCY_PARTS),
mFeeVote (IFeeVote::New (10, 50 * SYSTEM_CURRENCY_PARTS, 12.5 * SYSTEM_CURRENCY_PARTS)),
mFeatureTable(2 * 7 * 24 * 60 * 60, 200), // two weeks, 200/256
mRpcDB(NULL), mTxnDB(NULL), mLedgerDB(NULL), mWalletDB(NULL),
@@ -407,6 +407,7 @@ void Application::sweep()
Application::~Application()
{
delete mFeeVote;
delete mTxnDB;
delete mLedgerDB;
delete mWalletDB;