From 24534072f1ece6cf940f9033fa032cd20b7471c7 Mon Sep 17 00:00:00 2001 From: lostystyg Date: Mon, 5 Sep 2022 13:04:59 +0400 Subject: [PATCH] Reuse height binder in notifications for money --- src/pocketdb/repositories/web/WebRpcRepository.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/pocketdb/repositories/web/WebRpcRepository.cpp b/src/pocketdb/repositories/web/WebRpcRepository.cpp index ab4106205..a2a91ac6f 100644 --- a/src/pocketdb/repositories/web/WebRpcRepository.cpp +++ b/src/pocketdb/repositories/web/WebRpcRepository.cpp @@ -5700,9 +5700,7 @@ namespace PocketDb where t.Type in (1,2,3) -- 1 default money transfer, 2 coinbase, 3 coinstake and t.Height = ? )sql", - [this](std::shared_ptr& stmt, int& i, QueryParams const& queryParams){ - TryBindStatementInt64(stmt, i++, queryParams.height); - } + heightBinder }}, {