From 939c0aa40334386a48997f0c295ee403782c7d74 Mon Sep 17 00:00:00 2001 From: Wei Yang Date: Thu, 9 Aug 2018 15:57:16 +0800 Subject: [PATCH] get to_id from to_account instead of get_account_id() This would reduce one rpc call since get_account_id() retrieve data from remote. --- libraries/wallet/wallet.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/wallet/wallet.cpp b/libraries/wallet/wallet.cpp index c4fbc043d6..991d84874c 100644 --- a/libraries/wallet/wallet.cpp +++ b/libraries/wallet/wallet.cpp @@ -2091,7 +2091,7 @@ class wallet_api_impl account_object from_account = get_account(from); account_object to_account = get_account(to); account_id_type from_id = from_account.id; - account_id_type to_id = get_account_id(to); + account_id_type to_id = to_account.id; transfer_operation xfer_op;