From d629bdef85bf414d3f8021720c15661970fd53f5 Mon Sep 17 00:00:00 2001 From: clemahieu Date: Thu, 4 Jan 2018 12:09:40 -0600 Subject: [PATCH] Removing lookup for argument that isn't actually used. --- rai/secure.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/rai/secure.cpp b/rai/secure.cpp index 3c364e07..df17375e 100755 --- a/rai/secure.cpp +++ b/rai/secure.cpp @@ -1984,11 +1984,10 @@ public: void open_block (rai::open_block const & block_a) override { auto hash (block_a.hash ()); - auto representative (ledger.representative (transaction, block_a.hashables.source)); auto amount (ledger.amount (transaction, block_a.hashables.source)); auto destination_account (ledger.account (transaction, hash)); ledger.store.representation_add (transaction, ledger.representative (transaction, hash), 0 - amount); - ledger.change_latest (transaction, destination_account, 0, representative, 0, 0); + ledger.change_latest (transaction, destination_account, 0, 0, 0, 0); ledger.store.block_del (transaction, hash); ledger.store.pending_put (transaction, rai::pending_key (destination_account, block_a.hashables.source), {ledger.account (transaction, block_a.hashables.source), amount}); ledger.store.frontier_del (transaction, hash);